[systemd-devel] How to automount

Mantas Mikulėnas grawity at gmail.com
Mon Sep 21 21:56:24 PDT 2015


On Tue, Sep 22, 2015 at 7:38 AM, Paul D. DeRocco <pderocco at ix.netcom.com>
wrote:

> > From: Mantas Mikulenas [mailto:grawity at gmail.com]
> >
> > > I don't think there's any way to have something auto-unmount
> >
> > There certainly is - udev has been unmounting unplugged
> > drives for many years. It's done by default.
>
> Sure, you can get it to unmount after you've removed it, but that's too
> late if you haven't synced it. You have to do an explicit sync in advance
>

Well you said:

> and unmounted when I unplug it.

Are you asking the OS to be prescient?


> to avoid data loss. The only alternative is to disable write buffering,
> which makes things slow, and stresses the drive.
>

No, that's not the only alternative – making the OS flush data more often
is another, e.g. as Windows does (every 2s), and AFAIK Linux has also
started doing so somewhere in the 3.x series.

-- 
Mantas Mikulėnas <grawity at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20150922/39ade7ff/attachment.html>


More information about the systemd-devel mailing list