From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 01:27:15 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 AA38416A4CE for ; Tue, 6 Jan 2004 01:27:15 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1C5843D2D for ; Tue, 6 Jan 2004 01:27:13 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp129-234.lns1.adl2.internode.on.net [150.101.129.234])i069R9Rp034964; Tue, 6 Jan 2004 19:57:10 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: scott@sremick.net, "Sergey 'DoubleF' Zaharchenko" Date: Tue, 6 Jan 2004 19:57:09 +1030 User-Agent: KMail/1.4.3 References: <20040106050827.95860.qmail@web41101.mail.yahoo.com> In-Reply-To: <20040106050827.95860.qmail@web41101.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401061957.09291.malcolm.kay@internode.on.net> 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: Tue, 06 Jan 2004 09:27:15 -0000 On Tue, 6 Jan 2004 15:38, Scott I. Remick wrote: > --- Sergey 'DoubleF' Zaharchenko wrote: > > > I wonder whether editing the label and setting both offsets to 0 > > > might solve the problem. > > > > It definitely seems like that, as the actual offset of the partition = is > > 0, as dd shows. > > Ok, sounds like a plan. Not that I know what I'm doing. Should I use > something like the following command to save my current disklabel? > > bsdlabel /dev/ad6s1c > disklabel.ad6s1c.backup > > Then do I just edit a copy of that textfile, change the offsets to 0, t= hen > write it back like this? > > bsdlabel -R /dev/ad6s1c dislabel.ad6s1c.new > > And lastly... your talk about offsets. The man page for bsdlabel descri= bes > using it on the whole disk (ad6) and not a slice or partition. If I run= it > on ad6, I get: > > bsdlabel: /dev/ad6: no valid label found > Beware; if you write a disklabel (or presumably bsdlabel; I have no exper= ience=20 with 5.x) to ad6 you create a "dangerously dedicated"=20 disk, i.e. a disk without slices. > If I run it on the slice ad6s1 I get: > > # /dev/ad6s1: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 156344517 0 unused 0 0 # "raw" part, > don't edit > e: 156344517 0 4.2BSD 2048 16384 89 > > And there I see the offset of 0 you might be talking about...? Are we > looking at the proper label? Just want to make sure before I mess thing= s > up. > Are you saying that the disklabels reported for ad6s1 and ad6s1c are diff= erent? Under FreeBSD 4.x ad6s1 and ad6s1c would normally be aliases referencing = the=20 entire slice. Maybe 5.x is different! I'm now very confused. What is reported by fdisk? Malcolm Kay > Thanks!