SurfaceDuo-Guides icon indicating copy to clipboard operation
SurfaceDuo-Guides copied to clipboard

Resetting a 256GB Surface Duo 2

Open davenorthey opened this issue 1 year ago • 18 comments
trafficstars

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

davenorthey avatar Aug 01 '24 10:08 davenorthey

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.

gus33000 avatar Aug 01 '24 10:08 gus33000

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 avatar Aug 01 '24 10:08 davenorthey

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

davenorthey avatar Aug 01 '24 10:08 davenorthey

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

gus33000 avatar Aug 01 '24 10:08 gus33000

you also forgot to run "unit s"

gus33000 avatar Aug 01 '24 10:08 gus33000

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

davenorthey avatar Aug 01 '24 10:08 davenorthey

with unit s before print..

gus33000 avatar Aug 01 '24 10:08 gus33000

(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 avatar Aug 01 '24 10:08 davenorthey

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

davenorthey avatar Aug 01 '24 10:08 davenorthey

Thanks give me 2 minutes

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

image

gus33000 avatar Aug 01 '24 10:08 gus33000

sorry. yes you had told me!

davenorthey avatar Aug 01 '24 10:08 davenorthey

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.

  • when you will have the green light youll be able to continue where you left of in the guide:

image

gus33000 avatar Aug 01 '24 10:08 gus33000

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

gus33000 avatar Aug 01 '24 10:08 gus33000

(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

davenorthey avatar Aug 01 '24 10:08 davenorthey

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

gus33000 avatar Aug 01 '24 10:08 gus33000

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

davenorthey avatar Aug 01 '24 10:08 davenorthey

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

gus33000 avatar Aug 01 '24 10:08 gus33000

Ah well. Thanks..

davenorthey avatar Aug 01 '24 10:08 davenorthey

Hi, currently trying to reset my Surface Duo2 256GB to stock. Followed everything here but i'm still unable to lock the bootloader or installing Recovery Images via Recovery. Can you help me get my Surface Duo 2 to the Original state? When i try to lock the bootloader i get "System corrupt cannot boot." i can get it to work by switching via fastboot set_active a . When i try to install the Recovery image i get ADBD 5 error after adb sideload xxx.zip

bam2000 avatar Aug 28 '25 14:08 bam2000

Hi, currently trying to reset my Surface Duo2 256GB to stock. Followed everything here but i'm still unable to lock the bootloader or installing Recovery Images via Recovery. Can you help me get my Surface Duo 2 to the Original state? When i try to lock the bootloader i get "System corrupt cannot boot." i can get it to work by switching via fastboot set_active a . When i try to install the Recovery image i get ADBD 5 error after adb sideload xxx.zip

Hi,

can you please send the complete output of running the following (with parted already pushed that is) under the twrp image we provide? (copy paste all command prompt output as is as a reply)

parted /dev/block/sda
unit s
print
quit

parted /dev/block/sdb
unit s
print
quit

parted /dev/block/sdc
unit s
print
quit

parted /dev/block/sdd
unit s
print
quit

parted /dev/block/sde
unit s
print
quit

gus33000 avatar Aug 30 '25 19:08 gus33000

thanks for the Reply, found my mistake, somehow my boot.img wasn't stock anymore, even though i did not use Dualboot, but i did use Magisk for rooting my device. So i guess this was the root cause for not beeing able to go back to the Stock. After applying the old boot.img i could lock the bootloader and install the OTA. So all good in the End )

bam2000 avatar Aug 31 '25 09:08 bam2000

Alright 👍

gus33000 avatar Aug 31 '25 09:08 gus33000