manjaro error: file '/boot/vmlinuz-5.5-x86_64' not found after update

I get a boot error after updating with yay. It says manjaro error: file '/boot/vmlinuz-5.5-x86_64' not found. I'm currently in a live usb and mounted my failing system. How can I fix this issue?

In chroot (by command manjaro-chroot -a from live boot), use mhwd-kernel to see available kernels and install one (or two).

mhwd-kernel -l
mhwd-kernel -i linux419
mhwd-kernel -i linux55

To rebuild all kernel images:

mkinitcpio -P

Update grub via:

update-grub
exit

Reboot.

I tried it and get this error.

[manjaro-gnome /]# mhwd-kernel -i linux55
:: Synchronizing package databases...
 core                  171.5 KiB   659 KiB/s 00:00 [######################] 100%
 extra                1997.2 KiB  1116 KiB/s 00:02 [######################] 100%
 community               5.8 MiB  1305 KiB/s 00:05 [######################] 100%
 multilib              192.4 KiB  1375 KiB/s 00:00 [######################] 100%
error: no targets specified (use -h for help)

What is the output of mhwd-kernel -l?

[manjaro-gnome /]# mhwd-kernel -l        
available kernels:
   * linux316
   * linux414
   * linux419
   * linux44
   * linux49
   * linux54
   * linux55
   * linux56
   * linux419-rt
   * linux54-rt

sudo mhwd-kernel -i linux55

If that is not working you can try to reinstall it with

sudo pacman -Sy linux55

You may want to check why that file is not present.

pacman -Qo /boot/vmlinuz-5.5-x86_64
error: No package owns /boot/vmlinuz-5.5-x86_64

That file gets installed in post-configuration.

phil@development ~/Arbeitsfläche $ cat /usr/share/libalpm/scripts/mkinitcpio-install
#!/bin/bash -e

args=()
all=0

while read -r line; do
    if [[ $line != */vmlinuz ]]; then
        # triggers when it's a change to usr/lib/initcpio/*
        all=1
        continue
    fi

    if ! read -r pkgbase > /dev/null 2>&1 < "${line%/vmlinuz}/pkgbase"; then
        # if the kernel has no pkgbase, we skip it
        continue
    fi

    if ! read -r kernelbase > /dev/null 2>&1 < "${line%/vmlinuz}/kernelbase"; then
        # this kernel has no kernelbase, use pkgbase
        kernelbase="${pkgbase}"
    fi

    preset="/etc/mkinitcpio.d/${pkgbase}.preset"

    # sed expression for following substitutions
    _subst="
      s|%PKGBASE%|${pkgbase}|g
      s|%KERNELBASE%|${kernelbase}|g
    "

    if [[ ! -e $preset ]]; then
        if [[ -e $preset.pacsave ]]; then
            # move the pacsave to the template
            mv "${preset}.pacsave" "$preset"
        else
            # create the preset from the template
            sed "${_subst}" /usr/share/mkinitcpio/hook.preset \
                | install -Dm644 /dev/stdin "$preset"
        fi
    fi

    # always install the kernel
    install -Dm644 "${line}" "/boot/vmlinuz-${kernelbase}"

    # compound args for each kernel
    args+=(-p "${pkgbase}")
done

if (( all )) && compgen -G /etc/mkinitcpio.d/"*.preset" > /dev/null; then
    # change to use all presets
    args=(-P)
fi

if (( ${#args[@]} )); then
    mkinitcpio "${args[@]}"
fi
1 Like

The first command didn't work. I tried to reinstall it with sudo pacman -Sy linux55 but this didn't work either.

[manjaro-gnome /]# sudo pacman -Sy linux55
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
warning: linux55-5.5.11-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux55-5.5.11-1

Total Installed Size:  143.43 MiB
Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                     [######################] 100%
(1/1) checking package integrity                   [######################] 100%
(1/1) loading package files                        [######################] 100%
(1/1) checking for file conflicts                  [######################] 100%
(1/1) checking available disk space                [######################] 100%
:: Processing package changes...
(1/1) reinstalling linux55                         [######################] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux55.preset: 'default'
  -> -k /boot/vmlinuz-5.5-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.5-x86_64.img
==> Starting build: 5.5.11-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.5-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux55.preset: 'fallback'
  -> -k /boot/vmlinuz-5.5-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.5-x86_64-fallback.img -S autodetect
==> Starting build: 5.5.11-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.5-x86_64-fallback.img
==> Image generation successful
(4/4) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.5-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.5-x86_64.img
Found initrd fallback image: /boot/initramfs-5.5-x86_64-fallback.img
grub-probe: error: cannot find a GRUB drive for /dev/sdd1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdd1.  Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

Looks as if the kernel installed alright. Ther is something with your Grub which doesn't seem right. Could you post the output of the following commands?

sudo parted -l
(that is lowercase L)

and

efibootmgr -v

Perhaps you would need to reinstall the grub to put everything back in order.

Using a third party application for updates - if you had the issue using pacman - I would think something is off - but using yay or pamac :woman_shrugging: .

First command

[manjaro-gnome /]# sudo parted -l
Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End    Size   Type     File system  Flags
 1      1049kB  525MB  524MB  primary  fat32
 2      525MB   315GB  315GB  primary  ext4


Model: ATA WDC WD10EZRZ-00H (scsi)
Disk /dev/sdb: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags: 

Number  Start  End  Size  Type  File system  Flags


Model: ATA Samsung SSD 850 (scsi)
Disk /dev/sdc: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags


Model:  USB DISK 2.0 (scsi)
Disk /dev/sdd: 7748MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2535MB  2539MB  4194kB  primary               esp

Second command

[manjaro-gnome /]# efibootmgr -v
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0000,0003,0004,0002,0005,0006
Boot0000* Manjaro	HD(1,MBR,0xcfdeeeed,0x800,0xfa000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0002* Hard Drive	BBS(HD,,0x0)..GO..NO........o.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .5.0.0.G.B....................A...........................>..Gd-.;.A..MQ..L.3.S.3.R.B.N.J.0.1.8.1.4.1.1. .R. . . . ........BO..NO........o.W.D.C. .W.D.1.0.E.Z.R.Z.-.0.0.H.T.K.B.0....................A...........................>..Gd-.;.A..MQ..L. . . . .W. .-.D.C.W.4.C.2.J.U.A.U.C.U.C........BO..NO........o.S.a.m.s.u.n.g. .S.S.D. .8.5.0. .E.V.O. .5.0.0.G.B....................A...........................>..Gd-.;.A..MQ..L.2.S.B.R.X.N.H.0.2.9.6.5.8.4. .R. . . . ........BO
Boot0003* UEFI OS	HD(1,MBR,0xcfdeeeed,0x800,0xfa000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0004* UEFI:  USB DISK 2.0 PMAP	PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/CDROM(1,0x4b8914,0x8000)..BO
Boot0005* UEFI:  USB DISK 2.0 PMAP, Partition 1	PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/HD(1,MBR,0x0,0x4b8914,0x2000)..BO
Boot0006* USB	BBS(HD,,0x0)..GO..NO........c. .U.S.B. .D.I.S.K. .2...0. .P.M.A.P....................A.......................6..Gd-.;.A..MQ..L.0.7.0.D.5.6.A.A.3.8.E.9.D.5.7.8........BO

grub-probe: error: cannot find a GRUB drive for /dev/sdd1. Check your device.map.

Model:  USB DISK 2.0 (scsi)
Disk /dev/sdd: 7748MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 2      2535MB  2539MB  4194kB  primary               esp

Looks like the error messages is regarded to your Manjaro live usb. I would quit chroot by typing exit and reboot my machine to see if you grt to Grub and can boot up your system.

1 Like

This did work, can you explain how you came to this solution?

The output of parted -l indicated that you have your EFI system partition on /dev/sda1. That's is where the bootloader of your installed system resides. If we had the error for that partiton then probably a reinstall of the Grub would have been necessary to resolve the issue. As it were your bootloader was intact.

Thank you for marking my post as the solution but the one who solved your issue was indeed philm.

That was not true, it did work, all messages you received were fine except for the USB stick, that's the reason why you only needed to reboot.

1 Like

Thank you both, that makes sense.

On my parents Computer I got the same error (different kernel number). I was able to fix it with this solution here.
Thanks!

After installing the kernel I get another problem.
First I thought the computer is stuck at boot but but it only fails to start X.
I had to reinstall the nvidia drivers.
The steps in the tutorial doesen't work. Because I can't remove the driver (thereis no one) and I can't install the driver (it's already installed) :roll_eyes:
I did a forced install, that worked.

sudo mhwd -f -a pci nonfree 0300

Maybe this could help someone.

2 Likes

Forum kindly sponsored by