From owner-freebsd-questions Sun Sep 15 6:11:53 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 CF49B37B400 for ; Sun, 15 Sep 2002 06:11:51 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C5AB43E3B for ; Sun, 15 Sep 2002 06:11:50 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g8FDBiS76300; Sun, 15 Sep 2002 08:11:44 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020915081143.00fbeac8@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Sun, 15 Sep 2002 08:11:43 -0500 To: pjklist@ekahuna.com, questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: Sysinstall corrupts disklabel In-Reply-To: <20020915093615355.AAA770@empty1.ekahuna.com@dyn205.ekahuna .com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 At 02:36 AM 9.15.2002 -0700, Philip J. Koenig wrote: >Running 4.6-STABLE from 8/2002. > >Added a disk (1 AMI MegaRAID existing logical disk, added a new HD on >Adaptec ahc0 as da0), went into Sysinstall to try to fdisk/disklabel >it. > >Somewhere in the process of wrestling with the usual confusing >prompts (no Quit option, cancel accepts, doesn't go where the cursor >is pointed, gets "stuck" on a disk device and won't allow the other >to be selected, yada yada) Sysinstall blew away my disklabel. > >This is a common problem it seems, I've run into it before. Had to >manually piece it together last time on a different box. Apparently >there's an old bug (someone posted in July about this) where if you >try to change a partition type in Sysinstall, it hoses the disklabel. >Well I didn't *actually* try to change the partition type, but I may >have pressed the command once in Sysinstall and then tried to cancel >out. (but who knows, with Sysinstall it's often like Orwell's 1984: >War is Peace, Yes is No, cancel is accept.. :-) > >Anyway, I don't have a backup copy of the disklabel, currently the in- >memory version just shows a "c" partition, if I try to read it from >disk I get "disklabel: bad pack magic number (label is damaged...)" > >Is there a shortcut to getting this back or do I have to go through >the partitions one-by-one and try to figure out all the offsets? >(This machine has 6 partitions on it) > >Funny thing is the system seems to boot OK, df and mount output look >normal, etc. But I can't do anything with the disks like disklabel >the new one, etc. > >TIA, > >Phil > Although I haven't used this utility that is in the ports, I seen posts on it showing successes in this type of partition recovery... perhaps at least identifying them. Not sure it does what you want but may be worth a try before the manual approach... http://www.stud.uni-hannover.de/user/76201/gpart/ LOL... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message