[ILUG] Drive copying

Lars Hecking lhecking at nmrc.ucc.ie
Wed Oct 20 16:54:23 IST 1999


John Mc Donald writes:
> If I want to make a copy of one ext2 partition to another is mounting
> the new drive and old drive and simply typing
>     cp -d -R -p -x /mnt/olddrive/* /mnt/newdrive
> the best thing to do.
 
 I'd use something like

 cd /mnt/olddrive
 tar cf - . | ( cd /mnt/newdrive && tar xf - )

 and you should be root for this. You could also use dump and restore.





More information about the ILUG mailing list