How to Clone IDE to SATA

Barry Brimer lists at brimer.org
Mon Jan 19 17:13:16 UTC 2009



On Mon, 19 Jan 2009, sanjay dass wrote:

> Hi All
>
>
> I am trying to make mirror copy of hard drive, The RedHat 4.0 is
> installed on IDE hard drive.

1.  Boot from any LiveCD that has SATA support.
2.  mkdir /old /new
3.  Mount old drive in /old .. creating /old/boot /old/usr etc where 
needed and mount the "old" filesystems into these directories
4.  Partition the new drive however you like.  Create whatever filesystems 
you like.  Mount them as above, but in /new .. so mount your new root 
filesystem in /new .. your new /boot in /new/boot ... etc.
5.  cd into /old and type (without quotes) "tar cf - * | ( cd /new; tar 
xfp -)"
6.  ls -la /old .. if there are any files that begin with a "." .. copy 
them to /new with cp.
7.  chroot /new
8.  modify your /etc/modprobe.conf to accomodate your new module for your 
SATA drive.
9.  Make a new initrd (keep a copy the old one) if you needed to add 
anything related to your new module.
10.  Update your grub config (including device map) to use the new initrd 
and to accomodate for any drive changes (i.e. /dev/hda becomes /dev/sda, etc).
11.  Install grub on the new device.
12.  Make any necessary changes to other files .. /etc/fstab etc.
13.  Exit the chroot, umount /old /new
14.  Reboot, removing LiveCD.

Hope this helps.

Barry




More information about the redhat-list mailing list