Moving Redhat AS4 from IDE to SATA
Hi
I am a newbie to Linux. This is my first post here. I have RedHat AS 4 Installed on a P4 2.4GHz/Intel845 MotherBoard/1GB RAM/80GB IDE which working fine. I have taken a new PC with p4 3GHz/IntelD102 MotherBoard/2 GB RAM /80GB SATA. After upgrading hardware I used dd if=/dev/hdd of=/dev/sda. After rebooting the new system (with 80GB SATA) it shows "Kernel Panic". Both the harddisks are of same geometry. I checked the SATA on other Linux, it shows all the partitions proper. below are the fdisk results for IDE and SATA -- IDE [root@test.linux]# fdisk -l Disk /dev/hdd: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdd1 * 1 1305 10482381 7 HPFS/NTFS /dev/hdd2 1306 1318 104422+ 83 Linux /dev/hdd3 1319 9475 65521102+ 83 Linux /dev/hdd4 9476 9729 2040255 f Win95 Ext'd (LBA) /dev/hdd5 9476 9729 2040223+ 82 Linux swap [root@test.linux]# -- SATA [root@test.linux]# fdisk -l Disk /dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 1305 10482381 7 HPFS/NTFS /dev/sda2 1306 1318 104422+ 83 Linux /dev/sda3 1319 9475 65521102+ 83 Linux /dev/sda4 9476 9729 2040255 f Win95 Ext'd (LBA) /dev/sda5 9476 9729 2040223+ 82 Linux swap [root@test.linux]# Can any one tell how could I proceed further to correct this problem? or any other way to achive it? Thanks and regards. |
Hello,
that's because all links are to /dev/hdd and now you have instead /dev/sda. Normally you should reinstall linux and copy only the files you want. Otherwise you should try a trick. Boot from the IDE disk and mount the SATA to a directory eg /mnt/sata. cd /mnt/sata/dev rm -f hdd* and foreach hdd you have (hdd0, hdd1 etc) make a link to the corresponding sda ln -s ./sda hdd ln -s ./sda1 hdd1 etc. Try "ln -s" or "ln". It might work. I didn't tried yet but it is easy for you to test it. Let me know if it works. rgrgs, Geo |
This HowTo is geared strongly to Debian, but it might give you some ideas on where your move is failing.
http://www.linuxquestions.org/questi...15#post2663415 |
Well I think its a issue which need a bit of work.
First add the below entry in /etc/modprobe.conf alias scsi_hostadapter ata_piix Now rebuild the initrd : # cp initrd-(kernel-version).img initrd-(kernel-version).img.bak # mkinitrd -f initrd-$(uname -r).img $(uname -r) Once done make sure you chnage all hda to sda in both fstab and grub.conf ( not applicable when using labels ). Reboot the system and see. This is what a known issue with Red Hat distro. |
Hello Guys!!
Thanks for the quick response Here is the exact error I get while booting from the SATA VFS: Cannot open root device "LABEL=/" or 00:00 Please append a correct "root=" boot option Kernel Panic: VFS: Unable to mount root fs on 00:00 GEO_GT - I tried the solution suggested by you but it didnt work. METHER - I could not find /etc/modprobe.conf though result of #uname -r is 2.6.9-22.EL #1 Mon Sep 19 18:20:28 EDT 2005 i686 i686 i386 GNU/Linux /boot/grub/menu.lst looks like this # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,1) # kernel /vmlinuz-version ro root=/dev/hdd3 # initrd /initrd-version.img #boot=/dev/hdd default=0 timeout=10 splashimage=(hd0,1)/grub/splash.xpm.gz title Red Hat Linux (2.4.20-8) root (hd0,1) kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ initrd /initrd-2.4.20-8.img title DOS rootnoverify (hd0,0) chainloader +1 Anyother solution for this? Regards |
Where exactly u doing all this stuff I mean how u getting these details. I guess from rescue mode ...if so make sue you have mounted / . Make use of the old disk ( lower update )...Then look for /etc/modprobe.conf
|
All times are GMT -5. The time now is 07:02 PM. |