18
submitted 8 months ago* (last edited 8 months ago) by Quills@sh.itjust.works to c/techsupport@lemmy.world

So, i use linux, i don't have any windows install on my disk, but someone wants me to install windows on their HDD, so, if i plug said HDD on one of my sata ports and try to install windows 10 on it, will it mess with my linux boot? if yes, is there a way to prevent that without physically disconnecting my main drive? (my main is an nvme ssd, that's why I'd rather not remove it, already suffered enough trying to screw that in ther

Edit: Fortunally i got to convince the person to bring their whole PC, so now i won't have to deal with this anymore! Thank you very much for all the answers everyone

you are viewing a single comment's thread
view the rest of the comments
[-] cmeu@lemmy.world 1 points 8 months ago

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.

[-] moonpiedumplings@programming.dev 3 points 8 months ago

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).

@Quills@sh.itjust.works , 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.

[-] SparrowRanjitScaur@lemmy.world 1 points 8 months ago* (last edited 8 months ago)

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.

this post was submitted on 09 Mar 2024
18 points (95.0% liked)

techsupport

2469 readers
6 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:

You Should Know

Reddit

Software gore

Recommendations

founded 1 year ago
MODERATORS