Skip to content

Can Arch confuse two identical NVMe drives?

So I have 2 identical NVMe drives, I got them with the intention of dual-booting Windows and Linux. I used to have Linux Mint on the second one, and it worked fine, but I wanted to familiarize myself with Arch more (and my ego was a little inflated I won't lie) so I erased Mint and made an Arch USB.

The first time I tried, though, it wouldn't recognize my Windows SSD when I tried listing the drives with fdisk, but when I removed my HDD that I use for miscellaneous data, it switched the SSD it would display and wouldn't show the Linux drive.

Eventually, I removed my Windows SSD to try forcing it to recognize the Linux SSD, and that worked for a while. I successfully installed Arch with KDE, although GRUB never recognized the Windows drive's OS after I put it back in. When I installed ntfs-3g to recognize the HDD and rebooted, it couldn't find the Linux drive's UUID and threw me in the emergency shell.

When I boot Windows and look into the Linux drive (I have a program that enables ext4 support in the file explorer) everything is still there - I just can't boot into it.

Is Arch just straight up confusing the two drives? I think I saw something about duplicate drives when booting the live USB but it goes away too quickly for me to read what it says. Thank you for reading if you got this far!

PC Specs if it helps any: Motherboard is MSI B550 Gaming Plus CPU: Ryzen 7 5800X3D GPU: Radeon RX 6800 XT Storage: Two Teamgroup T-FORCE Cardea Zero Z330 NVMe drives 2TB 1TB Western Digital Blue HDD

Edit: I think I've narrowed it down to be an issue with PCIe lanes taking priority over one another instead of Arch- I'm still not sure why the issues didn't occur with Mint when it was on there, but everything is pointing to it not being an Arch problem

Edit 2: Well... I flashed Mint onto the flash drive again just to see if something changed since, and it worked just fine like last time. Also, sometimes when booting into Arch it just works, it's about a 50/50 chance. Windows still doesn't appear in GRUB or Arch's files, however.

Final edit: I give up. Thanks for the responses, but I'm going back to Mint.

Nvm edit (Jan 22 2023): After a break I came back around to try out u/kolorcuk 's idea, and it worked!

I had to reboot a couple times until the Linux drive was the one detected, and then selected "linux-lts" under the kernel. I originally thought I needed the lts kernel on the USB drive itself but a little bit of perseverance got me through. Now, Windows is detected in GRUB after updating it and I'm officially an Arch user, btw!

Also, specifically, the kernel version I'm using is: 5.15.89-1-lts

Edited 22 Jan 2023. We only hold this version.

0 points25 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 50% up
Kind
Text
ID
10dnyrs

Author

7
posts
11
comments
6
media
View profile

25 comments

What do you mean by "confused"?

Just use /dev/by/disk-by-id and UUID for booting and referring to drives instead of nvme* or sd*.

(PARTUUID can change when you clone a drive, disk-by-id is always stable)

8 points

By "confused" I mean it doesn't seem to want to recognize both at the same time, it only shows one or the other

1 points

that sounds more like your efi bios can't find the efi partition on a second drive. did you try to swap those drives?

it's unlikely that this is an issue specific to arch though

6 points

That could be a limitation on your Mainboard. Read the manual.

3 points

Not unless you'd clone one onto another since this would also (depending on the tool) potentially copy all possible "metadata" about drive and this would indeed make them "identical". Other than that I guess something else is at play here. I would start booting a archiso with both drives plugged and troubleshooting there - lsblk, etc so we could have a closer look how this actually looks like.

4 points

Unfortunately lsblk is still showing same results- it shows sda (my HDD), nvme0n1 (Windows drive), and sdb (flash drive), while nvme1n1 should be the Linux drive. No matter what parameters I set it still isn't showing the Linux drive

1 points

This sounds like a limitation of your motherboard. Grab the manual and check the section on PCIE slots. It’s very common that motherboard manufacturers will give you X number of NVMe slots and Y number of PCIE slots but NVME slot X+2 and PCIE slot y+2 actually occupy the same lanes and you can’t use one if something is plugged into the other.

3 points

Have you checked if the drives are visible when booting to firmware settings aka bios?

2 points

My bet is you have some kind of BIOS/UEFI firmware problem, if you've accurately described your symptoms and troubleshooting. I would look to MSI support.

For others, the use of PBN Persistent Block Naming, eg UUID or LABEL's instead of devices names (/dev/nvme0n1p1) means the boot process can deterministically locate the critical root partition and filesystem, especially critical in a multi drive system. The files involved in this are: 1) /etc/default/grub, 2) /etc/fstab, 3) /boot/grub/grub.cfg should be mostly static but take a look too. (BIOS and grub system used as an example)

I routinely use systems with same make model drives with PBN, without your issue.

Good luck, and pls update your top post with the root cause and solution, when found. Thank you.

2 points

Your post is hard to understand. Or rather impossible.

Plug both SSDs and boot. What happens? What OS boots? Windows or Linux? Can you choose which to boot from EFI? There should be boot order option. If you can choose, try booting Linux, what happens? If you can't that's not Arch issue.

2 points

Do you have anything in the PCIE 3.0x16 slot, you can't use that and the second m.2 slot at the same time on your motherboard.

1 points

No, but I do have a WiFi card in the x1 slot

1 points

Is that a WiFi card with a "short" pci-e connector? (ie not long as your graphics card?) Because from what I found you can't use the third (long/big) PCI-E slot while using PCI-E M.2 slot 2.

You might have a setting in your BIOS for which device should take priority, and it might be set to automatic, leading to inconsistent behaviour.

If your WiFi card is not in the third slot, I have no idea.

1 points

No, I have it set up as you describe you want it set up and I have been messing around with fake raid, lvm, software raid, etc. on them previously. Hard to say what your specific issue is but it sounds like you might have some uefi issues maybe?

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.