<p dir="ltr">> I don't think there's any way to have<br>
something auto-unmount</p>
<p dir="ltr">There certainly is – udev has been unmounting unplugged drives for many years. It's done by default.</p>
<br><div class="gmail_quote"><div dir="ltr">On Mon, Sep 21, 2015, 23:10 Paul D. DeRocco <<a href="mailto:pderocco@ix.netcom.com">pderocco@ix.netcom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> From: Umut Tezduyar Lindskog [mailto:<a href="mailto:umut@tezduyar.com" target="_blank">umut@tezduyar.com</a>]<br>
><br>
> I am not sure if automount is really the right way to go. In the end,<br>
> your automount path will fail if your device is not plugged in.<br>
<br>
A little experimenting showed you're right.<br>
<br>
> You could always use udev rules (ENV{SYSTEMD_WANTS}='media-ext.mount')<br>
> to mount the volume.<br>
> <a href="http://www.freedesktop.org/software/systemd/man/systemd.device.html" rel="noreferrer" target="_blank">http://www.freedesktop.org/software/systemd/man/systemd.device.html</a><br>
<br>
I was thinking about udev, too, but I don't think there's any way to have<br>
something auto-unmount. But I'm overcomplicating things. In my system, the<br>
only accesses made to this external flash drive are in response to a user<br>
command. So the simpler solution is just to have my application mount and<br>
unmount the drive, instead of trying to get the operating system to do it.<br>
<br>
--<br>
<br>
Ciao, Paul D. DeRocco<br>
Paul mailto:<a href="mailto:pderocco@ix.netcom.com" target="_blank">pderocco@ix.netcom.com</a><br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div>