From owner-freebsd-current Mon Nov 18 14:22:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C331037B401 for ; Mon, 18 Nov 2002 14:22:15 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92BE943E4A for ; Mon, 18 Nov 2002 14:22:14 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.5/8.12.1) with ESMTP id gAIMM106024212; Mon, 18 Nov 2002 17:22:01 -0500 (EST) X-Authentication-Warning: angelica.unixdaemons.com: Host hiten@localhost.unixdaemons.com [127.0.0.1] claimed to be angelica.unixdaemons.com Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.5/8.12.1/Submit) id gAIMLxII024210; Mon, 18 Nov 2002 17:21:59 -0500 (EST) (envelope-from hiten) Date: Mon, 18 Nov 2002 17:21:59 -0500 From: Hiten Pandya To: Patrick Hartling Cc: freebsd-current@FreeBSD.ORG Subject: Re: Lost disklabel Message-ID: <20021118172159.A17517@angelica.unixdaemons.com> References: <3DD26D6F.4010202@137.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3DD26D6F.4010202@137.org>; from patrick@137.org on Wed, Nov 13, 2002 at 09:19:11AM -0600 X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 13, 2002 at 09:19:11AM -0600, Patrick Hartling wrote the words in effect of: > I have a machine that is running -current from October 10, 2002. It had > been running fine for about two weeks--up until I had to reboot it. > When it came back up, one of my disks apparently lost its disklabel. > > Is there any way to recover a disklabel? If not, I'm willing to grovel > the disk and try to reconstruct its disklabel (there is really only one > partition on it that I need to get back, and its at the beginning of the > disk), but disklabel(8) won't even let me try to make a new one. If I > run 'disklabel -e da3s1', I get an error saying "ioctl DIOCGDINFO: > Inappropriate ioctl for device". Running 'disklabel -r da3s1' gives a > "bad magic pack number" error, which does not surprise me. > > This is a "dangerously dedicated" disk with a single BIOS partition > containing four FreeBSD partitions. I have a second identical disk in > the machine. fdisk(8) gives the same information for each, so I don't > think the BIOS partition is messed up. Is there something obvious that > I'm missing about how to fix this problem? Hi there. I am not sure if this is a 100% solution, but can you try using the find-sb utility. You can run this utility as root, once you have compiled it: # cd /usr/src/tools/tools/find-sb # make # ./find-sb Hope that helps. Cheers. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message