How do I add a Windows boot to grub?

I have a hard drive that has Windows installed on it. I tried installing Fedora on a new hard drive. Now I can choose in the Bios the disk from which the boot will take place and thus boot Windows or Fedora. However, I would like to see 2 operating systems in the bootloader at once and choose between them.

I tried doing this:

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

However, Windows is not detected. The output looks like this:

[root@localhost default]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-4.13.9-300.fc27.x86_64
Found initrd image: /boot/initramfs-4.13.9-300.fc27.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-45450d3854b84d8ba40c055b725c1f51
Found initrd image: /boot/initramfs-0-rescue-45450d3854b84d8ba40c055b725c1f51.img
done

What am I doing wrong and how do I add a selection two oss in the bootloader?

UPD:

Fedora loads in EFI, and Windows loads in Legacy

Author: aleksandr barakin, 2018-05-04

1 answers

In a simple way-nothing.

Grub can't load a single OS in Legacy and the other in Efi mode. The loader Windows can't do that either.

However, you can translate the loader Windows(the manual ) in Efi and then Grub will find both operating systems without problems(but no one promises a successful translation).

Alternative download options:

  1. Use a different download manager - rEFInd

  2. Most often, modern UEFI (BIOS) allows you to choose from what to load on some hotkey. In my case, during booting, you can press F11 and select the hard drive from which to load the system.

 2
Author: Viktorov, 2019-03-23 20:21:04