[Moto Z3 Play Guides, News, & Discussion] heavenflyer:
Recently I noticed that Windows 11 Arm64 version is possible to run on Z2 Force which has the same processor (Snapdragon 835) with my Z3 retcn version, so I feel very like to give it a try on my Z3. (Project Renegade)

Unfortunately I am stuck at the first step which is repartitioning the internal storage.

According to the guidelines, I will need to:

1. Repartition device;

2. Format new partitions;

3. Mount PE partition as /mnt;

4. (And other following steps);

The example given by the project's guidelines is OnePlus 6T 128GB, which apparently has its /userdata on /dev/block/sda, and its /dev/block/sda seems has only 17 partitions in place originally.

I see on my Z3 its /userdata is on /dev/block/sdb, which has already 21 partitions existing, and also it has so many disks existing as in below:

messi:/ # ls -l /dev/block/ | grep sd

brw------- 1 root root 8, 0 1970-01-01 00:17 sda

brw------- 1 root root 8, 1 1970-01-01 00:17 sda1

brw------- 1 root root 8, 2 1970-01-01 00:17 sda2

brw------- 1 root root 8, 16 2022-03-07 06:56 sdb

brw------- 1 root root 8, 17 1970-01-01 00:17 sdb1

brw------- 1 root root 8, 18 1970-01-01 00:17 sdb2

brw------- 1 root root 8, 19 2022-03-07 06:35 sdb3

brw------- 1 system system 8, 20 1970-01-01 00:17 sdb4

brw------- 1 root root 8, 21 1970-01-01 00:17 sdb5

brw------- 1 root root 8, 22 1970-01-01 00:17 sdb6

brw------- 1 root root 8, 23 1970-01-01 00:17 sdb7

brw------- 1 root root 8, 24 1970-01-01 00:17 sdb8

brw------- 1 root root 8, 25 1970-01-01 00:17 sdb9

brw------- 1 root root 8, 26 1970-01-01 00:17 sdb10

brw------- 1 root root 8, 27 1970-01-01 00:17 sdb11

brw------- 1 root root 8, 28 1970-01-01 00:17 sdb12

brw------- 1 root root 8, 29 1970-01-01 00:17 sdb13

brw------- 1 root root 8, 30 1970-01-01 00:17 sdb14

brw------- 1 root root 8, 31 1970-01-01 00:17 sdb15

brw------- 1 root root 259, 0 1970-01-01 00:17 sdb16

brw------- 1 root root 259, 1 1970-01-01 00:17 sdb17

brw------- 1 root root 259, 2 1970-01-01 00:17 sdb18

brw------- 1 root root 259, 3 1970-01-01 00:17 sdb19

brw------- 1 root root 259, 4 1970-01-01 00:17 sdb20

brw------- 1 root root 259, 5 2022-03-07 06:56 sdb21

brw------- 1 root root 8, 32 1970-01-01 00:17 sdc

brw------- 1 root root 8, 33 1970-01-01 00:17 sdc1

brw------- 1 root root 8, 48 1970-01-01 00:17 sdd

brw------- 1 root root 8, 49 1970-01-01 00:17 sdd1

brw------- 1 root root 8, 64 1970-01-01 00:17 sde

brw------- 1 root root 8, 65 1970-01-01 00:17 sde1

brw------- 1 root root 8, 66 1970-01-01 00:17 sde2

brw------- 1 root root 8, 67 1970-01-01 00:17 sde3

brw------- 1 root root 8, 68 1970-01-01 00:17 sde4

brw------- 1 root root 8, 69 1970-01-01 00:17 sde5

brw------- 1 root root 8, 70 1970-01-01 00:17 sde6

brw------- 1 root root 8, 71 1970-01-01 00:17 sde7

brw------- 1 root root 8, 72 1970-01-01 00:17 sde8

brw------- 1 root root 8, 73 1970-01-01 00:17 sde9

brw------- 1 root root 8, 74 1970-01-01 00:17 sde10

brw------- 1 root root 8, 75 1970-01-01 00:17 sde11

brw------- 1 root root 8, 76 1970-01-01 00:17 sde12

brw------- 1 root root 8, 77 1970-01-01 00:17 sde13

brw------- 1 root root 8, 78 1970-01-01 00:17 sde14

brw------- 1 root root 8, 79 1970-01-01 00:17 sde15

brw------- 1 root root 259, 6 1970-01-01 00:17 sde16

brw------- 1 root root 259, 7 1970-01-01 00:17 sde17

brw------- 1 root root 259, 8 1970-01-01 00:17 sde18

brw------- 1 root root 259, 9 1970-01-01 00:17 sde19

brw------- 1 root root 259, 10 1970-01-01 00:17 sde20

brw------- 1 root root 259, 11 1970-01-01 00:17 sde21

brw------- 1 root root 8, 80 1970-01-01 00:17 sdf

brw------- 1 root root 8, 81 1970-01-01 00:17 sdf1

brw------- 1 root root 8, 82 1970-01-01 00:17 sdf2

brw------- 1 root root 8, 83 1970-01-01 00:17 sdf3

brw------- 1 root root 8, 84 1970-01-01 00:17 sdf4

brw------- 1 root root 8, 85 1970-01-01 00:17 sdf5

brw------- 1 root root 8, 86 1970-01-01 00:17 sdf6

brw------- 1 root root 8, 87 1970-01-01 00:17 sdf7

brw------- 1 root root 8, 88 1970-01-01 00:17 sdf8

brw------- 1 root root 8, 89 1970-01-01 00:17 sdf9

brw------- 1 root root 8, 90 1970-01-01 00:17 sdf10

brw------- 1 root root 8, 91 1970-01-01 00:17 sdf11

brw------- 1 root root 8, 92 1970-01-01 00:17 sdf12

brw------- 1 root root 8, 93 1970-01-01 00:17 sdf13

brw------- 1 root root 8, 94 1970-01-01 00:17 sdf14

brw------- 1 root root 8, 95 1970-01-01 00:17 sdf15

brw------- 1 root root 259, 12 1970-01-01 00:17 sdf16

brw------- 1 root root 259, 13 1970-01-01 00:17 sdf17

brw------- 1 root root 259, 14 1970-01-01 00:17 sdf18

brw------- 1 root root 259, 15 1970-01-01 00:17 sdf19

brw------- 1 root root 259, 16 1970-01-01 00:17 sdf20

brw------- 1 root root 259, 17 1970-01-01 00:17 sdf21

The /userdata is on /dev/block/sdb which is like this (by parted):

messi:/ # parted /dev/block/sdb

GNU Parted 3.2

Using /dev/block/sdb

Welcome to GNU Parted! Type 'help' to view a list of commands.

(parted) print

Model: SAMSUNG KLUDG8V1EE-B0C1 (scsi)

Disk /dev/block/sdb: 116GB

Sector size (logical/physical): 4096B/4096B

Partition Table: gpt

Disk Flags:

Number Start End Size File system Name Flags

1 131kB 139kB 8192B ssd

2 262kB 33.8MB 33.6MB ext4 persist

3 33.8MB 34.9MB 1049kB misc

4 34.9MB 35.4MB 524kB frp

5 35.4MB 35.9MB 524kB utags

6 35.9MB 36.4MB 524kB utagsBackup

7 36.4MB 36.6MB 131kB cid

8 36.6MB 37.1MB 524kB metadata

9 37.1MB 45.5MB 8389kB kpan

10 45.5MB 53.9MB 8389kB sp

11 53.9MB 70.6MB 16.8MB carrier

12 70.6MB 72.7MB 2097kB modemst1

13 72.7MB 74.8MB 2097kB modemst2

14 74.8MB 74.8MB 4096B fsc

15 75.0MB 75.0MB 4096B devinfo

16 75.1MB 83.5MB 8389kB logfs

17 83.5MB 83.5MB 16.4kB sec

18 83.6MB 83.9MB 262kB apdp

19 83.9MB 84.1MB 262kB msadp

20 84.1MB 84.2MB 4096B dpo

21 84.2MB 116GB 116GB ext4 userdata

The disk /dev/block/sdb1 has only 8192B and no partition created as shown below (Model: Unknown):

(parted) select /dev/block/sdb1

Using /dev/block/sdb1

(parted) print

Error: /dev/block/sdb1: unrecognised disk label

Model: Unknown (unknown)

Disk /dev/block/sdb1: 8192B

Sector size (logical/physical): 4096B/4096B

Partition Table: unknown

Disk Flags:

However, the disk /dev/block/sdb2 has 1 partition (33.6MB) on it as shown below (Model: Unknown):

(parted) select /dev/block/sdb2

Using /dev/block/sdb2

(parted) print

Model: Unknown (unknown)

Disk /dev/block/sdb2: 33.6MB

Sector size (logical/physical): 4096B/4096B

Partition Table: loop

Disk Flags:

Number Start End Size File system Flags

1 0.00B 33.6MB 33.6MB ext4

What I wanted was:

rm 21

mkpart esp fat32 85MB(84.2MB) 500MB #415MB

mkpart pe fat32 500MB 3000MB #2500MB

mkpart win ntfs 3000MB 100GB #97GB

mkpart userdata ext4 100GB 116GB #16GB

The problem is after I removed partition 21 on /dev/block/sdb (115.9158GB) and created the esp partition without problem, then I needed to create the pe partition but I got an error as:

(parted) mkpart pe fat32 500MB 3000MB

Error: Too many primary partitions.

I understand the number of primary partitions can not exceed 21, but in this case how can I continue to create the partitions needed for the Windows 11?

I think I may need to shrink the size of /dev/block/sdb, keeping the /userdata partition still on this disk but taking size only 16GB and then utilize the free space to create a new disk /dev/block/sdg to hold esp, pe, win partitions but I don't know how to do it. The Z3 currently is not my daily use, so that I have no problem losing all data on it.

Could you please help and see how can I progress on this problem?

Grateful to your help!