From owner-freebsd-questions@FreeBSD.ORG Wed Jun 28 15:33:31 2006 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 8D92216A5BB for ; Wed, 28 Jun 2006 15:33:31 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEA9D443DC for ; Wed, 28 Jun 2006 14:31:19 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 18864 invoked from network); 28 Jun 2006 14:31:19 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Jun 2006 14:31:19 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 3EFF328449; Wed, 28 Jun 2006 10:31:18 -0400 (EDT) To: Maxim Vetrov References: <44A05015.9060104@mail.ru> From: Lowell Gilbert Date: Wed, 28 Jun 2006 10:31:18 -0400 In-Reply-To: <44A05015.9060104@mail.ru> (Maxim Vetrov's message of "Mon, 26 Jun 2006 21:22:29 +0000") Message-ID: <44psgt5p3d.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@FreeBSD.org Subject: Re: Need help restoring from filesystem failure X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jun 2006 15:33:32 -0000 Maxim Vetrov writes: > I'm running 6.1 release compiled from source. For a half of june it > run smoothly. But then somehow I got a filesystem crash - it just > refused to start after reaching fstab mounts, saying that fs (/data) > was not properly dismounted: > ... > WARNING: /data was not properly dismounted > /data: bad dir ino 2 at offset 16384: mangled entry > panic: ufs_dir_bad: bad dir > ... > > I rebooted in single user mode and run fsck -f on each filesystem. All > but one were clean. I agreed on automatic correction suggested by > fsck (shame on me, I do not remember what the message was about). Fsck > applied suggested change and marked fs as clean. Then I tried to mount > the fs: >> mount /dev/ad0s1f /data > Instead I got complains about not properly dismounting and page fault > while at kernel mode (page not present). > I run fsck one more time (it didn't find any problem this time) and > rebooted the system. The first problem showed up. Now I have vicious > circle: mangled entry and page fault. The disk itself is probably having serious problems. I would try copying the whole filesystem. dd(1) with conv=noerror may be a good start. > Is there any way to correct the problem? I was not so "excited" if it > had been /var or even /usr, but it was /data with all of my personal > projects and I do not have backups!!! That is a rather unfortunate error.