Old kernel still in use when installing a new kernel

Even though i install 5.15rc, 5.13 is still in use. 5.14 doesn’t replace 5.13 when installed either.

To change the kernel in use you have to reboot after installing a new one :wink:
see: change kernel @ wiki
And please install additionally a LTS-kernel especially when experimenting

2 Likes

It keeps the old kernel after a reboot even though i did sudo mhwd-kernel -i linux515

uname -a  :heavy_check_mark:
Linux mrshroomy 5.13.19-2-MANJARO #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux

What if you pause the Grub menu and choose “Advanced”? Does it allow you to select 5.15 or 5.14?

Perhaps there’s something about /etc/default/grub in which the default selection is not choosing the most recent kernel?

what does

mhwd-kernel -li

show ?

Currently running: 5.13.19-2-MANJARO (linux513)
The following kernels are installed in your system:

  • linux513
  • linux514

Im trying to install 5.14 now but haven’t rebooted

EDIT: Its still running the old kernel
Linux mrshroomy 5.13.19-2-MANJARO #1 SMP PREEMPT Sun Sep 19 21:31:53 UTC 2021 x86_64 GNU/Linux

you need this option for GRUB

It’s impossible to switch the running kernel without a reboot.

2 Likes

It still doesn’t work

I’ve rebooted many times

sudo update-grub

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.14-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.14-x86_64.img
Found initrd fallback image: /boot/initramfs-5.14-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.13-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.13-x86_64.img
Found initrd fallback image: /boot/initramfs-5.13-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...

Did you try this yet?

"Advanced options" is usually the second entry on the menu list.

Yes one time when i removed the old kernel and installed the new one it said that the old kernel wasn’t there and there was no kernel to boot from in advanced menu

Did you change anything related to the boot options and/or boot directory?

What are the contents under /boot,

ls -1 /boot/

No i’ve only changed some grub parameters

GRUB_CMDLINE_LINUX_DEFAULT="quiet apparmor=1 security=apparmor udev.log_priority=3 mitigations=off nowatchdog"

ls -1 /boot/

amd-ucode.img
efi
grub
initramfs-5.13-x86_64-fallback.img
initramfs-5.13-x86_64.img
initramfs-5.14-x86_64-fallback.img
initramfs-5.14-x86_64.img
linux513-x86_64.kver
linux514-x86_64.kver
memtest86+
vmlinuz-5.13-x86_64
vmlinuz-5.14-x86_64

Run,

sudo update-grub

Post the output in here. You have both 5.13 and 5.14 in your /boot directory.

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.14-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.14-x86_64.img
Found initrd fallback image: /boot/initramfs-5.14-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.13-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.13-x86_64.img
Found initrd fallback image: /boot/initramfs-5.13-x86_64-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...

By all means, it should give you those entries in your Grub menu when you reboot…

I’m at a loss now.

Is it possible that you have mounted the wrong /boot ?

mount | egrep boot
sudo parted -l

mount | egrep boot
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro)

sudo parted -l

Model: ATA Seagate BarraCud (scsi)
Disk /dev/sda: 480GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size   File system  Name  Flags
 1      2097kB  317MB  315MB  fat32              boot, esp
 2      317MB   480GB  480GB  ext4         root```

one more try:

ls -lA /boot/efi
ls -lA /boot/efi/*
df /boot/efi
sudo ls -lA /boot/efi                                                                                                                                                           
total 4
drwx------ 4 root root 4096 27 sep 13.56 EFI

sudo ls -lA /boot/efi/*                                                                                                                                                         
`zsh: no matches found: /boot/efi/*