You are not logged in.
Hi everybody!
The GRUB bug finally hit me after I accidentally used ‘grub-mkconfig’, and I can’t seem to get it working properly. Initially, GRUB would just get skipped in the boot process and my pc would go straight to BIOS.
I can enter my system through the Arch ISO, mount all of my partitions, and reinstall GRUB, which I figured would do the trick (hence why this is in the newbie corner). After installing and rebooting, GRUB boots successfully but shows ‘UEFI Firmware Settings’ as the only option.
I’m a little in over my head at this point as I’ve never had to recover my system before, so any help at all would be greatly appreciated. If anyone needs any logs or other information I am happy to provide it.
Thank you!
Offline
Did you mount your /boot partition (if you have one) when you reinstalled grub? Is there any menu entries in your config?
Offline
Did you mount your /boot partition (if you have one) when you reinstalled grub? Is there any menu entries in your config?
Yes, my /boot partition is mounted, and
grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUBsucceeds. I'm not quite sure how to check my menu entries, but in /boot/grub/grub.cfg, there are several BEGIN/END comments that are empty (besides UEFI Firmware):
### BEGIN /etc/grub.d/10_linux ###
### 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 ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
[a bunch of stuff]
### END /etc/grub.d/30_uefi-firmware ###Offline
Update: I don't know if this helps or not, but I'm finding a few different grubx64.efi files in /boot. There are a few different directories in /boot/EFI:
Boot EFI Grub Microsoft arch grub_uefi(I am dual booting Windows for gaming). grubx64.efi appears in /boot/EFI/GRUB, /boot/EFI/arch, and /boot/EFI/grub_uefi. I'm not sure if this is a symptom of GRUB not recognizing the system or if this is normal, but I thought I'd share it just in case.
Offline
[a bunch of stuff]
Don't do that: https://bbs.archlinux.org/viewtopic.php?id=57855
Did you re-run grub-mkconfig with all partitions correctly mounted?
Please also post
efibootmgr -uvJin, Jîyan, Azadî
Offline
Don't do that: https://bbs.archlinux.org/viewtopic.php?id=57855
### BEGIN /etc/grub.d/30_uefi-firmware ###
fwsetup --is-supported
if [ "$grub_platform$ = "efi" -a "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
fi
### END /etc/grub.d/30_uefi-firmware ###All of the partitions are correctly mounted, but grub-mkconfig still only generates a boot menu entry for 'UEFI Firmware Settings':
$ grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
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.
Adding boot menu entry for UEFI Firmware Settings ...
doneHere's the output of efibootmgr -uv:
BootCurrent: 0004
Timeout: 1 seconds
BootOrder: 0002,0000,0003,0004,0001
Boot0000* Windows Boot Manager HD(1,GPT,29c4d614-d7bb-4a25-8523-faa212cfac65,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)䥗䑎坏S
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 14 d6 c4 29 bb d7 25 4a 85 23 fa a2 12 cf ac 65 02 02 / 04 04 46 00 5c 00 45 00 46 00 49 00 5c 00 4d 00 49 00 43 00 52 00 4f 00 53 00 4f 00 46 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 5c 00 42 00 4f 00 4f 00 54 00 4d 00 47 00 46 00 57 00 2e 00 45 00 46 00 49 00 00 00 / 7f ff 04 00
data: 57 49 4e 44 4f 57 53 00 01 00 00 00 88 00 00 00 78 00 00 00 42 00 43 00 44 00 4f 00 42 00 4a 00 45 00 43 00 54 00 3d 00 7b 00 39 00 64 00 65 00 61 00 38 00 36 00 32 00 63 00 2d 00 35 00 63 00 64 00 64 00 2d 00 34 00 65 00 37 00 30 00 2d 00 61 00 63 00 63 00 31 00 2d 00 66 00 33 00 32 00 62 00 33 00 34 00 34 00 64 00 34 00 37 00 39 00 35 00 7d 00 00 00 49 00 01 00 00 00 10 00 00 00 04 00 00 00 7f ff 04 00
Boot0001* Hard Drive BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0200)
dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 / 7f ff 04 00
data: 00 00 47 4f 00 00 4e 4f b5 00 00 00 01 00 00 00 8b 00 41 00 44 00 41 00 54 00 41 00 20 00 53 00 55 00 36 00 33 00 35 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 01 01 01 06 00 01 00 03 12 0a 00 04 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 4b 00 32 00 37 00 31 00 30 00 32 00 34 00 30 00 34 00 33 00 38 00 39 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f 00 00 4e 4f cd 00 00 00 01 00 00 00 8b 00 53 00 61 00 6d 00 73 00 75 00 6e 00 67 00 20 00 53 00 53 00 44 00 20 00 38 00 37 00 30 00 20 00 51 00 56 00 4f 00 20 00 31 00 54 00 42 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 02 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 01 01 01 06 00 01 00 03 12 0a 00 05 00 ff ff 00 00 7f ff 04 00 01 04 3e 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 35 00 53 00 53 00 56 00 47 00 4e 00 4e 00 30 00 31 00 41 00 31 00 37 00 33 00 33 00 20 00 4b 00 20 00 20 00 20 00 20 00 00 00 7f ff 04 00 00 00 42 4f
Boot0002* GRUB HD(1,GPT,29c4d614-d7bb-4a25-8523-faa212cfac65,0x800,0x32000)/File(\EFI\GRUB\grubx64.efi)
dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 20 03 00 00 00 00 00 14 d6 c4 29 bb d7 25 4a 85 23 fa a2 12 cf ac 65 02 02 / 04 04 30 00 5c 00 45 00 46 00 49 00 5c 00 47 00 52 00 55 00 42 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00
Boot0003* USB HDD BBS(HD,,0x0)/VenHw(5ce8128b-2cec-40f0-8372-80640e3dc858,0900)
dp: 05 01 09 00 02 00 00 00 00 / 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 / 7f ff 04 00
data: 00 00 47 4f 00 00 4e 4f c9 00 00 00 01 00 00 00 7f 00 47 00 65 00 6e 00 65 00 72 00 61 00 6c 00 20 00 55 00 53 00 42 00 20 00 46 00 6c 00 61 00 73 00 68 00 20 00 44 00 69 00 73 00 6b 00 20 00 31 00 31 00 30 00 30 00 00 00 05 01 09 00 02 00 00 00 00 01 04 16 00 8b 12 e8 5c ec 2c f0 40 83 72 80 64 0e 3d c8 58 09 00 7f ff 04 00 02 01 0c 00 d0 41 03 0a 00 00 00 00 01 01 06 00 02 01 01 01 06 00 00 00 03 05 06 00 05 00 7f ff 04 00 01 04 36 00 ef 47 64 2d c9 3b a0 41 ac 19 4d 51 d0 1b 4c e6 30 00 34 00 39 00 41 00 48 00 47 00 43 00 57 00 36 00 35 00 50 00 47 00 55 00 4c 00 34 00 58 00 00 00 7f ff 04 00 00 00 42 4f
Boot0004* UEFI: General USB Flash Disk 1100, Partition 1 PciRoot(0x0)/Pci(0x1,0x2)/Pci(0x0,0x0)/USB(5,0)/HD(1,MBR,0x5403d937,0x800,0x733b800)
dp: 02 01 0c 00 d0 41 03 0a 00 00 00 00 / 01 01 06 00 02 01 / 01 01 06 00 00 00 / 03 05 06 00 05 00 / 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 b8 33 07 00 00 00 00 37 d9 03 54 00 00 00 00 00 00 00 00 00 00 00 00 01 01 / 7f ff 04 00
data: 00 00 42 4fOffline
All of the partitions are correctly mounted, but grub-mkconfig still only generates a boot menu entry for 'UEFI Firmware Settings'
Sounds like the kernel & initramfs images can't be found. Are they present on the /boot partition?
Jin, Jîyan, Azadî
Offline
Sounds like the kernel & initramfs images can't be found. Are they present on the /boot partition?
I'm not sure where they went or how I didn't notice it before, but they're not in /boot. Following some advice from stack exchange got me this:
$ cat /proc/cmdline
BOOT_IMAGE=/arch/boot/x86_64/vmlinuz-linux archisobasedir=arch archisolabel=ARCH_202209The /boot/x86_64 directory isn't there, though. Where should I go from here if I don't even have a kernel?
Offline
That command line is for the live system, it is irrelevant.
Load up the Arch live ISO, mount all your partitions, (arch-)chroot in and reinstall the kernel.
I presume your kernel & initramfs are actually on the root (/) partition. And let me guess: you didn't follow the official installation guide, did you? Apologies in advance if I'm jumping the gun here.
Jin, Jîyan, Azadî
Offline