File /boot/vmlinuz-5.10-x86_64 not found

Hello community,
I got the following error when booting:

error: file ‘/boot/vmlinuz-5.10-x86_64’ not found,
error: you need to load the kernel first.

I managed to do updates on the system using the iso and chroot (manually since it is encrypted).
All updates went through, yet I still cannot boot.

mkinitcpio -P tells me that no presets are found, yet when I try to list kernels with mhwd-kernel -li I see that linux510 and linux54 are installed on my system.

Edit:
When trying to install said kernel with mhwd-kernel, I get only linux510-rt and linux515-rt as available kernels to install.

Can someone help me out?
Please tell me if you need any further details!

Cheers,
Avo

Can you post the actual commands and their output?

error: file `/boot/vmlinuz-X.XX-x86_64’ not found.
error: you need to load the kernel first.

Press any key to continue…

The easiest way to resolve this issue is re-install your kernels by following these steps. If you receive any errors while following these steps, you should stop and open a help topic before proceeding.

Download a recent Manjaro live iso .
Write the ISO to a usb device as in the same way you would if you were planning to install Manjaro
Boot off the ISO

Open a terminal
In the terminal, type:
sudo manjaro-chroot -a
(Please note that if there is only one Linux system detected, you would need to enter 1 instead of 0 after running this command)
This should bring you to a prompt that looks like this: #

From the # prompt, type this to reinstall your kernels:
    sudo pacman -Syu $(pacman -Qq | grep -i "^linux[0-9]")
Reboot

see this topic

1 Like
2 Likes
[manjaro-gnome /]# sudo pacman -Syu $(pacman -Qq | grep -i "^linux[0-9]")

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
error: target not found: linux510
error: target not found: linux510-headers
warning: linux510-virtualbox-host-modules-6.1.30-4 is up to date -- reinstalling
error: target not found: linux54
error: target not found: linux54-headers
warning: linux54-virtualbox-host-modules-6.1.30-4 is up to date -- reinstalling

seems like it is not finding the headers

Of course!

[manjaro-gnome /]# mkinitcpio -P
==> ERROR: No presets found in /etc/mkinitcpio.d
[manjaro-gnome /]# mhwd-kernel -li
Currently running: 5.9.16-1-MANJARO (linux59)
The following kernels are installed in your system:
   * linux510
   * linux54
[manjaro-gnome /]# mhwd-kernel -l
available kernels:
   * linux510-rt
   * linux515-rt

Still in chroot try:

sudo pacman -S linux54 linux54-headers linux510 linux510-headers
mkinitcpio -P 

then sudo update-grub and reboot

can you just add kernel 5.15
you should have sames number version kernels in /boot/ , /modules and *.preset

by chroot ( boot on USB iso live manjaro , open a terminal and a browser on this topic

sudo manjaro-chroot -a
pacman -Syy ( check that inter is ok ) 
pacman -S linux515 linux515-headers
mhwd -li 
ls /etc/mkinitcpio.d/*.preset
ls /boot/
ls /usr/bin/modules/
mkinitcpio -P
exit ( to end chroot )
[manjaro-gnome /]# pacman -S linux54 linux54-headers 
error: target not found: linux54
error: target not found: linux54-headers

It sadly does not find them

[manjaro-gnome /]# pacman -Syy
:: Synchronizing package databases...
 core                               137.7 KiB   678 KiB/s 00:00 [##################################] 100%
 extra                             1918.4 KiB  4.46 MiB/s 00:00 [##################################] 100%
 community                            6.8 MiB  9.53 MiB/s 00:01 [##################################] 100%
 multilib                           176.5 KiB  8.62 MiB/s 00:00 [##################################] 100%
[manjaro-gnome /]# pacman -S linux515 linux515-headers
error: target not found: linux515
error: target not found: linux515-headers

Same error here.

can you report commands

mhwd -li 
ls /etc/mkinitcpio.d/*.preset
ls /boot/
ls /usr/bin/modules/
[manjaro-gnome /]# mhwd -li
> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!
[manjaro-gnome /]# ls /etc/mkinitcpio.d/*.preset
ls: cannot access '/etc/mkinitcpio.d/*.preset': No such file or directory
[manjaro-gnome /]# ls /boot/
 EFI  'System Volume Information'
[manjaro-gnome /]# ls /usr/bin/modules
ls: cannot access '/usr/bin/modules': No such file or directory
[manjaro-gnome /]# 

under chroot

[manjaro-gnome /]# mhwd-kernel -li
Currently running: 5.9.16-1-MANJARO (linux59)
The following kernels are installed in your system:
   * linux510
   * linux54
[manjaro-gnome /]# ls /boot/*
/boot/EFI:
Manjaro  boot

'/boot/System Volume Information':
[manjaro-gnome /]# ls /lib/modules/*
/lib/modules/3.16.81-1-MANJARO:
updates

/lib/modules/3.16.82-2-MANJARO:
kernel  modules.builtin.alias.bin

/lib/modules/5.10.79-1-MANJARO:
build         modules.alias              modules.builtin.bin      modules.devname  modules.symbols.bin
extramodules  modules.alias.bin          modules.builtin.modinfo  modules.order    pkgbase
kernel        modules.builtin            modules.dep              modules.softdep  updates
kernelbase    modules.builtin.alias.bin  modules.dep.bin          modules.symbols  vmlinuz

/lib/modules/5.4.144-1-MANJARO:
kernel  updates

/lib/modules/5.4.159-1-MANJARO:
build         modules.alias              modules.builtin.bin      modules.devname  modules.symbols.bin
extramodules  modules.alias.bin          modules.builtin.modinfo  modules.order    pkgbase
kernel        modules.builtin            modules.dep              modules.softdep  updates
kernelbase    modules.builtin.alias.bin  modules.dep.bin          modules.symbols  vmlinuz

/lib/modules/extramodules-5.10-MANJARO:
vboxdrv.ko.xz  vboxnetadp.ko.xz  vboxnetflt.ko.xz  version

/lib/modules/extramodules-5.4-MANJARO:
vboxdrv.ko.xz  vboxnetadp.ko.xz  vboxnetflt.ko.xz  version

so pacman -S linux515 do not install ?

Ǹo, it does not find the target…

so you will create thes files

nano  /etc/mkinitcpio.d/linux510.preset 
# mkinitcpio preset file for the 'linux510' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.10-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.10-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.10-x86_64-fallback.img"
fallback_options="-S autodetect"
nano  /etc/mkinitcpio.d/linux54.preset 
# mkinitcpio preset file for the 'linux54' package

ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-5.4-x86_64"

PRESETS=('default' 'fallback')

#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-5.4-x86_64.img"
#default_options=""

#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-5.4-x86_64-fallback.img"
fallback_options="-S autodetect"

then

mkinitcpio -P

Found the exact files as *.preset.pacsave files and copied them to the correct name.

Result:

[manjaro-gnome /]# mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'default'
  -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux510.preset: 'fallback'
  -> -k /boot/vmlinuz-5.10-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.10-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.10-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'default'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64.img
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.4-x86_64'
==> Building image from preset: /etc/mkinitcpio.d/linux54.preset: 'fallback'
  -> -k /boot/vmlinuz-5.4-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.4-x86_64-fallback.img -S autodetect
==> ERROR: specified kernel image does not exist: `/boot/vmlinuz-5.4-x86_64'

if you try
pacman -Syyu