From owner-freebsd-questions@FreeBSD.ORG Wed Feb 4 08:47:59 2004 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 1952516A4CE for ; Wed, 4 Feb 2004 08:47:59 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 04E3343D2F for ; Wed, 4 Feb 2004 08:47:30 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 84623 invoked by uid 555); 4 Feb 2004 19:47:28 +0300 Received: from hal.localdomain (213.80.149.134) by t-k.ru with TeleMail/2 id 1075913247-84567 for scott@sremick.net; Wed, Feb 4 19:47:27 2004 +0300 (MSK) Date: Wed, 4 Feb 2004 19:50:12 +0300 From: Sergey 'DoubleF' Zaharchenko To: scott@sremick.net Message-Id: <20040204195012.3a92f00d@Hal.localdomain> In-Reply-To: <20040204162647.26818.qmail@web41114.mail.yahoo.com> References: <20040204190715.7a8d1730@Hal.localdomain> <20040204162647.26818.qmail@web41114.mail.yahoo.com> X-Mailer: Sylpheed version 0.9.8claws (GTK+ 1.2.10; i386-portbld-freebsd4.8) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Wed__4_Feb_2004_19_50_12_+0300_1AFFMbYY.rjGW2Xz" cc: Jerry McAllister cc: FreeBSD Subject: Re: "Cannot find file system superblock" error - how to recover? 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: Wed, 04 Feb 2004 16:47:59 -0000 --Signature=_Wed__4_Feb_2004_19_50_12_+0300_1AFFMbYY.rjGW2Xz Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Wed, 4 Feb 2004 08:26:47 -0800 (PST) "Scott I. Remick" probably wrote: > > --- Sergey 'DoubleF' Zaharchenko wrote: > > Try using fsck -n (answer `no'), and recording what else comes up. > > That won't work, because it answers no to the first question of looking for > alternate superblocks, then aborts immediately. So I'm just going to > manually say no to all questions after yes to the first: > > bash-2.05b# fsck /dev/ad2s1e > ** /dev/ad2s1e > BAD SUPER BLOCK: MAGIC NUMBER WRONG > > LOOK FOR ALTERNATE SUPERBLOCKS? [yn] y > > USING ALTERNATE SUPERBLOCK AT 32 > ** Last Mounted on > ** Phase 1 - Check Blocks and Sizes > 416 BAD I=2 > 412 BAD I=3 > 424 BAD I=4 > 414 BAD I=4 > 417 BAD I=5 > INCORRECT BLOCK COUNT I=4257794 (8928 should be 9952) > CORRECT? [yn] n > > 17227776 DUP I=4257795 > 17227777 DUP I=4257795 > 17227778 DUP I=4257795 > 17227779 DUP I=4257795 > 17227780 DUP I=4257795 > 17227781 DUP I=4257795 > 17227782 DUP I=4257795 > 17227783 DUP I=4257795 > 17227784 DUP I=4257795 > 17227785 DUP I=4257795 > 17227786 DUP I=4257795 > EXCESSIVE DUP BLKS I=4257795 > CONTINUE? [yn] n Here you should have answered `y' (it doesn't ask you to change anything yet). Let's try that again, shall we? > UPDATE STANDARD SUPERBLOCK? [yn] n > > > ***** FILE SYSTEM MARKED DIRTY ***** Well, after all fsck doesn't seem mad (`erase everything and mark fs clean'). But if you are really are paranoid, as you should be, you should copy the whole contents of the harddrive, maybe to a remote machine, by dd (over NFS, perhaps). Perhaps the `sparse' dd option would help save a bit of space (by creating `holes' in the file where there were NUL's on the harddrive). > > If you know what fsdb(8) is, it might be helpful (still with the -r > > (read-only) option, and the -d option as well). I don't, but I'm > > learning it intensively at the moment:). > > I don't, and the man page sufficiently put the fear of the almighty in me as > far as it goes "Use this tool with extreme caution--you can damage an FFS > file system beyond what fsck(8) can repair." It's also a bit out of my > league as far as understanding how to make use of it. It's not harmful in `-r'-mode, but I'm afraid it won't help because it wouldn't even use an alternate superblock, as I've found out. > > > so I'd still need to fix that manually somehow... correct? > > > > Yes, by means of dd. > > Hmm although that last fsck question "UPDATE STANDARD SUPERBLOCK? [yn]" > seemed interesting. > That's another option. -- DoubleF An elephant is a mouse with an operating system. --Signature=_Wed__4_Feb_2004_19_50_12_+0300_1AFFMbYY.rjGW2Xz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFAISLRwo7hT/9lVdwRAliDAJ0dyKUf8PC9qKPEDuG+PHKn4ZzNrQCeLv++ UB+diXMOF4GTFiGKZNGKyW8= =qmge -----END PGP SIGNATURE----- --Signature=_Wed__4_Feb_2004_19_50_12_+0300_1AFFMbYY.rjGW2Xz--