From owner-freebsd-stable@FreeBSD.ORG Sat Aug 27 06:19:57 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A1FD106564A for ; Sat, 27 Aug 2011 06:19:57 +0000 (UTC) (envelope-from ulf@alameda.net) Received: from mail.alameda.net (mail.alameda.net [194.55.105.10]) by mx1.freebsd.org (Postfix) with ESMTP id 353458FC08 for ; Sat, 27 Aug 2011 06:19:56 +0000 (UTC) Received: by mail.alameda.net (Postfix, from userid 1000) id D74151CC70; Fri, 26 Aug 2011 22:49:28 -0700 (PDT) Date: Fri, 26 Aug 2011 22:49:28 -0700 From: Ulf Zimmermann To: Kevin Oberman Message-ID: <20110827054928.GF19016@evil.alameda.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 5.5-PRERELEASE X-ANI-MailScanner-Information: Please contact the ISP for more information X-ANI-MailScanner-ID: D74151CC70.A494F X-ANI-MailScanner: Found to be clean X-ANI-MailScanner-From: ulf@alameda.net Cc: "freebsd-stable@freebsd.org Stable" Subject: Re: Unable to shutdown X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ulf@Alameda.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2011 06:19:57 -0000 On Fri, Aug 26, 2011 at 09:51:02PM -0700, Kevin Oberman wrote: > I've run into an odd problem with dismounting file systems on a > Seagate Expansion portable > USB drive. Running 8-stable on an amd64 system and with two FAT32 > (msdosfs) file systems > on the drive. > > The drive is "green" and spins down when idle. If an attempt is made > to shutdown the > system while the drive is spun down, the system goes through the usual > shutdown including > flushing all buffer out to disk, but when the final disk access to > mark the file systems as > clean, the drive never spins up and the system hangs until it is > powered down. I've found no > way to avoid this other then to remember to access the disk and cause > it to spin up before > shutting down. > > If I attempt to unmount the file systems when the drive is shut down. > the same thing > happens, but I can recover as the second file system is still mounted > and an ls(1) to that file > system will cause the disk to spin up and everything is fine. > > This looks like a bug, but I don't see why the unmounting of an > msdosfs system does not > spin up the drive. It's clearly hanging on some operation that is not > spinning up the drive, > but does block. > > Any ideas what is going on? Possible fix? > -- > R. Kevin Oberman, Network Engineer - Retired > E-mail: kob6558@gmail.com Have a script, which gets run at shutdown as one of the first ones, which would do a ls on the filesystem to wake the drive up. -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://www.Alameda.net/~ulf/resume.html