Grub detects the image kernel 56 that is no longer installed

I used to have two kernels installed (56 and 57). At some point kernel 56 was removed with a system update (in fact kernel 56 is not installed if I check in Manjaro Settings Manager, and it can no longer be installed). However, in the grub menu at startup kernel 56 is still shown. If I run sudo update-grub I get the following:

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.7-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.7-x86_64.img
Found initrd fallback image: /boot/initramfs-5.7-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.6-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.6-x86_64.img
Found initrd fallback image: /boot/initramfs-5.6-x86_64-fallback.img 
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin

It is not a big deal, but I’d like to remove this image of kernel 56. How can I do that?

sudo mhwd -r linux56
sudo pacman -Rns linux56 
sudo update-grub

Thanks! Both the commands mhwd and pacman -Rns fail.

The first gives:
Error: invalid use of option: -r/--remove

The second (my translation, the original English might be different):
error: the following package was not found: linux56

Looks like the package was properly uninstalled…

Oops. I accidentally gave you mhwd instead of mhwd-kernel
mhwd-kernel -r linux56

But yes. OK. Well … lets look in /boot/ then …

find /boot/ -type f -name "*5.6*"

Maybe pacman -Qo any files you find … to see if they are owned by any package.
If not … you can sudo rm any of those files.
Then sudo update-grub again.

Indeed, this command returns

find: ‘/boot/efi’: Permission denied

I guess the files


can be safely removed.

If they arent owned by any package and you dont have 5.6 … yeah … they should be disposable.


I guess you can rerun the command with sudo … or just manually take a look in your efi directory. There shouldnt be anything related there… but just because it couldnt technically check it.

Files removed, grub menu now looks correct. Thanks!

That was a random hiccup. Glad its sorted :slight_smile:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.