You are not logged in.

#1 2023-07-28 11:47:55

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Order of nvme devices seem to change randomly

I have two nvme devices on my system: /dev/nvme0n0 (Samsung SSD) and /dev/nvme0n1 (other brand SSD).  Their order as shown by the kernel seems to randomly change upon rebooting.  In otherwords, /dev/nvme0n0 can sometimes be the Samsung or other times be the "other brand".  Is there a way to force an order?

Offline

#2 2023-07-28 11:52:02

frostschutz
Member
Registered: 2013-11-15
Posts: 1,647

Re: Order of nvme devices seem to change randomly

You can check/compare dmesg when its one order or the other just to see if there's anything wrong, but in general, this is always a possibility, same for sda, sdb, ...

Device names are assigned first come, first serve. There is no (sensible) way to force it. Stick to UUIDs.

Edit: How to force it if you really must (not tested on real hardware) ... https://unix.stackexchange.com/a/734125/30851

Last edited by frostschutz (2023-07-28 12:27:47)

Offline

Board footer

Powered by FluxBB