On Tue, Sep 22, 2015 at 7:38 AM, Paul D. DeRocco <[email protected]>
wrote:

> > From: Mantas Mikulenas [mailto:[email protected]]
> >
> > > 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 <[email protected]>
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to