From owner-freebsd-questions@FreeBSD.ORG Mon Jan 5 21:08:29 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 1623316A4CE for ; Mon, 5 Jan 2004 21:08:29 -0800 (PST) Received: from web41101.mail.yahoo.com (web41101.mail.yahoo.com [66.218.93.17]) by mx1.FreeBSD.org (Postfix) with SMTP id D752C43D31 for ; Mon, 5 Jan 2004 21:08:27 -0800 (PST) (envelope-from scott@sremick.net) Message-ID: <20040106050827.95860.qmail@web41101.mail.yahoo.com> Received: from [24.48.174.124] by web41101.mail.yahoo.com via HTTP; Mon, 05 Jan 2004 21:08:27 PST X-RocketYMMF: siremick Date: Mon, 5 Jan 2004 21:08:27 -0800 (PST) From: "Scott I. Remick" To: Sergey 'DoubleF' Zaharchenko , Malcolm Kay In-Reply-To: <20040106073519.54620420.doublef@tele-kom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Reply-To: scott@sremick.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 05:08:29 -0000 --- 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 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 on ad6, I get: bsdlabel: /dev/ad6: no valid label found 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. Thanks!