I recently installed Ubuntu 14.04 (First time linux user) on my HP Envy and have been trying to get the dual boot to work. I've looked around and have tried running the boot repair (here are the results) but it still says the boot files are far from the start of the disk. I also ran the efibootmgr and have this:

BootCurrent: 0000 
Timeout: 0 seconds
BootOrder: 3002,3000,3001,2001,2002,2003
Boot0000* ubuntu    HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\ubuntu\shimx64.efi)
Boot0001* Ubuntu    HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\ubuntu\grubx64.efi)RC
Boot0002* Windows Boot Manager  HD(2,c8800,82000,a0d91f49-899b-46ac-8863-35f2d16774c4)File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot2001* USB Drive (UEFI)  RC
Boot2002* Internal CD/DVD ROM Drive (UEFI)  RC
Boot3000* Internal Hard Disk or Solid State Disk    RC
Boot3001* Internal Hard Disk or Solid State Disk    RC
Boot3002* Internal Hard Disk or Solid State Disk    RC
Boot3003* Internal Hard Disk or Solid State Disk    RC
Boot3004* Internal Hard Disk or Solid State Disk    RC
Boot3005* Internal Hard Disk or Solid State Disk    RC
Boot3006* Internal Hard Disk or Solid State Disk    RC
Boot3007* Internal Hard Disk or Solid State Disk    RC
Boot3008* Internal Hard Disk or Solid State Disk    RC
Boot3009* Internal Hard Disk or Solid State Disk    RC
Boot300A* Internal Hard Disk or Solid State Disk    RC

Which by the looks of it looks very messy and is not putting the efi files at the start. Any suggestions as to how I should go about this issue?


4 Answers 4


First, a complaint that boot files are far from the start of the disk is irrelevant on an EFI-booting computer. There are limits under BIOS (which vary depending on how old the BIOS is), but even under a (modern) BIOS, your 750GB disk should pose no problems.

Second, you can change the BootOrder variable with efibootmgr's -o option, as in:

sudo efibootmgr -o 0,1,2

This command will set the two ubuntu instances first, followed by the Windows Boot Manager entry. That should do the trick. Unfortunately, some EFIs are buggy, and "forget" the BootOrder entry or otherwise misbehave. If you have problems, I recommend trying the following command in a Windows Administrator Command Prompt window:

bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi

(If you've disabled Secure Boot, you can replace shimx64.efi with grubx64.efi, although either should work with Secure Boot disabled.)

If that fails, then your firmware is probably defective. There may be an update available from HP. If not, or if it doesn't help, and if you're within the return period for your computer, return it for a refund and get something that's not broken. If you can't do that, then you're into the territory of really ugly workarounds, like renaming GRUB so that it pretends to be the Windows boot loader. See here for some information on that topic, albeit written specifically for rEFInd. The basic principles apply to anything, though.

  • 2
    It could be good to look at the current boot settings with bcdedit /enum firmware, that will provide some reassurance before proceeding with the bcdedit /set command above. Apr 8, 2017 at 9:58
  • thanks a lot for the link
    – Yvain
    Sep 27, 2021 at 0:14

If you go into your BIOS options where you see just osmanager and USB, disk, etc. You have to highlight the osmanager and press enter you will get a menu of Ubuntu windows and any other distro. Use f5 and f6 to rearrange to your liking and click f10 to save it. If you use multi boot and only see one Linux distro in your grub menu, enter Linux and use

sudo grub-update 
  • I am not sure why this got so many downvotes, but I can confirm that this worked for me. I tried Rod Smith's suggestion above, but the settings would not save on reboot. I have an HP 15-ac180ca laptop and under the UEFI Boot Order there is a sub menu called "OS boot Manager". Under here I was able to switch from "Windows Boot Manager" to "ubuntu" and now can access grub and boot into Ubuntu.
    – kojow7
    Oct 5, 2016 at 15:16
  • I was searching this from many days. Thank yew ❤ +1
    – user1114053
    Aug 7, 2020 at 19:41
  • Worked in HP-15s
    – user1114053
    Aug 7, 2020 at 19:41
  • Worked on my HP Notebook PC, too. That's probably the way to go on HP laptops (at least around the years 2020-2023).
    – brandizzi
    Dec 15, 2022 at 9:57

In my case the solution was:

sudo su
cd /boot/efi/EFI
mv BOOT BOOT_bak
cp -R ubuntu BOOT
mv shimx64.efi bootx64.efi

Thanks to idimopoulos from dell forum

  • awesome, that's the answer! Nov 11, 2019 at 23:02
  • 1
    Didn't work on HP Models.
    – user1114053
    Aug 7, 2020 at 19:35
  • Works perfect, tested on Open Suse 15. Thanks man!
    – gaspar
    Jul 21, 2022 at 13:35

In a similar case (with a HP250G7 laptop) changing the boot order fails, but inactivating all Windows entries (0000, 0002) helps:

$efibootmgr -b 0 -A

$ efibootmgr -b 2 -A

$ efibootmgr

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0000,0003,2001,2002,2004
Boot0000  Windows Boot Manager
Boot0002  Windows Boot Manager
Boot0003* debian
Boot2001* EFI USB Device
Boot3000* Internal Hard Disk or Solid State Disk

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .