LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How I can set grub to only boot a certain kernel once? (CentOS) (https://www.linuxquestions.org/questions/linux-server-73/how-i-can-set-grub-to-only-boot-a-certain-kernel-once-centos-4175451964/)

abefroman 02-27-2013 04:08 PM

How I can set grub to only boot a certain kernel once? (CentOS)
 
How I can set grub to only boot a certain kernel once? (CentOS)

Is it possible to do through grub.conf?

grub-reboot isn't found for CentOS.

Code:

root@tampabay [~]# grub-reboot
-bash: grub-reboot: command not found

TIA

John VV 02-27-2013 07:18 PM

besides the normal
during boot hit any key and use the down arrow to select one of the other three back-up kernels

but you could edit the legacy grub "grub.conf" and make an old one the boot priority

abefroman 02-27-2013 07:20 PM

Quote:

Originally Posted by John VV (Post 4901246)
besides the normal
during boot hit any key and use the down arrow to select one of the other three back-up kernels

but you could edit the legacy grub "grub.conf" and make an old one the boot priority

The problem is I don't have console access, I can only remote reboot it, so if it kernel panics, or doesn't have the right nic module loaded, then I will be unable to change the kernel.

John VV 02-27-2013 09:13 PM

in grub.conf
change "default=0" to default=1 or 2 or 3
then change it back when it is fixed

abefroman 02-27-2013 09:15 PM

Quote:

Originally Posted by John VV (Post 4901301)
in grub.conf
change "default=0" to default=1 or 2 or 3
then change it back when it is fixed

How do I change it if I don't have access to the server after it didn't come back up after rebooting with the new kernel?

chrism01 02-28-2013 11:01 PM

You can't :( (obviously). You need physical access if the system won't boot at all. You'll need to boot off a rescue cd or install media to edit it.

If it partially boots, a remote serial console or ILO unit might suffice.


All times are GMT -5. The time now is 07:11 AM.