I installed Fedora a while back and have been enjoying it. But sometimes i need to use Windows for some games etc. When i installed Fedora i might have done something wrong, because Windows is not listed in the bootloader. My disk drive has the following partitions:
/dev/nvme0n1p1 → EFI System Partition (fat16)
/dev/nvme0n1p2 → Microsoft reserved partition (unknown)
/dev/nvme0n1p3 → Basic Data partition (ntfs) ← The partition containing windows
/dev/nvme0n1p4 → (ntfs) ← I think its some recovery partition for windows
/dev/nvme0n1p5 → My fedora partition (ext4)
Not sure if its usable for helping me with this, but my Grub doesn’t show my Windows partition neither does my BIOS. Also running “sudo os-prober” returns nothing
How can i update grub to list my Windows 11 installation, and let me boot it?
OK, there’s no “Microsoft” directory there, so the Windows bootloader has been removed.
The easiest way to restore it is probably using Windows install media - but the easiest way to make that is to do so on a Windows machine. There are alternatives but they are more fiddly.
Do you by any chance have a Windows machine available, or is this your only machine?
Cool, so if you create a Windows 11 installation USB, you should be able to boot into that and select “repair this Windows installation” or similar to restore the bootloader.
After that, you should be able to boot into Windows from the BIOS, and os-prober should be able to detect the Windows installation so you can add it to Grub.
There’s some level of risk that Windows affects the Fedora bootloader. This is less of a risk on EFI systems than it used to be on MBR, but it has been known to happen (mostly through bad Windows updates). If that does happen, then it can be fixed from a Fedora live USB. There’s a guide to doing so, but no need to study that in advance - just posting it in case it’s needed for reference.