Windows bootloader loads evertime instead of Grub

I have Windows 11 and Endeavoros on a disk, and my problem is that even when grub is first to boot it just boots windows’ bootloader that just boots windows 11

is secure boot off in the uefi?

yes,it is

I’m assuming you installed EndeavourOS after windows was installed. can you show us your grub config. Maybe someone can see something that could cause this.

Yes i have, here


It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

BEGIN /etc/grub.d/00_header

insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
if [ “${next_entry}” ] ; then
set default=“${next_entry}”
set next_entry=
save_env next_entry
set boot_once=true
set default=“EndeavourOS Linux”

if [ x"${feature_menuentry_id}" = xy ]; then

And also your hardware specifications please with

inxi -Fz

Does that mean grub doesn’t list anything besides Windows Boot Manager?

Or does it not boot grub at all even though you set it in your boot menu first?

From your EnOS, post the output of the following commands:

sudo parted -l 


cat /etc/default/grub

Please post the terminal output as text: copy, paste, highlight and press Ctrl-E to format

1 Like

What happens if you reinstall grub and activate os-prober ?

I have a HP so i have a boot f9 menu and thats the only way to get grub to boot and in grub windows and linux are both there

here are the specs:
Kernel: 6.2.11-arch1-1 arch: x86_64 bits: 64 Desktop: KDE Plasma v: 5.27.4
Distro: EndeavourOS
Type: Laptop System: Hewlett-Packard product: HP ProBook 4540s v: A1009D11
Mobo: Hewlett-Packard model: 17F6 v: KBC Version 58.21
serial: UEFI: Hewlett-Packard v: 68IRR Ver. F.68
date: 04/11/2019
ID-1: BAT0 charge: 33.6 Wh (100.0%) condition: 33.6/33.6 Wh (100.0%)
Info: dual core model: Intel Core i5-2450M bits: 64 type: MT MCP cache:
L2: 512 KiB
Speed (MHz): avg: 828 min/max: 800/3100 cores: 1: 800 2: 800 3: 915 4: 798
Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
driver: i915 v: kernel
Device-2: Sunplus Innovation HP Universal Camera type: USB
driver: uvcvideo
Display: x11 server: X.Org v: 21.1.8 driver: X: loaded: modesetting
dri: crocus gpu: i915 resolution: 1366x768~60Hz
API: OpenGL v: 3.3 Mesa 23.0.2 renderer: Mesa Intel HD Graphics 3000 (SNB
Device-1: Intel 7 Series/C216 Family High Definition Audio
driver: snd_hda_intel
API: ALSA v: k6.2.11-arch1-1 status: kernel-api
Server-1: PipeWire v: 0.3.69 status: active
Device-1: Broadcom BCM43228 802.11a/b/g/n driver: wl
IF: wlan0 state: up mac:
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
driver: r8169
IF: enp4s0 state: down mac:
Device-1: Broadcom HP Portable Bumble Bee type: USB driver: btusb
Report: rfkill ID: hci0 rfk-id: 1 state: down bt-service: disabled
rfk-block: hardware: no software: no address: see --recommends
Local Storage: total: 232.89 GiB used: 8.68 GiB (3.7%)
ID-1: /dev/sda vendor: Crucial model: CT250MX500SSD1 size: 232.89 GiB
ID-1: / size: 47.76 GiB used: 7.76 GiB (16.3%) fs: ext4 dev: /dev/sda5
ID-2: /boot/efi size: 98.4 MiB used: 39 MiB (39.7%) fs: vfat
dev: /dev/sda1
ID-3: /home size: 42.95 GiB used: 906.2 MiB (2.1%) fs: ext4 dev: /dev/sda6
ID-1: swap-1 type: partition size: 14.65 GiB used: 0 KiB (0.0%)
dev: /dev/sda7
System Temperatures: cpu: 53.0 C mobo: N/A
Fan Speeds (RPM): N/A
Processes: 181 Uptime: 7m Memory: 7.64 GiB used: 2.11 GiB (27.6%)
Shell: Bash inxi: 3.3.26

And if you pick linux with the cursor keys Windows is booted?

no linux boots

Please format the text you post:

Highlight and press Ctrl-E to format

So the problem is the boot order in your UEFI menu is not respected and Windows is always default?

can you go into the bios ? what is your primary boot is that windows boot loader ?
Or grub ?

the thing is for some reason that my uefi firmware is crap and only boots the first option on the boot order then if that doesn’t work it says nothing bootable
and it only shows bios option but boots with uefi like external usb drive

Did you install grub on the same partition windows boot loader is installed ? because if that is the case then this often happens , and windows will take over grub, what happens if you create a new fat32 partition for grub activate - os prober then grub can see windows ! and windows cannot over write grub again !

Can you check this BIOS update?

It might be one revision newer than what you have or the revision is just not displayed in your inxi output.

If you decide to update your BIOS/UEFI don’t forget to make a data backup before

i will try that but i don’t know how to create a grub bootloader

i have the lastest bios according to the drivers download on hp

1 Like

Take a look at this !