r/archlinux • u/thecatishungry • 4d ago
QUESTION Firmware update wiped NVRAM, the fallback loader was ignored, and only Window was bootable. What's the right dual-boot setup to prevent this?
TL;DR: An MSI BIOS update wiped my UEFI boot entries. Afterwards the firmware only offered "Windows Boot Manager", even though \EFI\BOOT\BOOTX64.EFI existed on the same ESP. I got back in with efibootmgr from a live USB. How should I set things up so the next BIOS/firmware update doesn't lock me out again?
- Disk 1: NVMe: Arch + Mint, one ESP mounted at
/boot. Windows boot files (\EFI\Microsoft\) are on this ESP too. - Disk 2: SSD: Windows 11, no ESP of its own.
- Boot loader: GRUB. At the time of the update, the fallback
BOOTX64.EFIwas Mint's shim (withfbx64.efinext to it), but no Mint entry got recreated either. - The update also turns Secure Boot back on by default. Turning it off alone didn't help, not 100% sure if this is related to the problem.
My guess is that the firmware rescanned the NVMe, found bootmgfw.efi, and created a "Windows Boot Manager" entry for it without ever trying the fallback. Last year's BIOS update with the same layout (Mint + Windows on this ESP) went fine, but I wasn't using Arch back at t he time.
I'm also planning to move from GRUB to systemd-boot. Is there any recommended setup which can survive the next firmware update?
From what I can tell, the only sure fix is to give Windows its own ESP on the SSD and remove it from the Linux ESP. The downside is that Windows won't show up in the systemd-boot menu, so I'd have to pick it from the firmware's boot menu (F11) instead.
7
u/Zizaerion 4d ago
picking from the F11 boot menu and having two separate drives with their own ESP's is the only solution that will work for a dual boot with windows. Since the only option that will work to survive a firmware update is the fallback bootloader path. You can make it so that grub is also copied on the drive as the fallback bootloader path with the --removable flag in the grub install command. systemd-boot automatically installs itself as the fallback boot path so that's why it works.
4
u/gmes78 4d ago
Thing is, you can recover this from Windows, using
bcdedit. See here.So I don't think making a separate ESP is worth it, since this rarely happens and can easily be fixed. And, if you want to switch to systemd-boot, you only option is to stay with a single ESP, as sd-boot cannot boot Windows installations on other ESPs.
2
u/archover 4d ago
With a multi drive system, I hit F12 (UEFI boot menu) and simply choose the disk I want to boot. But, I don't run Windows. An option, maybe. IIRC, the UEFI system scans the drives, and presents bootable ones. No special config required.
Good day
2
u/ava1ar 4d ago
I have dual-boot with rEFInd as main bootloader - it is repairable from both Linux and Windows.
1
u/FigMan 3d ago
I keep my Arch ESP completely separate from Windows and never had any issues with rEFInd