Root partition not recognized after update to kernel 5.18

Hello all,

I have a weird situation with my pc after I upgraded to the latest kernel 5.18. I cannot boot into my system. I get the error that the root partition UUID cannot be found.

I use an nvme drive for my system and I have double checked the fstab and I have the correct UUID. This error only appeared when I installed and try to run the latest 5.18 kernel. Works fine with 5.17

I have tried the solutions in the wiki and what everyone proposes in these situations but some more weird things started to happen:

In the manjaro wiki it says to enter chroot and then reinstall grub. Well when I do that I get the following error:

I couldn’t find anything meaningful regarding this error!

Next I run update-grub and the command seems successful except for this message at the end:

From my searches people say this isn’t a problem, yet this is the nvme drive with where the root partition which cannot be found by kernel 5.18 resides…

I have to mention that I have another nvme where I installed a windows virtual machine with quemu-kvm. This appears in grub as a boot option too when my system boots correctly with 5.17.

Here is some info about my system (if more is required I can provide):

$ inxi -F
System:
  Host: asgard Kernel: 5.17.15-1-MANJARO arch: x86_64 bits: 64
    Desktop: KDE Plasma v: 5.24.5 Distro: Manjaro Linux
Machine:
  Type: Desktop System: Gigabyte product: X570 AORUS ELITE v: -CF
    serial: <superuser required>
  Mobo: Gigabyte model: X570 AORUS ELITE serial: <superuser required>
    UEFI: American Megatrends LLC. v: F36e date: 10/14/2021
CPU:
  Info: 8-core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP cache:
    L2: 4 MiB
  Speed (MHz): avg: 2637 min/max: 2200/4426 cores: 1: 3070 2: 2051 3: 3970
    4: 2056 5: 3590 6: 2045 7: 2045 8: 2050 9: 3595 10: 2062 11: 3593 12: 2048
    13: 3718 14: 2057 15: 2169 16: 2075
Graphics:
  Device-1: NVIDIA GK110 [GeForce GTX 780] driver: nvidia v: 470.129.06
  Device-2: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
    driver: vfio-pci v: N/A
  Device-3: A4Tech REDRAGON Live Camera type: USB
    driver: snd-usb-audio,uvcvideo
  Display: x11 server: X.Org v: 21.1.3 driver: X: loaded: nvidia
    gpu: nvidia,vfio-pci resolution: 1: 2560x1440~60Hz 2: 1920x1200~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 780/PCIe/SSE2
    v: 4.6.0 NVIDIA 470.129.06
Audio:
  Device-1: NVIDIA GK110 High Definition Audio driver: snd_hda_intel
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
    driver: vfio-pci
  Device-3: AMD Starship/Matisse HD Audio driver: snd_hda_intel
  Device-4: Kingston HyperX 7.1 Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-5: A4Tech REDRAGON Live Camera type: USB
    driver: snd-usb-audio,uvcvideo
  Sound Server-1: ALSA v: k5.17.15-1-MANJARO running: yes
  Sound Server-2: PulseAudio v: 16.0 running: yes
  Sound Server-3: PipeWire v: 0.3.52 running: yes
Network:
  Device-1: Intel I211 Gigabit Network driver: igb
  IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: b2:83:61:14:2a:f2
  Device-2: ASUSTek ROG GLADIUS II WIRELESS type: USB
    driver: hid-generic,usbhid
  IF-ID-1: br0 state: up speed: 1000 Mbps duplex: unknown
    mac: 7e:16:0e:7d:b0:40
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb
  Report: rfkill ID: hci0 state: up address: see --recommends
Drives:
  Local Storage: total: 5.91 TiB used: 1.43 TiB (24.2%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SA2000M81000G size: 931.51 GiB
  ID-2: /dev/nvme1n1 vendor: Kingston model: SA2000M81000G size: 931.51 GiB
  ID-3: /dev/sda vendor: Samsung model: SSD 840 PRO Series size: 238.47 GiB
  ID-4: /dev/sdb vendor: Seagate model: ST2000DX001-1CM164 size: 1.82 TiB
  ID-5: /dev/sdc vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB
  ID-6: /dev/sdd vendor: Kingston model: SA400S37240G size: 223.57 GiB
Partition:
  ID-1: / size: 251.29 GiB used: 59.24 GiB (23.6%) fs: ext4
    dev: /dev/nvme1n1p3
  ID-2: /boot/efi size: 299.4 MiB used: 456 KiB (0.1%) fs: vfat
    dev: /dev/nvme1n1p1
  ID-3: /home size: 663.19 GiB used: 32.36 GiB (4.9%) fs: ext4
    dev: /dev/nvme1n1p2
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 44.0 C mobo: 38.0 C gpu: nvidia temp: 44 C
  Fan Speeds (RPM): N/A gpu: nvidia fan: 23%
Info:
  Processes: 429 Uptime: 25m Memory: 62.72 GiB used: 6.53 GiB (10.4%)
  Shell: Bash inxi: 3.3.18
$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 238.5G  0 disk 
└─sda1        8:1    0 238.5G  0 part 
sdb           8:16   0   1.8T  0 disk 
├─sdb1        8:17   0   1.3T  0 part 
└─sdb2        8:18   0 529.1G  0 part 
sdc           8:32   0   1.8T  0 disk 
└─sdc1        8:33   0   1.8T  0 part /data/general
sdd           8:48   0 223.6G  0 disk 
└─sdd1        8:49   0 223.6G  0 part 
sde           8:64   1     0B  0 disk 
sdf           8:80   1     0B  0 disk 
sdg           8:96   1     0B  0 disk 
nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   100M  0 part 
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0 930.8G  0 part 
└─nvme0n1p4 259:4    0   611M  0 part 
nvme1n1     259:5    0 931.5G  0 disk 
├─nvme1n1p1 259:6    0   300M  0 part /boot/efi
├─nvme1n1p2 259:7    0 674.8G  0 part /home
└─nvme1n1p3 259:8    0 256.4G  0 part /
$ blkid
/dev/nvme0n1p3: BLOCK_SIZE="512" UUID="6E7244437244126F" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="bff675ca-f465-420b-9b52-f6d0f720aeb5"
/dev/nvme0n1p1: UUID="543A-9BE7" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="9d69d6a2-7a50-4349-9f80-0e546659d586"
/dev/nvme0n1p4: BLOCK_SIZE="512" UUID="F2F0A8DFF0A8AAF5" TYPE="ntfs" PARTUUID="11d8dd2f-b00d-4b89-a77b-7a2df508438c"
/dev/sdd1: UUID="b0b69b4a-1efe-4b70-9f2e-a12cc440a339" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="414cce8d-9cf8-124e-a797-ba3a953ec37e"
/dev/sdb2: LABEL="media" BLOCK_SIZE="512" UUID="01D59F18520071D0" TYPE="ntfs" PARTUUID="344c344b-02"
/dev/sdb1: LABEL="data" BLOCK_SIZE="512" UUID="7E68087968083287" TYPE="ntfs" PARTUUID="344c344b-01"
/dev/sdc1: UUID="08365a70-0e68-4f69-8331-88703862ceee" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="63694c0a-4b26-4f77-b4dd-ec3de349f2bb"
/dev/nvme1n1p2: LABEL="home" UUID="84e6de77-2e2c-4dd3-83d9-dbd6d34f6771" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="09924413-a5d0-c04c-8eb4-582321255e6a"
/dev/nvme1n1p3: LABEL="root" UUID="0fa745d3-f713-4f02-aacc-d56642c2bff8" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="6f3fc1ab-68a0-6f4e-a3b2-bd623ba24f47"
/dev/nvme1n1p1: LABEL_FATBOOT="NO_LABEL" LABEL="NO_LABEL" UUID="AA8E-1C64" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="26d31f7a-7c33-e94c-8de0-d30691606f62"
/dev/sda1: UUID="a4671e15-4120-4ff5-b102-ad43a275fa35" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7b61514a-c912-bc42-987e-96a357ac081d"

Can you please not post pictures, but formatted text instead?
Can you show exact error/full screen when you try to boot? (only time that taking a picture is fine)
Can you boot using fallback entry? Other kernels work you say?
Does running mkinitcpio -P change anything?
Can you show /etc/fstab?

I don’t think reinstalling grub means what you think it means. (but maybe it says so in wiki)

Can you also show grub.cfg?

2 Likes

I will upload the photo with the error message i get when I boot 5.18 later today! Until then, this is the exact error I get like in this article (except that the solution doesn’t work)

Other kernels work no problem. I have not tried fallback entry (what is that?)

I have run mkinitcpio -P and no it doesn’t change anything. Sorry for the pictures but I took them while in chroot. Then I posted here after I got back to my system but booting 5.17.

Here is the fstab

$ cat /etc/fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=AA8E-1C64                            /boot/efi      vfat    umask=0077 0 2
UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 /              ext4    defaults,noatime 0 1 (*this is the partition that it claims it cannot find! With this exact UUID*)
UUID=84e6de77-2e2c-4dd3-83d9-dbd6d34f6771 /home          ext4    defaults,noatime 0 2

UUID=08365a70-0e68-4f69-8331-88703862ceee /data/general         ext4    defaults 0 2

Regarding reinstalling grub. here is the link to the wiki:

Here is grub.cfg:

$ cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_24.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_48.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_bold_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_mono_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-18.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b18.pf2
insmod png
set theme=($root)/usr/share/grub/themes/manjaro/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=hidden
  set timeout=5
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 5 ; then
  set timeout=0
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
        linux   /boot/vmlinuz-5.17-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
        initrd  /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
}
submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        menuentry 'Manjaro Linux (Kernel: 5.17.15-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.17.15-1-MANJARO x64-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.17-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.17.15-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.17.15-1-MANJARO x64-fallback-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.17-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/initramfs-5.17-x86_64-fallback.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.15.48-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.48-1-MANJARO x64-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.15.48-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.48-1-MANJARO x64-fallback-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/initramfs-5.15-x86_64-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-543A-9BE7' {
        savedefault
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root 543A-9BE7
        chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###

### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
        search --fs-uuid --no-floppy --set=root  0fa745d3-f713-4f02-aacc-d56642c2bff8
        linux16 /boot/memtest86+/memtest.bin 
    }
fi
### END /etc/grub.d/60_memtest86+ ###

There is no entry for 5.18 at all in grub.cfg. Try reinstalling the kernel.

I see two nvme drivers.

Fist looks looks like setup for BIOS/GPT (is this a win dualboot)

nvme0n1     259:0    0 931.5G  0 disk 
├─nvme0n1p1 259:1    0   100M  0 part 
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0 930.8G  0 part 
└─nvme0n1p4 259:4    0   611M  0 part 

Second setup for EFI

nvme1n1     259:5    0 931.5G  0 disk 
├─nvme1n1p1 259:6    0   300M  0 part /boot/efi
├─nvme1n1p2 259:7    0 674.8G  0 part /home
└─nvme1n1p3 259:8    0 256.4G  0 part /

I suspect the partition type guid is not ef00 for the efi partition on nvme1n1

I think he is using actual drive for windows in qemu.

i uninstalled for the moment 5.18 because I couldn’t get past the error. So I uninstalled it from the chroot with mhwd-kernel -r linux518.

I have installed and reinstalled several times the kernel but that didn’t help.

Ah, that would explain it. :smiley: Can you post grub.cfg after you have kernel installed?

Yes I did mention I have windows installed there with quemu. That drive and one GPU is passed through to the windows VM.

do I need to reboot the system after I install the kernel? bacause I am in the middle of something now and don’t want to go through the chroot dance to get back

No, you don’t have to.
Btw, even with 5.18 installed, you can go into Advanced menu (in grub) and select any other installed kernel and/or their fallbacks.

yes i did do that at some point! hang on I am installing now.

There is one way to make sure your specific linux partitions is recognized using the partition type guids

The easiest method is to use cgdisk

Select the efi partition - ensure it is EFI system - EF00
Select the root parition - ensure it is LInux x86_64 root (/) - 8304

Write the changes and exit

Then comment the entries in fstab and save

Here is the result after installing 5.18:

$ sudo mhwd-kernel -i linux518
:: Synchronising package databases...
 core                                                                                                                                        166.6 KiB   201 KiB/s 00:01 [---------------------------------------------------------------------------------------------------------] 100%
 extra                                                                                                                                      1859.8 KiB  1192 KiB/s 00:02 [---------------------------------------------------------------------------------------------------------] 100%
 community                                                                                                                                     7.0 MiB  5.51 MiB/s 00:01 [---------------------------------------------------------------------------------------------------------] 100%
 multilib                                                                                                                                    174.5 KiB   209 KiB/s 00:01 [---------------------------------------------------------------------------------------------------------] 100%
resolving dependencies...
looking for conflicting packages...

Packages (2) linux518-5.18.5-1  linux518-nvidia-470xx-470.129.06-8

Total Installed Size:  165.77 MiB

:: Proceed with installation? [Y/n] y
(2/2) checking keys in keyring                                                                                                                                           [---------------------------------------------------------------------------------------------------------] 100%
(2/2) checking package integrity                                                                                                                                         [---------------------------------------------------------------------------------------------------------] 100%
(2/2) loading package files                                                                                                                                              [---------------------------------------------------------------------------------------------------------] 100%
(2/2) checking for file conflicts                                                                                                                                        [---------------------------------------------------------------------------------------------------------] 100%
(2/2) checking available disk space                                                                                                                                      [---------------------------------------------------------------------------------------------------------] 100%
:: Processing package changes...
(1/2) installing linux518                                                                                                                                                [---------------------------------------------------------------------------------------------------------] 100%
Optional dependencies for linux518
    wireless-regdb: to set the correct wireless channels of your country [installed]
(2/2) installing linux518-nvidia-470xx                                                                                                                                   [---------------------------------------------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'default'
  -> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64.img
==> Starting build: 5.18.5-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.18-x86_64.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux518.preset: 'fallback'
  -> -k /boot/vmlinuz-5.18-x86_64 -c /etc/mkinitcpio.conf -g /boot/initramfs-5.18-x86_64-fallback.img -S autodetect
==> Starting build: 5.18.5-1-MANJARO
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-5.18-x86_64-fallback.img
==> Image generation successful
(4/6) Updating Kernel initcpios for Nvidia-DRM...
(5/6) Refreshing PackageKit...
(6/6) Updating Grub-Bootmenu
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.18-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.18-x86_64.img
Found initrd fallback image: /boot/initramfs-5.18-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.17-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
Found initrd fallback image: /boot/initramfs-5.17-x86_64-fallback.img
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-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.
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme1n1.
done

Note the same unknown device message at the end.

Here is grub.cfg

$ cat /boot/grub/grub.cfg 
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="${saved_entry}"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

set menu_color_normal=light-gray/black
set menu_color_highlight=green/black

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
insmod gfxmenu
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_24.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_48.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_bold_16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/dejavu_sans_mono_12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-18.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b12.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b14.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b16.pf2
loadfont ($root)/usr/share/grub/themes/manjaro/terminus-b18.pf2
insmod png
set theme=($root)/usr/share/grub/themes/manjaro/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=hidden
  set timeout=5
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 5 ; then
  set timeout=0
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Manjaro Linux' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
        load_video
        set gfxpayload=keep
        insmod gzio
        insmod part_gpt
        insmod ext2
        search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
        linux   /boot/vmlinuz-5.18-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
        initrd  /boot/amd-ucode.img /boot/initramfs-5.18-x86_64.img
}
submenu 'Advanced options for Manjaro Linux' $menuentry_id_option 'gnulinux-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        menuentry 'Manjaro Linux (Kernel: 5.18.5-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.18.5-1-MANJARO x64-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.18-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/amd-ucode.img /boot/initramfs-5.18-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.18.5-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.18.5-1-MANJARO x64-fallback-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.18-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/initramfs-5.18-x86_64-fallback.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.17.15-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.17.15-1-MANJARO x64-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.17-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/amd-ucode.img /boot/initramfs-5.17-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.17.15-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.17.15-1-MANJARO x64-fallback-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.17-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/initramfs-5.17-x86_64-fallback.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.15.48-1-MANJARO x64)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.48-1-MANJARO x64-advanced-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
        savedefault
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
        }
        menuentry 'Manjaro Linux (Kernel: 5.15.48-1-MANJARO x64 - fallback initramfs)' --class manjaro --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.15.48-1-MANJARO x64-fallback-0fa745d3-f713-4f02-aacc-d56642c2bff8' {
                load_video
                set gfxpayload=keep
                insmod gzio
                insmod part_gpt
                insmod ext2
                search --no-floppy --fs-uuid --set=root 0fa745d3-f713-4f02-aacc-d56642c2bff8
                linux   /boot/vmlinuz-5.15-x86_64 root=UUID=0fa745d3-f713-4f02-aacc-d56642c2bff8 rw  quiet apparmor=1 security=apparmor udev.log_priority=3 amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1
                initrd  /boot/initramfs-5.15-x86_64-fallback.img
        }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/nvme0n1p1)' --class windows --class os $menuentry_id_option 'osprober-efi-543A-9BE7' {
        savedefault
        insmod part_gpt
        insmod fat
        search --no-floppy --fs-uuid --set=root 543A-9BE7
        chainloader /efi/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
  set timeout=10
fi
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
        fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/41_snapshots-btrfs ###
### END /etc/grub.d/41_snapshots-btrfs ###

### BEGIN /etc/grub.d/60_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
    menuentry "Memory Tester (memtest86+)" --class memtest86 --class gnu --class tool {
        search --fs-uuid --no-floppy --set=root  0fa745d3-f713-4f02-aacc-d56642c2bff8
        linux16 /boot/memtest86+/memtest.bin 
    }
fi
### END /etc/grub.d/60_memtest86+ ###

That can safely be ignored

And for the rest of the output - it is as expected - no failures

Regarding reinstalling grub:

What you showed, and what is first thing mentioned in wiki, is reinstalling actual grub package.
Further on in wiki you have how to reinstall actual grub bootloader (either for bios or for uefi).

Anyway, I’m not sure that that will make any difference, but you can try it.

I did run this:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck

but it said there were no errors. It didn’t actually reinstall anything. Is there a way to force a reinstall?

grub-install --help: there is --force, to ignore errors. So nevermind, your grub is fine.
When you have time try going in advanced section and try booting fallback image.

Edit: another thing I’d try to do is edit kernel parameters in grub menu and remove amd_iommu=on amd_iommu=pt vfio_pci.ids=1002:67df,1002:aaf0,2646:2263 kvm.ignore_msrs=1.

But those are required for the proper quemu passthrough. amd_iommu=on is essential for virtualization.

Editing kernel parameters in grub menu is only temporary, one-time thing. It’s just to rule those out.
Anyway, it was just a random thought. It probably, logically, won’t make any difference, since grub can’t even get to kernel.

My number one suspect is initramfs. So…boot fallback image.