Originally Posted by 13_
So, if I used identical drives
would work? And the new cloned drive would boot?
I use this to backup my slackware systems.
Even from a booted drive it works OK.
After booting with the backed up drive it looks as if it was switched off suddenly so the filesystem check will repair any 'open' files.
Also add the bs=1M option so the copying will go faster.
You could also copy 'per partition' and MBR+partition table separately
dd if=/dev/sda of=/dev/sdb bs=512 count=1
dd if=/dev/sda1 of=/dev/sdb1 bs=1M
dd if=/dev/sda2 of=/dev/sdb2 bs=1M
Nice trick (during copying):
find the pid of the dd process : ps -ef | grep dd
from another terminal : kill -s SIGUSR1 <pid>
That will print the amount of data copied so far.
Ofcourse if you could unmount the drive to be copied that is preferable.