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

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