How to Clone IDE to SATA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All


I am trying to make mirror copy of hard drive, The RedHat 4.0 is
installed on IDE hard drive.
the partitions are /dev/hda1 mounted as boot,
/dev/hda2 mounted as /, /dev/hda3 mounted ad swap


lsmod command was not showing ata_piix loaded, so I compiled the
kernel for SATA support then I ran the lsmod command and found that
lsmod is showing ata_piix loaded

the output of lsmod

ata_piix               17609  6

libata                 96857  ata_piix

also I added alias in modprobe.conf file
alias scsi_hostadapter ata_piix

For mirroring I took SATA drive and created exact partition as IDE,
and then copy the / data except /boot, /proc directories through rsync

rsync -av / --exclude=/boot --exclude=/proc --exclude=/mnt /mnt/sata

then I transferd the Image of boot partition on /dev/sda1 through dd command.

and followed the following steps
1) changed the FSTAB file, removed /dev/hda1 and replaced /dev/sda1

2) edited grub.conf and changed root=/dev/sda3
3) reinstalled grub on /dev/sda

and tried to boot the machine from SATA hard drive, I get error when
RedHat is Loading

mount error 6 and mount error 22

kernel is not syncing

Could some one please help how to I transfer Image from IDE to SATA

Regards
Sanjay
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux