0% found this document useful (0 votes)
38 views2 pages

Ubuntu Kernel Down DR A de

Uploaded by

deepak10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

Ubuntu Kernel Down DR A de

Uploaded by

deepak10
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

## Downgrading Linux Kernel version in Ubuntu 20.

# Check existing version


uname -a
Linux cto-cnclassic5 5.4.0-110-generic #124-Ubuntu SMP Thu Apr 14 19:46:19 UTC 2022
x86_64 x86_64 x86_64 GNU/Linux

# Check if the desired version is available to install via apt


apt-cache search linux-image | grep 5.4.0-97-generic
apt-cache search linux-image | grep 5.4.0-135
linux-image-5.4.0-97-generic - Signed kernel image generic
linux-image-unsigned-5.4.0-97-generic - Linux kernel image for version 5.4.0 on 64
bit x86 SMP

# Install the desired version


apt-get install linux-headers-5.4.0-97-generic linux-image-5.4.0-97-generic linux-
modules-extra-5.4.0-97-generic
apt-get install linux-headers-5.4.0-135-generic linux-image-5.4.0-135-generic
linux-modules-extra-5.4.0-135-generic

# verify the installation


dpkg --list | grep linux-image
ii linux-image-5.4.0-110-generic 5.4.0-110.124
amd64 Signed kernel image generic
ii linux-image-5.4.0-97-generic 5.4.0-97.91
amd64 Signed kernel image generic
ii linux-image-generic 5.4.0.110.114
amd64 Generic Linux kernel image

# Making the newly installed kernel as the default one to boot


# Make below changes to grub file
1. Backup the existing grub file
cp /etc/default/grub /etc/default/grub.bak
2. Replace value of the GRUB_DEFAULT
From
GRUB_DEFAULT=0
To
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-97-generic"
GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 5.4.0-135-generic"

# Compile the new changes for Grub


update-grub

Sourcing file `/etc/default/grub'


Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-110-generic
Found initrd image: /boot/initrd.img-5.4.0-110-generic
Found linux image: /boot/vmlinuz-5.4.0-97-generic
Found initrd image: /boot/initrd.img-5.4.0-97-generic
done

# Reboot the system


reboot

# Verify the updated kernel loaded


uname -a
Linux cto-cnclassic5 5.4.0-97-generic #91-Ubuntu SMP Thu Jul 15 19:09:17 UTC 2021
x86_64 x86_64 x86_64 GNU/Linux
cat /etc/default/grub
GRUB_TIMEOUT=1
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT="console"
GRUB_CMDLINE_LINUX=" crashkernel=auto iommu=pt intel_iommu=on"
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

BOOT_IMAGE=(hd0,msdos1)/boot/vmlinuz-4.18.0-372.13.1.el8_6.x86_64
root=UUID=1cff4c58-02ed-41c1-b5fc-b29f12aae17a crashkernel=auto iommu=pt
intel_iommu=on

You might also like