How to Fix the “can’t find command drivemap” Error After Installing Ubuntu

If you’re recently installed Ubuntu alongside Windows 8 (dual-boot) and now get the errors: “can’t find command ‘drivemap'” and “invalid EFI file path” when you try to start Windows, this tutorial will explain how to fix it.

ubuntu boot error message

  1. Start out by booting back into Ubuntu.
  2. Once you’re at the Ubuntu Desktop, click the Search button from the Toolbar.
  3. Type the word terminal into the space provided, and then click the Terminal icon in the Applications list.
  4. Paste in the following line of text:

    sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

    and hit Enter/Return on your keyboard.

  5. Enter your password when prompted. A message will appear asking you to confirm you want to install this software. Hit Enter (or Return) again.

  6. click to enlarge

  7. A bunch of text will scroll by.

  8. click to enlarge

  9. When the command prompt returns again, enter the command:

    sudo apt-get install -y boot-repair && (boot-repair &)

    and enter your password again, if prompted.


  10. click to enlarge

  11. Once the installation has completed, the Boot Repair utility will launch and do a quick scan.
  12. It’s likely that a EFI detected message will appear. Click OK.
  13. Click the Recommended repair (repairs most frequent problems) button.
  14. Give the utility a minute or two to do its thing.
  15. Click OK when it’s done.
  16. Restart your PC by selecting the Power “cog” in the upper-right corner of your Ubuntu desktop and then click Shut Down… Restart your computer.
  17. This time when it boots, you’ll notice a number of ‘new’ entries. Select Ubuntu if you want to boot into and use Ubuntu. Use the down arrow key on your keyboard to scroll down to Windows Boot UEFI Loader to boot into and use Windows 8. All of the other entries in this list can be ignored.
  18. If this didn’t solve your problem, head over to the Ubuntu Support Community and sign up for their forums. If you compose a detailed explanation of your problem and the steps you’ve tried so far to resolve it, someone will help you (it’s a very supportive and helpful community).
{ 10 comments… add one }
  • mayankjoin August 14, 2013, 7:32 pm

    Thanks it worked !!!

  • 123 August 23, 2013, 2:21 pm

    You’re the best!

  • Jelly August 26, 2013, 10:17 pm

    Thank you SOOOOOO MUCH. I am fairly new to linux been working with windows my entire life and really wanted to give linux a try without completely losing windows 8. Ubuntu works flawless on the Samsung Series 7 with a i7 and touch screen btw :P

  • Pierre September 19, 2013, 2:36 pm

    Thank you so much !!!

  • jb November 13, 2013, 4:48 pm

    Thanks a lot ! THAT was helpful !!!

    I just wanted to mention that between the 11th and the 12th steps, I was asked several questions (to all of which I answered yes) and were told to copy some command lines in the shell, which I did as written. Worked like a charm !

    Is there a way now to set the default line in grub on the “Windows Boot UEFI loader” entry without having the same error again ?

  • asc November 16, 2013, 3:03 pm

    Thank you! Works fine! Really thaks, man!

  • dk November 22, 2013, 5:44 am

    Thank you ………….!!!!!!

  • Darko October 18, 2018, 6:43 am

    I didnt get the “EFI detected” message but it still worked! Thanks bro, saved my gaming *word i cant use huehue*

Leave a Comment