forked from kmille36/XiaomiMiMix2s-Windows-ARM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.txt
76 lines (53 loc) · 1.66 KB
/
commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#Boot into twrp tecovery
#Push parted script into sdcard (change path to your parted)
adb push "E:\arm64\parted" /sdcard/
#start adb shell
adb shell
#move parted to sbin directory
cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted
#umount data and sdcard
umount /data && umount /sdcard
#start parted
parted /dev/block/sda
#Delete userdata Partition with Command rm number
rm 21
#Create Windows Partition (256GB model)
mkpart esp fat32 6559MB 7000MB
mkpart win ntfs 7000MB 220GB
mkpart pe fat32 220GB 221GB
mkpart userdata ext4 221GB 251GB
#Create Windows Partition (128GB model)
mkpart esp fat32 6559MB 7000MB
mkpart win ntfs 7000MB 100GB
mkpart pe fat32 100GB 101GB
mkpart userdata ext4 101GB 123GB
#Create Windows Partition (64GB model)
mkpart esp fat32 6559MB 7000MB
mkpart win ntfs 7000MB 40GB
mkpart pe fat32 40GB 41GB
mkpart userdata ext4 41GB 59.1GB
#set esp on
set 21 esp on
#Quit
quit
#reboot to twrp
#format Partition
mkfs.fat -F32 -s1 /dev/block/by-name/pe
mkfs.fat -F32 -s1 /dev/block/by-name/esp
mkfs.ntfs -f /dev/block/by-name/win
mke2fs -t ext4 /dev/block/by-name/userdata
#mount Partition PE
mount /dev/block/by-name/pe /mnt
#Copy All File in PE Folder to PE disk
#Masuk ke Mode Fastboot dan Boot ke UEFI (change path to your boot-polaris.img)
fastboot boot "E:\boot-polaris.img"
################ commands on the phone (in Windows PE) ################
diskpart
select disk 0
list part
select part 21
assign letter=Y
exit
bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} testsigning on
bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} nointegritychecks on
shutdown -s -t 0