Kernel problem

Eric

Verified User
Joined
Mar 25, 2004
Messages
110
I have 2 entries in my grub.conf; 0 is the new kernel, and 1 is the old kernel. Default is 0, and fallback is 1. When booting, it always uses the old kernel instead of the new one without giving any error messages (I've reconfigured syslogd). I'm pretty sure this kernel works because I've tested it in another similar but not identical machine, and it boots fine.
Any ideas?
 
Code:
timeout=5
default=0
fallback=1
splashimage=(hd0,0)/grub/splash.xpm.gz
title 2.4.28
root (hd0,0)
kernel /vmlinuz-2.4.28 ro root=/dev/hda6
initrd /initrd-2.4.28.img

title 2.4.20-28.9
root (hd0,0)
kernel /vmlinuz-2.4.20-28.9 ro root=/dev/hda6
initrd /initrd-2.4.20-28.9.img
 
Last edited:
Please read my original post carefully. :cool:
Eric said:
I have 2 entries in my grub.conf; 0 is the new kernel, and 1 is the old kernel. Default is 0, and fallback is 1. When booting, it always uses the old kernel instead of the new one without giving any error messages (I've reconfigured syslogd). I'm pretty sure this kernel works because I've tested it in another similar but not identical machine, and it boots fine.
Any ideas?
 
Are you sure grub will try a second kernel if the first one fails?

I'm not sure about grub, but I know that lilo won't.

My guess is your grub database is flumoxxed and needs to be rebuilt.

*flumoxxed, a new word, based on flumoxx; see fubar.

Jeff
 
I know that grub doesn't fallback if the kernel panics (by making ext3 a module while root partition is ext3. :cool: ) But the new kernel that I compiled works perfectly fine in other machines (again, similar but not identical hardwares), so no, I'm not sure if grub tries the 2nd kernel if the 1st one fails.

Now, do I rebuild it by installing it again => grub-install --root-directory=/boot /dev/hda or.....?


Thanks.
 
Back
Top