From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 31 13:55:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA90F16A4CE; Sun, 31 Oct 2004 13:55:37 +0000 (GMT) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB59B43D55; Sun, 31 Oct 2004 13:55:36 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.12.11/8.12.10) with ESMTP id i9VDtY8p047992; Sun, 31 Oct 2004 14:55:34 +0100 (CET) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.12.11/8.12.10/Submit) id i9VDtYbo047991; Sun, 31 Oct 2004 14:55:34 +0100 (CET) (envelope-from kuku) Date: Sun, 31 Oct 2004 14:55:34 +0100 From: "Christoph P. Kukulies" To: Maxim Konovalov Message-ID: <20041031135534.GA47952@kukulies.org> References: <20041031114210.GA46741@kukulies.org> <20041031152426.P81269@mp2.macomnet.net> <20041031124704.GA47288@kukulies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041031124704.GA47288@kukulies.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org Subject: Re: finding alternate superblocks in ffs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2004 13:55:38 -0000 On Sun, Oct 31, 2004 at 01:47:04PM +0100, Christoph P. Kukulies wrote: > On Sun, Oct 31, 2004 at 03:26:04PM +0300, Maxim Konovalov wrote: > > [...] > > > Any idea what I can do now? > > > > > > I wrote a little program that opens /dev/ad2s1e > > > > [...] > > > I'm not sure whether my approach is correct. > > > > src/tools/tools/find-sb ...gave me the following: cks from last guess Found UFS1 superblock at offset 10165436416, block 19854368 Filesystem might begin at offset 10165428224, block 19854352 376192 blocks from last guess Found UFS1 superblock at offset 10358046720, block 20230560 Filesystem might begin at offset 10358038528, block 20230544 376192 blocks from last guess Found UFS1 superblock at offset 10550657024, block 20606752 Filesystem might begin at offset 10550648832, block 20606736 376192 blocks from last guess Found UFS1 superblock at offset 10743267328, block 20982944 Filesystem might begin at offset 10743259136, block 20982928 376192 blocks from last guess reached end-of-file at 10913440256 kukuboo2k# fsck_ffs -b 19854352 /dev/ad2s1e Alternate super block location: 19854352 ** /dev/ad2s1e 19854352 is not a file system superblock kukuboo2k# fsck_ffs -b 19854368 /dev/ad2s1e Alternate super block location: 19854368 ** /dev/ad2s1e ** Last Mounted on ** Phase 1 - Check Blocks and Sizes 1496 DUP I=3 1497 DUP I=3 1498 DUP I=3 CANNOT READ BLK: 21443008 CONTINUE? [yn] I got lots of these CANNOT READ BLK messages during previous attempts with different superblock numbers although they were not accompanied by kernel messages or hard errors. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org