This question already has an answer here:

It shows this whenever I try to boot Windows from grub

error: can't find command 'drivemap'.
error: invalid EFI file path.

Press any key to continue...

I've tried the automatic boot repair and that didn't work. Anyone know how to fix this? I did make a seperate partition in my D drive for Ubuntu so Windows should still work.

Boot repair info here: http://paste.ubuntu.com/6840502/

marked as duplicate by karel, Eric Carvalho, Zanna, Charles Green, user364819 Jun 28 '17 at 18:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


What you need to do here is to run "boot repair" and you should see a new boot option for Windows to boot in "UEFI mode".

Alternatively, if this fails, try either the "re-partiton command" on your drive, or uninstall Ubuntu and re-install it.


You show both Windows & Ubuntu installed in UEFI mode. But you also have a BIOS Windows type boot loader in the MBR. If you try to boot in BIOS/Legacy/CSM mode it will not work.

You also ran the Boot-Repair "buggy" UEFI. Best no to run that unless you have confirmed that you only can boot Windows from UEFI menu and no ubuntu entry will work. That renames the Windows boot file to really be shim or grub and boot to grub menu. Then you only can boot Windows from grub menu as the bkpbootmgfw.efi. If you can boot ubuntu entry, in Boot-Repair:

To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair.

You have the older version of grub that has the os-prober bug. Entries created by os-prober are the old BIOS type and will never work. They look like this:

Windows 8 (loader) (on /dev/sda4)

grub2's os-prober creates wrong style (BIOS) chain boot entry Fixed with 13.10


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