boot an alternate kernel

Bob ubuntu-qygzanxc at listemail.net
Wed May 25 06:32:08 UTC 2022


I have never had the need to boot an alternate kernel.

My first time did not go well.  This computer (Lenovo IdeaCentre 5) had been
updated from 21.10 to 22.04 and later it had another update that I installed. 
After that last update I had no network connection.  I have verifyed that the
networking works by booting windows.

It appears that the boot files have been corrupted.

Boot options displays the Ubuntu version as 21.10 which is wrong.  After boot
the settings show the Ubuntu version as 22.04 LTS

This is what is displayed selecting the "Advanced options" to boot a different
kernel.
 
*Ubuntu (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-40-generic (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-40-generic (recovery mode) (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-39-generic (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-39-generic (recovery mode) (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-37-generic (on /dev/sda9)
 Ubuntu, with Linux 5.13.0-37-generic (recovery mode) (on /dev/sda9)
 Ubuntu, with Linux 4.13.0-46-generic (on /dev/sda9)
 Ubuntu, with Linux 4.13.0-46-generic (recovery mode) (on /dev/sda9)

Selecting any of those kernels except the first one the system gets an error
and does not boot.


This is what is available on the system.

bob1 at Juptier:~$ ls /boot/vmlinuz*
/boot/vmlinuz                    /boot/vmlinuz-5.13.0-40-generic 
/boot/vmlinuz.old
/boot/vmlinuz-4.13.0-46-generic  /boot/vmlinuz-5.15.0-30-generic
bob1 at Juptier:~$


This is the kernel that was booted by default.

bob1 at Juptier:~$ uname -r
5.13.0-40-generic
bob1 at Juptier:~$ 

I tried sudo grub-install but it did not change the boot options.

How do I get the list of kernels fixed so it will display the list of kernels
that is actually available for selection?  At this time I assume that if the
kernel 5.15.0.-30-generic was the default the system would boot correctly.

Is there a way to tell what the last uodate changed?

-- 
Robert Blair


Just because you do not take an interest in politics doesn't mean politics won't take an interest in you!  -- Pericles (430 B..C.)




More information about the ubuntu-users mailing list