You are not logged in.
This morgning, I ran
pacman -Syu. After reboot, the grub menu showed up as usual. Then I hit enter to select the default boot. A moment later I was presented with the message
Failed to mount /boot. I then restarted again and select the advanced options in the grub menu. Surprisingly, there are now 4 options: standard boot and fall-back for two different kernels. One kernel does boot, the other config causes the above error. I check /boot//gub.cfg, to see that there were indeed 4 submenu entries. Also, the linux, and initrd option referenced the files /vmlinuz-linux, and /initramfs-linux.img. i.e., files in the root directory. I then deleted those, and recreated the grub config. This is the relevant section of the newly generated /boot/grub.cfg:
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8789fc48-2024-41d2-aac8-d2f166450940' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root E4F1-CFC3
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=8789fc48-2024-41d2-aac8-d2f166450940 rw loglevel=3 quiet nouveau.config=NvGsoRm=1
echo 'Loading initial ramdisk ...'
initrd /intel-ucode.img /initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-8789fc48-2024-41d2-aac8-d2f166450940' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-8789fc48-2024-41d2-aac8-d2f166450940' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root E4F1-CFC3
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=8789fc48-2024-41d2-aac8-d2f166450940 rw loglevel=3 quiet nouveau.config=NvGsoRm=1
echo 'Loading initial ramdisk ...'
initrd /intel-ucode.img /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-8789fc48-2024-41d2-aac8-d2f166450940' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root E4F1-CFC3
echo 'Loading Linux linux ...'
linux /vmlinuz-linux root=UUID=8789fc48-2024-41d2-aac8-d2f166450940 rw loglevel=3 quiet nouveau.config=NvGsoRm=1
echo 'Loading initial ramdisk ...'
initrd /intel-ucode.img /initramfs-linux-fallback.img
}
}After restart, grub still has 4 submenu entries, despite the above config. Two of them are working, and two produce the above error. can anybody help troubleshoot this?
Last edited by teagum (2024-12-10 06:33:39)
Offline
Please use code tags rather than quote tags for config files.
https://wiki.archlinux.org/title/Genera … s_and_code
Mod note: moving to NC.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
This is the relevant section of the newly generated /boot/grub.cfg:
Can we please see the entire config?
"pacman -Syu" => "Failed to mount /boot" typically means you're booting an old kernel that lacks the modules on disk, so there's no vfat support and the /boot partition cannot be mounted.
newly generated /boot/grub.cfg
You want to check that path: https://wiki.archlinux.org/title/GRUB#G … d_grub.cfg
Offline
Problem was, that during the system upgrade, grub.cfg was generated in /boot/grub.cfg instead of the default location /boot/grub/grub.cfg. Hence, I just dealt with the former, missing that latter.
Offline