Ubuntu – Grub errors during UEFI dual boot for Windows 8 (can’t find command ‘drivemap’)

dual-bootuefiwindows 8

I have got a newly bought ASUS N56V with Windows 8 preinstalled.

I needed to install Ubuntu so i partitioned the disk and after having disabled the Secure Boot option from Windows 8 i successfully installed Ubuntu 12.10 from a Live USB. The problem is that if i try to access both to Windows 8 (loader) and Windows Recovery System (loader) from the GRUB menu, these two errors show: can't find command 'drivemap' and invalid EFI file path and it goes back to the grub menu.

In conclusion I do not have access to my Windows 8 partition but can only use Ubuntu. How can I solve the problem? I am pretty new to the matter.

Thank you!

Best Answer

I had this issue as well. I followed the instructions here:


The curveball is that I could not edit grub.cfg directly, as on my machine it is generated by the grub-mkconfig command. I added the 'menuentry "Windows ..." { ... }' to /etc/grub.d/40_custom

The downside is that the windows entry that works is below all the windows entries that don't. But the upside is that one of the windows entries works, so I'll live with it.