Copying partitions

Jim Conner jconner
Sun Feb 18 15:14:40 PST 2007


I'm looking to get a new hard drive(320GB) to replace my current hard 
drive(20GB).  I have four partitions on the currend hard drive:
/
/home
/data
/usr/local/games
I'm looking to move all the files in these to the new drive, make the drive 
primary master and rerun lilo.  I don't really want to reinstall my OS.
The question I'm asking is how to copy these partitions and keep all the 
permissions and ownership about them.  Would dd work?  And would the command 
be: dd if=/dev/hda? of=/dev/hdb?  Does the respective partitions have to be 
the same size?  Or would I have to tarball up each partition and untar them 
in the correct place?  I've had problems with this with the length of file 
name.
Thanks in advance for any and all help.

Jim
-- 
 
 18:01:01 up 7 days,  9:53,  1 user,  load average: 0.00, 0.00, 0.00
------------------------------------------------------------------------
Running Mandriva 2007 - Linux - because life is too short for reboots...
Registered Linux User: 181038      --        http://counter.li.org



More information about the Linux-users mailing list