2

How do you change the default Grub boot option in Ubuntu 14.04? This has been asked and answered for older versions, but these solutions no longer seem to work for 14.04.

Specifically, the version of Grub used in 14.04 now has two screens. The first screen lists:

Ubuntu (default)
Ubuntu advanced
memory test
memory test (other options)

And all the other actual kernel options are hidden under the "Ubuntu advanced" sub-menu.

I installed 14.04 server, but for some reason, it's using the generic-kernel. Unfortunately, the option to use the server kernel is listed under the "Ubuntu advanced" menu, and the GRUB_DEFAULT index in /etc/default/grub doesn't effect or select from those.

I tested this by changing the GRUB_DEFAULT to 4, corresponding to the 5th option under the "Ubuntu advanced" grub menu, but it still booted using the "Ubuntu (default)" generic kernel. How do I fix this?

3
  • If you disable the submenus, does selec tion using the index work?
    – muru
    Commented Apr 12, 2015 at 19:44
  • Did you remember to run (in terminal) sudo update-grub after changing the grub default? If not, then it won't be updated and will still go by the old settings.. Commented Apr 12, 2015 at 19:44
  • @muru, Yes, yes it does. Thanks. Please post that as an answer.
    – Cerin
    Commented Apr 13, 2015 at 1:05

2 Answers 2

4

For example if the desired default kernel to boot was the third one on the "Ubuntu advanced" menu, the the grub line would be:

GRUB_DEFAULT="1>2"

The lines start counting from 0, so the "1" means the second line of the first, or main menu, the "Ubutnu advanced" one. The "2" means the third line of that menu.

By the way, note that there is no longer any difference in Ubuntu kernels between desktop and server, they both now use the same kernel.

0

You can disable submenus in Grub, by adding the following to /etc/default/grub:

GRUB_DISABLE_SUBMENU=y

After running update-grub again, you should be able to use the indices as you normally would.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .