« Greetings | Main | Putty Alien »
February 25, 2005
GRUB Tip - Saving the last booted kernel
Byron Clark mentioned this to me a while back, but I hadn't messed with it until this evening. GRUB has the ability to remember which GRUB entry (kernel or OS) was the last to be booted instead of having the same default entry each time.
Replace "default X" in /boot/grub/grub.conf with "default saved". Then for each entry in /boot/grub/grub.conf add "savedefault". The final result should look something like:
default saved
title Kernel 2.6.9
root (hd0,0)
kernel /vmlinuz-2.6.9 root=/dev/hda2
initrd /initrd-2.6.9.img
savedefault
title Kernel 2.6.10
root (hd0,0)
kernel /vmlinuz-2.6.10 root=/dev/hda2
initrd /initrd-2.6.10.img
savedefault
Posted by emcnabb at February 25, 2005 07:16 PM