From owner-freebsd-current@FreeBSD.ORG Sun Aug 24 23:12:48 2003 Return-Path: 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 C8CF716A4BF for ; Sun, 24 Aug 2003 23:12:48 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614E843FE1 for ; Sun, 24 Aug 2003 23:12:47 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id QAA17673; Mon, 25 Aug 2003 16:12:31 +1000 Date: Mon, 25 Aug 2003 16:12:30 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Thomas Gutzler In-Reply-To: <20030824232636.GC14668@brain.hadiko.de> Message-ID: <20030825161221.U3593@gamplex.bde.org> References: <20030824192611.GA14668@brain.hadiko.de> <20030824232636.GC14668@brain.hadiko.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: FreeBSD Current Subject: Re: recover superblock X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 06:12:48 -0000 On Mon, 25 Aug 2003, Thomas Gutzler wrote: > Problem solved. > > I could restore the superblock using: > dd if= skip=32 of= seek=16 bs=512 count=16 > > Thx to > http://groups.google.de/groups?selm=Pine.BSF.4.21.0212150052530.41793-100000_root.org%40ns.sol.net&oe=UTF-8&output=gplain Not really solved. fsck_ffs is supposed to be able to find alternative superblocks automatically, and the primary superblock shouldn't get trashed. Apparently the first alternative is at offset 32 (this is a normal place for it IIRC), but fsck_ffs can't find it there for some reason. Bruce