Dual booting automatically selecting the windows for booting by default

hello!!
Its my first post here
i am the using the endavour os with the i3wm for past few months(no dualboot)
but recently i dualbooted my system and i had a issue:–

everytime i start my laptop it automatically boot to windows,
i can boot to endavour os by using the boot menu but i want my laptop to automatically boot to the endavour os

i just need the EndavourOs grub menu to see first
whenever i stary my system!! it will solve my problem

there was a thing in acer boot menu that you can set priority for the os to boot but its just showing a number “2” there :frowning:

i just want to see this menu first thing after i start my system

Thank you guyz in advance!!!

Try using efibootmgr to change the boot order. You can view the current boot order like so:

efibootmgr

Examine the boot order, then decide what order you want it to be in and set it with the -o flag.

efibootmgr -o 1,2,3,4

Change “1,2,3,4” for your desired boot order.

sudo may be required for that one, I can’t remember.

If the Linux boot variable is missing for some reason you can generate a new one with efibootmgr -c. You can see more options and usage examples in the man page: https://man.archlinux.org/man/efibootmgr.8

I hope that helps, welcome to the community @Kaeyaaa. :wave:

1 Like

i’ve tried this but it still hasn’t resolved my problem

sudo efibootmgr -o 0001,0003,2001,2002,2003

i’ve used this command to change the boot order, but after rebooting its reverting all the changes.

BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0001,2001,2002,2003
Boot0001* endeavouros	HD(1,GPT,e5d5a792-3db3-4a27-b98a-c75da00f0e81,0x800,0x32000)/\EFI\endeavouros\grubx64.efi
Boot0003* Windows Boot Manager	HD(1,GPT,e5d5a792-3db3-4a27-b98a-c75da00f0e81,0x800,0x32000)/\EFI\Microsoft\Boot\bootmgfw.efi57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000000000100000010000000040000007fff0400
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

edit
i don’t know how but my problem is fixed!!

i’ve just hit f5/f6 (you can see in image bottom), after that a<null string>option appeard in my boot priority order, idk why but that fixed my problem!!

and thanks @BluishHumility for your help!! :slightly_smiling_face:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.