From owner-freebsd-stable@FreeBSD.ORG Sun Aug 28 20:20:56 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 E6FEA106566B for ; Sun, 28 Aug 2011 20:20:56 +0000 (UTC) (envelope-from bengta@P142.sics.se) Received: from sink.sics.se (sink.sics.se [193.10.64.88]) by mx1.freebsd.org (Postfix) with ESMTP id 4189D8FC0A for ; Sun, 28 Aug 2011 20:20:55 +0000 (UTC) Received: from P142.sics.se (h209n5-u-d1.ias.bredband.telia.com [78.72.169.209]) by sink.sics.se (8.14.3/8.14.3) with ESMTP id p7SK5pWp062604 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 28 Aug 2011 22:05:51 +0200 (CEST) (envelope-from bengta@P142.sics.se) Received: from P142.sics.se (localhost [127.0.0.1]) by P142.sics.se (8.14.4/8.14.4) with ESMTP id p7SK69FO003902; Sun, 28 Aug 2011 22:06:09 +0200 (CEST) (envelope-from bengta@P142.sics.se) Received: (from bengta@localhost) by P142.sics.se (8.14.4/8.14.4/Submit) id p7SK69tw003901; Sun, 28 Aug 2011 22:06:09 +0200 (CEST) (envelope-from bengta@P142.sics.se) From: Bengt Ahlgren To: Kevin Oberman In-Reply-To: (Kevin Oberman's message of "Fri, 26 Aug 2011 21:51:02 -0700") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) Date: Sun, 28 Aug 2011 22:06:09 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-stable@freebsd.org Subject: Re: Unable to shutdown X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2011 20:20:57 -0000 Kevin Oberman writes: > 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? Not a solution to your problem, but a data point: I have a WD Passport 750GB (2.5") drive with an UFS filesystem on it. I don't think I've tried shutdown with the drive mounted, but I've experienced no problems after the drive has spun down, including umount. There is just a delay while it spins up. This is on 8.2-REL/i386, that is, with the new USB stack. Bengt