From owner-freebsd-questions@FreeBSD.ORG Tue Jan 6 14:59:56 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 EA2C216A4D0 for ; Tue, 6 Jan 2004 14:59:56 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08D3743D39 for ; Tue, 6 Jan 2004 14:59:55 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp104-184.lns1.adl1.internode.on.net [150.101.104.184])i06Mxkp5052486; Wed, 7 Jan 2004 09:29:47 +1030 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: At home To: scott@sremick.net, "Sergey 'DoubleF' Zaharchenko" Date: Wed, 7 Jan 2004 09:29:46 +1030 User-Agent: KMail/1.4.3 References: <20040106193957.93662.qmail@web41113.mail.yahoo.com> In-Reply-To: <20040106193957.93662.qmail@web41113.mail.yahoo.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200401070929.46078.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 22:59:57 -0000 On Wed, 7 Jan 2004 06:09, Scott I. Remick wrote: > --- Sergey 'DoubleF' Zaharchenko wrote: > > I think you already have a copy (the data at offset 32 seems to be it= ). > > If you want, do a > > > > # dd if=3D/dev/ad6s1 skip=3D16 count=3D16 of=3D/some/file > > ok, done. Is there a way to use fsck_ufs -b now to fix this? Or is that > premature? And if I remember correctly, that doesn't actually APPLY the > alternate superblock... it just allows fsck to run while utilizing an > alternate one. So we need to use some sort of dd command to copy it to = the > proper location, correct? > > > Please tell me everything what you tried to use to mount/fsck the dri= ve > > (and the results, of course). > > Well, my memory is sketchy so I don't know how much use it'd be. But I = was > saving a file to /data (ad6) when the system hung. Then it rebooted on = its > own. Of course fsck ran on bootup but it gave up and told me I had to r= un > it manually. When I did (I don't remember any parameters I specifically > used, if any) I got: > > /dev/ad6s1c > Cannot find file system superblock > /dev/ad6s1c: NOT LABELED AS A BSD FILE SYSTEM > This is true. That partition is labeled as unused. I believe you should be trying to mount /dev/ad6s1e. > I remember there being some of the other common message for little thin= gs > that you just tell it to go ahead and fix. But the above error was a br= ick > wall and would keep me from going multi-user. Ultimately I had to > comment-out the line in fstab: > > #/dev/ad6s1c /data ufs rw 2 = 2 > Certainly wrong in 4.x, I suspect also wrong in 5.x. Do you have a line mounting ad4s1c for the other disk? > So I could at least boot. And that's the way I've been ever since. > > Trying to mount it now gives: > > su-2.05b# mount -r /dev/ad6s1c /data > mount: /dev/ad6s1c on /data: incorrect super block > > And so we stand. Malcolm Kay