Running Siduction 13.2.0 LXDE AMD64.
Entries were manually added to /etc/fstab to enable mounting drives from a user shell:
prompt$ cat /etc/fstab
UUID=de57w35f-2695-4f67-b727-2f69b94f763c / ext4 defaults,relatime,errors=remount-ro 0 1
UUID=34bc82c8-64b4-43ed-8386-1a678b77e87a none swap sw 0 0
UUID=326f56c5-27b9-4ae2-bad8-d814846bee9e /home ext4 defaults,relatime,errors=remount-ro 0 2
## Added the following mount points for users, 1/14/14
/dev/sr0 /cd iso9660 noauto,ro,users 0 0
/dev/fd0 /floppy auto noauto,rw,users 0 0
/dev/sdb1 /2hd auto rw,user,noauto 0 0
/dev/sdc1 /3hd auto rw,user,noauto 0 0
/dev/sdd1 /4hd auto rw,user,noauto 0 0
/dev/sde1 /5hd auto rw,user,noauto 0 0
Now, every time a USB dirve is plugged-in, it instantly automounts -- not the desired result. What is worse is that the automounted plug-in drives are mounted as root, so one is forced to sudo or login as root just to unmount those drives. Additionally, one is forced to sudo or login as root to write to such automounted drives.
Of course, all of these conditions are undesired, and disabling the automounting is the desired solution.
systemd-fstab-generator is generating entries for the /etc/fstab lines:
prompt$ ls /run/systemd/generator/
2hd.mount 4hd.mount cd.mount dev-disk-by\x2duuid-34b292c8\[snip]\x2d1a678b77e87a.device.wants/ floppy.mount local-fs.target.requires/ multi-user.target.wants/
3hd.mount 5hd.mount dev-disk-by\x2duuid-326f56b5\[snip]\x2dd814846bee9e.device.wants/ dev-disk-by\x2duuid-34b292c8\[snip]\x2d1a678b77e87a.swap home.mount -.mount /systemd/generator/
Here is the content of one of those generated entries:
prompt$ cat /run/systemd/generator/4hd.mount
# Automatically generated by systemd-fstab-generator
[Unit]
SourcePath=/etc/fstab
DefaultDependencies=no
After=local-fs-pre.target
Conflicts=umount.target
Before=umount.target
[Mount]
What=/dev/sdd1
Where=/4hd
Type=auto
FsckPassNo=0
Options=rw,user,noauto
Here is a list of unit files relating to "mount":
prompt# systemctl list-unit-files | grep -i mount
proc-sys-fs-binfmt_misc.automount static
dev-hugepages.mount static
dev-mqueue.mount static
proc-sys-fs-binfmt_misc.mount static
run-lock.mount static
run-user.mount static
sys-fs-fuse-connections.mount static
sys-kernel-config.mount static
sys-kernel-debug.mount static
tmp.mount disabled
mountall-bootclean.service masked
mountall.service masked
mountdevsubfs.service masked
mountkernfs.service masked
mountnfs-bootclean.service masked
mountnfs.service masked
systemd-remount-fs.service static
umount.target static
I stopped two or three of these units that seemed appropriate, but to no avail -- plug-in drives still automounted as root.
Before I try every item on this list, I am just wondering if anyone is familiar with the problem and knows an easy solution. Not sure if udisks is involved.
By the way, here is an OpenSUSE bug report on what appears to be the same problem:
http://lists.opensuse.org/opensuse-bugs/2013-03/msg02606.htmlThanks!