From owner-freebsd-questions@FreeBSD.ORG Fri May 23 21:38:18 2003 Return-Path: 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 C41A537B401 for ; Fri, 23 May 2003 21:38:18 -0700 (PDT) Received: from franka.aracnet.com (franka.aracnet.com [216.99.193.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50DB543F85 for ; Fri, 23 May 2003 21:38:18 -0700 (PDT) (envelope-from dcf@aracnet.com) Received: from shell1.aracnet.com (shell1.aracnet.com [216.99.193.21]) by franka.aracnet.com (8.12.9/8.12.9) with ESMTP id h4O4aTlD009391 for ; Fri, 23 May 2003 21:36:29 -0700 Received: (from dcf@localhost) by shell1.aracnet.com (8.12.9/8.12.9/Submit) id h4O4cMph008332; Fri, 23 May 2003 21:38:22 -0700 Date: Fri, 23 May 2003 21:38:22 -0700 (PDT) From: David Fleck To: freebsd-questions@freebsd.org In-Reply-To: <1BFC1FE0-8D96-11D7-8A86-000393681B06@lafn.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Can't fsck disk - now what? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 May 2003 04:38:19 -0000 Using 4.6 release. OK, I was browsing happily in Mozilla when the system became completely unresponsive - couldn't ping it, couldn't get a response from any of the VTs. So I reboot: Automatic boot in progress... [... Several filesystems found clean, messages deleted ... ] /dev/ad0s1f: clean, 1201402 free (522 frags, 150110 blocks, 0.0% fragmentation) /dev/ad0s1f: UNKNOWN FILE TYPE I=1640145 /dev/ad0s1f: UNEXPECTED SOFT UPDATE INCONSISTENCY; RUN fsck MANUALLY. THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: /dev/ad0s1f (/usr) Automatic file system check failed . . . help! "Help", indeed. /usr is not a partition I want to be without. I drop to /bin/sh, and discover, to my great unhappy surprise, that I don't have fsck in /bin. WTF??? OK, fine. I fire up the live filesystem CD. I go to the main menu, then the Fixit option. I start the live filesystem, then try to fsck: Fixit# fsck /dev/ad0s1f Can't stat /dev/ad0s1f: no such file or directory oh joy. sure enough, in /dev, there's an ad0s1, but that's it. no /dev/ad0s1f. Maybe if I copy fsck to one of the partitions that still mount? Tried that... $ ./fsck /dev/ad0s1f WARNING: R/W mount of /usr denied. Filesystem is not clean - run fsck fsck: /dev/ad0s1f: Operation not permitted Right. The fsck on the CD works, but can't see the partition; the fsck on the drive sees the partition, but won't fsck the damned thing. In short, what the f*** do I do now? -- David Fleck dcf@aracnet.com