You are not logged in.

#1 2023-12-13 15:42:18

mewt
Member
Registered: 2008-06-24
Posts: 32

GRUB Bootloader not detected

I took the always regretful decision of updating my motherboard bios in preparation of upgrading to a 5000 series ryzen cpu, after which grub is not being detected. It is not shown within the bios as an option and a generic loader is provided.

The loader being chosen is the generic loader whose configuration is found at /boot/loader/loader.conf with the EFI firmware at /boot/EFI/Boot/bootx64.efi

I checked with efibootmgr and the following was output:

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0004
Boot0003* UEFI OS	HD(2,GPT,b1cc5fc0-da5c-4c37-8a32-e8e1fe2b91a3,0xe1800,0x3a000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
Boot0004* UEFI: KingstonDataTraveler 2.0PMAP, Partition 1	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(13,0)/HD(1,MBR,0x200e0c07,0x80,0x1dc000)0000424f

So I ran os-prober, then grub-mkconfig and finally grub-install to regenerate my grub config and entries, such that efibootmgr now shows

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0000,0003,0004
Boot0000* GRUB	HD(2,GPT,b1cc5fc0-da5c-4c37-8a32-e8e1fe2b91a3,0xe1800,0x3a000)/File(\EFI\GRUB\GRUBX64.EFI)
Boot0003* UEFI OS	HD(2,GPT,b1cc5fc0-da5c-4c37-8a32-e8e1fe2b91a3,0xe1800,0x3a000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f
Boot0004* UEFI: KingstonDataTraveler 2.0PMAP, Partition 1	PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(13,0)/HD(1,MBR,0x200e0c07,0x80,0x1dc000)0000424f

Grub still isn't shown in bios and boot process still falls to option 2. Any clues?

Offline

#2 2023-12-13 15:46:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,599

Re: GRUB Bootloader not detected

mewt wrote:

...and boot process still falls to option 2.

Uh, what?

Offline

#3 2023-12-13 18:14:10

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,744
Website

Re: GRUB Bootloader not detected

Pass the --removable option to the grub-install command to replace $esp/EFI/Boot/bootx64.efi with GRUB's core.img. Or just copy grubx64.efi over manually.

Offline

#4 2023-12-14 09:08:06

mewt
Member
Registered: 2008-06-24
Posts: 32

Re: GRUB Bootloader not detected

Scimmia wrote:
mewt wrote:

...and boot process still falls to option 2.

Uh, what?

ie: chooses Boot0003* UEFI OS    HD(2,GPT,b1cc5fc0-da5c-4c37-8a32-e8e1fe2b91a3,0xe1800,0x3a000)/File(\EFI\BOOT\BOOTX64.EFI)0000424f, rather than  Boot0000* GRUB    HD(2,GPT,b1cc5fc0-da5c-4c37-8a32-e8e1fe2b91a3,0xe1800,0x3a000)/File(\EFI\GRUB\GRUBX64.EFI)

Offline

#5 2023-12-14 09:13:24

mewt
Member
Registered: 2008-06-24
Posts: 32

Re: GRUB Bootloader not detected

Head_on_a_Stick wrote:

Pass the --removable option to the grub-install command to replace $esp/EFI/Boot/bootx64.efi with GRUB's core.img. Or just copy grubx64.efi over manually.

Will try, thanks

Offline

Board footer

Powered by FluxBB