From owner-freebsd-questions@FreeBSD.ORG Thu Dec 4 06:17:41 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 AC76916A4CE for ; Thu, 4 Dec 2003 06:17:41 -0800 (PST) Received: from web41102.mail.yahoo.com (web41102.mail.yahoo.com [66.218.93.18]) by mx1.FreeBSD.org (Postfix) with SMTP id AD09B43FE0 for ; Thu, 4 Dec 2003 06:17:40 -0800 (PST) (envelope-from scott@sremick.net) Message-ID: <20031204141740.61859.qmail@web41102.mail.yahoo.com> Received: from [199.172.45.60] by web41102.mail.yahoo.com via HTTP; Thu, 04 Dec 2003 06:17:40 PST X-RocketYMMF: siremick Date: Thu, 4 Dec 2003 06:17:40 -0800 (PST) From: "Scott I. Remick" To: FreeBSD In-Reply-To: <20031204154917.659f2b54.doublef@tele-kom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Reply-To: scott@sremick.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Dec 2003 14:17:41 -0000 --- Sergey 'DoubleF' Zaharchenko wrote: > Oh yes there are... what's surprising? If you are sure that the problem > is with the superblock, pick any you wish. > > The actual number of superblock copies depends on the disk size and the > parameters you give to newfs. [...] > It's about THE superblock, not a superblock copy. There can be only one > superblock. There may be many copies. But if you dd them to the > superblock, that'll be fine. Ahh ok, I've learned something new. Guess I misinterpreted the information I found online. I'm not complaining: this is GOOD news. :) > BTW, what's the output of ``disklabel -r /dev/ad6s1c'' ? su-2.05b# disklabel -r /dev/ad6s1c # /dev/ad6s1c: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 156344517 63 unused 0 0 # "raw" part, don't edit e: 156344517 63 4.2BSD 2048 16384 89 partition c: partition extends past end of unit disklabel: partition c doesn't start at 0! disklabel: An incorrect partition c may cause problems for standard system utilities partition e: partition extends past end of unit That doesn't look good. By the way, the past posts I've read suggest that even if I use fsck_ffs -b to run fsck with a diff superblock (say, the one at 160) that it doesn't actually fix the master copy, and that I still need to use dd to fix the original. The command I've seen used is: dd if=/dev/ad6s1c skip=32 of=/dev/ad6s1c seek=16 bs=512 count=16 1) Do I just replace the 32 of "skip=32" with 160 (or whichever superblock makes fsck_ffs -b happy)? 2) I've also read that the size and location of the original superblock can vary. Do I have to modify the seek/bs/count values to account for this? And if so, how do I find the proper values? Nothing done yet... don't wanna screw this up. Thanks everyone! ===== Scott I. Remick --==-- ICQ: 450152 Save the internet - Use a Mozilla-based browser: http://vtbsd.net/mozilla/ FreeBSD: Because making unix user-friendly is easier than debugging Windows. http://vtbsd.net/freebsd/ "Voici mon secret. Il est tres simple: on ne voit bien qu'avec le coeur. L'essentiel est invisible pour les yeux." Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon?