[yocto] [systemd-devel] How to automount

Mike Looijmans mike.looijmans at topic.nl
Wed Sep 23 00:20:35 PDT 2015


On 22-09-15 20:33, Fred Ollinger wrote:
...
> SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh"

This only serves to remove a mounted directory after "yanking" the device. It 
doesn't really do anything useful though, you'll still get corrupted 
filesystems, because Linux is way too lazy in writing out dirty data.

Proper solution would be to have the system mount a removable device as 
read-only, and promote it to r/w once someone tries to write to it. And then 
after a timeout, it should go back to readonly.

Supposedly, "autofs" can accomplish this, but I've never met anyone who got 
that to actually work.



Kind regards,

Mike Looijmans
System Expert

TOPIC Embedded Products
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: +31 (0) 499 33 69 79
Telefax: +31 (0) 499 33 69 70
E-mail: mike.looijmans at topicproducts.com
Website: www.topicproducts.com

Please consider the environment before printing this e-mail








More information about the yocto mailing list