Le 25-11-2021, à 10:43:16 +0000, Jonathan Dowland a écrit :
On Thu, Nov 25, 2021 at 09:28:03AM +0100, steve wrote:It seems like /etc/fstab in not read when plugging in the device. What's wrong?The thing doing the mounting is udisks (8). Checking that man-page, one thing you can do to hint udisks to ignore a device is to have udev set a property UDISKS_IGNORE. So if you can write a udev rule that matches your device and sets ENV{UDISKS_IGNORE}="1", I think udisks will ignore it.
Ok I got it thanks to you. What I did: 1) created a file (97-ignore-ssd.rules) in /etc/udev/rules.d with the 2) put this line in it SUBSYSTEM=="block", ENV{ID_FS_UUID}=="ACDE12A6DE1268BA", ENV{UDISKS_IGNORE}="1" The ENV{ID_FS_UUID} was found with the command udevadm info /dev/sda1 | grep ID_FS_UUID= 3) Restarted udisks systemctl restart udisks2.service 4) plugged the device and only the ext4 partition was mounted. Hurray! Thanks again for the help. Steve