From owner-freebsd-current Tue Nov 19 23:12:38 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 2105037B401 for ; Tue, 19 Nov 2002 23:12:37 -0800 (PST) Received: from hun.org (hun.org [216.190.27.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0D7A43E75 for ; Tue, 19 Nov 2002 23:12:36 -0800 (PST) (envelope-from attila@hun.org) Received: by hun.org (Postfix, from userid 1001) id E16D35745A; Wed, 20 Nov 2002 07:12:30 +0000 (GMT) Date: Wed, 20 Nov 2002 07:12:30 +0000 (GMT) Message-Id: <20021120071230.cFqQ22596@hun.org> From: Daniel Flickinger X-Mailer: AttilaMail with XEmacs & Postfix on FreeBSD 5.0-CURRENT X-Ballistic: N 37.218497 W 113.614979 X-Address: 31 N 700 E, St George UT 84770-3028 X-Squawk: (435) 680-0750 X-No-Archive: yes In-Reply-To: <3DD26D6F.4010202@137.org> To: Patrick Hartling Cc: freebsd-current@FreeBSD.ORG Subject: Re: Lost disklabel Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; name="text" Content-Transfer-Encoding: 8bit Content-Disposition: inline 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 been there! I only use dangerously dedicated disks, in pairs... on the presumption stated that the disks are identical: disklabel -r da0 >label.0 disklabel -W da1 disklabel -R -r da1 label.0 In extreme circumstances, I've done a few other things... but try this one first; it's safe. -- Sanity is the Playground for the Unimaginative 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 (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? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message