Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Oct 2009 10:53:40 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Re: buffers not syncing correctly during shutdown
Message-ID:  <b269bc570910141053k72fbb996t752744e64be436a1@mail.gmail.com>
In-Reply-To: <26594.200.249.56.17.1255540574.squirrel@squirrel.sv4.hmnoc.net>
References:  <permail-200910141049541e86ffa80000566c-a_best01@message-id.uni-muenster.de> <20091014151026.699a5765@ernst.jennejohn.org> <18175.200.249.56.17.1255528438.squirrel@squirrel.sv4.hmnoc.net> <86vdiix775.fsf@ds4.des.no> <26594.200.249.56.17.1255540574.squirrel@squirrel.sv4.hmnoc.net>

next in thread | previous in thread | raw e-mail | index | archive | help
2009/10/14 Mario Lobo <mlobo@digiart.art.br>

> > "Mario Lobo" <mlobo@digiart.art.br> writes:
> >> I must add that even windows has a "Safely Remove Hardware" before
> >> unplugging the usb device.
> >
> > What it really means is "sync the filesystem and tell me if there are
> > any open or locked files".  In most cases, you can yank the USB stick
> > out without adverse consequences.
> >
> > DES
> > --
> > Dag-Erling Sm=E7=B9=AArgrav - des@des.no
> >
> That IS true ! but like you said, "most cases" <> "all cases". Once, on a
> company I was doing work at, I clicked on "Safely Remove Hardware" and it
> said "can=E6=84=92 do it. device busy", although there was (apparently) n=
othing
> using any files from the stick. I yanked it out anyway. result: the 3
> files I edited from the stick were gone :(. Since I don=E6=84=92 know whe=
n I am
> gonna hit a case that doesn=E6=84=92 belong to "most", I always try to re=
member
> to unmount (i.e. Safely Remove Hardware) the stick before unplugging it.
>
> How Windows deals with USB removable storage depends on how you configure
the storage policy for the individual device, and globally for all removabl=
e
storage devices.

The default in Windows XP is "Optimise for performance", which requires the
use of the "Safely remove hardware" feature.  This enables write caching on
the device, which can lead to data loss if you remove the device before dat=
a
is actually flushed/written.

You can change it to "Optimise for quick removal", which disables write
caching, so you can remove the device at pretty much any time.

It's all done via the Policies tab in the Device Properties, accessible via
the Device Manager or by right-clicking->Properties on the device in Window=
s
Explorer.

I believe the default was switched at some point, though, so that the Safel=
y
Remove isn't always needed.
--=20
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b269bc570910141053k72fbb996t752744e64be436a1>