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).

If this article helped you, I'd be grateful if you could share it on your preferred social network - it helps me a lot. If you're feeling particularly generous, you could buy me a coffee and I'd be super grateful :)

buy a coffee for simplehelp.net


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

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

  1. After step 8 computer skipped step 9 and step 10 came and after that it’s showing “Legacy windows detected. Please enable bios compatibility/csm/legacy mode in your uefi firmware and use this software from a live cd.
    What to do next.
    Please help

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

  3. 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 ?

  4. 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

Leave a Comment

Your email address will not be published.