Cant get windows 10 & manjaro dualboot to work

so ive tried installing manjaro to a new partition on my main ssd drive nvme
but my pc keeps booting into windows, and the only way to access manjaro is with my usb.
i for the life of me cant get it to just boot into manjaro or give me a bootloader or something.

ive done the following:

[manjaro ~]# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0    26M  1 loop /run/miso/sfs/livefs
loop1         7:1    0 389.9M  1 loop /run/miso/sfs/mhwdfs
loop2         7:2    0   1.6G  1 loop /run/miso/sfs/desktopfs
loop3         7:3    0 731.7M  1 loop /run/miso/sfs/rootfs
sda           8:0    0 931.5G  0 disk 
├─sda1        8:1    0   128M  0 part 
└─sda2        8:2    0 931.4G  0 part 
sdb           8:16   1     0B  0 disk 
sdc           8:32   1  28.8G  0 disk /run/miso/bootmnt
├─sdc1        8:33   1   2.7G  0 part 
└─sdc2        8:34   1     4M  0 part 
nvme0n1     259:0    0 238.5G  0 disk 
├─nvme0n1p1 259:1    0   499M  0 part 
├─nvme0n1p2 259:2    0    99M  0 part 
├─nvme0n1p3 259:3    0    16M  0 part 
├─nvme0n1p4 259:4    0 191.8G  0 part 
├─nvme0n1p5 259:5    0   200M  0 part 
└─nvme0n1p6 259:6    0  45.9G  0 part


[manjaro ~]# mount /dev/nvme0n1p6 /mnt/
[manjaro ~]# mount /dev/nvme0n1p5 /mnt/boot/efi/
[manjaro ~]# manjaro-chroot /mnt
[manjaro /]# update-grub

and then its is giving me the following errors:
Generating grub configuration file …

Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-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.
***grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.***
***grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.***
Adding boot menu entry for UEFI Firmware Settings 
Found memtest86+ image: /boot/memtest86+/memtest.bin
***/usr/bin/grub-probe: warning: unknown device type nvme0n1.***
done

I’ve also tried running grub-install, and then update-grub but i still get the same errors

secureboot and fastboot are both turned off.

nvme0n1p6 is a 45gb partition for manjaro
nvme0n1p5 is 200mb for efi

Welcome to the forum! :wave:

Tip: When pasting terminal output on Discourse forums, one can either…

  • Highlight it and use the Preformatted text </> toolbar button.

  • Add three backticks ` above and below the text (Markdown):

    ```
    text
    ```

  • Use HTML:

    <pre><code>
    text
    </pre></code>

I’ve done it for you this time. :wink:

2 Likes

Hello,

from your partitions, I would say that your Windows is installed in BIOS mode, but you are installing Manjaro in UEFI mode. With a little more information, maybe we can solve this. Please post the output of these commands:

sudo lsblk -f
sudo efibootmgr -v
sudo fdisk -l

Also, if you want to mount your Manjaro from the live USB, you can just run manjaro-chroot -a. That will mount necessary partitions and chroot into root partition. But run those commands outside the chroot anyway.

1 Like

[manjaro@manjaro ~]$ sudo lsblk -f

NAME      FSTYPE FSVER LABEL          UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0     squash 4.0                                                             0   100% /run/miso/sfs/livefs
loop1     squash 4.0                                                             0   100% /run/miso/sfs/mhwdfs
loop2     squash 4.0                                                             0   100% /run/miso/sfs/desktopfs
loop3     squash 4.0                                                             0   100% /run/miso/sfs/rootfs
sda                                                                                       
├─sda1                                                                                    
└─sda2    ntfs         Ekstra         544486E84486CC64                                    
sdb                                                                                       
sdc       iso966 Jolie MANJARO_KDE_2107
│                                     2021-06-14-15-33-09-00                     0   100% /run/miso/bootmnt
├─sdc1    iso966 Jolie MANJARO_KDE_2107
│                                     2021-06-14-15-33-09-00                              
└─sdc2    vfat   FAT12 MISO_EFI       0ACC-C46C                                           
nvme0n1                                                                                   
├─nvme0n1p1
│         ntfs         Genoprettelse  D4083CFC083CDEE4                                    
├─nvme0n1p2
│         vfat   FAT32                EC3D-3E67                                           
├─nvme0n1p3
│                                                                                         
├─nvme0n1p4
│         ntfs                        80BA3E10BA3E02E8                                    
├─nvme0n1p5
│         vfat   FAT32 NO_LABEL       578B-A016                                           
└─nvme0n1p6
          ext4   1.0                  242439b0-f768-46e6-94c3-d95d718be0a0      

sudo efibootmgr -v

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0000,0003,0001,0004,0002
Boot0000* Windows Boot Manager  HD(2,GPT,7832cbf3-ddc0-4cf8-b481-4a3ffbe2afa6,0xfa000,0x31800)/File(\EFI\MICROS
OFT\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................
Boot0001* Hard Drive    BBS(HD,,0x0)..GO..NO........o.G.I.G.A.B.Y.T.E. .G.P.-.G.S.M.2.N.E.8.2.5.6.G.N.T.D......
..............A..........................dy...........2..Gd-.;.A..MQ..L.S.N.1.8.4.4.0.8.9.5.1.1.2.2........BO
Boot0002* USB   BBS(HD,,0x0)..GO..NO........a.L.a.C.i.e. .P.9.2.2.7. .S.l.i.m. .1.1.5.3....................A...
.............................Gd-.;.A..MQ..L.0.0.0.0.N.L.3.7.H.S.F.J........BO..NO........e.G.e.n.e.r.i.c. .F.l.
a.s.h. .D.i.s.k. .8...0.7....................A.........................................&..Gd-.;.A..MQ..L.D.C.E.
5.7.2.1.F........BO
Boot0003* UEFI: Generic Flash Disk 8.07 PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(2,
0)/CDROM(1,0x57c908,0x8000)..BO
Boot0004* UEFI: Generic Flash Disk 8.07, Partition 2    PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci
(0x0,0x0)/USB(2,0)/HD(2,MBR,0x0,0x57c908,0x2000)..BO

sudo fdisk -l

Disk /dev/nvme0n1: 238.47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: GIGABYTE GP-GSM2NE8256GNTD              
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: FBC833C0-38D7-41B6-910C-950227123D73

Device             Start       End   Sectors   Size Type
/dev/nvme0n1p1      2048   1023999   1021952   499M Windows recovery environment
/dev/nvme0n1p2   1024000   1226751    202752    99M EFI System
/dev/nvme0n1p3   1226752   1259519     32768    16M Microsoft reserved
/dev/nvme0n1p4   1259520 403427327 402167808 191.8G Microsoft basic data
/dev/nvme0n1p5 403427328 403836927    409600   200M Microsoft basic data
/dev/nvme0n1p6 403836928 500118158  96281231  45.9G Linux filesystem


Disk /dev/sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: P9227 Slim      
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: AE392639-CCCA-4EDD-85F8-9D7A2DCDB614

Device      Start        End    Sectors   Size Type
/dev/sda1      34     262177     262144   128M Microsoft reserved
/dev/sda2  264192 1953523711 1953259520 931.4G Microsoft basic data

Partition 1 does not start on physical sector boundary.


Disk /dev/sdc: 28.82 GiB, 30943477760 bytes, 60436480 sectors
Disk model: Flash Disk      
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: dos
Disk identifier: 0x00000000

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdc1  *         64 5753095 5753032  2.7G  0 Empty
/dev/sdc2       5753096 5761287    8192    4M ef EFI (FAT-12/16/32)


Disk /dev/loop0: 26.01 MiB, 27275264 bytes, 53272 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


Disk /dev/loop1: 389.89 MiB, 408834048 bytes, 798504 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


Disk /dev/loop2: 1.56 GiB, 1672581120 bytes, 3266760 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


Disk /dev/loop3: 731.75 MiB, 767291392 bytes, 1498616 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

So, I was wrong and your Windows installation is also in UEFI mode :slight_smile:

From the efibootmgr output, we can see that there is no Manjaro entry in UEFI. Your EFI partition (ESP) /dev/nvme0n1p5 is marked/flagged as “Microsoft basic data”. You should change it to “boot/esp” flag, with, for example, fdisk or parted (The flag it’s actually the partition type EF00).

After changing it, you have to add the Manjaro entry to the UEFI. The easiest way is just to reinstall grub:

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck

This have to be done inside the chroot (remember: manjaro-chroot -a)
After that you can run sudo efibootmgr -v again to check that the Manjaro entry has been added. Reboot and check if it works.

PS: I didn’t said anything before but I suppose that you have already disabled Secure Boot in UEFI/BIOS, isn’t it?

PS2: The wrong flag comes from a bug in the 21.0.7 ISO when installing in manual mode. It’s fixed in the newer ISOs available.

i am still getting the exact same error :confused:
[manjaro /]# grub-install --target=x86_64-efi --efi-di

rectory=/boot/efi --bootloader-id=manjaro --recheck
Installing for x86_64-efi platform.
Installation finished. No error reported.

[manjaro /]# update-grub

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.10-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.10-x86_64.img
Found initrd fallback image: /boot/initramfs-5.10-x86_64-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.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
grub-probe: error: cannot find a GRUB drive for /dev/sdc1.  Check your device.map.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

[manjaro /]# efibootmgr -v

BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0005,0000,0003,0001,0004,0002
Boot0000* Windows Boot Manager  HD(2,GPT,7832cbf3-ddc0-4cf8-b481-4a3ffbe2afa6,0xfa000,0x31800)/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................
Boot0001* Hard Drive    BBS(HD,,0x0)..GO..NO........o.G.I.G.A.B.Y.T.E. .G.P.-.G.S.M.2.N.E.8.2.5.6.G.N.T.D....................A..........................dy...........2..Gd-.;.A..MQ..L.S.N.1.8.4.4.0.8.9.5.1.1.2.2........BO
Boot0002* USB   BBS(HD,,0x0)..GO..NO........a.L.a.C.i.e. .P.9.2.2.7. .S.l.i.m. .1.1.5.3....................A................................Gd-.;.A..MQ..L.0.0.0.0.N.L.3.7.H.S.F.J........BO..NO........e.G.e.n.e.r.i.c. .F.l.a.s.h. .D.i.s.k. .8...0.7....................A.........................................&..Gd-.;.A..MQ..L.D.C.E.5.7.2.1.F........BO
Boot0003* UEFI: Generic Flash Disk 8.07 PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(2,0)/CDROM(1,0x57c908,0x8000)..BO
Boot0004* UEFI: Generic Flash Disk 8.07, Partition 2 PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x2)/Pci(0x0,0x0)/Pci(0x0,0x0)/USB(2,0)/HD(2,MBR,0x0,0x57c908,0x2000)..BO
Boot0005* manjaro       HD(5,GPT,3b6423fd-8f4d-7d43-ba14-d00c00214f46,0x180bd000,0x64000)/File(\EFI\manjaro\grubx64.efi)

There it is the Manjaro entry in efibootmgr. Did you rebooted? Still Windows?

Again, just to be sure. Did you disabled Secure Boot in UEFI/BIOS?

1 Like

rebooted, it still boots directly into windows…
And yes secure boot is disabled :frowning:

Ok. Then it could be that your motherboard doesn’t like two ESP partitions in the same disk. I have seen that. Or it could be that even Secure Boot is disabled your motherboard is not standard compliant and refuse to boot from a non verified/signed boot loader. I’ve also seen that.

For the first case, while in chroot you should change Manjaro’s ESP from /dev/nvme0n1p5 to /dev/nvme0n1p2. I mean that you have to change the UUID of the EFI partition (ESP) in your Manjaro’s /etc/fstab to EC3D-3E67 and you have to mount this partition in /boot/efi instead of the old one. Then you run the grub-install command I gave you.

That’s number one. For option number two, you have to add the signature of the grub bootloader in the EFI partition (/EFI/Manjaro/grubx64.efi) to your UEFI BIOS. For that I can’t give instructions as it depends on the motherboard. Check the UEFI BIOS’s/motherboard’s manual if unsure.

I don’t know if there is anything else you can do. The entry is being added to the UEFI boot list but when you reboot, it disappears. That means that your motherboard doesn’t like something about it. Usually it is because most motherboards are “Windows-centric” and doesn’t follow the standards.

PS: You didn’t say anything but I hope you changed the /dev/nvme0n1p5 partition’s type.