PDA

View Full Version : disk copy?



elleric
03-14-2008, 03:32 PM
Hi, I'm hoping some one would be able to help me out with this, I am trying to copy the image from one disk onto another.

I have my drives: /dev/sda and /dev/sdb i think, I am looking for the image from sda to copy onto sdb.

I have knoppix5 if that helps.

thanks in advance!

hal8000
04-20-2008, 09:50 PM
/dev/sda or /dev/sdb is the entire hard drive.
If you want to copy a partition then dd with the partition number

e.g. dd if=/dev/sda1 of=/dev/sdb1

copies the first (primary) partition from the first SATA drive to your second SATA drive.
Make sure that the partition on the other drive is the same size (or larger)