Linux DD command partition -to- partition
- by Ben Jackson
I just used the DD command to copy the contents of one partition over to another partition on another drive, like this:
dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=noerror
sda2 partition was 66GB and sdb2 was 250GB. I read that by doing this the extra space on the drive I am copying to will be wasted, is this true?
I wasn't worried about loosing the extra space for the time being however, I just ran:
sudo kill -USR1 (PID)
to view the current status of DD and it has written over 66GB of data, will it continue to write data until it gets to 250GB? If so, is there a way to stop the process without corrupting it as waiting for it to write blank space seems like a waste of time.