2017年2月4日 星期六

Windows Ubuntu duel boot setting

Windows 10 自從更新後,會把 Ubuntu 的 grub menu 覆蓋掉,導致無法開啟 Ubuntu。以下為我找到的有效的解決方法:
來源:http://askubuntu.com/questions/666631/how-can-i-dual-boot-windows-10-and-ubuntu-on-a-uefi-hp-notebook/666632#666632



I can present to you a simple hack for this problem, use it if none of the legit solutions solved your problem.
As Windows keeps changing the boot order, the hack is to trick Windows to recognize Ubuntu grub as Windows boot file i.e. bootmgfw.efi
Part 1: Accessing EFI folder on Windows
Open cmd as administrator and mount the EFI folder to access it. Execute the following commands one by one. Below I have assigned letter g to the mount, make sure you assign a unassigned letter in your PC.
mountvol g: /s
g:
cd EFI\
You should see a Microsoft folder and Ubuntu folder within EFI.
Part 2: Copy grubx64.efi from Ubuntu to Microsoft\Boot\ as bootmgfw.efi
First create a backup of bootmgfw.efi
cd Microsoft\Boot\
rename bootmgfw.efi bootmgfw_.efi
Now do the copy and rename.
copy g:\EFI\ubuntu\grubx64.efi g:\EFI\Microsoft\Boot\
rename grubx64.efi bootmgfw.efi
Part 3: Unmount the EFI folder
Execute the following commands one by one.
c:
mountvol g: /d
Now reboot your PC and you should see Ubuntu GRUB load up which should have an option Windows UEFI loader to boot Windows as well.

沒有留言:

張貼留言

歡迎發表意見