[div class='quotetop']QUOTE[/div][div class='quotemain'] I first tried "cp -pr /dev/sda2 /dev/sdb1" [/quote] You are to copy the mount points, not the device files. For example, if /dev/sda2 is mounted in /mnt/hard-disk and /dev/sdb1 is mounted in /mnt/foobar, you will do:
br /]cp -pr /mnt/hard-disk /mnt/foobar
[div class='quotetop']QUOTE[/div][div class='quotemain'] I had tried dd in the past, and got the error that there was no more space left on the device. [/quote] You didn't specify the size?
br /]dd if=/dev/sda2 of=/dev/sdb1 bs=1k count=3072
For bs=1k count=3072, the copy/disk size is 3 MB.
|