Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Boot order : Debian first

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Daguhh
Posts: 10
Joined: 2017-09-04 18:14

[SOLVED] Boot order : Debian first

#1 Post by Daguhh »

Hi everyone,

I got a dual boot debian 9 / windows 10
I'm trying to make my computer boot automaticly on Debian at startup,
But it keeps booting on Windows by defaut.
I try to reset efi boot option, reinstall grub and install refind
but windows keep winning the startup battle
So I got at each startup to press F12, select debian to enter in grub and select debian (selected by default)

In "F2" menu at boot i got :
- HDD
- Winddows boot manager
- ...

In "F12" menu at boot I got :
- windows boot manager
- refind
- debian
- unknown device

how to changer the order in the "F12" menu?

Thanks,

David
Last edited by Daguhh on 2017-09-06 07:16, edited 1 time in total.

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Boot order : Debian first

#2 Post by Dai_trying »

In your UEFI (formerly BIOS) settings ther might be an option to move entries up or down the "pecking order" I have this option on my Dell laptop and it is very useful.
If you cannot find (or don't have) it then you can use efibootmgr to move entries up or down, but do not think that BOOT0000 will boot first, look at the BootOrder line which will give you the current order of events.
You can just type efibootmgr from that command line to list this information and then you can check the man pages (look for -o option) for information on changing the order.

HTH

Daguhh
Posts: 10
Joined: 2017-09-04 18:14

Re: Boot order : Debian first

#3 Post by Daguhh »

Thank you very much,
that's exactly such command I was looking for,

effectively, I can't change boot entry from the BIOS (only boot order of devices) (acer aspire V)
so I try the command you suggest me :

Code: Select all

david@pc24:~$ sudo efibootmgr
[sudo] Mot de passe de david : 
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0003,0000,0001,0002,2001,2002,2003
Boot0000* debian
Boot0001* rEFInd Boot Manager
Boot0002* Unknown Device: 
Boot0003* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
So, I try to put debian first :

Code: Select all

david@pc24:~$ sudo efibootmgr -o 0,3
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0003
Boot0000* debian
Boot0001* rEFInd Boot Manager
Boot0002* Unknown Device: 
Boot0003* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network
(I tried several entry : order all devices, write "0000" or "0")
But my computer still boot on windows and boot order came back to first state,
next I try :

Code: Select all

sudo efibootmgr -n 0000
which set 0000 for next boot
And it works, I find this quite strange but I assume that a start

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: Boot order : Debian first

#4 Post by Head_on_a_Stick »

Daguhh wrote:I'm trying to make my computer boot automaticly on Debian at startup,
But it keeps booting on Windows by defaut
Your motherboard's UEFI firmware is defective and will only boot Microsoft's .efi loader, see this link for more details:

http://www.rodsbooks.com/efi-bootloader ... ive-naming

I would recommend running this command from your Windows system (with Administrator privileges):

Code: Select all

bcdedit  /set "{bootmgr}" path "\EFI\debian\grubx64.efi"
This will force the Windows bootmanager to chainload Debian's GRUB.

You may find this is reset after major Windows updates, this link explains how to set a startup script in Windows to run the `bcdedit` command at every boot:

https://wiki.archlinux.org/index.php/Un ... boot_order
deadbang

Daguhh
Posts: 10
Joined: 2017-09-04 18:14

Re: Boot order : Debian first

#5 Post by Daguhh »

Thanks a lot,

It's working perfectly,
I set the startup sript in windows too,

solved !

Post Reply