this post was submitted on 25 Aug 2023
54 points (92.2% liked)
Linux
45530 readers
982 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
This happens, because the stupid windows bootloader installs itself onto the same partition as the fedora bootloader instead of making it's own. So when you reinstall fedora, the windows bootloader is deleted. Look up how to reinstall windows bootloader
On EFI systems all bootloaders are supposed to reside on a single partition. EFI does not support multiple 'EFI system partitions', so operating systems have to share a single one. And this is usually not a problem if it is the one Windows choose. The problem most often is broken EFI firmware which fails to correctly handle adding and removing boot entries. Or Windows, which fails to boot if anything changes (disk order and such), even though everything is still available.
This is technically only true if you have a single disk. The EFI spec allows for a single EFI partition per disk, so you can definitely have multiple in a system. I know this, because my setup has multiple EFI partitions. Windows doesn't like it, and it will try it's hardest to share a single one with Linux, but if it's on its own disk, you can set it up with its own EFI partition using the command prompt.
This is exactly why I put my Linux install on a separate SSD. I even physically removed the windows SSD when I installed so nothing would get merged together.
Then my recent research was wrong - I tried to make it work and failed. Then read somewhere it is not supported. But it can be that it is valid EFI configuration, but not supported by Windows and some firmware implementations.
I don't think I have ever seen an EFI firmware which was not broken in one way or another.
I've never had Windows mess up a UEFI partition worse than it was after the initial install. Microsoft may refuse to add a proper bootloader entry (defaulting to the fallback boot path) but it'll leave Grub or any other bootloader alone unless you start messing with them.
Ohh could you share how to do that? I resorted to removing the other drive physically
It was a couple months ago that I set this all up, but this is the article I followed IIRC: https://woshub.com/how-to-repair-deleted-efi-partition-in-windows-7/
That doesn't matter, though. You can add a thousand bootloaders to a thousand disks. They just need to have a unique name. Windows installs itself to the UEFI "I don't know what else to try, let's boot this instead" bootloader which is rather silly, but Grub and systemd-boot don't. They'll just create their own little partition to chill out in.
If the entry was removed from the BIOS, the UEFI config probably got lost. There's a good chance the bootloader is still installed on the disk but not listed as a notable option in the UEFI firmware variables.
You can fix this with efibootmgr or its Windows equivalent. I don't know the exact commands, but I would go for the Windows version because it also sets a bunch of other environment variables when setting up the boot parameters.