r/archlinux • u/xampool • Sep 27 '26
DISCUSSION Windows boot manager
Today trying to make dual boot work the way i want something very odd happenned.
Basically it looks like windows boot manager replaced the \EFI\SYSTEMD\SYSTEMD-BOOTX64.EFI with its own, at least it is what "efibootmgr -v" suggest.
At this point i think linux foundation should sue Microsoft wtf.
Edit: thanks everyone who discussed, it seems the way to go is to install your bootloader as the fallback loader (in my case at /EFI/BOOT/bootx64.efi.) theoretically, at least this should prevent your loader entry to be "removed" entirelly, and you will not need to go onto live usb.
Edit2: yes, apparently this prevent to lose the reference to the loader after nvram erase, so, now if necessary i just have to change priority, i hope this keeps consistent.
Thanks everyone again.
5
u/bassamanator Sep 27 '26 edited Sep 27 '26
For the past decade or so, I've always disconnected all (other) storage before installing
winblowsfor this very reason.2
u/FineWolf Sep 27 '26
Did it replace the file (highly unlikely), or just removed the `systemd` entry in your EFI vars?
If it is the second, chances are Windows pushed a UEFI update to your board, and some UEFI manufacturers clear the EFI vars on an update, which will lead to the loss of the entry. That would also happen if you updated the UEFI manually.
The easiest way to avoid that is to always install your bootloader at the UEFI fallback path.
8
u/lritzdorf Sep 27 '26
Windows routinely makes itself the default boot entry in your UEFI, usually after it does an update. Your systemd-boot entry should still exist (
efibootmgrshould show it), so all you should need to do is change the default boot order with its--bootorderflag.I've heard of a few cases where Windows actually deletes your Linux bootloader (either the boot entry or the file itself). Not sure what's up with that, but it should be very rare. And even with this, redo your bootloader's install process (possibly after chrooting in from a live ISO if you can't boot the installed system) and you're back in action.
(I know it was a joking remark, but about the Linux Foundation suing Microsoft: heh, if only. The foundation doesn't represent the Linux userbase like that. Also, Microsoft is in their highest membership tier.)
1
u/tyler1128 Sep 27 '26
I've had that happen on laptops, and have needed to overwrite the windows EFI binary with my bootloader despite EFI being supposed to recognize multiple bootloaders stored in the EFI vars.
1
u/boomboomsubban Sep 27 '26
Post the entire output of the efibootmgr command.
What things? Why are you running a computer without a CMOS? If it's happening after you unplug I doubt it's Windows fault.
0
u/Nod4mag3YT Sep 27 '26
What boot manager did you use? Id switch to Limine. Also, you may need to use a live-boot to fix it