From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 03:38:54 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 11B8E16A4CE for ; Tue, 6 Jan 2004 03:38:54 -0800 (PST) Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 1B3A343D48 for ; Tue, 6 Jan 2004 03:38:51 -0800 (PST) (envelope-from doublef@tele-kom.ru) Received: (qmail 71050 invoked by uid 555); 6 Jan 2004 14:38:50 +0300 Received: from hal.localdomain (213.80.149.193) by t-k.ru with TeleMail/2 id 1073389128-71042 for malcolm.kay@internode.on.net; Tue, Jan 6 14:38:48 2004 +0300 (MSK) Date: Tue, 6 Jan 2004 14:39:28 +0300 From: Sergey 'DoubleF' Zaharchenko To: Malcolm Kay Message-Id: <20040106143928.6fd569c7.doublef@tele-kom.ru> In-Reply-To: <200401061957.09291.malcolm.kay@internode.on.net> References: <20040106050827.95860.qmail@web41101.mail.yahoo.com> <200401061957.09291.malcolm.kay@internode.on.net> 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=_Tue__6_Jan_2004_14_39_28_+0300_Az4ylJuwE95FLu0I" cc: scott@sremick.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 11:38:54 -0000 --Signature=_Tue__6_Jan_2004_14_39_28_+0300_Az4ylJuwE95FLu0I Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Tue, 6 Jan 2004 19:57:09 +1030 Malcolm Kay probably wrote: > 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, then > > write it back like this? > > > > bsdlabel -R /dev/ad6s1c dislabel.ad6s1c.new > > And maybe prefix that by a $ bsdlabel -R /dev/ad6s1c dislabel.ad6s1c.new which would just check your new layout for errors, without writing anything, and print your file out as disklabel understands it. > > And lastly... your talk about offsets. The man page for bsdlabel describes > > using it on the whole disk (ad6) and not a slice or partition. If I run it It can't be fdisk that you are reading about? > > on ad6, I get: > > > > bsdlabel: /dev/ad6: no valid label found > > > > Beware; if you write a disklabel (or presumably bsdlabel; I have no experience > with 5.x) to ad6 you create a "dangerously dedicated" > disk, i.e. a disk without slices. And of course the label isn't there, just because nobody wanted a `DD' disk. > > 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 things > > up. > > > > Are you saying that the disklabels reported for ad6s1 and ad6s1c are different? And the `new' one seems to be correct for a 80G drive (+- a couple of megabytes)? Have you touched anything? Now, mount might work. > Under FreeBSD 4.x ad6s1 and ad6s1c would normally be aliases referencing the > entire slice. Maybe 5.x is different! I'm now very confused. Uhum. disklabel said that the offset was 63 in your previous posting, didn't it? What does # ls -l /dev/ad6s1 /dev/ad6s1c say? Any differences? I have none. > What is reported by fdisk? Let me guess: a single large slice. > Malcolm Kay > > > Thanks! > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- DoubleF [Sir Stafford Cripps] has all the virtues I dislike and none of the vices I admire. -- Winston Churchill --Signature=_Tue__6_Jan_2004_14_39_28_+0300_Az4ylJuwE95FLu0I Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/+p5/wo7hT/9lVdwRAkgIAJ4zQA4MQbOpY3kUxxODysChU0c7dQCfWcP1 FBsQDCvTxGFc/vPci715XGc= =TZtL -----END PGP SIGNATURE----- --Signature=_Tue__6_Jan_2004_14_39_28_+0300_Az4ylJuwE95FLu0I--