cancel
Showing results for 
Search instead for 
Did you mean: 
This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
Highlighted
New member
2 2 0 0
Message 31 of 36
1,764
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

Hmm okay, yeah that doesn't sound too efficient.

I switched it back, so the path to {bootmgr} is :
\EFI\Microsoft\Boot\windows.efi
 
following what you recommend and creating a new entry using:
efibootmgr -c -l \\EFI\\Boot\\bootx64.efi
 
my efibootmgr -v looks like:
 
 
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,3001,2001,2002,2003
Boot0000* Linux HD(1,800,c8000,6b983293-3b68-4525-b8ae-ec0d47f65886)File(\EFI\Boot\bootx64.efi)
Boot0001* Ubuntu HD(2,c8800,82000,b45593a3-9f4e-4985-a508-357c6af08804)File(\EFI\ubuntu\grubx64.efi)RC
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3001* Internal Hard Disk or Solid State Disk RC
 
 
This works and goes directly to grub only for the next time I restart the computer. The 0000 entry gets deleted after that.
 
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 3001,2001,2002,2003
Boot0001* Ubuntu HD(2,c8800,82000,b45593a3-9f4e-4985-a508-357c6af08804)File(\EFI\ubuntu\grubx64.efi)RC
Boot2001* USB Drive (UEFI) RC
Boot2002* Internal CD/DVD ROM Drive (UEFI) RC
Boot3001* Internal Hard Disk or Solid State Disk RC
 
 
One thing that I'm not sure may be an issue is that, in windows, when I do not mount the S: drive, I can find bootmgfw.efi (but it is deleted when I mount S: and so is bootx64.efi)
C:\Windows\Boot\EFI>dir
 Volume in drive C has no label.
 Volume Serial Number is 6C90-07AD

 Directory of C:\Windows\Boot\EFI

12/14/2015  05:43 PM    <DIR>          .
12/14/2015  05:43 PM    <DIR>          ..
08/22/2013  10:36 AM    <DIR>          bg-BG
10/01/2015  08:26 AM             4,391 boot.stl
06/14/2014  07:00 AM         1,617,240 bootmgfw.efi
06/14/2014  07:00 AM         1,614,168 bootmgr.efi
08/22/2013  10:36 AM    <DIR>          cs-CZ
08/22/2013  10:36 AM    <DIR>          da-DK
08/22/2013  10:36 AM    <DIR>          de-DE
I have tried deleting from here but I cannot.
Thank you for the help.
0 Kudos
Highlighted
Level 2
13 12 0 10
Message 32 of 36
1,751
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

Huh, you don't have a Windows entry to begin with.

So your problem is the existence of the EFI/Microsoft/boot/bootmgfw.efi file. It sometimes seems to get recreated, but just try deleting it several times (from either Windows or Linux), and it should eventually go away. Delete the entry 0000 every time. Once that file is gone, the boot entry 0000 will no longer be recreated.

 

0 Kudos
Highlighted
New member
5 4 0 0
Message 33 of 36
1,070
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

At last , this worked for me 😌
0 Kudos
Highlighted
New member
5 4 0 0
Message 34 of 36
1,069
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

At last this worked for me 😌
0 Kudos
New member
5 4 0 0
Message 35 of 36
1,066
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

At last , this worked for me 😌

0 Kudos
Highlighted
New member
1 1 0 0
Message 36 of 36
833
Flag Post
HP Recommended

Changing Boot Order on Dual Boot Windows 8 and Ubuntu

I'm on a HP g6-2314 sp and it worked for me with some variations in some steps!

 

I have inserted a step 4.1. to try to prevent Windows Boot Loader to replace grub:

bcdedit /set {current} recoveryenabled No

 

Instead of your steps 6 and 7, I've done:

 

6. Check all linux and efi entries with: sudo efibootmgr -v

delete all the entries from efibootmgr (linux and windows entries):

sudo efibootmgr -b <code_of_entry> -B

 

7. Add grub boot entry to efi so it stays at 0000 position: (I'm using debian and the efi is in /dev/sda2. This means that the efi is in partition 2 so I need to make sure to set flag -p 2 to create new entry in efi with efibootmgr. I also give it a label "Windows 10" to prevent windows from replacing it)

The command is something like this:

sudo efibootmgr -c -l \\EFI\\debian\\grubx64.efi -p 2 -L "Windows 10"

 

8. Exactly as GreatEmerald has!

 

Thanks a lot.

0 Kudos
This topic has been archived. Information and links in this thread may no longer be available or relevant. If you have a question create a new topic by clicking here and select the appropriate board.
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation