From owner-freebsd-fs@FreeBSD.ORG Wed Apr 1 18:41:05 2015 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 921D7D11 for ; Wed, 1 Apr 2015 18:41:05 +0000 (UTC) Received: from elf.torek.net (mail.torek.net [96.90.199.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 36FDA810 for ; Wed, 1 Apr 2015 18:41:03 +0000 (UTC) Received: from elf.torek.net (localhost [127.0.0.1]) by elf.torek.net (8.14.5/8.14.5) with ESMTP id t318CxQ7062913; Wed, 1 Apr 2015 02:13:00 -0600 (MDT) (envelope-from torek@torek.net) Message-Id: <201504010813.t318CxQ7062913@elf.torek.net> From: Chris Torek To: Da Rock , freebsd-fs@freebsd.org Subject: Re: Delete a directory, crash the system MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <62905.1427875979.1@elf.torek.net> Date: Wed, 01 Apr 2015 01:12:59 -0700 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (elf.torek.net [127.0.0.1]); Wed, 01 Apr 2015 02:13:00 -0600 (MDT) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 18:41:05 -0000 > ... run fsck after a crash ... will allow you to recover from > media errors which it appears your system is suffering from. > SU+J is just a faster way of restarting but only works when you > do not have media errors. It's worth adding that this is also needed after some non-media memory errors (on systems lacking ECC, which -- alas -- includes my main home system) that corrupt bits in FFS bitmaps and directories, which are then written back to the (perfectly good) medium. (I had a bad DRAM chip that memtest86+ found for me, that until I replaced it caused broken file systems, that after I replaced it in turn caused panics followed by inappropriate journal recovery. There's really nothing to do here other than force the fsck.) Chris