On 27 September 2016 at 16:15, steve-ALUG@hst.me.uk wrote:
I imagine that dd or partclone would be quicker overall than other methods, depending on how much unused space there is, but, if you want to keep using the machine, then they're probably out of the question. I imagine the reason for using dd or partclone is to get and exact or quick copy, but...
I'm not sure I was very clear...
The 2TB drive is a boot disk from another PC that is misbehaving. I want to image it to a new disk, using my main desktop PC. Therefore the disk being imaged (and the destination) are not mounted and I can use dd etc on them while I use the PC for everything I would normally do.
dd looks like it'll take 35hrs, at least in part because of the blank space (mostly because of the fact it's working over USB2 but I can't help that).
partclone should work once the partitions are there, and once everything outside the partition structure (eg boot sectors) are copied.
My guess is that simply using dd to copy the start of the disk (although I have no idea how much of it) will take care of boot and partition table, and I can then use partclone for the rest. But guessing isn't a great plan when I'm trying to retain data!
a simple cp or rsync will copy a file structure and file permissions and ownership if you get the right options. It won't copy blank space. It won't bit and exact copy (as in file "a" won't be on inode "235"), but all the data should copy. So why not do that?
I don't care about inodes so that would be OK, but I would expect the result to be bootable, which I didn't think would happen with cp/rsync.
This page is one of many giving ideas how to do it. http://superuser.com/questions/307541/copy-entire-file-system-hierarchy-from...
Thanks, I'll take a look.
[Full story: The disk has three partitions; a Windows one, a Linux one, and a binary data one holding a VeraCrypt encrypted drive. Windows helped itself to an upgrade and rebooted, and won't come back up. I may at some point try to fix it but for now I just want a copy of the disk so I can reinstall. I want to reinstall over the existing 2TB drive though, because that's an SSHD drive which will give me better performance than the 2TB HDD that I want to image to. There's no way around the binary image of the veracrypt partition, but the NTFS and Ext4 partions make up well over half the drive and could be copied a lot more quickly by partclone than dd.]