geerlingguy / rpi-clone

A shell script to clone a booted disk on a Raspberry Pi.
https://rpi-clone.jeffgeerling.com/
BSD 3-Clause "New" or "Revised" License
172 stars 10 forks source link

Feature request: GPT Support for large drives (e.g. 4tb) & the ability to set the size of the new 2nd partition. #25

Open GenerallyClumsy opened 2 months ago

GenerallyClumsy commented 2 months ago

Firstly, thank you for maintaining this fork! I attempted to use rpi-clone to clone my SD card onto a 4TB NVMe drive, aiming to set up boot and root partitions. However, I encountered an issue where rpi-clone tried to create a 2TB root partition from a 128GB SD card. This situation led me to give up on the process.

It would be extremely helpful if there were an option to specify the size of the new root partition or, at the very least, for it to match the size of the source partition. Additionally, support for creating a GPT partition table would be greatly appreciated, especially for use with larger drives.