From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 09:17:32 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 61D1D16A4CE for ; Thu, 4 Dec 2003 09:17:32 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 1C48D43FDD for ; Thu, 4 Dec 2003 09:17:30 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 49057 invoked by uid 555); 4 Dec 2003 20:17:28 +0300 Received: from hal.localdomain (213.80.149.158) by t-k.ru with TeleMail/2 id 1070558247-49040 for scott@sremick.net; Thu, Dec 4 20:17:27 2003 +0300 (MSK) Date: Thu, 4 Dec 2003 20:18:30 +0300 From: Sergey 'DoubleF' Zaharchenko To: scott@sremick.net Message-Id: <20031204201830.7c1c5de1.doublef@tele-kom.ru> In-Reply-To: <20031204162416.81350.qmail@web41103.mail.yahoo.com> References: <20031204180352.7c4e7571.doublef@tele-kom.ru> <20031204162416.81350.qmail@web41103.mail.yahoo.com> X-Mailer: Sylpheed version 0.9.6claws (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=_Thu__4_Dec_2003_20_18_30_+0300_tb1em55sQKUgl2kU" 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: Thu, 04 Dec 2003 17:17:32 -0000 --Signature=_Thu__4_Dec_2003_20_18_30_+0300_tb1em55sQKUgl2kU Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Thu, 4 Dec 2003 08:24:16 -0800 (PST) "Scott I. Remick" probably wrote: > > --- Sergey 'DoubleF' Zaharchenko wrote: > > If you want to be more sure, try dd'ing your (suspectedly damaged) > > superblock and some of its (suspectedly OK) copies into different files: > > > > # dd if=/dev/ad6s1e skip=... bs=512 count=16 of=somefile > > > > As /usr/src/sys/ufs/ffs/fs.h suggests, for THE superblock skip should be > > 16 if you have UFS1 or 128 or 512 if you have UFS2 (if my maths is > > correct). These commands shouldn't do anything harmful to /dev/ad6s1e. > > Either I'm doing something wrong, or things aren't good. > > Given: > > su-2.05b# newfs -N /dev/ad6s1e Just a minute. Are you sure that the filesystem was newfs'd with the default parameters? If it were for me to newfs it, I would probably choose larger block&fragment sizes, as I would probably be storing large files. The superblock copy positions depend on the block/frag size. If you specify parameters different from those used for actually newfs'ing it the very first time, newfs -N will give you *incorrect* copy addresses! > /dev/ad6s1e: 76340.1MB (156344516 sectors) block size 16384, fragment size > 2048 > using 416 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. > super-block backups (for fsck -b #) at: > 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, > > ... > > 152046368, 152422720, 152799072, 153175424, 153551776, 153928128, > 154304480, > 154680832, 155057184, 155433536, 155809888, 156186240 -- DoubleF The computing field is always in need of new cliches. -- Alan Perlis --Signature=_Thu__4_Dec_2003_20_18_30_+0300_tb1em55sQKUgl2kU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/z2xwwo7hT/9lVdwRAuusAJ9VPmh5FQBsLTUxEE0w/2hju1aQUACfSiXg UsS7k2Kw/e+fzE1hW6jHZxw= =/doF -----END PGP SIGNATURE----- --Signature=_Thu__4_Dec_2003_20_18_30_+0300_tb1em55sQKUgl2kU--