Failed to load Kernel Module

Doesn’t seem to make a difference…
Output of update-grub is still the same.

sh-5.1# update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-rt-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-rt-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-rt-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.11-rt-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.11-rt-x86_64.img
Found initrd fallback image: /boot/initramfs-5.11-rt-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.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

Maybe reinstall grub?

if youre not properly chrooted you cant reinstall it…
found another way, lets try it, type exit, close terminal, open terminal:

cryptsetup -v luksOpen /dev/nvme0n1p2 cryptDrive
mount /dev/mapper/cryptDrive /mnt
mount /dev/nvme0n1p1 /mnt/boot/efi
manjaro-chroot /mnt

and post output of these commands…

i have no idea if thats a proper command, didn find anything when i searched for:
cryptsetup luksOpen /dev decrypt

Thank you tried that and re-ran update-grub, same issue - it can’t find drive for /dev/sda1

the grub command is good, the error is for the usb, you can ignore it… so lets try to reinstall the grub:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck 
grub-mkconfig -o /boot/grub/grub.cfg 

any errors from the first command post here

Thanks again, no errors reported.

so try again installing the 5.17 kernel:
sudo mhwd-kernel -i linux517
post the output here

I was actually proactive and rebooted right away and it worked! Everything is back to normal it seems.

I just installed an LTS Kernel version in addition to the one already there being 5.15. I’ll also install 5.17 from the GUI now.

Thanks again so much for all your help Brahma. Any idea what might have cause all this? Broken update process perhaps?

yes it was probably an interrupted update…
now that you are back in your system provide output from:
mhwd-kernel -li
sudo update-grub - run this command after you finished installing kernels

I guess it’s cryptsetup open /dev/drive some_name

here it is:

Currently running: 5.15.44-1-rt46-MANJARO (linux515)
The following kernels are installed in your system:
   * linux515
   * linux517
   * linux515-rt

ok so uninstall the 5.15rt and also the 5.17 since its going to be end of life kernel… you can install the 5.10 LTS as a backup kernel…
post outputs from these, because you have some remnats from 5.11 kernel:
ls /etc/mkinitcpio.d/*.preset
sudo ls /boot/initramfs-*
sudo ls /boot/vmlinuz-*
sudo ls /usr/lib/modules/*

Here you go:

❯ ls /etc/mkinitcpio.d/*.preset
/etc/mkinitcpio.d/linux510.preset     /etc/mkinitcpio.d/linux515-rt.preset
/etc/mkinitcpio.d/linux511-rt.preset  /etc/mkinitcpio.d/linux518-rt.preset

/boot/initramfs-5.10-x86_64-fallback.img  /boot/initramfs-5.11-rt-x86_64-fallback.img  /boot/initramfs-5.15-rt-x86_64-fallback.img  /boot/initramfs-5.18-rt-x86_64-fallback.img
/boot/initramfs-5.10-x86_64.img           /boot/initramfs-5.11-rt-x86_64.img           /boot/initramfs-5.15-rt-x86_64.img           /boot/initramfs-5.18-rt-x86_64.img


/boot/vmlinuz-5.10-x86_64  /boot/vmlinuz-5.11-rt-x86_64  /boot/vmlinuz-5.15-rt-x86_64  /boot/vmlinuz-5.18-rt-x86_64


and

                                                                                        sudo ls /usr/lib/modules/*
/usr/lib/modules/5.10.123-1-MANJARO:
extramodules  modules.alias      modules.builtin.alias.bin  modules.dep      modules.order    modules.symbols.bin
kernel        modules.alias.bin  modules.builtin.bin        modules.dep.bin  modules.softdep  pkgbase
kernelbase    modules.builtin    modules.builtin.modinfo    modules.devname  modules.symbols  vmlinuz

/usr/lib/modules/5.18.0-1-rt11-MANJARO:
extramodules  modules.alias      modules.builtin.alias.bin  modules.dep      modules.order    modules.symbols.bin
kernel        modules.alias.bin  modules.builtin.bin        modules.dep.bin  modules.softdep  pkgbase
kernelbase    modules.builtin    modules.builtin.modinfo    modules.devname  modules.symbols  vmlinuz

/usr/lib/modules/extramodules-5.10-MANJARO:
version

/usr/lib/modules/extramodules-5.18-rt-MANJARO:
version

you have there remnants of the 5.11
output from:
pacman -Qs linux511-rt

it doesn’t seem to return anything…

ok, so remove those remnants:
sudo rm /etc/mkinitcpio.d/linux511-rt.preset
sudo rm /boot/initramfs-5.11-rt-x86_64.img
sudo rm /boot/initramfs-5.11-rt-x86_64-fallback.img
sudo rm /boot/vmlinuz-5.11-rt-x86_64
then run:
sudo update-grub
sudo mkinitcpio -P
reboot

1 Like

Brilliant, thanks again so much Brahma. Much appreciate all your help!

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