I had an installation of Windows 11, then I’ve installed Fedora 41 into another disk in its own partition. after the installation is done, I tried to boot into widnows from Grub entry but it brings me back into grub menu and fedora is not bootable too. but when I select fedora after rebooting it worked, windows still not bootable. can you help me fix this issue I spent days trying to find a solution but in vain. this my lsblk -f:
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
│
└─sda2
ntfs DATA 1608BFFE08BFDAC7
zram0
[SWAP]
nvme1n1
│
├─nvme1n1p1
│ vfat FAT32 A41A-F039 1002.7M 2% /boot/efi
├─nvme1n1p2
│ btrfs fedora a241bb70-9381-44e9-8564-5882b023b8c1 170.8G 4% /
├─nvme1n1p3
│ ntfs SSD_BACKUP 2C02A2A802A2770C
└─nvme1n1p4
swap 1 swap a4494e20-9ecd-40fc-bd33-50f4c1ad8473 [SWAP]
nvme0n1
│
├─nvme0n1p1
│ vfat FAT32 ESP 1224-1909
├─nvme0n1p2
│
├─nvme0n1p3
│ ntfs Acer 38C624D9C6249960
└─nvme0n1p4
ntfs Recovery CE78255378253B99
soft@fedora:~$ sudo fdisk -l
Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: ST1000LM048-2E71
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 259D5827-0EEF-430B-8C56-B98A9C848663
Device Start End Sectors Size Type
/dev/sda1 34 32767 32734 16M Microsoft reserved
/dev/sda2 32768 1953521663 1953488896 931.5G Microsoft basic data
Partition 1 does not start on physical sector boundary.
Disk /dev/nvme1n1: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: Fanxiang S770 2TB
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1F7F8F9A-B67B-4E4B-AD28-A622E4839B9B
Device Start End Sectors Size Type
/dev/nvme1n1p1 2048 2099199 2097152 1G EFI System
/dev/nvme1n1p2 2099200 377489407 375390208 179G Linux filesystem
/dev/nvme1n1p3 419463168 3907026943 3487563776 1.6T Microsoft basic data
/dev/nvme1n1p4 377520128 419463167 41943040 20G Linux swap
Partition table entries are not in disk order.
Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: WDC PC SN530 SDBPNPZ-512G-1114
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1E78DF81-E2B8-4301-B5B7-F8C5DE1761BD
Device Start End Sectors Size Type
/dev/nvme0n1p1 2048 534527 532480 260M EFI System
/dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
/dev/nvme0n1p3 567296 998117375 997550080 475.7G Microsoft basic data
/dev/nvme0n1p4 998117376 1000214527 2097152 1G Windows recovery environmen
Disk /dev/zram0: 8 GiB, 8589934592 bytes, 2097152 sectors
Units: sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
and this is the content of 40_custom file:
GNU nano 8.1 /etc/grub.d/40_custom
#!/usr/bin/sh
exec tail -n +3 $0
menuentry "Windows 11" {
insmod part_gpt
insmod fat
search --no-floppy --fs-uuid --set=root 1224-1909
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}