Window is no longer listed in boot menu

Hi,

I just moved to Fedora and so far my experience has been Great!!
I have been using Ubuntu for many years and I wasn’t aware of the progressed done by Fedora. Such a great project, the quality of this distribution is beyond expectation…

The only part I didn’t manage to fix is the access to my Windows 10 partition. It was working as expected with Ubuntu, but when I installed Fedora I must have messed something and the menu item is no longer shown in boot.

I have read through the documentation and I re-installed the relevant packages and re-created grub.cfg:

dnf reinstall grub2-efi shim
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg

The menu shows 3 Kernels including one named recovery, but it doesn’t show Windows 10.
I have confirmed that I’m using EFI. I have run os-prober and it doesn’t have any output.

The result from lsblk is:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 1 0B 0 disk
sdb 8:16 1 0B 0 disk
zram0 252:0 0 8G 0 disk [SWAP]
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 260M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 93.4G 0 part
├─nvme0n1p4 259:4 0 1000M 0 part
├─nvme0n1p5 259:5 0 1G 0 part /boot
└─nvme0n1p6 259:6 0 381.3G 0 part /home
/

Partitions nvme0n1p2, nvme0n1p3 and nvme0n1p4 are related to Windows.

When installing Fedora Linux, did you make sure not to format nv...p1, your efi partition? If you formatted it, you lost the efi loader for Windows and os-prober can’t find it. If that’s the case, I think the solution is to start Windows recovery and tell it to reinstall the bootloader onto the efi partition.

Have a look at the content of /boot/efi/... and see if windows firmware is still present, or use efibootmgr -v.

Thanks for the answer augenauf.
I formatted mvme0n1p1. There is no windows in /boot/efi/.. Now I can see the problem.

The output from efibootmgr -v is:

>BootOrder: 0003,001D,0001,0000,001A,001B,001C,001E,001F,0020,0021,0022,0002
Boot0000* Windows Boot Manager	HD(1,GPT,f88c38c9-28ce-4264-b201-5c0bcc23757d,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...4................
Boot0001* ubuntu	HD(1,GPT,f88c38c9-28ce-4264-b201-5c0bcc23757d,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Linux-Firmware-Updater	HD(1,GPT,f88c38c9-28ce-4264-b201-5c0bcc23757d,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)\.f.w.u.p.d.x.6.4...e.f.i...
Boot0003* Fedora	HD(1,GPT,10f69d55-8787-42e4-b373-e514af1cd58c,0x800,0x82000)/File(\EFI\fedora\shimx64.efi)
Boot0010  Setup	FvFile(721c8b66-426c-4e86-8e99-3457c46ab0b9)
Boot0011  Boot Menu	FvFile(126a762d-5758-4fca-8531-201a7f57f850)
Boot0012  Diagnostic Splash Screen	FvFile(a7d8d9a6-6ab0-4aeb-ad9d-163e59a7a380)
Boot0013  Lenovo Diagnostics	FvFile(3f7e615b-0d45-4f80-88dc-26b234958560)
Boot0014  Asset Information	FvFile(da465b87-a26f-4c12-b78a-0361428fa026)
Boot0015  Regulatory Information	FvFile(478c92a0-2622-42b7-a65d-5894169e4d24)
Boot0016  ThinkShield secure wipe	FvFile(3593a0d5-bd52-43a0-808e-cbff5ece2477)
Boot0017  Startup Interrupt Menu	FvFile(f46ee6f4-4785-43a3-923d-7f786c3c8479)
Boot0018  Rescue and Recovery	FvFile(665d3f60-ad3e-4cad-8e26-db46eee9f1b5)
Boot0019  MEBx Hot Key	FvFile(ac6fd56a-3d41-4efd-a1b9-870293811a28)
Boot001A* USB CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,86701296aa5a7848b66cd49dd3ba6a55)
Boot001B* USB FDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,6ff015a28830b543a8b8641009461e49)
Boot001C* NVMe0	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,001c199932d94c4eae9aa0b6e98eb8a400)
Boot001D* USB HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,33e821aaaf33bc4789bd419f88c50803)
Boot001E* PXE BOOT	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,78a84aaf2b2afc4ea79cf5cc8f3d3803)
Boot001F* LENOVO CLOUD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,ad38ccbbf7edf04d959cf42aa74d3650)/Uri(https://download.lenovo.com/pccbbs/cdeploy/efi/boot.efi)
Boot0020* ON-PREMISE	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,ad38ccbbf7edf04d959cf42aa74d3650)/Uri()
Boot0021  Other CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a35400)
Boot0022  Other HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f600)
Boot0023* IDER BOOT CDROM	PciRoot(0x0)/Pci(0x14,0x0)/USB(11,1)
Boot0024* IDER BOOT Floppy	PciRoot(0x0)/Pci(0x14,0x0)/USB(11,0)
Boot0025* ATA HDD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,91af625956449f41a7b91f4f892ab0f6)
Boot0026* ATAPI CD	VenMsg(bc7838d2-0f82-4d60-8316-c068ee79d25b,aea2090adfde214e8b3a5e471856a354)

Wow, lots of entries…

Windows Boot Manager is supposed to be located in:

\EFI\Microsoft\Boot\bootmgfw.efi)

(see Boot0000).

If it is not there, you need to restore it using Microsoft tools.
Next time you install any OS in a dual-boot setup, don’t format the EFI partition (In Fedora’s installer, there is a checkbox for that).