grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pick a kernel to boot ?


From: Prarit Bhargava
Subject: Re: How to pick a kernel to boot ?
Date: Thu, 24 Oct 2013 13:46:12 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110419 Red Hat/3.1.10-1.el6_0 Thunderbird/3.1.10

On 10/24/2013 12:44 PM, Lennart Sorensen wrote:
> On Thu, Oct 24, 2013 at 04:46:19PM +0200, Lukáš Czerner wrote:
>> Hi,
>>
>> I have a simple question about grub2 which I can not find satisfying
>> answer to.
>>
>> What is a proper way to pick a kernel to boot from in case I have
>> multiple kernels installed ? Note that picking the right kernel from
>> the menu is not an option I do not always have access to the
>> console.
>>
>> With grub legacy, this was easy. Simply edit
>>
>>  /boot/grub/menu.lst
>>
>> and pick the right number. All the information I need are in that
>> file.
>>
>> So what is a recommended way to do this with grub2 ?
> 
> Same thing in /boot/grub/grub.cfg.  There is default with a number.
> 

Sorry ... some how left the list off my initial reply ...

To set a default to boot, use

grub2-set-default  [kernel entry number]

To boot a kernel once and keep the default the same (ie, boot a kernel one time)

grub2-reboot [kernel entry number]

I've noticed a lot of people messing with /boot/grub2/grub.conf ... you
shouldn't have to do that to select a kernel to boot.

P.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]