You are not logged in.

#1 2023-12-10 13:23:53

merilius
Member
Registered: 2012-06-15
Posts: 51

Two SSD NVMe swapping device names on reboots

I have
* a b650e chipset mobo (Asrock b650e Riptide WiFi AM5)
* two NVMe SSD drives (pciE 5.0 slot with a 4.0 ssd and pciE 4.0 with a 3.0 ssd).

At boot ssd devices often swap names: /dev/nvme0 <==> /dev/nvme1
While in /etc/fstab I can use labels to mount filesystems, the /efi partition does not support a label (according to gparted), so I have a raw partition name in /etc/fstab. This causes problems at boot: /efi cannot be mounted if ssd names change, leading to drop to the recovery console.

How to stabilise the names? Is it a kernel problem or a UEFI problem?

Last edited by merilius (2023-12-10 13:24:57)

Offline

#2 2023-12-10 13:28:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,418

Re: Two SSD NVMe swapping device names on reboots

Use the UUID, you cannot "stabilize" this, the order is "whatever nvme wakes up first"

Online

#3 2023-12-10 13:47:45

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Two SSD NVMe swapping device names on reboots

Or use the PARTUUID, which will remain the same even if the partition is reformatted. Only applies to GUID Partition Tables (GPT) though, MS-DOS disks do not provide this.


Jin, Jîyan, Azadî

Offline

#4 2023-12-10 14:04:16

merilius
Member
Registered: 2012-06-15
Posts: 51

Re: Two SSD NVMe swapping device names on reboots

Thanks you both. I changed to UUID=XXXX-XXXX in fstab

Offline

Board footer

Powered by FluxBB