this post was submitted on 09 Mar 2024
18 points (95.0% liked)
techsupport
2493 readers
19 users here now
The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.
If something works or if you find a solution to your problem let us know it will be greatly apreciated.
Rules: instance rules + stay on topic
Partnered communities:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Have done this before, Windows being Windows it will replace grub with the windows boot loader. Use a live disk to reinstall grub and reset your boot options and you're done.
No. Windows will only replace the removable media path at
\EFI\boot\bootx64.efi
, of the bootloader. If grub is stored somewhere else, windows won't replace it.https://wiki.debian.org/UEFI#Force_grub-efi_installation_to_the_removable_media_path
However, not every motherboard is compliant with the UEFI spec, and supports booting from other EFI binaries than
\EFI\boot\bootx64.efi
. My motherboard was one such board, where I had to force grub to install to the removable media path (which isn't the default on debian, although it is the default on a lot of other distros).@[email protected] , you should test if your motherboard properly implements the UEFI specification, by going into the UEFI menu, and selecting a different file to boot from, or changing defaults. If you look and there is no such option, or the option is ignored, then you know your motherboard isn't properly implementing the UEFI spec.
You can test if your motherboard supports booting from a different file by downloading an abitrary efi file (like memtest), and then placing it in the EFI system partition, at somewhere other than the removable media path. If you can get the UEFI to boot from somewhere other than that, then the UEFI spec is properly implemented, and Windows updates won't overwrite grub.
Of course, a simpler way to test is to simply install debian and see if it boots. If it does, then windows won't overwrite grub. If not then it will. You can then install a different distro from there.
When I used to dual boot I would just disconnect the Linux drive before installing windows. That way each disk had their own dedicated bootloader. Kind of annoying doing this just to install an OS, but the end result is good. Depending on your bios startup settings you can boot to grub, or boot directly to Windows.