Error while booting

Hello, I am new to linux, and don’t know how to fix this
error: file/boot/vmlinuz-5.15-x86_64’ not found
error: you need to load the karnel first

I tried to: boot in live usb and using command “sudo pacman -Syu”

Welcome to the forum!

Go back to the live usb media and type:

sudo manjaro-chroot -a #type 1 if only one line appears
pacman -Syy #check if IP is on
mhwd-kernel -li  #list kernels installed
mhwd-kernel -i linux510 #last year's lts kernel 
mhwd-kernel -i linux515 #wip lts kernel 
exit #quit chroot

command: mhwd-kernel -li
output: Currently running: 5.15.6-2-MANJARO (linux515)
The following kernels are installed in your system:

  • linux515

command: sudo mhwd-kernel -i linux515
output:Error: You can’t reinstall your current kernel. Please use ‘pacman -Syu’ instead to update.

It’s a workaround, but you can install 5.10, reboot, remove 5.15 and then reinstall it.

i used command:

it downloaded no problem, but when i try to boot I still get the error: file/boot/vmlinuz-5.15-x86_64’ not found

That’s okay. Keep hitting “CAPS” and/or “ESC” or “SHIFT” key during start up - it should bring the grub menu. Select from there in ‘advanced’ the entry with Linux 5.10 and let it boot.

Once your system restarts, remove 5.15, reboot again, and install 5.15.

sudo mhwd-kernel -r linux515 #this will remove 5.15

Reboot just in case

sudo mhwd-kernel -i linux515 #Install 5.15

I get mutiple options:
Manjaro linux (karnel: 5.15.6-2-manjaro x64)
Manjaro linux (karnel: 5.15.6-2-manjaro x64 - fallback initramfs)
Manjaro linux (karnel: 4.14.256-1-manjaro x64)
Manjaro linux (karnel: 4.14.256-1-manjaro x64 - fallback initramfs)

I can’t find Linux 5.10.
Maybe i used wrong command or something?
version 4.14 also doesn’t work.

With what command do you get presented with these?

mhwd-kernel -l
should give you this output:

mhwd-kernel -l
available kernels:
   * linux414
   * linux419
   * linux44
   * linux49
   * linux510
   * linux514
   * linux515
   * linux516
   * linux54
   * linux510-rt
   * linux515-rt

linux510 is among these

I get them by choosing: Advanced options, when booting

I thought you where trying to install a kernel (in chroot).

But you listed the kernels that are installed already and it looks like you could select kernel 4.14 and boot that one - since the 5.15 one doesn’t work as of now.

Try booting 4.14
If that one works (it should) you can then reinstall your 5.15 kernel …

version 4.14 also doesn’t work.

They did mhwd-kernel -li and got only 5.15. Maybe they need to reinstall grub?

then you need to chroot and (re)install at least one kernel from there
there you use the command
mhwd-kernel ...
to do that

You may have a look at:
https://wiki.manjaro.org/index.php/Manjaro_Kernels

Gotcha. Still tryna understand why their previous attempt at executing chroot failed.

OK, I have been following this thread the whole afternoon, and I think we’ve got a classic case of to many cooks, spoiling the broth.

So, @Matej, please stick to one person’s instructions. Preferably @clmbtti, since he was helping you first.

1 Like

Because grub was not updated before boot :wink:
And nobody looked into /boot and /lib/modules to confirm what there is. :man_shrugging:

Ah, alright!

I fixed the problem I used commands:

sudo manjaro-chroot -a
sudo rm /var/lib/pacman/db.lck
mhwd-kernel -i linux510

I booted to manjaro everything seems to work fine.
I will now try to do this steps:
" Once your system restarts, remove 5.15, reboot again, and install 5.15.

sudo mhwd-kernel -r linux515 #this will remove 5.15

Reboot just in case

sudo mhwd-kernel -i linux515 #Install 5.15
1 Like

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