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

techsupport

2468 readers
1 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
 

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

top 17 comments
sorted by: hot top controversial new old
[–] [email protected] 12 points 8 months ago (1 children)

Windows is notorious for fucking with GRUB and other bootloaders. You might be able to go into your BIOS and disable your main drive while doing the install to prevent any issues. But it's been so long since I've tried to do that, maybe verify before taking my advice.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago) (2 children)

Sadly only SATA ports can be disabled on my board, that doesn't seem to be possible to do to the nvme port, but thanks there!

[–] [email protected] 5 points 8 months ago

I'd even suggest unplugging the Linux drive entirely. Let Windows install as if it is on the only drive. When complete, plug everything back in and set up your boot order accordingly. Manually add the Windows drive to your Linux bootloader.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

Ah bummer. Definitely be careful. Unfucking Windows bootloader bullshit can be tedious and annoying in my experience. And I haven't messed with it since secure boot and stuff started which I've heard could be even worse.

Honestly why not just get their whole PC and install it for them instead of just getting the HDD?

[–] [email protected] 1 points 8 months ago

Yeaah.

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 the answers you and everyone here!

[–] [email protected] 3 points 8 months ago

Nothing terrible. Worst case it screws with your grub boot. While annoying you wont lose your data, of course as long as you install to the right drive. You'll have to re install grub from a live Linux disk and you'll be back in business.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

not sure if it's relevant to your post but:

last time I tried dualbooting Windows and Arch something went wrong to the point that I had to reinstall arch and just run Windows in a VM (it definitely could've been a me problem/skill issue)

ever since then, I've been running a Windows VM with linux as my host and it's been pretty smooth so far, the only issue is with Respondus/rootkit browser not working for obvious reasons (mandatory for my course :P)

[–] [email protected] 1 points 8 months ago (2 children)

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.

[–] [email protected] 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).

@[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.

[–] [email protected] 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.

[–] [email protected] 1 points 8 months ago (1 children)

because linux devs made the OS to respect your choice if you want to dual-boot, and they ask/ don't override stuff windows don't, they just override and don't care, or don't test it

[–] [email protected] 1 points 8 months ago

Yeah, window's awful

[–] [email protected] 0 points 8 months ago (2 children)

this question could indicate your backup strategy is incomplete.

[–] [email protected] 3 points 8 months ago

Bam! Ask a simple question on the internet and watch your flaws come to revelation!

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

Well i guess, i don't really have whole system backups, but not much important data to be lost either, i know backups are good, but i don't want my storage to go all on that...

Plus a broken boot on linux doesn't necessarily means all files were lost right? (Unless storage is encrypted, which mine isn't, but that's a different case)

[–] [email protected] 1 points 8 months ago (1 children)

Depending on how big and how full your HD is, you could just get a 1TB or 500GB USB stick and back up onto that.

Yeah, a broken boot doesn't mean it's lost, but you may need to boot into some Linux to fix it. Having an option like that would be part of a complete backup.

[–] [email protected] 1 points 8 months ago* (last edited 8 months ago)

Yeah, i usually have a bootable usb with some Linux distro laying around exactly for cases like that

Thanks for the advice there!