From owner-freebsd-current Sun Jan 26 5:14:21 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E44C737B401 for ; Sun, 26 Jan 2003 05:14:19 -0800 (PST) Received: from sydney.lemis.com (sydney.lemis.com [192.109.197.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8550443F8B for ; Sun, 26 Jan 2003 05:14:05 -0800 (PST) (envelope-from grog@sydney.worldwide.lemis.com) Received: from sydney.worldwide.lemis.com (smmsp@localhost [127.0.0.1]) by sydney.lemis.com (8.12.6/8.12.6) with ESMTP id h0QDCGJi001044; Sun, 26 Jan 2003 21:13:55 +0800 (WST) (envelope-from grog@sydney.worldwide.lemis.com) Received: (from grog@localhost) by sydney.worldwide.lemis.com (8.12.6/8.12.6/Submit) id h0Q88V8L001864; Sun, 26 Jan 2003 16:08:31 +0800 (WST) Date: Sun, 26 Jan 2003 16:08:31 +0800 From: Greg Lehey To: "Daniel O'Connor" Cc: David Schultz , Nate Lawson , current@freebsd.org Subject: Re: I've just had a massive file system crash Message-ID: <20030126080830.GE1606@sydney.worldwide.lemis.com> References: <20030125070352.GA933@HAL9000.homeunix.com> <20030125213859.GB6339@HAL9000.homeunix.com> <1043553241.85148.191.camel@chowder.dons.net.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1043553241.85148.191.camel@chowder.dons.net.au> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, 26 January 2003 at 14:24:02 +1030, Daniel O'Connor wrote: > On Sun, 2003-01-26 at 08:08, David Schultz wrote: >> Good. I was referring to IDE in this case, because I assume >> that's what Greg's laptop uses. The ATA driver flushes the cache >> when the device is closed, but I don't think that happens during >> shutdown. It probably needs to register a shutdown hook like the >> SCSI driver. Also, the driver is a bit optimistic about how long >> the flush will take; it times out after 5 seconds, whereas the ATA >> spec says a flush can take up to 30 seconds. > > I am wondering if I experienced this problem with my -stable laptop.. > > I shut it down and then booted it up later to find fsck having a nice > good chew on the drive (deleting REAMS of files). Did you use shutdown -p? If my hypothesis is correct, it's possible to get this result with shutdown -h if you press the power switch as soon as the "System halted" message appears, but normally you'd give it a few seconds longer. With shutdown -p, it's immediate, modulo delay. Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message