From owner-freebsd-current@FreeBSD.ORG Fri Nov 4 21:28:42 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9415816A421 for ; Fri, 4 Nov 2005 21:28:42 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from ant.bwct.de (ant.bwct.de [85.159.14.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A1E243D6D for ; Fri, 4 Nov 2005 21:28:37 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by ant.bwct.de (8.12.11/8.12.11) with ESMTP id jA4LSPrg020971; Fri, 4 Nov 2005 22:28:29 +0100 (CET) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id jA4LSDJs007957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Nov 2005 22:28:14 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id jA4LSDQV005728; Fri, 4 Nov 2005 22:28:13 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id jA4LRwgG005727; Fri, 4 Nov 2005 22:27:58 +0100 (CET) (envelope-from ticso) Date: Fri, 4 Nov 2005 22:27:58 +0100 From: Bernd Walter To: Eric Anderson Message-ID: <20051104212757.GD4813@cicely12.cicely.de> References: <200511042023.36498.incmc@gmx.de> <436BBB1C.1030900@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <436BBB1C.1030900@centtech.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: Jochen Gensch , freebsd-current@freebsd.org Subject: Re: Filesystem panic - one hd inaccessable under 6-STABLE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2005 21:28:42 -0000 On Fri, Nov 04, 2005 at 01:48:44PM -0600, Eric Anderson wrote: > Jochen Gensch wrote: > >Hi! > > > >I've encountered a very bad thing here. I was compiling openoffice, when > >the system suddenly paniced and rebooted. When it was booting again it > >said: > > > >Nov 4 19:53:15 incmc kernel: Trying to mount root from ufs:/dev/ad0s3a > >Nov 4 19:53:15 incmc savecore: reboot after panic: ufs_dirbad: bad dir > >Nov 4 19:53:15 incmc savecore: writing core to vmcore.0 > > > >The bad news is, one harddisk, which was attached via firewire lost its > >superblock and cannot be used any more. This is my backup drive :-(. A > >fsck -t uds /device ends up with: > > > >fsck -t ufs /dev/da0s1 > >** /dev/da0s1 > >Cannot find file system superblock > >ioctl (GCINFO): Inappropriate ioctl for device > >fsck_ufs: /dev/da0s1: can't read disk label If you have the filesystem on a slice (e.g. da0s1) and not a partition (e.g. da0s1e) it shouldn't be an UFS one. > >both harddrives are running with ufs2 + softupdates Then check with disklabel da0s1 what partitions you have and use the 4.2BSD ones. > >I'm scared :-( > > try: > > fsck -b 160 /dev/da0s1 fsck_ufs - fsck won't pass -b option I think, but that requires a 4.2BSD partition as well. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de