April 5, 2011, 9:50 p.m.
posted by whitehat
In this example, default is set to 1, which means the system boots the second kernel entry, which happens to be that of the original kernel 2.6.5-1.358. You can set this value to 0, which makes it boot your newly compiled kernel (the first entry).
default=1 timeout=10 splashimage=(hd0,0)/grub/splash.xpm.gz title Red Hat Linux (2.6.5-1.358-new) root (hd0,0) kernel /vmlinuz-2.6.5-1.358-new ro root=LABEL=/ initrd /initrd-2.6.5-1.358-new.img title Red Hat Linux (2.6.5-1.358) root (hd0,0) kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ initrd /initrd-2.6.5-1.358.img
Kernel Crash Recovery
Sometimes the new default kernel will fail to boot or work correctly with the new kernel. A simple way of recovering from this is to reboot your system, selecting the old version of the kernel from the Fedora splash screen. Once the system has booted with this stable version, edit the grub.conf file and set the default parameter to point to the older version instead. If this fails, you may want to boot from a CD with the original kernel. You can then try to either reinstall a good kernel RPM or rebuild the failed one over again after fixing the configuration problem that caused the trouble in the first place.
How to Create a Boot CD
When you reboot your system with the CD, the boot process automatically attempts to access your files in the /root partition and boot normally. The only difference is that the kernel used is on the CD.