Technical

How can I boot with a kernel that is older?

Kernal boot
Written by omanjali

How can I boot with a kernel that is older?

It is not a good idea to remove the new kernel while still using the older kernel because the new kernel will be installed and used with the upcoming system upgrades.So I advised setting the default boot loader to use an earlier Linux kernel. How do you do that? I’ll demonstrate that for you in this lesson.

Read more:About Install Ubantu

Launching the older Linux kernel

Your Linux distribution retains many Linux kernels installed on your system, in case you are unaware of this. You don’t trust me? Use this command to display a list of Ubuntu’s installed kernels:

apt list --installed | grep linux-image

When you receive a new kernel version along with system updates, your computer will immediately boot into the most recent kernel version that is still in use.

Setting an outdated kernel as the default

The following lines can be added to the /etc/default/grub file if you are familiar with the Linux terminal and commands:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true Update Grub then with:

sudo update-grub

Using this command, you instructed your system to save the currently used entry as the default entry for upcoming GRUB runs.

 

How to set up Grub Customizer

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer

Changing the default boot entry with the Grub Customizer

The available boot entries are displayed when you launch Grub Customizer.

You will get two options here.

Option 1: Choose the appropriate kernel entry and use the arrow to advance it up the menu (displayed on the top menu).

Option 2:I would advise selecting option 2, as it will function even in the event of future kernel revisions.

In Ubuntu or other distributions, you can downgrade the kernel in this method without ever deleting the older kernel version.

Recall that the majority of distributions, including Ubuntu, only maintain two kernel versions at once. Therefore, ultimately, the newer kernel versions will replace your chosen older kernel.

Read More About:Kernal boot

About the author

omanjali

Leave a Comment