Set Manjaro as default booted os

Hello guys

i have problem with dual boot , when i run my laptop the default booted OS is win 10 , if i want to boot to Manjaro i have to press F9 then chose Manjaro and then the grub menu appear .

So i want to know the solution of this problem.

Check the file /etc/default/grub and verify if the first line says


That means the last OS you booted will be start,so if you start Manjaro it should start Manjaro automatically in the next boot.

Windows is likely set to be chosen first in the BIOS’ boot order. Boot into BIOS and change that order to put Manjaro first.

You can also change the UEFI/BIOS boot order from Manjaro with efibootmgr.

First list your entries with:

sudo efibootmgr -v

You will see a line starting with BootOrder. That’s the current order. You can set your own order with:

sudo efibootmgr -o XXX,YYY,ZZZ

Being XXX,YYY,ZZZ the order you want

1 Like

For me at least, changing order in efibootmgr is a bit of hit and miss. It does not always work. But changing the OS boot order in BIOS settings (as @maycne.sonahoz suggested) always gives the result.

i try your way but not working it’s working good but after reboot , it’s boot to win 10 again .

So, you change the order. You check after that (with sudo efibootmgr -v) that the order has changed and still boots Windows when you reboot?

Can you show what’s the output of sudo efibootmgr -v?

this is the output

[mamog@mamo-hplaptop17bs0xx ~]$ sudo efibootmgr -v
[sudo] password for mamog: 
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0000,3000,0006,0005,0004,0002,0003,2001,2002,2004
Boot0000* Windows Boot Manager  HD(1,GPT,23e0a494-ac34-41ea-9464-ba7f50e9d0d4,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0001* Windows Boot Manager  HD(1,GPT,23e0a494-ac34-41ea-9464-ba7f50e9d0d4,0x800,0x82000)/File(\EFI\manjaro\grubx64.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.}....P...............
Boot0002* Network Adapter (IPv4 UEFI)   PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/MAC(ace2d3042584,0)/IPv4(,0,0)RC
Boot0003* Network Adapter (IPv6 UEFI)   PciRoot(0x0)/Pci(0x1c,0x4)/Pci(0x0,0x0)/MAC(ace2d3042584,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0004* manjaro       HD(1,GPT,23e0a494-ac34-41ea-9464-ba7f50e9d0d4,0x800,0x82000)/File(\EFI\manjaro\grubx64.efi)
Boot0005* Parrot        HD(1,GPT,23e0a494-ac34-41ea-9464-ba7f50e9d0d4,0x800,0x82000)/File(\EFI\Parrot\grubx64.efi)
Boot0006* ubuntu        HD(1,GPT,23e0a494-ac34-41ea-9464-ba7f50e9d0d4,0x800,0x82000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot2001* EFI USB Device        RC
Boot3000* Internal Hard Disk or Solid State Disk        RC
[mamog@mamo-hplaptop17bs0xx ~]$ 

When i reboot it’s not working the values change

Now i change them again

[mamog@mamo-hplaptop17bs0xx ~]$ sudo efibootmgr -o 0004,0005,0001,0002,2001,2002,3000,0003,0000,0006
BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0005,0001,0002,2001,2002,3000,0003,0000,0006
Boot0000* Windows Boot Manager
Boot0001* Windows Boot Manager
Boot0002* Network Adapter (IPv4 UEFI)
Boot0003* Network Adapter (IPv6 UEFI)
Boot0004* manjaro
Boot0005* Parrot
Boot0006* ubuntu
Boot2001* EFI USB Device
Boot3000* Internal Hard Disk or Solid State Disk

but in the next boot they change .

I’d say that your motherboard it’s not standard compliant. My first thought was that maybe Secure Boot is enabled, but given that you can boot Manjaro just from the UEFI Boot menu, I think that should not be the case. Some motherboards are very determined to boot Windows. Right now it doesn’t come to my mind how you can overpass that.

Another odd thing is that the entry number 0001 is a mix from Manjaro and Windows. The boot loader file is from Manjaro but the entry has the usual extra “text” after the boot loader that Windows uses. And the entry 0000, that I suppose is the one booting Windows, lacks this extra text. Odd.

Ok thank you i have already disable secure boot so maybe it’s like what you say motherboard problem.
this is my mother board info :

[mamog@mamo-hplaptop17bs0xx ~]$ sudo dmidecode -t baseboard
[sudo] password for mamog: 
# dmidecode 3.3
Getting SMBIOS data from sysfs.
SMBIOS 3.0.0 present.

Handle 0x0002, DMI type 2, 17 bytes
Base Board Information
        Manufacturer: HP
        Product Name: 833D
        Version: 49.35
        Serial Number: PGNDL1A
        Asset Tag: Type2 - Board Asset Tag
                Board is a hosting board
                Board is replaceable
        Location In Chassis: Type2 - Board Chassis Location
        Chassis Handle: 0x0003
        Type: Motherboard
        Contained Object Handles: 0

I have seen some cases, where even with Secure Boot disabled, the motherboard/UEFI refuses to accept Manjaro’s grub in the boot list and the solution was to “whitelist” grub’s boot loader in the UEFI. This solution is not available in all motherboards, but you can try to find something like “Add UEFI file as trusted for executing” in your UEFI/BIOS.

PS: Maybe best way to show your System/Motherboard info is: inxi -M

Ok thank you i’ll let it like this press F9 every time .
Thank you for your time .