On Fri, 4 Dec 2015, Jürgen Braun wrote:
Hi all,
the Patch from Christian works for me as well with one exception. I had to remove the file /lib/udev/rules.d/usbmount.rules after creating /etc/udev/rules.d/usbmount.rules. If I do not remove the original file, usbmount is called twice which leads to a double mount of the usb flash drive:
$mount|grep sdd1 /dev/sdd1 on /media/usb1 type ext2 (rw,nosuid,nodev,noatime,nodiratime,errors=continue,user_xattr,acl) /dev/sdd1 on /media/usb2 type ext2 (rw,nosuid,nodev,noatime,nodiratime,errors=continue,user_xattr,acl)
I've successfully tested ext2, vfat and ntfs based usb flash drives so far using this patch.
I guess this is the systemd way to get this done. As far as I understood Christians patch, this adds a dependency to systemd (since it is using systemd-escape). I am not sure if this is the *best* way to do.
How to deal with systems using sysvinit or upstart?
I forgot to say that I replaced the old usbmount.rules with the old ones. Having two didn't make sense to me.
So usbmount.rules went into /lib/udev/rules.d. Also, I put usbmount@.service in /lib/systemd/system.
This was what lintian seemed to think was correct. anyway. I didn't check any documentation about this.
I've no idea whether how or if this works for systems not using systemd. Regards, Faheem