I have a 2TB drive I want to copy to another 2TB drive. They're attached as USB devices to my Ubuntu desktop. I don't want to shut down and use a boot CD (eg Clonezilla) because I want to keep using my PC in the meantime.
Assuming I want to copy from /dev/sdX to /dev/sdY, I know I can use dd if=/dev/sdX of=dev/sdY .. but it'll be slow because it'll copy loads of empty space.
I know I can use partclone, which "understands" various filesystems and can skip empty space, but that won't clone the partitioning itself, nor I assume will it copy any boot sector stuff?
What's the bit I'm missing, and/or is there a better way?
Mark