Grub2 and os-prober can't detct windows 11 installation. How to fix this?

I have been trying for a few hours to set up grub2 to recognize windows11. I don’t understand why but os-prober can’t find it either. I can boot to windows11 from my bios and I don’t have any issues there.

In my system windows is installed in nvme0n1p3
lsbk output:

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0   1.8T  0 disk 
├─sda1        8:1    0   549M  0 part 
└─sda2        8:2    0   1.8T  0 part 
sdb           8:16   0 223.6G  0 disk 
├─sdb1        8:17   0     1G  0 part /boot
└─sdb2        8:18   0 222.6G  0 part /home
                                      /
sdc           8:32   0 223.6G  0 disk 
├─sdc1        8:33   0    16M  0 part 
└─sdc2        8:34   0 223.6G  0 part 
zram0       252:0    0     8G  0 disk [SWAP]
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0    16M  0 part 
├─nvme0n1p2 259:2    0   100M  0 part 
├─nvme0n1p3 259:3    0 465.1G  0 part 
└─nvme0n1p4 259:4    0   583M  0 part 
nvme1n1     259:5    0 953.9G  0 disk 
├─nvme1n1p1 259:6    0    16M  0 part 
└─nvme1n1p2 259:7    0 953.9G  0 part 

When I execute:

sudo grub2-mkconfig -o /boot/grub2/grub.cfg

I get:

Generating grub configuration file ...
Adding boot menu entry for UEFI Firmware Settings ...
done

OSs windows11 and Fedora 36
Thank you!

Welcome to ask.fedora @dinodonuts

I guess you update the wrong grub.cfg … se here and try the command proposed:

You should check the solution posted here

@ilikelinux Fedora uses /boot/grub2/grub.cfg since this change in F34

2 Likes