<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 22, 2015 at 7:38 AM, Paul D. DeRocco <span dir="ltr"><<a href="mailto:pderocco@ix.netcom.com" target="_blank">pderocco@ix.netcom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">> From: Mantas Mikulenas [mailto:<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>]<br>
<span class="">><br>
> > I don't think there's any way to have something auto-unmount<br>
><br>
</span>> There certainly is - udev has been unmounting unplugged<br>
<span class="">> drives for many years. It's done by default.<br>
<br>
</span>Sure, you can get it to unmount after you've removed it, but that's too<br>
late if you haven't synced it. You have to do an explicit sync in advance<br></blockquote><div><br></div><div>Well you said:</div><div><br></div><div>> <span style="font-size:12.8px">and unmounted when I unplug it.</span></div><div><br></div><div>Are you asking the OS to be prescient?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
to avoid data loss. The only alternative is to disable write buffering,<br>
which makes things slow, and stresses the drive.<br></blockquote><div><br></div><div>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.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>