-   Linux - Software (
-   -   moving to a new hard drive (

n1wil 05-21-2003 03:20 PM

moving to a new hard drive

thanks for reading my post. I have a red hat system running red hat 7.3. It is currently running on a 6 GB hard drive, and uses GRUB for the boot loader on the MBR. I have purchased a new 80GB hard drive and would like to "move" the whole filesystem from the old drive to the new drive.

Is there any easy way to do this?

There are a lot of user accounts, web applications, and MySQL databases living on the 6GB drive now, and I'd hate to loose all that data/configuration/work.

the new drive is still in the box and not formatted in any way.

If someone could please help, that would be great.


~ John
SCO and M$ can kiss my ass!

TheFishingGeek 05-21-2003 03:24 PM

Do a man on dd. It's a sector-by-sector transfer from one drive to another. Works like a charm.

TheFishingGeek 05-21-2003 03:28 PM

Basically it works like 'dd -if /dev/hda -of /dev/hdb' where hda is the source and hdb is the destination. It creates the partitions, everything. I do believe that you need to do something to move your lilo/grub to hdb, though. Don't recall what that is, but I'm sure someone more guru that me can help you there.

david_ross 05-21-2003 03:33 PM

dd isn't that fexible - you would be better with partimage:

TheFishingGeek 05-21-2003 03:38 PM

True, dd is just a "copy entire hard drive from A to B" sorta thing. I was able to move ext3, NTFS, and FAT32 partitions from a 20 to a 30 gig awhile back. It's slow (couple hours) but it worked great and works well. No purdy interface, though.

All times are GMT -5. The time now is 11:34 AM.