You are not logged in.

#1 2020-07-06 03:28:08

nswerhun
Member
Registered: 2020-07-06
Posts: 2

GRUB UEFI entry being deleted on reboot

I've finally decided to install Arch on my main desktop, after using it on my laptop for some time. However, I am having a bit of trouble with installing GRUB. The installer completes without error, I can generate the config file fine but the motherboard bios cannot see the uefi boot entry.

# grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id=GRUB
Installing for x86_64-efi platform.
Installation finished. No error reported. 
# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
done

And then I can see

# efibootmgr
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0000,0001
Boot0000* GRUB
Boot0001* UEFI: USB DISK 2.0 PMAP, Partition 1

that the GRUB is there.
But then, I can poweroff, and power back on again, and it boots me directly into my motherboard bios, and GRUB is nowhere to be found in the boot list.
After plugging back in the Arch live iso, I can see

# efibootmgr
BootCurrent: 0001
Timeout: 1 seconds
BootOrder: 0001
Boot0001* UEFI: USB DISK 2.0 PMAP, Partition 1

that GRUB is no longer there.

My motherboard is a MSI Z170A Krait Gaming 3X. Arch is installed on a Samsung 960 Evo nvme ssd. Fast boot and secure boot are disabled. I am not dual-booting, just Arch. I've had both Debian and Ubuntu with grub on here before, so I know that grub works fine with this setup, I am just wondering what I am doing wrong. I am pretty new to Arch but really like it on my laptop.

Offline

#2 2020-07-06 04:29:12

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 592

Re: GRUB UEFI entry being deleted on reboot

Looks like your firmware doesn't retain boot entries on poweroff. Try installing GRUB to the default/fallback boot path.

Offline

#3 2020-07-06 18:18:31

nswerhun
Member
Registered: 2020-07-06
Posts: 2

Re: GRUB UEFI entry being deleted on reboot

nl6720 wrote:

Looks like your firmware doesn't retain boot entries on poweroff. Try installing GRUB to the default/fallback boot path.

This did it! Thank you very much, the problem is solved!

Offline

Board footer

Powered by FluxBB