Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.