From owner-freebsd-questions@FreeBSD.ORG Mon Oct 31 10:27:55 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9AF0116A41F for ; Mon, 31 Oct 2005 10:27:55 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59C5843D49 for ; Mon, 31 Oct 2005 10:27:55 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-91-226-109.san.res.rr.com [66.91.226.109]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j9VAv6T3009748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Oct 2005 02:57:06 -0800 X-MailKey: purple frogs are falling from the sky Message-Id: <6.2.3.4.2.20051031021302.062076d0@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Mon, 31 Oct 2005 02:24:49 -0800 To: Edward Lichtner , f-q From: Glenn Dawson In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: Subject: Re: File system check fails on boot 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: Mon, 31 Oct 2005 10:27:55 -0000 At 02:06 AM 10/31/2005, Edward Lichtner wrote: >Hi all, >There's fire in the house... I recently inserted a USB memory stick and my >5.4 Stable machine rebooted suddenly. I now get the following on boot : > >Starting file system checks : >/dev/ad0s3a: UNKNOWN FILE TYPE I=2900154 >/dev/ad0s3a: UNEXPECTED SOFT UPDATE INCONSISTENCY: RUN fsck MANUALLY. >Automatic file system check failed; help! >Oct. 30 20:14:53 init: /bin/sh on /etc/rc terminated abnormally, going to >single user mode > >When I run fsck, I get the folllowing : > >** Phase 1 - Check Blocks and Sizes >UNKNOWN FILE TYPE I=2900154 >UNEXPECTED SOFT UPDATE INCONSISTENCY > >CLEAR? [yn] > >** Phase 2 - Check Pathnames >DUP/BAD I=2900154 OWNER=root MODE=100644 >SIZE=93 MTIME=Mar 25 04:13 2004 >FILE=/usr/ports/net/ldapbrowser/distinfo > >UNEXPECTED SOFT UPDATE INCONSISTENCY > >REMOVE? [yn] > >** Phase 3 - Check Connectivity >** Phase 4 - Check Reference Counts >LINK COUNT DIR I=2 OWNER=root MODE=40755 >SIZE=512 MTIME=Oct 30 17:20 2005 COUNT 21 SHOULD BE 20 >ADJUST? [yn] > >UNREF FILE I=471058 OWNER=root MODE=100644 >SIZE=72 MTIME=Oct 30 19:03 2005 >RECONNECT? [yn] > >CLEAR? [yn] > >I then get similar messages for a dozen files, then : > >** Phase 5 - Check Cyl groups >SUMMARY INFORMATION BAD >SALVAGE? [yn] > >BLK(S) MISSING IN BIT MAPS >SALVAGE? [yn] > >FREE BLK COUNT(S) WRONG IN SUPERBLK >SALVAGE? [yn] > >And so on... Should I just answer yes to all questions and hope for the >best, or is there a better way of saving the day ? Needless to say, my whole >system is on /dev/ad0s3a. Anytime a file system is not unmounted properly you'll get some quantity of errors from fsck the next time the system tries to mount it. If there was no activity on the file system, fsck can typically deal with things on it's own. When there were open files and some level of activity on the file system, you'll get the types of errors that you are seeing now. Most of the time, just saying yes to everything will work just fine, and you can move on. fsck -y will keep you from having to actually type 'y' at each prompt, which is handy because sometimes there are a lot of those prompts. >Also, what could have caused the problem ? I recently updated my kernel to >include HFS support. Could it be linked ? There's a port that will allow you to read hfs filesystems. It's in /usr/ports/emulators/hfs -Glenn >Thanks all, >Edward > > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"