From owner-freebsd-current@FreeBSD.ORG Wed Oct 14 17:53:41 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42573106568D for ; Wed, 14 Oct 2009 17:53:41 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yx0-f184.google.com (mail-yx0-f184.google.com [209.85.210.184]) by mx1.freebsd.org (Postfix) with ESMTP id E720B8FC24 for ; Wed, 14 Oct 2009 17:53:40 +0000 (UTC) Received: by mail-yx0-f184.google.com with SMTP id 14so79413yxe.7 for ; Wed, 14 Oct 2009 10:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=yqa52FX8afweNbT8f0XX+79yeLPmGqRgwfTmxK2c+dQ=; b=xaViuO+YtT5ra/0yhXhgWvwvZ1hQ1VRURZejr4wV386mCbyoN2crVb7E0OfLk3Uo53 55PpbEeUgOPc5iN9hPy7UMtUZVseR6olQNSfZPiIsGbg3ezCutqEukVerbBtas9MQKi4 VjIvvJDZnHtCqwmNhzgX2ndBR6bXVbvx7yBz0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vFVEVgQmSqC21v3SsCtUZbsf4d2lue/y1S14wdJkslujpbmiyr8WdxDHO+hl2NU6wl vwwfne8brYO4a5G8qvQuq1wsIKTW48UyANMhFFmjDFoGiyC3y2furMsOMPDXSlSo15gf 9KET1NUZK54HRaRZBliy6aKMaWPSMBsovCORU= MIME-Version: 1.0 Received: by 10.150.166.7 with SMTP id o7mr15366494ybe.224.1255542820423; Wed, 14 Oct 2009 10:53:40 -0700 (PDT) In-Reply-To: <26594.200.249.56.17.1255540574.squirrel@squirrel.sv4.hmnoc.net> References: <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> Date: Wed, 14 Oct 2009 10:53:40 -0700 Message-ID: From: Freddie Cash To: freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: buffers not syncing correctly during shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 17:53:41 -0000 2009/10/14 Mario Lobo > > "Mario Lobo" 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