Skip to content

Instantly share code, notes, and snippets.

@craigstjean
Created March 23, 2025 21:12
Show Gist options
  • Select an option

  • Save craigstjean/fc1ece6d23cc2708af6cf4de893247a4 to your computer and use it in GitHub Desktop.

Select an option

Save craigstjean/fc1ece6d23cc2708af6cf4de893247a4 to your computer and use it in GitHub Desktop.

Post BIOS Update

BIOS updates change the boot loader back to Windows and remove GRUB from the boot list. To fix:

  1. Disable Secure Boot
  2. Boot to GRUB Rescue Shell
  3. Execute:
set prefix=(hd5,gpt2)/efi/grub
set root=(hd5,gpt2)
insmod normal
normal
insmod linux
insmod linuxefi
linuxefi /boot/vmlinuz-linux-fsync-nobara-bin root=/dev/nvme1n1p4
initrdefi /boot/initramfs-linux-fsync-nobara-bin.img
boot
  1. Login
  2. Execute:
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  1. Reboot to BIOS
  2. Update default boot device to GRUB

Notes

This is specific to my machine, where root is (hd5,gpt4), /boot is (hd5,gpt2), and the root device is nvme1n1p4. I am also using the nobara kernel, normally you would reference vmlinuz-linux and initramfs-linux.img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment