This is slowly driving me crazy. Three USB SSDs, automounted (fstab, systemd-automount) behave differently where behavior should be identical between two of them.
The hardware looks identical:
# lsusb -vt
...
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 10000M
ID 1d6b:0003 Linux Foundation 3.0 root hub
|__ Port 2: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 2109:0817 VIA Labs, Inc.
|__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
|__ Port 2: Dev 5, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
|__ Port 4: Dev 6, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
ID 152d:1561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS561U two ports SATA 6Gb/s bridge
|__ Port 3: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
ID 2109:0817 VIA Labs, Inc.
The drives are 3x Samsung SSD 870 QVO 1TB. One of the SSDs was bought at a different time than the others. The three USB-SATA bridges have the same vendor:device id but are in different enclosures.
So it may be that the firmware of the enclosures, and/or of the SSDs, are different.
SMART data of all three SSDs show nothing but “never” in the “failed” column.
I tested with and without quirks in /etc/modprobe.d/disable-uas.conf
– no difference.
[#] options usb-storage quirks=152d:1561:u,152d:0578:u
Two of the drives have nearly identical entries in fstab
and crypttab
; the third is unlocked and mounted manually.
# /etc/crypttab
backup-usb-1 PARTUUID=f29a9694-f2a1-7341-9871-c68f546e4899 /etc/keyfiles.d/usb-backup.keyfile luks,key-slot=1,headless=true,noauto,nofail,x-systemd.device-timeout=4
backup-usb-2 PARTUUID=585a389f-975a-db43-bcb3-f2c045e345b2 /etc/keyfiles.d/usb-backup.keyfile luks,key-slot=1,headless=true,noauto,nofail,x-systemd.device-timeout=4
Setting the timeout had made no difference.
### /etc/fstab
/dev/mapper/backup-usb-1 /run/media/backup-devices.d/backup1 btrfs x-systemd.automount,nofail,nouser,ssd,rw,noatime 0 0
/dev/mapper/backup-usb-2 /run/media/backup-devices.d/backup2 btrfs x-systemd.automount,nofail,nouser,ssd,rw,noatime 0 0
So what’s weird, is this:
Baseline: After boot, none of the SSDs are mounted, as expected.
# lsblk
...
sda 0 0 931,5G 0 disk
└─sda1 1 0 931,5G 0 part
sdb 16 0 931,5G 0 disk
└─sdb1 17 0 931,5G 0 part
sdc 32 0 931,5G 0 disk
└─sdc1 33 0 931,5G 0 part
A manual mount only mounts one SSD, but three times for good measure.
# mount -av
... # (boot device mounts)
/run/media/backup-devices.d/backup1: successfully mounted
Yes, that’s all.
# grep mapper /etc/mtab
...
/dev/mapper/backup-usb-1 /run/media/backup-devices.d/backup1 btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/mapper/backup-usb-1 /run/media/backup-devices.d/backup1 btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
/dev/mapper/backup-usb-1 /run/media/backup-devices.d/backup1 btrfs rw,noatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
...
The other two are not mounted and not unlocked.
# lsblk
...
sda 8:0 0 931,5G 0 disk
└─sda1 1 0 931,5G 0 part
sdb 16 0 931,5G 0 disk
└─sdb1 8:17 0 931,5G 0 part
sdc 0 931,5G 0 disk
└─sdc1 33 0 931,5G 0 part
└─backup-usb-1 254:2 0 931,5G 0 crypt /run/media/backup-devices.d/backup1
/run/media/backup-devices.d/backup1
/run/media/backup-devices.d/backup1
...
After manually unlocking (GUI, KDE Daemon dialog asks for password) all are mounted automatically on the right places. (The inconsistent labelling is cruft, please ignore.)
# lsblk
...
sda 8:0 0 931,5G 0 disk
└─sda1 8:1 0 931,5G 0 part
└─luks-3ad86390-5624-4e39-ab75-913d0c3e59f5 254:4 0 931,5G 0 crypt /run/media/me/backup-usb-2
sdb 8:16 0 931,5G 0 disk
└─sdb1 8:17 0 931,5G 0 part
└─luks-a386b816-2230-472b-b2a5-f66a76c66f1d 254:3 0 931,5G 0 crypt /run/media/me/Backup 0
sdc 8:32 0 931,5G 0 disk
└─sdc1 8:33 0 931,5G 0 part
└─backup-usb-1 254:2 0 931,5G 0 crypt /run/media/backup-devices.d/backup1
/run/media/backup-devices.d/backup1
/run/media/backup-devices.d/backup1
A second manual mount attempt hangs for a long time after mounting backup1, then reports a changed fstab. I’d expect three already mounted
.
# mount -av
... # (boot device mounts)
/run/media/backup-devices.d/backup1: already mounted
mount: (hint) your fstab has been modifieotherd, but systemd still uses
the old version; use 'systemctl daemon-reload' to reload.
No mention of the other two filesystems but a ‘changed’ fstab? What gremlin is messing with my sanity?!? (Realistically, I have a typo somewhere, or <insert basic dumbness here>.)