From owner-freebsd-questions Sun Dec 1 17:53:21 2002 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 1BEE037B401 for ; Sun, 1 Dec 2002 17:53:20 -0800 (PST) Received: from nollie.summersault.com (nollie.summersault.com [208.10.44.140]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CF9B43ECF for ; Sun, 1 Dec 2002 17:53:19 -0800 (PST) (envelope-from mark-dated-1039657989.dd25f1@summersault.com) Received: (qmail 73707 invoked from network); 2 Dec 2002 01:53:13 -0000 Received: from localhost (HELO nollie.summersault.com) (127.0.0.1) by localhost with SMTP; 2 Dec 2002 01:53:13 -0000 Date: Sun, 1 Dec 2002 20:53:06 -0500 (EST) To: freebsd-questions@freebsd.org Subject: Re: requesting help restoring disklabel on unbootable system In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII From: Mark Stosberg X-Delivery-Agent: TMDA/0.65 (Johnstown) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 1 Dec 2002, Mark Stosberg wrote: > On Sun, 1 Dec 2002, Mark Stosberg wrote: > > > > After an unfortunate sequence of events, my newly successfully upgraded FreeBSD 4.7 > > machine would not boot anymore and gave me a "boot:" prompt. Returning > > to the install CD disklabel program, I saw that the only partition it > > seemed be to finding was the swap partition. > > > > I recreated and wrote to disk what I thought was the old disk > > partitioning scheme (being careful not to newfs anything). After that, > > the system would boot off the drive, but would not mount /usr, /var or > > /tmp due to complains of "bad super block: magic number wrong". I > > suspect that I guessed my partition sizes wrong. > > I have a lead on solving this now. I found a tool called "find-sb" > which finds superblocks, and seemed like it could be used to make a > smarter guess about what my partition sizes should be. The trouble is, > now I'm scratching my head about how to this tool installed in a useable > state on the system since I can't boot fully in the first place. > > "find-sb": > http://gatekeeper.dec.com/pub/BSD/FreeBSD/FreeBSD-current/src/tools/tools/find-sb/ I downloaded "find-sb" and the associated Makefile, but running "make" failed with many errors on FreeBSD 4.7. I eventually addressed the issue by installing 4.7 on a new disk and restoring from backup. I still have the old disk at this point if any one has ideas how to make it functional again. -mark http://mark.stosberg.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message