r/archlinux • u/Nylon2006 • 1d ago
SUPPORT Windows keeps deleting my Grub entry
I've been using arch alongside windows for more than a year now and this happened to me s few days ago, never happened before.
Reinstalling grub fixes it, but every time I boot windows it deletes it from my UEFI/BIOS and (for some reason) it shows me OS entries that no longer exist (ubuntu and fedora if that's relevant).
I've tried doing the "bcdedit.exe" fix, tried putting a shim on my grub, updating the BIOS and tried to uninstall the newer versions of windows (for some reason, I can't uninstall KB5124008 nor KB5126052 and after rebooting windows it shows me that it is being updated).
I also thought of my BIOS battery running out but since the internal clock/date is OK and i have my desktop plugged in all the time I discarded that option.
Does anyone know what is happening to it? I know that if im present I can reinstall grub at any time but since I use a VNC server (on both OS) with a wakeup on LAN I could not go back to linux after going into windows.
4
u/BigSappari 1d ago
Had the same issue. For me it was the final nail in the coffin and reason enough to get rid of Windows for good.
Install Grub on a separate EFI partition with --removable, and with any luck, while it no longer boots automatically, it can still be selected in the bios boot menu, saving you the trouble of using some USB stick or other.
3
u/One-Yellow9778 1d ago
are you sure it's windows?
because that sounds more like a misbehaving motherboard firmware.
I had one bad motherboard in the past that suddenly started doing that and I couldn't rely on NVRAM entries at all. I had to install bootloader in default fallback EFI boot path (--removable option in grub) to work.
the issue is documented here, maybe that's what happening to you https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface#UEFI_boot_loader_does_not_show_up_in_firmware_menu
9
5
u/3PoundsOfFlax 1d ago
Windows will never stop doing this. The best, permanent fix is to use a dedicated physical disk for each OS.
7
1d ago
[removed] — view removed comment
4
1
u/Nylon2006 1d ago
I deleted those phantom entries again and again but they keep appearing.
Also, I disabled windows from the BIOS and only enabled Grub, but it keeps disappearing and booting the BIOS instead (since it can't boot windows). I also did it with efibootmgr tool from the ISO and still did nothing.
I'll try to do what you told me in the last part, where can I find more info?
1
u/onefish2 1d ago
Use rEFInd. I use that bootloader on all my systems that are dual boot/multi-boot with or without Windows. I have never had an issue "losing" a boot entry in 10 plus tears.
1
u/retiredwindowcleaner 1d ago
Highly doubt that, unless you have moved your arch efi files into the /EFI/Microsoft folder.
1
u/Mathisbuilder75 5h ago
I have been having the exact same issue lately. I dual booted for years and never had this problem.
21
u/Confident_Hyena2506 1d ago
There is only one default spot on the efi partition - whatever occupies the bootx64.efi spots takes it. Windows will insist on this.
If you make explicit entries then you can select what you want, but don't rely on the default. Stop sharing same partition as windows if you don't want this to happen.