On Sun, Feb 06, 2005 at 10:51:04PM +0100, Nils Vogels wrote: > If your harddrives are exactly the same (same brand/model) you can > actually use dd to copy it over. That way you will make a raw image of > the original disk, including all the filesystem info and bootsector > stuffs. > > dd if=/dev/hda of=/dev/hdb > > If your disks are not exactly the same, I would make me a new > filesystem on the new disk, and use tar to copy over, since that takes > permissions and all. > > cd / ; tar cf - * | ( cd /newdisk ; tar xvf - ) >
Hej! Take care with that! You should specify 'p' as tar parameter. and "f -" is a bit redundant: cd / ; tar cp . | (cd /newdisk ; tar xpv ) Look at manpage for more information. I've never used those parentheses that way. I'll try. :) I'm happy to know that syntax for pipes :))) -- [email protected] mailing list
