No boot options in Grub/Kernel option unavailable

Hello,

There’s no option to select a kernel and enter the system upon boot. I can only choose metest.

When I go into Grub it says that it hasn’t loaded a kernel (or something along those lines).

Also, when I go into uefi, I don’t see the vmlinuz line (apologies for the inaccuracy).

I was trying to remove the ghost kernels following the instructions on this forum named ‘how-to-remove-a-ghost-kernel’.

After I was finished, I ran:

sudo ls /etc/mkinitcpio.d/*.preset

The result was:

etc/mkinitcpio.d/linux510.preset

I also ran:

sudo ls /boot/*

But I don’t remember the output.

Hello,

Start from here

1 Like

Hi there,

Thanks for the reply. So, here is the output:

[manjaro@manjaro ~]$ sudo su -
[manjaro ~]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda1]
→ mount: [/mnt]
[manjaro /]# rm -f /var/lib/pacman/db.lck
[manjaro /]# pacman -Syu
:: Synchronizing package databases…
core is up to date
extra is up to date
community is up to date
multilib is up to date
:: Starting full system upgrade…
warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-11)
warning: python-pyqt5: local (5.15.6-7.1) is newer than extra (5.15.6-7)
there is nothing to do
[manjaro /]# sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: ‘default’
→ -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.15-x86_64' ==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback' -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect ==> ERROR: specified kernel image does not exist: /boot/vmlinuz-5.15-x86_64’
[manjaro /]# sudo update-grub
Generating grub configuration file …
Found theme: /usr/share/grub/themes/manjaro/theme.txt
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/sdb1. Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1. Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# mhwd-kernel -li
Currently running: 5.15.32-1-MANJARO (linux515)
The following kernels are installed in your system:

  • linux515
  • linux54
    [manjaro /]# sudo mhwd-kernel -i linux515
    Error: You can’t reinstall your current kernel. Please use ‘pacman -Syu’ instead to update.
    [manjaro /]# pacman -Syu
    :: Synchronizing package databases…
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    :: Starting full system upgrade…
    warning: manjaro-hello: local (0.6.7-2) is newer than extra (0.6.6-11)
    warning: python-pyqt5: local (5.15.6-7.1) is newer than extra (5.15.6-7)
    there is nothing to do

I followed the instructions and then restarted the computer but the problem persisted: the only boot option was to go into memtest.

Just my guess … you still have Fast Boot enabled in BIOS and also … not sure, but you might did the update from Live Media in the chroot of the installed file system, but the kernel install probably you did it outside the chroot …
If you get stull like

use

sudo pacman -Syyuu

also theses point to see , with chroot

ls /etc/mkinitcpio.d/*.preset
ls /boot/
ls /lib/modules/*

If you see memtest as a boot option, then your system is not booting up in native UEFI mode. memtest86 only runs with legacy BIOS boot, and if the system is set to boot in UEFI mode, then the memtest86 entry will not be shown in the GRUB menu; instead you will then see an entry to enter the UEFI settings.

Installing the boot loader in legacy mode is also different from installing it in UEFI mode. In UEFI mode, the boot loader is an EFI executable stored in the EFI/boot directory of the EFI system partition. In legacy BIOS mode, the boot loader is a 16-bit real-mode executable stored in the master boot record.

If you mix up both methods of booting, trouble will arise. :man_shrugging:

So here’s the output:

> [manjaro /]# ls /etc/mkinitcpio.d/*.preset
> /etc/mkinitcpio.d/linux515.preset
> [manjaro /]# ls /boot/
> grub                                intel-ucode.img       memtest86+
> initramfs-5.15-x86_64-fallback.img  linux515-x86_64.kver
> initramfs-5.15-x86_64.img           linux54-x86_64.kver
> [manjaro /]# ls /bin/modules/
> ls: cannot access '/bin/modules/': No such file or directory

I still get the following:

[manjaro /]# sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
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/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

I do run the legacy mode (I tried uploading two pictures to show but I’m not allowed to upload pictures on a post).

can you try , with chroot

pacman -Syy
pacman -S linux515

I think it worked. This is the output:

[manjaro@manjaro ~]$ sudo su -
[manjaro ~]# manjaro-chroot -a
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
==> Mounting (ManjaroLinux) [/dev/sda1]
 --> mount: [/mnt]
[manjaro /]# rm -f /var/lib/pacman/db.lck
[manjaro /]# pacman -Syy
:: Synchronizing package databases...
 core                  169.1 KiB   745 KiB/s 00:00 [######################] 100%
 extra                1854.2 KiB  2.54 MiB/s 00:01 [######################] 100%
 community               6.9 MiB  8.14 MiB/s 00:01 [######################] 100%
 multilib              182.0 KiB  5.93 MiB/s 00:00 [######################] 100%
[manjaro /]# pacman -S linux515
warning: linux515-5.15.32-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) linux515-5.15.32-1

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

:: Proceed with installation? [Y/n] y
(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%
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
:: Processing package changes...
(1/1) reinstalling linux515                        [######################] 100%
:: Running post-transaction hooks...
(1/5) Arming ConditionNeedsUpdate...
(2/5) Updating module dependencies...
(3/5) Install DKMS modules
(4/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.32-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.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.32-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qed
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
(5/5) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-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/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]# sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'default'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64.img
==> Starting build: 5.15.32-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.15-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux515.preset: 'fallback'
  -> -k /boot/vmlinuz-5.15-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.15-x86_64-fallback.img -S autodetect
==> Starting build: 5.15.32-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: qed
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.15-x86_64-fallback.img
==> Image generation successful
[manjaro /]# sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-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/sdb1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdb1.  Check your device.map.
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
[manjaro /]#

I’ll try rebooting and will let you know.

Worked like a charm. Thank you guys!

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