The latest kernel is causing problems with my sound, which worked fine with an older version. As I have only Ubuntu installed, Grub is not getting displayed while booting. How can I manually choose my kernel version while booting?

up vote 51 down vote accepted

The simplest way to display your Grub is to press and hold the SHIFT button while booting.

As an alternative, you can always display Grub without it booting any particular kernel:

gksudo gedit /etc/default/grub

change GRUB_TIMEOUT to -1 and comment out GRUB_HIDDEN_TIMEOUT

finish off by running

sudo update-grub
  • 4
    Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported. I commented GRUB_HIDDEN_TIMEOUT and set GRUB_TIMEOUT=0 – acidghost May 4 '15 at 10:33
  • Just to be explicit: GRUB_HIDDEN_TIMEOUT is an environment variable that needs to be set when running 'update-grub' ? – Jonathan Hartley Apr 28 '16 at 10:47
  • 1
    @JonathanHartley GRUB_HIDDEN_TIMEOUT is defined in /etc/default/grub – wjandrea Aug 8 '16 at 19:35

Holding down the shift key while booting, will display the Grub menu. You can now select an older kernel version.

For selecting an older kernel as the default kernel, please see this post

  • 2
    In my case (Ubuntu 16.04), it was left shift. Right shift didn't work. – Bob Aug 12 '16 at 15:04
  • 1
    what if the older kernels are not shown in grub (they were removed)? Does this mean these kernels are not accessible? – Kalamalka Kid Dec 7 '16 at 5:26

While booting when GRUB appears with entries select the second entry i.e., Advanced options for Ubuntu there you can see different older kernel versions which was installed previously, you can select one among them which works good for you. Otherwise you go to the grub.cfg and paste your required kernel version on top of currently installed kernel entry. In both ways it works

By the https://help.ubuntu.com/community/Grub2:

GRUB_HIDDEN_TIMEOUT=0

This setting determines how long a screen without the GRUB 2 menu will be displayed. While the screen is blank, the user can press any key to display the menu.

The default behavior is to hide the menu if only one operating system is present. If a user with only Ubuntu wishes to display the menu, place a # symbol at the start of this line to disable the hidden menu feature.

Downgrade Kernel: How to downgrade the Kernel on 11.10

Upgrade kernel: How can I upgrade kernel to 3.1?

Please, install the previous kernel with the following command:

sudo apt-get install linux-image-3.0.0-12-generic linux-headers-3.0.0-12-generic

Then reboot. You will be prompted to choose your kernel.

Let me know if it worked.

Regards

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.