+ Reply to Thread
Results 1 to 1 of 1
Thread: Grub failsafe
-
Administrator
- Join Date
- Aug 2009
- Posts
- 63
Grub failsafe
Grub failsafe
=========
We can try the fallback option in the grub while rebooting this server so that it will fall back to the running kernel if the new kernel is not good. Backup the grub.conf and modify it to reflect these changes
-----------------------------------------------o
default saved #to reboot the saved option
timeout 10
hiddenmenu
savedefault=true #to enable savedefault option
fallback 1 #which kernel should boot if the first fails
title new-kernel-compiled
kernel /boot/vmlinuz-new-kernel
initrd /boot/initrd.img-new-kernel
savedefault fallback #to fallback if this fails
quiet
title currently-running-kernel
kernel /boot/vmlinuz-currently-running-kernel
initrd /boot/initrd.img-currently-running-kernel
savedefault #last kernel to try (running kernel)
quiet
-----------------------------------------------o
Then run the following commands from the shell.
#grub-set-default 0
#reboot
This should reboot to the 0th kernel and if it fails/panic grub will try the other (currently running) kernel.


LinkBack URL
About LinkBacks



Reply With Quote