Changing grub default boot order

Peter Hillier-Brook phb at hbsys.plus.com
Thu Mar 28 17:49:11 UTC 2013


On 28/03/13 16:40, JD wrote:
> On which disk did you install grub when you installed 12.04?
> The boot menu you see when you power up the pc: does it
> reside on sda or on sdb?
>
> edit the file /boot/grub/grub.cfg and change the line
> set default="N"
> where N is the ordinal position of the OS in grub.cfg
> starting from 0.
> If you examine grub.cfg, you will see it contains lines that start with
> menuentry
>
> Each menuentry specifies which OS is to be booted, based on either
> the value of N , or at boot time, which OS you select from the boot menu.
> If you do not see the boot menu displaying the available OS'es , then
> select "Advanced options for Ubuntu"
> and that will display the available OS'es that can be booted.
> Use the arrow keys to position the cursor at the one you wish to boot.
>
> Hope this helps.

This won't help after the OPs next upgrade, when grub.cfg is likely to 
be replaced. You should have advised him to edit /etc/default/grub and 
then run update-grub.

Peter HB
>
> On 03/28/2013 09:47 AM, Jim Byrnes wrote:
>> I upgraded from 10.04 to 12.04 by installing 12.04 on a different hard
>> drive and dual booting.  Now I would like to make 12.04 (sdb) the
>> default.  This link [1] suggests using grub-customizer [2]. Does
>> anyone have any experience with this app?
>>
>> [1]
>> http://askubuntu.com/questions/100232/how-do-i-change-the-grub-boot-order
>>
>> [2]
>> http://www.howtogeek.com/howto/43471/how-to-configure-the-linux-grub2-boot-menu-the-easy-way/
>>
>>
>> Thanks,  Jim
>>
>>
>
>





More information about the ubuntu-users mailing list