From owner-freebsd-current Wed Nov 20 14:51:37 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 041A237B401 for ; Wed, 20 Nov 2002 14:51:36 -0800 (PST) Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40C6443E8A for ; Wed, 20 Nov 2002 14:51:35 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id gAKMot1T007592; Wed, 20 Nov 2002 17:50:58 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <20021120071230.cFqQ22596@hun.org> References: <20021120071230.cFqQ22596@hun.org> Date: Wed, 20 Nov 2002 17:50:54 -0500 To: Daniel Flickinger , Patrick Hartling From: Garance A Drosihn Subject: Re: Lost disklabel Cc: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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: > >> 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 If you're running -current, you might see if you have the source for "/usr/src/tools/tools/find-sb". This is a simple program which might help get some of the missing information. You would have to compile it, as the program is not automatically built and installed. > > 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? I don't know why you'd get this error though. I had to do something like this just this past weekend, and disklabel pretty much worked for me. You may be this problem due to having a "dangerously dedicated" hard disk. (note that I'm running a more recent snapshot of -current, so maybe my system has some changes that yours is missing). -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message