I seem to have windows passing by on grub/Ubuntu. There's no Ubuntu folder under windows. I can boot from firmware to Grub, then choose either OS. Removed Wubi/ubuntu and re-installed directly to the same partitions..The windows Boot Mgr did not create an entry for Ubuntu, so I need to create the entry. Wubi puts wubildr.mbr on my system... the wrong thing for efi installs. I need the shimx64.efi so the created windows boot in efi might work.

I will make a copy of my boot with bcdedit, and point the entry to Ubuntu.

If this is incorrect, please tell me what to do next?

  • Just use bcdedit /v and copy it to paste here, pls? – WLC Mar 11 '16 at 14:42

If you want to add an UEFI entry for Ubuntu with bcdedit, you can use the following commands as administrator:

List all BCD entries for UEFI:

bcdedit /enum firmware

Copy UEFI entry of "Windows Boot Manager" to create a new entry for Ubuntu:

bcdedit /copy {bootmgr} /d "Ubuntu Secure Boot"

Set file path for the new Ubuntu entry. Replace {guid} with the returned GUID of the previous command.

bcdedit /set {guid} path \EFI\ubuntu\shimx64.efi

Set optionally Ubuntu as first entry in the boot sequence. Replace {guid} with the returned GUID of the copy command.

bcdedit /set {fwbootmgr} displayorder {guid} /addfirst

Alternatively, you can use a script which does the job for you:

@ECHO OFF
rem add Ubuntu EFI entry

bcdedit /enum firmware

for /f "tokens=2 delims={}" %%a in ('bcdedit /copy {bootmgr} /d "Ubuntu Secure Boot"') do set guid={%%a}
bcdedit /set %guid% path \EFI\ubuntu\shimx64.efi
bcdedit /set {fwbootmgr} displayorder %guid% /addfirst

bcdedit /enum firmware 
  • This might help. But The system start-up (Firmware) is already booting both the OS, as it should. It's just windows doesn't acknowledge Ubuntu. – WLC Mar 14 '16 at 16:07
  • bcdedit entries "Firmware Application (101fffff)" should be visible in Windows menu Advanced Startup Options->Use a device – hakuna_matata Mar 15 '16 at 21:41
  • bcdedit entries "Windows Boot Manager" as I used in my guide are not visible in this menu but the main function is to insert an entry to EFI menu of your firmware and change boot order if necessary – hakuna_matata Mar 15 '16 at 21:51
  • I tried the above commands. It indeed added a new entry, but adding it as first one (/addfirst) does not seem to be effective. It still boots Windows by default instead of grub. – fviktor Jan 4 '17 at 22:24

The easiest way for your intention should be EasyUEFI. EasyUEFI can create an entry for Ubuntu. \EFI\ubuntu\shimx64.efi is the right file path for that entry. If necessary, you can also change the boot order.

  • I do not have an Ubuntu folder under windows. – WLC Mar 14 '16 at 16:05
  • @WLC The folder \EFI\ubuntu is on the EFI partition. The EFI partition is hidden under Windows, but EasyUEFI should also see this hidden partition. – ngng Mar 14 '16 at 20:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.