Linux (Fedora) EFI startup Windows Error \efi\microsoft\boot\bootmgfw.efi is missing

Source: Internet
Author: User

The computer is a dual system, Windows 8.1+fedora 20, when you install Fedora, a new EFI system partition is added to the disk, and two EFI system partitions appear because Windows also has an EFI system partition. Booting fedora from the EFI in Fedora will not be a problem, but starting Windows will show "\efi\microsoft\boot\bootmgfw.efi is Missing", The reason is that Windows Bootstrapper is not in the EFI system partition of Fedora at all, to start Windows normally, you can use the Windows EFI in Uefi settings (similar to the previous BIOS), you can start Windows, Fedora can also be started. To go through the EFI of Fedora, we need to know the installation location of the EFI system partition of Windows, using the FDISK command to get the partition information, where "Dev/sda2 2050048 2582527 260M EFI System", Sue me for the EFI System partition location of Windows. Workaround 1, find the Modify "/boot/efi/efi/fedora/grub.cfg" file, add "set root= ' Hd0,gpt2 '" (remove without quotation marks), restart the line.

# # # Begin/etc/grub.d/30_os-prober # #
Menuentry ' Windows Boot Manager ' {
Set root= ' Hd0,gpt2 '
Chainloader/efi/microsoft/boot/bootmgfw.efi
Boot
}
# # # End/etc/grub.d/30_os-prober # #

There is a problem with this approach because the Grub.cfg file is generated from the files in/etc/grub.d/, and if you run "Grub2-mkconfig-o/boot/efi/efi/fedora/grub.cfg" to regenerate the files, your modifications will be invalidated.

Workaround 2, depending on the information in Grub.cfg, can determine that the Windows Boot Manager generates from the/etc/grub.d/30_os-prober file, modifies the "/etc/grub.d/30_os-prober" file, finds, In the following location, add "set root= ' Hd0,gpt2 '" (without the quotation marks), run "Grub2-mkconfig-o/boot/efi/efi/fedora/grub.cfg", command, restart the line.

Menuentry ' $ (echo "${longname}" | grub_quote) ' {
Eof
Save_default_entry | Grub_add_tab
Cat << EOF
Set root= ' Hd0,gpt2 '
Chainloader/efi/${device}
Boot
}

Linux (Fedora) EFI startup Windows Error \efi\microsoft\boot\bootmgfw.efi is missing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.