Guide to setting up dual boot on NVMe drives?

I’m new to Manjaro and trying to set up dual boot on a machine that came with Windows 10 pre-installed. It uses UEFI/GPT and has secure boot and fast boot disabled. I’ve used this guide except I specified nvme0n1p1 as ESP instead of /dev/sdb2.

However, the laptop still boots straight to Windows 10, although I can launch Manjaro by following this post. The post also contains information on setting up nvme drives, but some points are not clear to someone at my level of noob-ness, and I’m too afraid of messing up my laptop to just try following it as good as I can. If anyone can help clarify, it’d be amazing.

Concrete questions to the guide:

  • Step 4: if there are multiple Manjaro’s or if there is a separate boot partition
    I’m not certain what it means to have a separate boot partition or how to determine whether that is the case.
  • Step 4 variations: There will be multiple output, use the right one (say (hd2,5)). It would be very helpful with instructions for determining which one is the right one.
  • UEFI - additional commands:
    Note the second command above is for $esp in sda1.
    Change accordingly if it is not. So if $esp is in sdb3, the command is
    sudo efibootmgr -c -d /dev/sdb -p 3 -L “manjaro” -l
    I understand that /dev/sdx -p y specifies device x, partition y. I’m not sure if that means I should simply run sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L “manjaro” -l or if I should remove the n1 part or what.

And you are most welcome.

However the term idiot-proof does not work.

Idiot proof guides - I am assuming you are not referring to yourself - don’t exist.

That is a fact

I am referring to myself, or anyone unable to determine by themselves the uncertainties I mention.

No offence :slight_smile:

IMO there is no other way than familiarize yourself the necessary terms as well as what esp means.

That includes the device names for the different types of disks and knowing how to read the partition table presented by - e.g. gparted.

In the link, at post #3

UEFI - if problem persists

If after doing the above, including at step 6 the 2 additional commands, post in a new topic (or an existing open topic) together with the following output from the terminal when booted to the installed Manjaro OS.

efibootmgr -v
sudo parted -l
sudo blkid
findmnt -s
findmnt /boot/efi
note: ‘parted -l’ --> small ‘L’ and provide information of all disks. [a]

See complete post.

2 Likes
[ahura@xps ~]$ efibootmgr -v
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0000,0001
Boot0000* Windows Boot Manager	HD(1,GPT,37818955-d193-411e-a852-fa2394e8923e,0x800,0x145000)/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.}....................
Boot0001* UEFI: SanDisk, Partition 2	PciRoot(0x0)/Pci(0x14,0x0)/USB(12,0)/HD(2,MBR,0x3f27311b,0x3465c8,0x2000)..BO


[ahura@xps ~]$ sudo parted -l
[sudo] password for ahura: 
Model: SanDisk Ultra (scsi)
Disk /dev/sda: 30,8GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size    Type     File system  Flags
 1      32,8kB  1758MB  1758MB  primary               boot
 2      1758MB  1762MB  4194kB  primary               esp


Model: Unknown (unknown)
Disk /dev/nvme0n1: 1024GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  683MB   682MB   fat32           EFI system partition          boot, esp
 2      683MB   817MB   134MB                   Microsoft reserved partition  msftres
 3      817MB   611GB   610GB   ntfs            Basic data partition          msftdata
 7      611GB   637GB   26,2GB  ext4
 8      637GB   1007GB  370GB   ext4
 9      1007GB  1011GB  4194MB  linux-swap(v1)
 4      1011GB  1012GB  483MB   ntfs                                          hidden, diag
 5      1012GB  1023GB  11,3GB  ntfs                                          hidden, diag
 6      1023GB  1024GB  1157MB  ntfs                                          hidden, diag


[ahura@xps ~]$ sudo blkid
/dev/nvme0n1: PTUUID="d291d75e-3563-4b3d-b5ea-0da9cdde47c5" PTTYPE="gpt"
/dev/nvme0n1p1: LABEL="ESP" UUID="383A-1464" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="37818955-d193-411e-a852-fa2394e8923e"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="ee44c47e-7445-4587-8e6a-4418f4720f43"
/dev/nvme0n1p3: LABEL="OS" UUID="0C0837130836FAF2" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="eb2c8ccd-1302-49f8-9103-fa0deb8e80f2"
/dev/nvme0n1p4: UUID="9E5257C55257A137" TYPE="ntfs" PARTUUID="7de7457c-b42f-47c3-ac52-d5fe31365ca2"
/dev/nvme0n1p5: LABEL="Image" UUID="EAA8CF7BA8CF44B3" TYPE="ntfs" PARTUUID="d324e9ac-c2b1-49a4-af5d-e80de3c885a0"
/dev/nvme0n1p6: LABEL="DELLSUPPORT" UUID="7ED8EE35D8EDEB7B" TYPE="ntfs" PARTUUID="6043d354-d7d2-4253-bcff-92a76d6e570d"
/dev/nvme0n1p7: UUID="cd3a6c29-322a-4b5a-b56f-66f566a64f09" TYPE="ext4" PARTUUID="6b51cfa4-86f4-401c-9bca-5f0739453010"
/dev/nvme0n1p8: UUID="7ad376af-7c13-4a62-a91b-a27a9d1789d8" TYPE="ext4" PARTUUID="ad0519b8-e47b-4c58-9e29-af7f8d4673b2"
/dev/nvme0n1p9: UUID="23bd3d43-e298-4ba0-af3a-e475cd30f3a5" TYPE="swap" PARTUUID="d6c1e2c0-553b-49a4-8043-238302e8838b"
/dev/sda1: UUID="2018-04-28-06-58-24-00" LABEL="MJRO1719" TYPE="iso9660" PARTUUID="3f27311b-01"
/dev/sda2: SEC_TYPE="msdos" LABEL="MISO_EFI" UUID="A231-7B57" TYPE="vfat" PARTUUID="3f27311b-02"


[ahura@xps ~]$ findmnt -s
TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=383A-1464                            vfat   defaults,noatime
/         UUID=cd3a6c29-322a-4b5a-b56f-66f566a64f09 ext4   defaults,noatime
/home     UUID=7ad376af-7c13-4a62-a91b-a27a9d1789d8 ext4   defaults,noatime
swap      UUID=23bd3d43-e298-4ba0-af3a-e475cd30f3a5 swap   defaults,noatime


[ahura@xps ~]$ findmnt /boot/efi
TARGET    SOURCE         FSTYPE OPTIONS
/boot/efi /dev/nvme0n1p1 vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

Right. Your efibootmgr output still does not show ‘manjaro’.
You did not provide computer make and model.
If it is Lenovo, Asus, HP, it is important, tell us now.

So boot up (launch) again to installed OS as per the link you followed.
Then verify again that “findmnt /boot/efi” gives

/boot/efi /dev/nvme0n1p1 vfat rw,no…xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Then do

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

If still fails, repeat, provide computer make and model.
The links at bottom of 3rd post may help.

Thanks, the laptop is a Dell XPS 9370

sudo efibootmgr -c -d /dev/nvme0n1 -p 1 -L “manjaro” -l “\EFI\Manjaro\grubx64.efi”

YES, that did the trick. Thank you so much!

1 Like

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

Forum kindly sponsored by Bytemark