[SOLVED] Boot order : Debian first

Help with issues regarding installation of Debian

[SOLVED] Boot order : Debian first

Postby Daguhh » 2017-09-05 10:23

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.
Daguhh
 
Posts: 8
Joined: 2017-09-04 18:14

Re: Boot order : Debian first

Postby Dai_trying » 2017-09-05 13:30

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
Dai_trying
 
Posts: 318
Joined: 2016-01-07 12:25

Re: Boot order : Debian first

Postby Daguhh » 2017-09-05 15:13

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
Daguhh
 
Posts: 8
Joined: 2017-09-04 18:14

Re: Boot order : Debian first

Postby Head_on_a_Stick » 2017-09-05 16:59

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
"Are you quite sure that all those bells and whistles, all those wonderful facilities of your so called powerful programming languages, belong to the solution set rather than the problem set?" — Edsger W. Dijkstra
User avatar
Head_on_a_Stick
 
Posts: 6577
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Boot order : Debian first

Postby Daguhh » 2017-09-06 07:15

Thanks a lot,

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

solved !
Daguhh
 
Posts: 8
Joined: 2017-09-04 18:14


Return to Installation

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable