Dual boot fedora between and windows
My notebook had windows 10 and ubuntu 15.04 in dual boot in uefi mode. Then I tried to replace ubuntu by fedora 22. Ubuntu boot loader was installed in /boot/efi, but I formatted that partition when I was installing fedora. Now I was unable to access windows but its files are all current installed. Is there anyway to make fedora recognize windows or recovery the windows boot loader?
I tried Boot-Repair by using a bootable iso of ubuntu, but I get the following message "GPT detected. Please create a BIOS-Boot partition” error when using boot-repair".
Then I tried to edit the /etc/grub.d/40_custom by adding this entry:
menuentry 'Microsoft Windows 10' {
set root='hd1,gpt'
chainloader \\EFI\\Microsoft\\Boot\\bootmgfw.efi
boot
}
and running grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg. But it did not work.
Could anyone help?
Thanks. The output of the command efibootmgr -v is:
BootCurrent: 0002
Timeout: 0 seconds
BootOrder: 0002,0003,0004,000B,000C,0007,0001,0005,0006
Boot0001* UEFI:CD/DVD Drive BBS(129,,0x0)
Boot0002* Fedora HD(1,GPT,03c2bf33-6dd6-4795-b409-ec77b3f6a7cf,0x800,0x32000)/File(\EFI\fedora\shim.efi)
Boot0003* Fedora HD(1,GPT,03c2bf33-6dd6-4795-b409-ec77b3f6a7cf,0x800,0x32000)/File(\EFI\FEDORA\shim.efi)
Boot0004* Windows Boot Manager HD(1,GPT,03c2bf33-6dd6-4795-b409-ec77b3f6a7cf,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)
Boot0005* UEFI:Removable Device BBS(130,,0x0)
Boot0006* UEFI:Network Device BBS(131,,0x0)
Boot0007* Windows 10 VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot000B* UEFI OS HD(1,GPT,03c2bf33-6dd6-4795-b409-ec77b3f6a7cf,0x800,0x32000)/File(\EFI\BOOT\BOOTX64.EFI)
Boot000C* UEFI: KingstonDT 101 G2 PMAP PciRoot(0x0)/Pci(0x1d,0x0)/USB(1,0)/USB(3,0)..BO
It looks like your partition number is missing form the
set root
line? egset root=(hd1,gpt4)
or some such…I've got just the same problem right now, have you worked it out?