Dual boot with windows 10 can't get into grub

fdisk -l
Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
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: 801EDCA8-069F-4153-A56A-DCC367A350D0

Device             Start       End   Sectors  Size Type
/dev/nvme0n1p1      2048   1023999   1021952  499M Windows recovery environment
/dev/nvme0n1p2   1024000   1228799    204800  100M EFI System
/dev/nvme0n1p3   1228800   1261567     32768   16M Microsoft reserved
/dev/nvme0n1p4   1261568 210126847 208865280 99.6G Microsoft basic data
/dev/nvme0n1p5 210126848 788940799 578813952  276G Microsoft basic data


Disk /dev/nvme1n1: 238.5 GiB, 256060514304 bytes, 500118192 sectors
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: E1276B0A-F75C-43A9-B827-6DB585B2C15F

Device             Start       End   Sectors   Size Type
/dev/nvme1n1p1        34 208898047 208898014  99.6G Linux filesystem
/dev/nvme1n1p2 208898048 434178047 225280000 107.4G Linux filesystem
/dev/nvme1n1p3 434178048 500118158  65940111  31.5G Linux swap

efibootmgr -v
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2002,2003,2001,0001
Boot0000* EFI USB Device (MultipleCard  Reader) PciRoot(0x0)/Pci(0x14,0x0)/USB(2,0)/HD(2,MBR,0xecc23729,0x3fa900,0x2000)RC
Boot0001* Windows Boot Manager  HD(2,GPT,5f52ab11-6386-469f-9699-1d26a92b62c2,0xfa000,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.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.4.7.9.5.}...h................
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

efibootmgr
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 2002,2003,2001,0001
Boot0000* EFI USB Device (MultipleCard  Reader)
Boot0001* Windows Boot Manager
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

lsblk -f
NAME        FSTYPE LABEL    UUID                                 MOUNTPOINT
nvme0n1                                                          
├─nvme0n1p1 ntfs   Recovery C8F4F8A1F4F89344                     
├─nvme0n1p2 vfat            F0FA-F99A                            /boot/efi
├─nvme0n1p3                                                      
├─nvme0n1p4 ntfs            84D83DACD83D9D7C                     
└─nvme0n1p5                                                      
nvme1n1                                                          
├─nvme1n1p1 ext4            c893bfaf-23e5-49f7-954a-536350ac4f0c /
├─nvme1n1p2 ext4            f7c40302-e251-4466-9d11-474827c4c15e /home
└─nvme1n1p3 swap            52d6cc64-96e4-467b-8058-cb02cca071b4 [SWAP]

My goal is to dual boot manjaro with windows 10 on two nvme drives. Laptop is xiaomi notebook pro. After installing windows on drive 1 i install manjaro on drive 2, and specify that the esp is in drive 1 (the windows esp). After manjaro install only windows loads, can only get into manjaro via installation usb with option to find other bootloaders.

Verify that you have all 3 partitions in /etc/fstab (they should be, normally)
Follow this tutorial to add a boot entry for Manjaro to UEFI

If it fails with the first try, read all special cases in that Tutorial topic.

I agree with this, I had a terrible time trying to get uefi to boot grub properly but the above tutorials are awesome. Also I find Windows uefi bootloader likes to override grub. Usually easier to have you manjaro install on the primary drive you boot from and have the boot loader there. That way grub can boot the windows bootloader if you want to start windows. And if the grub gets broken the windows boot loader will be on the other device ready to load. If you catch my drift.

Do you mean, having one esp on each drive?
Have you tested/tried this?
How does it work with boot order?

You can also have 2 or more $esp on the same drive.
And agree, having windows on a different $esp (from linux) is a damn good idea.
So windows cannot mess around with out linux $esp.
I have 4 $esp’s on each drive.

@rbreahna
Make sure you do

sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/nvme0n1 -p 2 -L “manjaro” -l “\EFI\Manjaro\grubx64.efi”

1 Like

I reinstalled windows with its own esp then manjaro with a new esp on its own ssd, however the result was the same.

SOLUTION:
I booted with the installation usb and launched gparted, there i noticed that the esp i setup for manjaro had lost its boot and esp flags that were set on installation. If in gparted you re-apply those flags and apply the pc recognizes the second esp and gives you the option to chose os on boot

1 Like

Did you checked with UEFI settings? Usually they don’t change so they are set to use Window’s EFI so either you must switch it to use Manjaro EFI partition or create a new boot entry with a path to Manjaro EFI.
People too often assume that after installation grub will be shown automatically.

It looks like a bug to me. Which Manjaro installer have you used?
ISO name, calamares (version), M-A (version)

You fixed it?
If Yes, good. Take care.
If No, use the link that petsam provided and provide info as required in that link.
We’ll fix it. We just don’t know if you fix it.

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