1829523 Members
1893 Online
109991 Solutions
New Discussion

Kernel Panic

 
Jun Zhang_4
Regular Advisor

Kernel Panic

I compiled 2.4.20-24.8, boot, and got
ds: no socket drivers loaded!
VFS: Cannot open root device "LABEL=/"
Please append a correct "root= " boot option
Kernel panic: VFS: Unable to mount root fs on 00:00

/etc/grub.conf
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-24.8.0)
root (hd0,0)
kernel /vmlinuz-2.4.18-24.8.0 ro root=LABEL=/
initrd /initrd-2.4.18-24.8.0.img
title Red Hat Linux (2.4.20-24.8)
root (hd0,0)
kernel /vmlinuz-2.4.20-24.8 ro root=LABEL=/
initrd /initrd-2.4.20-24.8.img

/etc/fstab (related)
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext2 defaults 1 2

The first kernel entry in grub.conf works.
Please help.

Jun Z
Food lover
4 REPLIES 4
Vitaly Karasik_1
Honored Contributor

Re: Kernel Panic

after compiling new kernel you should "mkinitrd" for building initrd image.

Rgds,
vitaly
Alexander Chuzhoy
Honored Contributor

Re: Kernel Panic

if you had no errors during kernel / modules compilation
be sure that you copied the bzImage to /boot/vmlinuz-2.4.20-24.8

and that you've run this command:

mkinitrd /boot/initrd-2.4.20-24.8 2.4.20-24.8



Best Regards.
K.C. Chan
Trusted Contributor

Re: Kernel Panic

Make sure you have include ext3 in your new kernel and make sure you run "mkinitrd ".
Reputation of a thousand years can be determined by the conduct of an hour
Stuart Browne
Honored Contributor

Re: Kernel Panic

Also make sure that /dev/hda1 has a label of '/' (e2label /dev/hda1).
One long-haired git at your service...