From owner-freebsd-current@FreeBSD.ORG Wed Oct 14 13:54:04 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 2CE491065670 for ; Wed, 14 Oct 2009 13:54:04 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from sv4.hmnoc.net (sv4.hmnoc.net [63.247.76.174]) by mx1.freebsd.org (Postfix) with ESMTP id E86CC8FC08 for ; Wed, 14 Oct 2009 13:54:03 +0000 (UTC) Received: from localhost ([127.0.0.1]:50279 helo=squirrel.sv4.hmnoc.net) by sv4.hmnoc.net with esmtp (Exim 4.69) (envelope-from ) id 1My4Ig-0001jY-DY for freebsd-current@freebsd.org; Wed, 14 Oct 2009 10:53:58 -0300 Received: from 200.249.56.17 (proxying for unknown) (SquirrelMail authenticated user mlobo@digiart.art.br) by squirrel.sv4.hmnoc.net with HTTP; Wed, 14 Oct 2009 10:53:58 -0300 (BRT) Message-ID: <18175.200.249.56.17.1255528438.squirrel@squirrel.sv4.hmnoc.net> In-Reply-To: <20091014151026.699a5765@ernst.jennejohn.org> References: <20091014151026.699a5765@ernst.jennejohn.org> Date: Wed, 14 Oct 2009 10:53:58 -0300 (BRT) From: "Mario Lobo" To: freebsd-current@freebsd.org User-Agent: SquirrelMail/1.4.8 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sv4.hmnoc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - digiart.art.br 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 13:54:04 -0000 > On Wed, 14 Oct 2009 12:49:54 +0200 (CEST) > Alexander Best wrote: > >> hi there, >> >> to keep it short: >> >> 1. mount a removable device (e.g. an usb stick) (better use -r to >> prevent data >> loss) >> 2. unplug the device (without unmounting it) >> 3. `shutdown -r now` >> >> what happens is that the usual shutdown routine gets processed until all >> buffers are synced, but then the system stalls. >> >> after resetting the system all devices (which were supposed to be >> synced) are >> marked dirty and are being fsck'ed. >> >> cheers. >> alex >> >> oh...and i'm running FreeBSD otaku 9.0-CURRENT FreeBSD 9.0-CURRENT #0 >> r197914: >> Sat Oct 10 02:58:19 CEST 2009 >> root@otaku:/usr/obj/usr/src/sys/ARUNDEL >> i386 >> > > I'm inclined to say that umount'ing the file systems is failing because > you pulled the USB stick out without doing umount. Of course, that > results in all file systems still being marked dirty. Obviously, this > pathological case isn't being handled. > > I personally don't see why it ever should be handled. This is UNIX not > Windows and users should be smart enough to know that they umount such > devices before removing them otherwise nasty things can happen. > > --- > Gary Jennejohn > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > I must add that even windows has a "Safely Remove Hardware" before unplugging the usb device. Mario