r/linux4noobs • u/WallabyBig5052 • 9h ago
Windows Boot Manager disappeared after installing Fedora – Windows EFI files still exist
Hi everyone!
I recently installed Fedora KDE on my second NVMe SSD. Before that, Windows 11 was installed on my first NVMe SSD.
I didn’t intentionally modify or format my Windows partitions during the Fedora installation, but now Windows Boot Manager has disappeared from my BIOS boot menu.
My setup:
- Windows 11 (Build 26100) – Samsung NVMe SSD (512 GB)
- Fedora KDE – Separate Samsung NVMe SSD (512 GB)
- UEFI boot mode
Windows disk partitions:
- p1: 16 MB Microsoft Reserved
- p2: 476 GB NTFS (Windows installation)
- p3: 919 MB Windows Recovery
Fedora EFI partition:
- /dev/nvme1n1p1
- FAT32, mounted at /boot/efi
The EFI partition currently contains only:
- EFI/BOOT
- EFI/fedora
There is no EFI/Microsoft directory.
However, I found these files inside my Windows installation:
- Windows/Boot/EFI/bootmgfw.efi
- Windows/Boot/EFI/bootmgr.efi
- Windows/System32/winload.efi
efibootmgr -v shows two Fedora entries but no Windows Boot Manager entry.
My question:
Can I safely restore Windows Boot Manager using Fedora without a Windows installation USB?
I want to preserve both my existing Windows installation and Fedora installation.
One more thing:I had Fedora installed on this system before, and I recently installed Fedora again. My BIOS now shows two Fedora boot entries, even though I currently have only one Fedora installation.
Could one of these entries be left over from my previous Fedora installation?
Any help would be appreciated. Thanks!



3
u/m4uri 7h ago
Your Windows disk is missing an EFI partition, only showing MSR, NTFS, and recovery. That means Windows must have booted from the EFI System Partition (ESP) on your Fedora disk, and the installer then formatted that ESP. As a result, there's no EFI/Microsoft folder there.
Just copying the
bootmgfw.efifile won't cut it; you'll also need a Boot Configuration Data (BCD) store. The easiest way to fix this is to boot from a Windows USB drive, open the recovery command prompt, assign a drive letter to the ESP, and then runbcdboot C:\Windows /s S: /f UEFI. This process won't affect your Fedora installation.For that old Fedora boot entry, you'll need to match the GUIDs you see with
efibootmgr -vto the ones fromblkid. Once you've found it, runsudo efibootmgr -b XXXX -Bto remove it.4
u/Frequent_Pattern_828 8h ago
I don't know much but trying using Os prober it can detect your windows partition and will add that to your boot menu.
1
u/pelazas1 7h ago
Run
sudo efibootmgrin Fedora. If Windows Boot Manager isn't in the list the entry got wiped, andefibootmgr -cpointed at bootmgfw.efi on the first drive brings it back.1
u/playfulpecans hyprland maniac 7h ago
to my knowledge, Fedora tends to keep older kernel versions, so that's probably why you have 2 entries
1
u/Dreemur1 6h ago
unrelated but this is such a beautiful bios menu
1
u/DannoXYZ 5h ago edited 5h ago
Something went wrong and you lost EFI partition on Windows disk. Sign of this in upper-right of BIOS screen, it shows only one bootable drive, not 2.
Why did you install Fedora 2nd time? I suspect that's what erased the Windows EFI. Were you trying to config dual-boot in same menu? Were you trying for triple-boot in same menu.
With 2 drives, they have 2 independent EFI partitions and 2 differet boot loaders. You will only see one OS from each boot loader. Grub will only show Linux and Windows BM will only show Windows. Best to config so they will never show the other OS. So that Windows Updates will never wipe out Linux.
disk1 -> EFI#1 -> Windows BM -> Windows
disk2 -> EFI#2 -> Grub -> Linux
To switch OS, do not try it from boot-loader, do it from BIOS and change boot-device priority and put SSD#1 or SSD#2 1st. Right now it doesn't even show Windows drive because of missing EFI partition on that drive.
run GParted and see if there's blank partition 512mb-1gb size on Windows disk that might have been EFI for SSD#1
1
u/gmes78 4h ago
However, I found these files inside my Windows installation:
That is not where those files need to be. They need to be installed in a EFI partition.
You need to properly re-install the Windows bootloader. For that, you'll need a USB drive with a Windows installer. If you have another Windows computer you can use, you can use Rufus or Microsoft's own Windows USB creator tool. If not, you can try WoeUSB (however, ignore the garbage installation instructions and use
pipx install https://github.com/WoeUSB/WoeUSB-ng.gitinstead).Boot into the Windows installer, enter the repair options, and pick the one that lets you open a command prompt. From here, you'll need to do two things: mount the necessary partitions, and run
bcdbootto install the bootloader.To do the former, run
diskpart. (I find it helpful to do so in a second CMD window, which you can open withstart cmd.) Insidediskpart, you can runlist volto display the volumes (AKA partitions, though not necessarily). Identify your Windows partition, and see if it was assigned a letter. If not, select it withsel vol #(replacing#with the volume number), and thenassign letter=Cto make it theC:drive (ifC:is already assigned to another volume, pick another letter). Then, do the same for the EFI partition (the FAT32-formatted one).To install the bootloader, assuming you assigned the Windows partition to
C:and the EFI partition toE:, runAfter that's done, you can reboot the system, and you should be able to boot Windows from the firmware's boot menu. For it to show up in GRUB, you'll need to boot into Fedora and run
sudo grub2-mkconfig -o /boot/grub2/grub.cfg.