cd source
cp -avx . dest
Omit the "v" if you don't like verbosity. The "x" prevents cp trying
recursive copies (copy source/bin to dest/bin, dest/bin to
dest/bin/bin, etc.)
Best way? Dunno.
-- Raju
-- Raj Mathur The X Group New Delhi India PGP: Fingerprint: F2 D4 4A 21 27 B0 63 FF 15 97 9D AE 9D 40 BC B8 2.6.i Key: finger raju@arbornet.org or ask a key server It is the mind that moves.>>>>> "Colin" == Colin Bennett <Colin_Bennett@aq.com> writes:
Colin> Ok, so this isn't exactly right for this mailing list, but Colin> this is the best place I could think of: I have two SCSI Colin> hard drives. The first drive has a linux ext2fs filesystem Colin> on it, the second has an empty partition. They are Colin> different sizes. Can I just do `dd if=/dev/sda1 Colin> of=/dev/sdb1'? Or will the filesystem get corrupted that Colin> way? What is the best way to duplicate a filesystem to a Colin> different sized partition?
Colin> -- Colin