[NCLUG] Cant boot new kernel/booting using GRUB bootloader
Garett VanBeber aka GMAN
garett at preciselygreen.com
Thu Oct 23 14:54:54 MDT 2003
Forgive me if this is not the place for this. Just joined NCLUG a couple
of weeks back. I have a question I would like to throw out.
I just compiled a new kernel on my Redhat 9.0 box. The original kernel is
2.4.20-8 I upgraded to 2.4.22. I have always used lilo in the past, so
grub is a bit new to me. Anyhow, the kernel compilation went fine. The
problem is when I try to boot, I get a panic, and it says to basically
check the "LABEL" line in grub.conf. Keep in mind my original kernel
still boots. Im thinking some sort of editing needs to take place.
Here are some files that should help.
Here is a cut and paste of my grub.conf file. You will see two kernels.
2.4.22-22gmv is what I just compiled. When I try to boot it, it says to
check the "root LABEL=" line in grub.conf. My old kernel boots fine
still. I'm thinking something needs to be edited, like the device file.
The confusing part is the 2.4.20-8 kernel boots just as you see it.
Any thoughts?
GRUB.CONF
# 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,0)
# kernel /vmlinuz-version ro root=/dev/hda2
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.22-22gmv)
root (hd0,0)
kernel /vmlinuz-2.4.22-22gmv ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.22-22gmv.img
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdd=ide-scsi
initrd /initrd-2.4.20-8.img
Here is my "df" output
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 12199504 2940548 8639252 26% /
/dev/hda1 101089 11170 84700 12% /boot
none 192264 0 192264 0% /dev/shm
/dev/hdb1 32503320 3674992 27177252 12% /misc/storage
Here is an fdsisk -l output
Disk /dev/hda: 13.6 GB, 13600677888 bytes
255 heads, 63 sectors/track, 1653 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 1556 12394147+ 83 Linux
/dev/hda3 1557 1653 779152+ 82 Linux swap
Disk /dev/hdb: 33.8 GB, 33820286976 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 4111 33021576 83 Linux
Regards,
Garett VanBeber
More information about the NCLUG
mailing list