LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-27-2013, 04:08 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
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
 
Old 02-27-2013, 07:18 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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
 
Old 02-27-2013, 07:20 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by John VV View Post
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.
 
Old 02-27-2013, 09:13 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
in grub.conf
change "default=0" to default=1 or 2 or 3
then change it back when it is fixed
 
Old 02-27-2013, 09:15 PM   #5
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Quote:
Originally Posted by John VV View Post
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?
 
Old 02-28-2013, 11:01 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
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.

Last edited by chrism01; 02-28-2013 at 11:03 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Dual Boot Slackware with CentOS using CentOS GRUB frankbell Slackware 9 10-26-2011 11:04 AM
[SOLVED] HELP! My CentOS kernel version matches GRUB but does not boot! voltotron Linux - Newbie 9 06-30-2011 05:33 AM
ubuntu 10.4 grub set default kernel to boot fyoder Linux - Software 2 10-02-2010 03:18 PM
8.4. Using GRUB to Set Up the Boot Process exvor Linux From Scratch 1 06-10-2010 06:44 PM
How to set Grub not to auto boot any OS without Grub Boot menu shown ussr_1991 Linux - Software 2 09-01-2007 08:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration