Linux DD command partition -to- partition
Posted
by
Ben Jackson
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Ben Jackson
Published on 2012-04-06T21:25:47Z
Indexed on
2012/04/06
23:40 UTC
Read the original article
Hit count: 421
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.
© Ask Ubuntu or respective owner