Cannot install Grub with Windows 10 dual boot

Hi everyone,

I tried to install Manjaro Pahvo after installing Win10, and I’m stuck where I cannot boot into my Manjaro installation without the live USB. The only way I can boot into my system is by following the advice here: https://superuser.com/questions/1616326/manjaro-in-dual-boot-results-in-not-a-valid-root-device - but their solution of making this permanent is not working for me (boot flag is enabled). This is where I need help.

Commands

inxi --admin --verbosity=7 --filter --no-host --width

System:
  Kernel: 5.13.11-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0 
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-5.13-x86_64 
  root=UUID=c6227a21-2a0c-4809-bc38-f59341ffee77 rw rootflags=subvol=@ quiet 
  apparmor=1 security=apparmor 
  resume=UUID=e89bb3a3-80ca-4370-a99b-de252a1d97e4 udev.log_priority=3 
  Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <filter> 
  Mobo: ASUSTeK model: TUF GAMING B550-PLUS v: Rev X.0x serial: <filter> 
  UEFI: American Megatrends v: 1401 date: 12/03/2020 
Battery:
  Message: No system battery data found. Is one present? 
Memory:
  RAM: total: 15.02 GiB used: 1.62 GiB (10.8%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: 6-Core model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen 3 family: 19 (25) model-id: 50 (80) stepping: 0 
  microcode: A50000B cache: L2: 3 MiB bogomips: 93461 
  Speed: 1397 MHz min/max: 1400/3900 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1402 3: 1543 4: 2449 5: 1997 6: 1354 7: 1695 8: 2394 9: 1685 
  10: 2598 11: 3297 12: 2575 
  Flags: 3dnowprefetch abm adx aes aperfmperf apic arat avic avx avx2 bmi1 
  bmi2 bpext cat_l3 cdp_l3 clflush clflushopt clwb clzero cmov cmp_legacy 
  constant_tsc cpb cpuid cqm cqm_llc cqm_mbm_local cqm_mbm_total cqm_occup_llc 
  cr8_legacy cx16 cx8 de decodeassists erms extapic extd_apicid f16c 
  flushbyasid fma fpu fsgsbase fsrm fxsr fxsr_opt ht hw_pstate ibpb ibrs ibs 
  invpcid irperf lahf_lm lbrv lm mba mca mce misalignsse mmx mmxext monitor 
  movbe msr mtrr mwaitx nonstop_tsc nopl npt nrip_save nx ospke osvw 
  overflow_recov pae pat pausefilter pclmulqdq pdpe1gb perfctr_core 
  perfctr_llc perfctr_nb pfthreshold pge pku pni popcnt pse pse36 rdpid rdpru 
  rdrand rdseed rdt_a rdtscp rep_good sep sha_ni skinit smap smca smep ssbd 
  sse sse2 sse4_1 sse4_2 sse4a ssse3 stibp succor svm svm_lock syscall tce 
  topoext tsc tsc_scale umip v_spec_ctrl v_vmsave_vmload vaes vgif vmcb_clean 
  vme vmmcall vpclmulqdq wbnoinvd wdt xgetbv1 xsave xsavec xsaveerptr xsaveopt 
  xsaves 
  Vulnerabilities: 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 and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, IBRS_FW, 
  STIBP: always-on, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: AMD Cezanne vendor: ASUSTeK driver: amdgpu v: kernel 
  bus-ID: 05:00.0 chip-ID: 1002:1638 class-ID: 0300 
  Display: x11 server: X.Org 1.20.13 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: DisplayPort-0 res: 1920x1080 hz: 60 dpi: 82 
  size: 598x336mm (23.5x13.2") diag: 686mm (27") 
  OpenGL: renderer: AMD RENOIR (DRM 3.41.0 5.13.11-1-MANJARO LLVM 12.0.1) 
  v: 4.6 Mesa 21.1.6 direct render: Yes 
Audio:
  Device-1: AMD vendor: ASUSTeK driver: snd_hda_intel v: kernel 
  bus-ID: 05:00.1 chip-ID: 1002:1637 class-ID: 0403 
  Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel 
  v: kernel bus-ID: 05:00.6 chip-ID: 1022:15e3 class-ID: 0403 
  Sound Server-1: ALSA v: k5.13.11-1-MANJARO running: yes 
  Sound Server-2: JACK v: 1.9.19 running: no 
  Sound Server-3: PulseAudio v: 15.0 running: yes 
  Sound Server-4: PipeWire v: 0.3.33 running: yes 
Network:
  Device-1: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel 
  port: f000 bus-ID: 03:00.0 chip-ID: 10ec:8125 class-ID: 0200 
  IF: enp3s0 state: down mac: <filter> 
  Device-2: Ralink RT5372 Wireless Adapter type: USB driver: rt2800usb 
  bus-ID: 1-3:2 chip-ID: 148f:5372 class-ID: 0000 
  IF: wlp1s0f0u3 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  WAN IP: <filter> 
Bluetooth:
  Message: No bluetooth data found. 
Logical:
  Message: No logical block device data found. 
RAID:
  Message: No RAID data found. 
Drives:
  Local Storage: total: 506.75 GiB used: 7.16 GiB (1.4%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Silicon Power 
  model: SPCC M.2 PCIe SSD size: 476.94 GiB block-size: physical: 512 B 
  logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> 
  rev: ECFM32.1 temp: 27.9 C scheme: GPT 
  ID-2: /dev/sda maj-min: 8:0 type: USB vendor: Lexar model: USB Flash Drive 
  size: 29.81 GiB block-size: physical: 512 B logical: 512 B type: SSD 
  serial: <filter> rev: 1100 scheme: MBR 
  SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure? 
  Message: No optical or floppy data found. 
Partition:
  ID-1: / raw-size: 268.44 GiB size: 268.44 GiB (100.00%) 
  used: 7.15 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7 
  label: N/A uuid: c6227a21-2a0c-4809-bc38-f59341ffee77 
  ID-2: /boot/efi raw-size: 512 MiB size: 511 MiB (99.80%) 
  used: 568 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p5 maj-min: 259:5 
  label: NO_LABEL uuid: D862-66DF 
  ID-3: /home raw-size: 268.44 GiB size: 268.44 GiB (100.00%) 
  used: 7.15 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7 
  label: N/A uuid: c6227a21-2a0c-4809-bc38-f59341ffee77 
  ID-4: /var/cache raw-size: 268.44 GiB size: 268.44 GiB (100.00%) 
  used: 7.15 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7 
  label: N/A uuid: c6227a21-2a0c-4809-bc38-f59341ffee77 
  ID-5: /var/log raw-size: 268.44 GiB size: 268.44 GiB (100.00%) 
  used: 7.15 GiB (2.7%) fs: btrfs dev: /dev/nvme0n1p7 maj-min: 259:7 
  label: N/A uuid: c6227a21-2a0c-4809-bc38-f59341ffee77 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p6 maj-min: 259:6 label: N/A 
  uuid: e89bb3a3-80ca-4370-a99b-de252a1d97e4 
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 100 MiB fs: vfat label: N/A 
  uuid: 1ACA-0E41 
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
  ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 199.39 GiB fs: ntfs label: N/A 
  uuid: 0C16CF2A16CF141C 
  ID-4: /dev/nvme0n1p4 maj-min: 259:4 size: 508 MiB fs: ntfs label: N/A 
  uuid: 441ACDF81ACDE6D0 
  ID-5: /dev/sda1 maj-min: 8:1 size: 2.97 GiB fs: iso9660 
  ID-6: /dev/sda2 maj-min: 8:2 size: 4 MiB fs: vfat label: MISO_EFI 
  uuid: 97EE-3EF6 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 10 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-3:2 info: Ralink RT5372 Wireless Adapter type: Network 
  driver: rt2800usb interfaces: 1 rev: 2.0 speed: 480 Mb/s power: 450mA 
  chip-ID: 148f:5372 class-ID: 0000 
  Device-2: 1-6:3 info: ASUSTek AURA LED Controller type: HID 
  driver: hid-generic,usbhid interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 16mA 
  chip-ID: 0b05:1939 class-ID: 0300 serial: <filter> 
  Hub-2: 1-7:4 info: Genesys Logic Hub ports: 4 rev: 2.0 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0610 class-ID: 0900 
  Device-1: 1-9:5 info: Logitech M-R0017 [G700s Rechargeable Gaming Mouse] 
  type: Mouse,HID driver: hid-generic,usbhid interfaces: 2 rev: 2.0 
  speed: 12 Mb/s power: 498mA chip-ID: 046d:c07c class-ID: 0300 
  serial: <filter> 
  Device-2: 1-10:6 info: STMicro 69M-RGB type: Keyboard,HID 
  driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s 
  power: 200mA chip-ID: 0483:4025 class-ID: 0301 serial: <filter> 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 4 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Device-1: 2-4:2 info: Lexar USB Flash Drive type: Mass Storage 
  driver: usb-storage interfaces: 1 rev: 3.2 speed: 5 Gb/s power: 304mA 
  chip-ID: 21c4:0cd1 class-ID: 0806 serial: <filter> 
  Hub-4: 3-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-5: 4-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-6: 5-0:1 info: Full speed (or root) Hub ports: 4 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Hub-7: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
Sensors:
  Message: No sensor data found. Is lm-sensors configured? 
Info:
  Processes: 319 Uptime: 1m wakeups: 0 Init: systemd v: 248 tool: systemctl 
  Compilers: gcc: N/A Packages: pacman: 1194 lib: 330 flatpak: 0 Shell: Zsh 
  v: 5.8 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.06 

efibootmgr -v

BootCurrent: 000A
Timeout: 1 seconds
BootOrder: 0000,0008,000A,000B,0007,0009
Boot0000* manjaro       HD(5,GPT,8bab41c2-4fec-e94e-8f82-595775688024,0x19000000,0x100000)/File(\EFI\manjaro\grubx64.efi)
Boot0007* Windows Boot Manager  HD(1,GPT,a267adfc-e700-463f-b6b1-b2e7480a08b6,0x800,0x32000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)..BO
Boot0008* Hard Drive    BBS(HD,,0x0)..GO..NO........{.S.P.C.C. .M...2. .P.C.I.e. .S.S.D....................A..........................dy.I.P.......>..Gd-.;.A..MQ..L.2.0.3.E.0.7.1.3.0.F.1.5.0.0.0.9.6.1.0.0........BO
Boot0009* UEFI: Lexar USB Flash Drive 1100      PciRoot(0x0)/Pci(0x2,0x1)/Pci(0x0,0x0)/USB(3,0)/CDROM(1,0x5ee5f4,0x8000)..BO
Boot000A* UEFI: Lexar USB Flash Drive 1100, Partition 2 PciRoot(0x0)/Pci(0x2,0x1)/Pci(0x0,0x0)/USB(3,0)/HD(2,MBR,0x0,0x5ee5f4,0x2000)..BO
Boot000B* USB   BBS(HD,,0x0)..GO..NO........i.L.e.x.a.r. .U.S.B. .F.l.a.s.h. .D.r.i.v.e. .1.1.0.0....................A.............................6..Gd-.;.A..MQ..L.0.3.7.4.8.1.9.0.8.0.0.2.2.3.2.8........BO

sudo os-prober

/dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.

lsblk -o PATH,PTTYPE,PARTTYPE,FSTYPE,PARTTYPENAME

PATH           PTTYPE PARTTYPE                             FSTYPE  PARTTYPENAME
/dev/sda       dos                                         iso9660 
/dev/sda1      dos    0x0                                  iso9660 Empty
/dev/sda2      dos    0xef                                 vfat    EFI (FAT-12/16/32)
/dev/nvme0n1   gpt                                                 
/dev/nvme0n1p1 gpt    c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat    EFI System
/dev/nvme0n1p2 gpt    e3c9e316-0b5c-4db8-817d-f92df00215ae         Microsoft reserved
/dev/nvme0n1p3 gpt    ebd0a0a2-b9e5-4433-87c0-68b6b72699c7 ntfs    Microsoft basic data
/dev/nvme0n1p4 gpt    de94bba4-06d1-4d40-a16a-bfd50179d6ac ntfs    Windows recovery environment
/dev/nvme0n1p5 gpt    c12a7328-f81f-11d2-ba4b-00a0c93ec93b vfat    EFI System
/dev/nvme0n1p6 gpt    0657fd6d-a4ab-43c4-84e5-0933c84b4f4f swap    Linux swap
/dev/nvme0n1p7 gpt    0fc63daf-8483-4772-8e79-3d69d8477de4 btrfs   Linux filesystem

sudo fdisk -l

Disk /dev/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SPCC M.2 PCIe SSD                       
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8BF3B7F9-B172-4295-8D66-869716D720D6

Device             Start        End   Sectors   Size Type
/dev/nvme0n1p1      2048     206847    204800   100M EFI System
/dev/nvme0n1p2    206848     239615     32768    16M Microsoft reserved
/dev/nvme0n1p3    239616  418388077 418148462 199.4G Microsoft basic data
/dev/nvme0n1p4 418390016  419430399   1040384   508M Windows recovery environment
/dev/nvme0n1p5 419430400  420478975   1048576   512M EFI System
/dev/nvme0n1p6 420478976  437256191  16777216     8G Linux swap
/dev/nvme0n1p7 437256192 1000215182 562958991 268.4G Linux filesystem

I feel like I’m missing something basic here. I have read the following guides:
https://forum.manjaro.org/t/root-tip-dual-boot-manjaro-and-windows/1164
https://wiki.manjaro.org/index.php/UEFI_-_Install_Guide
https://wiki.manjaro.org/index.php/GRUB/Restore_the_GRUB_Bootloader

Any help is greatly appreciated. I tried to give all the commands/results but if there’s any you want me to run please let me know!

From your efibootmgr output, your Manjaro is marked first to boot. What happens when you boot? Does it just boot Windows? Is Secure Boot disabled in UEFI/BIOS?

1 Like

It boots directly to windows no matter what I do.

From the UEFI BIOS I can choose to boot /dev/nvme0n1 directly but then I get a “Reboot and select proper boot device” error screen.

It seems to me like I just need to override Windows Boot Manager with the GRUB version (which detects both operating systems) but I just can’t seem to make it do that.

Is this because GRUB is in partition 5 and Windows Boot Manager is in partition 1, and somehow partition 1 ESP takes precedence over the other? Can I install GRUB in partition 1, essentially overwriting WBM?

Thanks for any insight and assistance!

I failed to see an answer to the question: is Secure Boot disabled in UEFI/BIOS? Probably it is, but just check and confirm it is or not.

Most motherboards doesn’t like two EFI partitions in the same disk. You don’t need to override Windows Boot Manager. Your UEFI should let you boot Manjaro’s grub even if WBM is in place (and it should be in place to boot Windows).

If you don’t have anything of value in your Manjaro, you can try to install again using /dev/nvme0n1p1 as the /boot/efi partition but DO NOT format it. I’m not sure is it going to help, but you can try

Usually the problem are non standard compliant motherboards. If you have disabled Secure Boot, it should let you boot Manjaro’s grub. But I have seen cases in this kind of motherboards, where even with Secure Boot disabled, you have to add grub’s signature to the UEFI, to let you boot grub.

1 Like

From the inxi output, it looks like you’ve tried creating 2 ESPs on the same disk: that is not allowed according to the UEFI standard, though some MoBo’s firmware do allow that, but it’s still a hassle as it’s non-standard.

And that would explain the weird behaviour you’re seeing as your UEFI firmware doesn’t even look at the second ESP as it thinks it’s a backup of the first one…

:thinking: