I’ve already made posts about this issue [1] [2] because “the Windows installer is evil, it will eat the stuff that makes Linux’ things, like Grub2, launch at boot”.
Here’s what to do:
-
Get an individual, separated Storage Drive on which you want to install Windows (7, 8, 8.1, 10, 11).
You can’t “dual boot” with different partitions on the same drive if you have Linux already installed because, as said above, it will eat Linux’ stuff (you have to, basically, reinstall Linux to “fix” it, as shown in the links). -
Remove every single S.Drive from your desired computer OR from a secondary computer.
Installing Windows without any other S.Drive mounted will prevent it from eating Linux’ stuff, and from creating problems “by detecting that another version of Windows is already installed”.
After having mounted just and only the one S.Drive you intend to install Windows upon, you can proceed with the installation. -
Now that you have your Windows S.Drive, you can mount it with all your previous S.Drives in the desired computer.
It will not (automatically) show in Grub2, but it will show in your motherboard’s Boot Options. -
This is the last step, in which said Windows will be added in the Grub2 list.
What you have to do is just “follow Grub2’s reinstall tutorial” from their page here[3].
The first command isgrub2-mkconfig -o /boot/grub2/grub.cfgto “recreate the config file”, whilednf reinstall shim-\* grub2-efi-\* grub2-common(for UEFI alone) will reinstall it.
In the past I found another post[4] which couldn’t really solve the issue, and since I also knew less about this I didn’t understand how “to fix the shortcomings” of this flawed method.
The answer is that doing just and only the first one is not guaranteed to work. Doing both of them instead will work.
Now you will have your untouched, working Linux partition/s with its/their Distro/s, and the Windows_X partition, both working perfectly.
Good luck with whatever you people have to do with your computers. ![]()
As shown in this link, you can reinstall Linux without losing personal files, but you will have to reinstall all your software back from 0, so it’s less than ideal. If you, at least, have nothing of importance on said computer and have just and only one Storage Drive on said computer, you can just ignore this tutorial, install Windows first, and then Linux on a separate partition. Reinstalling Fedora while keeping /home partition - #10 by isaac0clarke ↩︎
