Grub replaced by windows and removed from bootmenu entries

Hello guys, so after a long time i have recently installed garuda in my new laptop dual boot with windows 11.
And I already know that sometimes windows boot manager replaces grub in boot order.
And i used to fix it by going in BIOS and putting garuda on top of boot order(in my old laptop)

But in this new laptop in which i installed garuda, windows again replaced grub but now i cant find garuda in boot menu entry, however i can still boot it by choosing to boot using efi file and inside garuda folder and then choosing grubx64.efi

So i want grub back in boot menu entry. So i checked efibootmgr but garuda was missing from that as well.

So i ran update-grub and then garuda-boot-repair and chose repair option. I did not chose reinstall grub as i dont know what to choose further MBR, root and choose which partition.

Here is my garuda-inxi

λ garuda-inxi
Kernel: 5.16.8-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=58318e89-e3ba-42f4-8865-a71f6c765ae6 rw [email protected]
quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
Desktop: KDE Plasma 5.24.0 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Type: Laptop System: HP product: HP Laptop 15s-eq2xxx v: N/A
serial: <superuser required> Chassis: type: 10 serial: <superuser required>
Mobo: HP model: 887A v: 59.11 serial: <superuser required> UEFI: AMI
v: F.18 date: 11/26/2021
ID-1: BAT0 charge: 31.6 Wh (80.6%) condition: 39.2/39.2 Wh (100.0%)
volts: 13.0 min: 11.3 model: HP Primary type: Li-ion serial: <filter>
status: Charging
Info: model: AMD Ryzen 3 5300U with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 2 family: 0x17 (23) model-id: 0x68 (104) stepping: 1
microcode: 0x8608103
Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 2 MiB desc: 4x512 KiB
L3: 4 MiB desc: 1x4 MiB
Speed (MHz): avg: 1396 high: 1397 min/max: 1400/3900 boost: enabled
scaling: driver: acpi-cpufreq governor: powersave cores: 1: 1397 2: 1397
3: 1397 4: 1397 5: 1397 6: 1396 7: 1397 8: 1396 bogomips: 41518
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional,
IBRS_FW, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Device-1: AMD Lucienne vendor: Hewlett-Packard driver: amdgpu v: kernel
bus-ID: 03:00.0 chip-ID: 1002:164c class-ID: 0300
Device-2: Luxvisions Innotech Limited HP TrueVision HD Camera type: USB
driver: uvcvideo bus-ID: 1-3:3 chip-ID: 30c9:0035 class-ID: fe01
serial: <filter>
Display: x11 server: X.Org compositor: kwin_x11 driver:
loaded: amdgpu,ati unloaded: modesetting alternate: fbdev,vesa
display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6")
diag: 394mm (15.5")
OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.16.8-zen1-1-zen LLVM 13.0.0)
v: 4.6 Mesa 21.3.5 direct render: Yes
Device-1: AMD Renoir Radeon High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus-ID: 03:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor
vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel
alternate: snd_pci_acp3x,snd_pci_acp5x,snd_pci_acp6x bus-ID: 03:00.5
chip-ID: 1022:15e2 class-ID: 0480
Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus-ID: 03:00.6 chip-ID: 1022:15e3
class-ID: 0403
Sound Server-1: ALSA v: k5.16.8-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.45 running: yes
Device-1: Realtek RTL8821CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw_8821ce v: N/A modules: rtw88_8821ce
port: f000 bus-ID: 01:00.0 chip-ID: 10ec:c821 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
bus-ID: 1-4:4 chip-ID: 0bda:b00e class-ID: e001 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 0 state: down
bt-service: enabled,running rfk-block: hardware: no software: yes
address: <filter>
Local Storage: total: 476.94 GiB used: 14.59 GiB (3.1%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: OM8SBP3512K-AH
size: 476.94 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: HPS2
temp: 30.9 C scheme: GPT
ID-1: / raw-size: 80 GiB size: 80 GiB (100.00%) used: 14.51 GiB (18.1%)
fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 86.6 MiB (33.8%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 80 GiB size: 80 GiB (100.00%)
used: 14.51 GiB (18.1%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-4: /var/log raw-size: 80 GiB size: 80 GiB (100.00%)
used: 14.51 GiB (18.1%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
ID-5: /var/tmp raw-size: 80 GiB size: 80 GiB (100.00%)
used: 14.51 GiB (18.1%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.16 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
System Temperatures: cpu: 41.0 C mobo: N/A gpu: amdgpu temp: 41.0 C
Fan Speeds (RPM): cpu: 0 fan-2: 0
Processes: 268 Uptime: 13m wakeups: 2 Memory: 7.16 GiB
used: 2.96 GiB (41.3%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.1.0 clang: 13.0.1 Packages: pacman: 1318 lib: 337 flatpak: 0
Shell: fish v: 3.3.1 default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.12
Garuda (2.5.4-2):
System install date:     2022-02-10
Last full system update: 2022-02-11
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       Probably (Run as root to verify)
Snapshots:               Snapper
Failed units:

here is efibootmgr

λ sudo efibootmgr
Timeout: 0 seconds
BootOrder: 0000,9999
Boot0000* Windows Boot Manager
Boot9999* USB Drive (UEFI)

here is update-grub

× sudo update-grub
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  amd-ucode.img initramfs-linux-zen-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/[email protected]/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2022-02-11 19:08:04 | @/.snapshots/42/snapshot | post | perl-net-http                         |
Found snapshot: 2022-02-11 19:08:02 | @/.snapshots/41/snapshot | pre  | pacman -Syu                           |
Found snapshot: 2022-02-11 18:44:50 | @/.snapshots/40/snapshot | post | crypto++ freeimage graphviz gsfonts gts jxrlib libmediainfo libpdfium-no |
Found snapshot: 2022-02-11 18:44:48 | @/.snapshots/39/snapshot | pre  | pacman -S megasync                    |
Found snapshot: 2022-02-11 11:45:35 | @/.snapshots/38/snapshot | post | cantata                               |
Found snapshot: 2022-02-11 11:45:34 | @/.snapshots/37/snapshot | pre  | pacman -R cantata                     |
Found snapshot: 2022-02-11 11:45:27 | @/.snapshots/36/snapshot | post | mpd                                   |
Found snapshot: 2022-02-11 11:45:24 | @/.snapshots/35/snapshot | pre  | pacman -R mpd                         |
Found snapshot: 2022-02-11 11:43:56 | @/.snapshots/34/snapshot | post | audiofile fmt libao libmikmod libmpdclient libnfs libsidplayfp liburing  |
Found snapshot: 2022-02-11 11:43:53 | @/.snapshots/33/snapshot | pre  | pacman -S mpd                         |
Found 10 snapshot(s)
Unmount /tmp/grub-btrfs.KeOEo1GKsj .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.

Also posting screenshot of bootscreen

And while using garuda-boot-repair and choosing reinstall grub. I dont know which option to choose

Ss below

Can anyone tell what to do?

Thanks again.

Your disk /dev/nvme0n1 is GPT and /dev/nvme0n1p1 is your EFI system partition (ESP), so in that way I sugget you should reinstall the grub and then update-grub, with the tools in the live USB (ESP option) or, even better in my opinion to follow what you're doing, with the EFI "option" of:


Yeah i think ill just use it as is , because the solutions seems very hard for me. Will do some other time when i understand it because i need to press button to select and its also annoying.

Anyways thanks for the help.

Please remember that Microsoft wants Windows as the only operating system for the PC. That is why Windows behaves the way it is, it often overwrites the boot sector of its own regardless if you have other OS installed. This does not change during the transition from MBR to GPT, from legacy BIOS to UEFI.

Dual-booting is a complexity that no newbie users of Linux should be subjecting themselves to. Yes, you may successfully dual-boot, but remember once the monthly Windows update Tuesday come knocking your PC's door, the Linux boot loader is likely to be overwritten by Windows. Microsoft wants users to be loyal to its OS.


I know that i never update it and also i use a modded version of windows without many bloats

I've never had Windows overwrite the grub bootloader from an update before so not sure if this is really the case or an older thing or more luck based?

A modded ISO or downloaded a script to debloat Windows?

1 Like