I’m not coming up with a lot of useful (clear) results when searching for a solution to this issue.
Is it OK to simply dd the 128GB disk to the 32GB disk using count to stop after the 16GB partition was cloned?
A bit more context: I had to clone a 16GB eMMC and only had a 128GB SD around. Now I purchased a 32GB eMMC and want to clone it again. The partition holds a root filesystem for an ARMv8 device. I don’t have the 16GB eMMC anymore, that would have been the easy way out.
I think it would work, but it seems a little overcomplicated, you can just use the partition paths as
if
andof
ofdd
directly, as long as the output partition is not smaller than the input partition.If you make the target partition larger than the source partition, and you intend to use the full partition going forward you will additionally need to resize the filesystem to fit the new 32GB partition, for example with
resize2fs
.This is the way!
Way simpler than using any GUI tool or somehow recreating the partition and manually copying the files.