From owner-freebsd-questions@FreeBSD.ORG Thu Sep 20 08:28:33 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 623C81065670 for ; Thu, 20 Sep 2012 08:28:33 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp2.insight.synacor.com [208.47.185.24]) by mx1.freebsd.org (Postfix) with ESMTP id 1049A8FC0A for ; Thu, 20 Sep 2012 08:28:32 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=JQF/U8uMOaM7klsZtU2OzAZy8R0V4r9D1oTLl84RwNs= c=1 sm=0 a=aOVj387OJngA:10 a=jLN7EqiLvroA:10 a=n999FUABAAAA:8 a=qkKCVq1TEwvMCNB542oA:9 a=aqUcuiLWc-oA:10 a=AcdsImxJPJ9Yo6Ye3TGm+Q==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp01.insight.synacor.com header.from=mueller23@insightbb.com; sender-id=softfail Authentication-Results: smtp01.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Received-SPF: softfail (smtp01.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.34.76 as permitted sender) Received: from [74.134.34.76] ([74.134.34.76:53615] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id F4/9A-06813-9A3DA505; Thu, 20 Sep 2012 04:28:26 -0400 Date: Thu, 20 Sep 2012 04:28:25 -0400 Message-ID: From: "Thomas Mueller" To: freebsd-questions@FreeBSD.org Cc: Erich Dollansky , Steve O'Hara-Smith Subject: Re: fsck not working on messed-up file system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2012 08:28:33 -0000 > ***** PLEASE RERUN FSCK ***** > > Script done on Wed Sep 19 04:17:27 2012 > > Would this indicate a software bug, or is my Western Digital Caviar Green > > 3 TB hard drive failing? > Either something was referencing sectors off the end of the disc, > or the drive is failing. I'd be inclined to copy the data off somewhere > safe and subject the disc to extensive tests with smartctl from > smartmontools, then if it passes recreate the fileystem(s) and restore the > data. > Steve O'Hara-Smith I went looking to see if there was something more powerful than fsck in the ports tree, category sysutils, but didn't find anything. I wonder why NetBSD fsck was able to revive the partition when FreeBSD fsck got stuck in a loop, though I easily got out of said loop by not re-rerunning fsck. Maybe NetBSD fsck was better than FreeBSD fsck for repairing NetBSD mischief? It might be good to build, from ports, not only smartmontools but also subversion, on my backup 8 GB FreeBSD USB stick. I might also want to rerun "cvs up -dP" on the NetBSD pkgsrc and system-source directories before using again, hoping to retrieve anything that might have been lost. > > Script started on Wed Sep 19 04:15:02 2012 > > fsck_ffs /dev/ada0p9 > just to make sure: the partition was not mounted when you started fsck? > > Now I wonder if the file system is really fixed, with possibly some > > files in /pkgsrc subdirectories lost, or if the hard drive is > > starting to fail. > You see it soon. I would not bother about a single problem like this. I > have had it over and over again at a location with bad power supply > with a normal PC without UPS. > The hard disk is - one year later - still working in a different > location without any new problems. > Erich I remembered not to run fsck on a mounted partition. When I booted into NetBSD, I mounted the partition, /dev/dk6, and found it didn't look trashed, though there was a warning regarding the dirty flag. Then I umounted before running fsck_ffs, successfully. It was not a power problem, I have Opti-UPS. NetBSD crashed a few times with the partition in question mounted. Starting X and exiting X are high-crash-risk in NetBSD. Maybe using the same partition by both FreeBSD and NetBSD induces file system errors? Or maybe it's the NetBSD system crash. I could be sure to not have any partition on 3 TB hard disk mounted unnecessarily when running NetBSD: umount when finished and before running X. Tom