Since HAL is going away, attached is a udev rule that illustrates a
technique to do this with udev.

There are other published udev rules for mounting (e.g.,
http://wiki.archlinux.org/index.php/Udev#Auto_mounting_USB_devices), but
they all suffer from doing too much -- they take over the mounting
process.   This rule focuses on doing just one thing: re-mounting with
the options I want, in this case noatime.

In order to do this, I found that there is a race condition, so there is
a rule that first gives the system time to mount the device, after which
we remount with the additional option.


** Attachment added: "udev rule to mount SD/SDHC/mmc media with noatime"
   http://launchpadlibrarian.net/30287994/noatime.rules

-- 
gnome-mount does not pick up options from HAL
https://bugs.launchpad.net/bugs/319061
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to