Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resetting a 256GB Surface Duo 2 #66

Open
davenorthey opened this issue Aug 1, 2024 · 18 comments
Open

Resetting a 256GB Surface Duo 2 #66

davenorthey opened this issue Aug 1, 2024 · 18 comments

Comments

@davenorthey
Copy link

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
Copy link
Member

gus33000 commented Aug 1, 2024

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
Copy link
Author

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
Copy link
Author

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

@gus33000
Copy link
Member

gus33000 commented Aug 1, 2024

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

@gus33000
Copy link
Member

gus33000 commented Aug 1, 2024

you also forgot to run "unit s"

@davenorthey
Copy link
Author

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
Copy link
Member

gus33000 commented Aug 1, 2024

with unit s before print..

@davenorthey
Copy link
Author

(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
Copy link
Author

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

@gus33000
Copy link
Member

gus33000 commented Aug 1, 2024

Thanks give me 2 minutes

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

image

@davenorthey
Copy link
Author

sorry. yes you had told me!

@gus33000
Copy link
Member

gus33000 commented Aug 1, 2024

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
Copy link
Member

gus33000 commented Aug 1, 2024

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

@davenorthey
Copy link
Author

(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
Copy link
Member

gus33000 commented Aug 1, 2024

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

@davenorthey
Copy link
Author

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

@gus33000
Copy link
Member

gus33000 commented Aug 1, 2024

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
Copy link
Author

Ah well. Thanks..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants