Linux(Fedora 20) EFI 啟動Windows出錯 \EFI\Microsoft\Boot\bootmgfw.efi is missing

來源:互聯網
上載者:User

標籤:io   os   使用   檔案   sp   on   問題   ad   linux   

電腦是雙系統,Windows 8.1+Fedora 20,安裝Fedora時,磁碟上增加了新的EFI System分區,由於本來Windows也有EFI System分區,就出現了兩個EFI System分區,從Fedora的EFI啟動Fedora不會有問題,但是啟動Windows就會出現“\EFI\Microsoft\Boot\bootmgfw.efi is missing”,原因是Windows引導程式根本就沒在Fedora的EFI System分區,要正常啟動Windows,可以在UEFI設定(類似以前的BIOS)中,使用Windows的EFI,既可以啟動Windows,也可以啟動Fedora。要通過Fedora的EFI,我們要知道Windows的EFI System分區安裝位置,使用fdisk命令,能得到分區資訊,其中“dev/sda2       2050048      2582527   260M EFI System”,就告訴我的Windows的EFI System分區位置。解決方案1,找到修改“/boot/efi/EFI/fedora/grub.cfg”檔案,添加”set root=‘hd0,gpt2‘“(去掉不帶引號),重啟就行。

### 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 ###

這種方法出現一個問題,因為grub.cfg檔案根據/etc/grub.d/中的檔案產生,如果運行”grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg“重建檔案,你的修改就會失效。

解決方案2,根據grub.cfg中的資訊,能確定Windows Boot Manager根據/etc/grub.d/30_os-prober檔案產生,修改”/etc/grub.d/30_os-prober“檔案,找到,如下位置,添加”set root=‘hd0,gpt2‘“(去掉不帶引號),運行”grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg“,命令,重啟就行。

menuentry ‘$(echo "${LONGNAME}" | grub_quote)‘ {
EOF
   save_default_entry | grub_add_tab
   cat << EOF
   set root=‘hd0,gpt2‘
   chainloader /EFI/${DEVICE}
   boot
}

Linux(Fedora 20) EFI 啟動Windows出錯 \EFI\Microsoft\Boot\bootmgfw.efi is missing

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.