setting older kernel version as default

My OS version is Ubuntu 20.04 LTS. Recently I got a kernel update to version 5.8.0-38 but then I was facing a lot of hardware issues. Now I am temporarily on kernel version 5.8.0-36 generic. How do I set this particular version as default. I am completely new to Linux.

2 Answers

If you'd like to always boot specific version by default you should

  1. Edit /etc/default/grub file. Find GRUB_DEFAULT and specify path to the grub menu entry (something like GRUB_DEFAULT='Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-48-generic')
  2. Run update-grub.

Note 1. You can find grub menu entries in /boot/grub/grub.cfg.
Note 2. I recommend to make a copy of /etc/default/grub before modification.

You can also check this link - I've created a note for myself some time ago.

1

The simplest solution might be to enable Grub's GRUB_SAVEDEFAULT feature. Try this:

  1. Open the Terminal
  2. Edit the /etc/default/grub file: sudo vi /etc/default/grub
  3. Change GRUB_DEFAULT=0 to GRUB_DEFAULT=saved
  4. Add GRUB_SAVEDEFAULT=true
  5. Save the file (Esc:WX
  6. Update Grub with: sudo update-grub

These settings will ensure that your system boots with the last kernel you chose during boot.

Now reboot, hold the shift key when your system comes back up. You should then see the Grub menu. Choose the Kernel that works for you. That will now be "default".

Hope this gives you what you need.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like