You are not logged in.

#1 2020-10-22 05:25:01

douglaslb
Member
Registered: 2020-10-22
Posts: 2

[SOLVED] UEFI: GRUB configuration is lost on each reboot

Hi guys! I'm an enthusiastic in Arch Linux and I'm dealing with a problem.

Every time I reboot my pc, my GRUB configuration is gone. I don't have a dual boot.

That's my GRUB configuration, my Arch is the  Boot0000

# efibootmgr
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003
Boot0000* grub
Boot0001* Hard Drive
Boot0002* ubuntu
Boot0003* UEFI: General USB Flash Disk
Boot0008  Hard Drive

If I reboot my pc I'll be able to be on my KDE Desktop because I just set it with:

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

and generated the config file with:

# grub-mkconfig -o /boot/grub/grub.cfg

But if I reboot the system again, my Boot0000 just disappear and there isn't any option to boot.

Any idea???

Last edited by douglaslb (2020-10-22 12:28:31)

Offline

#2 2020-10-22 07:20:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,364

Re: [SOLVED] UEFI: GRUB configuration is lost on each reboot

Welcome to the boards, please use code rather than quote for command outputs

What's your mainboard? There are a few mainboards that don't properly adhere to the UEFI spec and they remove "untrusted" entries. Check through your UEFI firmware settings whether you have an option somewhere to manually add a custom entry, and add your GRUB there, or execute the grub-install command with the --removable flag to have it populate the default path of esp/EFI/BOOTx64 that one should always be available for booting.

Offline

#3 2020-10-22 12:27:50

douglaslb
Member
Registered: 2020-10-22
Posts: 2

Re: [SOLVED] UEFI: GRUB configuration is lost on each reboot

V1del wrote:

Welcome to the boards, please use code rather than quote for command outputs

What's your mainboard? There are a few mainboards that don't properly adhere to the UEFI spec and they remove "untrusted" entries. Check through your UEFI firmware settings whether you have an option somewhere to manually add a custom entry, and add your GRUB there, or execute the grub-install command with the --removable flag to have it populate the default path of esp/EFI/BOOTx64 that one should always be available for booting.



Hi V1del, thank you for your answer!

I ran the grub-install command with the --removable flag and it worked. Now my UEFI is not removing the Arch entry.

Thank you so much!

(I'll make sure to use code instead of quoting next time haha)

Offline

Board footer

Powered by FluxBB