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!
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
[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
[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
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 /]# 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 /]#