On 06/11/2018 01:28 AM, Kate Draven wrote:
Hi people (and others)
I'm having a lot of trouble figuring out how to disable the auto mount
function for usb hard drives.
Every time I connect a HD via a usb HD dock. It auto mounts the drive.
Is there anyway to stop this? I think it's udisksd or something. Google was
useless regarding how to disable it.
I'm asking PCLinuxOS people but I expect I'll get an answer here faster.
Any help would be greatly appreciated.
Kate
Hi Kate, you can write your drive to /etc/fstab using noauto.
If you want to add it to fstab and need some help let us know the dev
name or uuid, file system type and where you want to mount it, I use
/home/jimmy/sdb1 or it could be /mount/sdb1 or /media/sdb1. Here's a
example of how I handle sdb1 on this desktop.
'/dev/sdb1 /home/jimmy/01-SDB1 ext4 noauto,users,exec,relatime 0 0'
But what you're seeing seems to be a PC Linux OS thing and is not the
behavior of devuan or debian.
--
Jimmy Johnson
Devuan Jessie - KDE 4.14.2 - AMD A8-7600 - EXT4 at sda5
Registered Linux User #380263