WOA-Project / SurfaceDuo-Guides

Guides for the Surface Duo
286 stars 41 forks source link

Resetting a 256GB Surface Duo 2 #66

Open davenorthey opened 3 months ago

davenorthey commented 3 months ago

Hi,

I have a 256GB Surface Duo 2.

You are right - I didn't want to install Windows 11 onto it.

I have followed your instructions to reset it back to factory - but you only had the option to create a 128GB user data partition.

What is the command to create a new user data partition on a 256GB Surface Duo 2?

Thanks

Dave

gus33000 commented 3 months ago

Hi can you run

"unit s" "print"

in parted and send a screenshot of this? We never had a duo 2 256gb for testing here this is why we lack the values.

davenorthey commented 3 months ago

Here's my result (don't forget, I have already run the 128GB option..

Number Start End Size File system Name Flags 1 24.6kB 32.8kB 8192B ssd 2 32.8kB 33.6MB 33.6MB ext4 persist 3 33.6MB 50.4MB 16.8MB ext4 metadata 4 50.4MB 50.9MB 524kB frp 5 50.9MB 51.9MB 1049kB misc 6 51.9MB 367MB 315MB rawdump 7 367MB 401MB 34.2MB vm-data 8 401MB 110GB 110GB userdata

davenorthey commented 3 months ago

And (if it helps), I can run whatever you like on this - I'm just "playing"...

gus33000 commented 3 months ago

Can you paste the header that you omitted here and that contains the value i wanted to read? 😆

gus33000 commented 3 months ago

you also forgot to run "unit s"

davenorthey commented 3 months ago

C:\adb>adb shell duo2:/ # parted /dev/block/sda GNU Parted 3.2 Using /dev/block/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: SKhynix HN8T15BZGKX016 (scsi) Disk /dev/block/sda: 238GB Sector size (logical/physical): 4096B/4096B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 24.6kB 32.8kB 8192B ssd 2 32.8kB 33.6MB 33.6MB ext4 persist 3 33.6MB 50.4MB 16.8MB ext4 metadata 4 50.4MB 50.9MB 524kB frp 5 50.9MB 51.9MB 1049kB misc 6 51.9MB 367MB 315MB rawdump 7 367MB 401MB 34.2MB vm-data 8 401MB 110GB 110GB userdata

gus33000 commented 3 months ago

with unit s before print..

davenorthey commented 3 months ago

(parted) unit s (parted) print Model: SKhynix HN8T15BZGKX016 (scsi) Disk /dev/block/sda: 58191872s Sector size (logical/physical): 4096B/4096B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 6s 7s 2s ssd 2 8s 8199s 8192s ext4 persist 3 8200s 12295s 4096s ext4 metadata 4 12296s 12423s 128s frp 5 12424s 12679s 256s misc 6 12680s 89479s 76800s rawdump 7 89480s 97835s 8356s vm-data 8 97836s 26855468s 26757633s userdata

davenorthey commented 3 months ago

"unit s" isn't in your instructions..

gus33000 commented 3 months ago

Thanks give me 2 minutes

"unit s" isn't in your instructions..

image

davenorthey commented 3 months ago

sorry. yes you had told me!

gus33000 commented 3 months ago

Assuming you still have said userdata partition:

rm 8
mkpart userdata ext4 97836s 58191866s
print

Copy paste the output just so i can check its valid (just to be safe), then i can tell if that looks alright or not.

image

gus33000 commented 3 months ago

Please refresh the page i accidentally typed 6 instead of 8 and edited it. (just to be sure you have the right comment...)

davenorthey commented 3 months ago

(parted) rm 8 sh: udevadm: inaccessible or not found sh: udevadm: inaccessible or not found (parted) mkpart userdata ext4 97836s 58191866s Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? i sh: udevadm: inaccessible or not found sh: udevadm: inaccessible or not found (parted) print Model: SKhynix HN8T15BZGKX016 (scsi) Disk /dev/block/sda: 58191872s Sector size (logical/physical): 4096B/4096B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 6s 7s 2s ssd 2 8s 8199s 8192s ext4 persist 3 8200s 12295s 4096s ext4 metadata 4 12296s 12423s 128s frp 5 12424s 12679s 256s misc 6 12680s 89479s 76800s rawdump 7 89480s 97835s 8356s vm-data 8 97836s 58191866s 58094031s ext4 userdata

gus33000 commented 3 months ago

ok that looks fine, feel free to continue then! will add the missing data in the guide later (thanks too!)

davenorthey commented 3 months ago

Thank you. Any idea when there'll be a usable(ish) Windows 11 build for the Duo 2?

gus33000 commented 3 months ago

No idea, not really the current focus at the moment and there a ton of problems yet to solve with the SoC it uses. Might be a year like it could be 2 years, or half a year, really no idea

davenorthey commented 3 months ago

Ah well. Thanks..