Windows 11 took over the boot records - I fixed it, but why/how did it happen?

A bit of background: I built a new gaming PC last December, and stupidly put Windows 11 on it, and quickly learnt how horrible it was and decided to install EndeavourOS on the 2nd hard drive (it has 2 NVMe drives). Anyway, after using Linux I didn’t boot back into Windows even once, so it went more than 450 days or something without booting into Windows.

I know I should have just got rid of Windows since I wasn’t using it, but I just never got round to it. I will be doing that now.

What happened: I left my PC running (booted into Linux) whilst I was doing some stuff in the garden and in different parts of the house, for maybe an hour. When I came back, it was showing the Windows login screen?!!!

I was very confused, and restarted, but I couldn’t even get into the BIOS or boot menu any more, it just instantly booted into Windows. It had fully taken over. I had to do some searching to find out how to even get back into the BIOS, which basically involves going about 8 menus deep in Windows settings, behind lots of “advanced” and “troubleshooting” buttons/links, to find where you can tell it to do a special restart that lets you get into the BIOS.

Once in the BIOS, I could see that both hard drives had “Windows Boot Manager” listed as the UEFI boot option and EndeavourOS was not listed:

The last option there, SanDisk, is how I fixed it. I put EndeavourOS on a USB drive and booted into that.

My question is basically how did it happen? I assume this is just something Windows does: takes over the boot record on all connected hard drives? But presumably also Linux must have crashed… but how did it even end up booting into Windows, when the first option listed in the boot order has always been EndeavourOS? I don’t get it.

Is it possible that it crashed so badly that it failed to boot, or the UEFI boot record got corrupted, causing it to try the next boot option?


How I fixed it:

For anyone interested, I am very grateful to this guide I used: https://gist.github.com/andreibosco/b4f32090472f00c63c88149f11c2259a

For me bootctl update did not fix the problem (it said the boot record was already correct), it was the efibootmgr command which ultimately fixed it.

Full logs of the fix for me (done from live USB with chroot): https://pastebin.com/ai979aMC

Because Windows is EVIL!

Microsoft is EVIL!

As the Space Marines say “Purge the unclean”!

Aka get rid of the Evil abomination!

There’s a couple possibilities, but it’s difficult to be certain.

In the instance of a system failure, the BIOS/UEFI may revert to a “safe defaults” boot mode, which could impact your boot order. It may have simply been the result of a temporary power outage at home, causing the system to detect an improper shutdown and boot into safe mode.

You can look at system logs using:

journalctl -b -0

If you change the number there, it goes back in time to older system logs. So -0 is the current session, -1 is the previous session, -2 is the session before that, etc. You may be able to see how that problem session actually ended.

Thank goodness I don’t need to deal with the headache that is a Windows/Linux dual-boot machine anymore. I haven’t had to deal with Windows on any of my PCs/Laptops for years. 100% Linux, no Microsoft bullsh*t on my machines.

Actually I don’t understand why users have so many issues with this. I run Windows dual boot on my desktop and 3 laptops. One has systemd-boot but normally i use grub which I am using on the rest. :person_shrugging:

Well because Windows is EVIL! And will strike when you least expect it! :winking_face_with_tongue:

When i dual booted in the past i made sure linux was on one drive and windows on another. I know Microsoft like to f*uck things up. The last few years they already proved it with their monthly updates :joy:.

Back then i noticed i didn’t boot into windows for a long time so i erased it back then.

Not that I’m defending MS (at all), but it’s lazy programming. The assumption that it is the only OS on the hard drive (and certainly the only one that matters) and feeling free to just reset the boot loader. That’s what happens routinely on update.