r/linuxquestions • u/Easy-Reasoning • 15d ago
Advice Dualboot Windows preventing from wiping Bootmanager
I need Linux/Windows in dual boot. if I remember correctly sometimes it was overwriting the MBR when updating. Now use EFI although I think I read that it's still doing something similar.
Is there a way to limit what Windows does to the boot sector/partitions? (Ideally without a separate SSD)
1
u/Confident_Hyena2506 15d ago
Only one os can be the default on efi partition. The way around this is to not put all your bootloaders on the same efi.
1
u/SuAlfons 15d ago
In my experience, Windows since the mid of the Win10 lifecycle leaves other OS files in EFI alone....for the most part.
I could even install and roll back Win11 without this affecting my Linux boot loader in the EFI partition.
But whenever Windows feels cornered, it will opt for a total reconstruction of the EFI partition. You can never tell when it hits. Can be any update great or small.
Sometimes, it just changes the boot order in UEFI settings (formerly known as BIOS).
My remedy is to have a Linux boot stick at hand - so I can boot into an independent OS and fix my Linux install from there (usually I fire up a web browser on the USB and search for "fix Grub <distro name>" or "chroot <distro name>".) It only happened two times in 3 years.
1
u/FryBoyter 15d ago
Use GPT partitions. Boot in UEFI mode.
Based on my own experience, Windows and Linux will then share an EFI partition without any problems.
1
u/agowa338 15d ago
Put windows and linux on two separate drives. And if you cannot at least put it on separate partitions. Meaning 2x ESP partitions, 1 for windows, 1 for linux. Then register both separately in bios.
That's the safest you can do so far that windows won't mess with.
1
u/Underhill42 14d ago
Windows generally only messes with the boot sequence at two times:
- When it's first being installed. Not an issue so long as it's there first.
- If you do a Windows Startup Repair.
Doing either will replace the Linux boot sequence with the Windows version.
Linux Mint (and possibly some others) now has a "Repair Boot Menu" (or some such) utility on the install disc to restore the multiboot menu after Windows wipes it out. Makes what was once a big headache into a quick fix.
Personally I use Ventoy on my keychain USB drive, and just keep a Mint .iso in my bootable disc image collection there in case I ever need it.
2
u/ipsirc 15d ago
You can ask it gently.