Hi,
I used to dual-boot Fedora + Windows, but have recently wanted to try out Kinoite. This created a few unexpected issues:
- I was unable to boot into Windows
- I was unable to boot into Windows from
GRUB
Some details:
- Number of drives: 2
- Fedora was installed on 1 drive, Windows on the other one
- Number of EFI partitions: 1
Issue #1: Re-adding Windows to the EFI partition
Requirement: Windows Installation Media (e.g. some flash drive)
While installing Fedora Kinoite, I wiped the EFI partition. To fix this:
- Boot into Windows Installation Media
- Press
Shift + F10 - Run
Bcdboot <drive letter>:\Windows
Note: please read Microsoft’s docs on this: BCDBoot Command-Line Options | Microsoft Learn
Issue #2: Re-adding Windows to the Grub menu
Based on what I read on this thread, and specifically this answer How to modify Grub under an Atomic spin? - #9 by pramodvu1502, I attempted to add a new entry to /boot/loader/entries/.
I have attempted several different examples (some based on this blscfg (GNU GRUB Manual 2.14)), but I was never able to get the entry to show up on GRUB.
So, in the end, the workaround I ended up going for was through the /boot/grub2/user.cfg file:
...
menuentry "Windows Boot Manager" --id=windows {
insmod chain
search --no-floppy --fs-uuid --set=esp_path_placeholder XXXX-XXXX
chainloader ($esp_path_placeholder)/EFI/Microsoft/Boot/bootmgfw.efi
}
This feels brittle: a global variable is set for the sole purpose of being used in the next command + I’m afraid this might break in the future.
Ideally, I would like to add an entry for windows via the BLS entries (/boot/loader/entries/windows.conf), but I was never able to get it to show on my GRUB menu, nor was I able to reach any logs that would show me why this entry wasn’t shown in the first place (what was wrong with my configs).
tl;dr is it possible to add a Windows BLS entry which GRUB can load?
Thanks in advance!