From owner-freebsd-questions@FreeBSD.ORG Fri Dec 2 14:02:52 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0839A16A41F for ; Fri, 2 Dec 2005 14:02:52 +0000 (GMT) (envelope-from illusion65@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 421FC43D86 for ; Fri, 2 Dec 2005 14:02:49 +0000 (GMT) (envelope-from illusion65@gmail.com) Received: by zproxy.gmail.com with SMTP id m7so214842nzf for ; Fri, 02 Dec 2005 06:02:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=f0igmwiGzhsTVJXXqXOc1g5ISI5DiPwYta3hD7kWLecaDg7OLskhX78h9qy/c3IJ6x2brf4mkwUtrfmvSa1/4vSxMz0bclthNjXCNvHWDA/K0pzitVH2BYXp6lIACb9KpxNBfZIv6LxnCB64lqN3IHR6yawT18CscTeY+ywcQkQ= Received: by 10.65.38.14 with SMTP id q14mr1434511qbj; Fri, 02 Dec 2005 06:02:47 -0800 (PST) Received: by 10.65.233.1 with HTTP; Fri, 2 Dec 2005 06:02:46 -0800 (PST) Message-ID: <57750f110512020602v7ea73a24mec5abed1c9bd265@mail.gmail.com> Date: Sat, 3 Dec 2005 03:02:47 +1300 From: Doug H To: freebsd-questions@freebsd.org In-Reply-To: <200512011223.34129.mistry.7@osu.edu> MIME-Version: 1.0 References: <57750f110511301815m255cfc23g4688eea38f601e37@mail.gmail.com> <200512011223.34129.mistry.7@osu.edu> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Help deriving a corrupted disklabel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 14:02:52 -0000 Hi Anish, Thanks for the reply -- scan_ffs did exactly what I needed it to do! For those who encounter a similar problem (damaged disklabel on a FreeBSD slice), it's not as simple as one might hope, since I was limited to the "Fixit" shell on the FreeBSD 6.0-RELEASE CD. scan_ffs is not on the CD, which makes it much more difficult (configuring networking, obtaining it via ftp, unpacking the package, etc., since 'pkg_add -r' doesn't work in a Fixit shell). Setup was most of the work! Once I had a usable copy of scan_ffs, the rest was simple. Thanks again for the help. Without it, I'm sure I'd still be struggling to use dd and grep to locate magic numbers using a shell script. Doug On 12/2/05, Anish Mistry wrote: > > On Wednesday 30 November 2005 09:15 pm, Doug H wrote: > > > > PROBLEM: bsdlabel showed me that slice 1 (FreeBSD 5.4) is damaged > > and only partition c existed and was incorrect. I do not have / > > cannot find a written copy of my disklabel for that disk (a good > > suggestion to *strongly emphasize* in the installation manual for > > newbies!). I did recall that ad1s1a ('/') was 512M, so I was able > > to write a label and mount that partition from a "Fixit" shell. > > > > QUESTIONS: How can I rederive the remaining disklabel for that > > disk? Could a copy possibly be stored somewhere on root if I > > didn't do it myself when building the system? > > > > > sysutils/scan_ffs > I've always used it from a emergency FreeBSD diagnostic CD (custom > Freesbie) and it works great. I've never been stuck with only a > fixit shell though. >