raspberrypi-ui / piclone

Utility to back up Pi to an SD card reader
257 stars 62 forks source link

Does piclone (SD Card Copier) work with GPT-partitioned "Hybrid MBR" RPi SSD's? (As is necessary above 2TB!) #44

Open holta opened 8 months ago

holta commented 8 months ago

Many thanks to RonR who's helped so many people get modern/large SSD drives (larger than 2TB!) working with Raspberry Pi! Thanks to his lifesaver mbr2gpt (interactive bash script) that he's posted as part of usb-boot.zip here: (as he very actively supports the entire RPi community, amazingly!)

https://forums.raspberrypi.com/viewtopic.php?t=196778

KEY QUESTION: Does anyone know if such GPT-partitioned "Hybrid MBR" Raspberry Pi OS SSD drives can successfully be copied using Raspberry Pi OS's Raspberry start menu (top-left of screen) > Accessories > SD Card Copier ?

spl237 commented 8 months ago

To be honest, I don't know! SD Card Copier simply duplicates the partition structure (up to a limit of 10 partitions, IIRC) and then does a standard file copy to duplicate everything in each partition. I can't immediately see any reason why it wouldn't work unless there is something peculiar about the gpt partition structure. Have you tried it?

holta commented 8 months ago

Have you tried it?

I will ask educators in "wartorn" Cameroon to try it as soon as they can in coming weeks, and report back results.

@spl237 huge thanks for your work & for explaining!

holta commented 8 months ago

No dice!

Just FYI they (in Cameroon) tried SD Card Copier using the very latest 64-bit Raspberry Pi OS with desktop (from December 5th 2023) and the immediate result is "Non MS-DOS partition table on source." — as seen in this screenshot:

image

spl237 commented 8 months ago

OK, thank you for testing.

Without looking into it, I'm not sure if that will be a trivial or a complicated thing to fix. I will put it on the to-do list and have a look at it in the new year.

holta commented 1 week ago

With 4TB SSD drives becoming extremely common in 2024, just FYI here is a related discussion thinking over how Raspberry Pi Imager might support such drives:

(larger than 2TB requires GPT instead of MBR, and likely firmware adjustments as 512-byte sectors to become 4KB !)