From owner-freebsd-questions Fri Jan 10 21:46:36 2003 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 1FDF737B401 for ; Fri, 10 Jan 2003 21:46:35 -0800 (PST) Received: from poecilotheria.netmails.net (netmails.net [12.96.164.138]) by mx1.FreeBSD.org (Postfix) with SMTP id 5862F43F3F for ; Fri, 10 Jan 2003 21:46:34 -0800 (PST) (envelope-from subscr@poecilotheria.netmails.net) Received: (qmail 27367 invoked by uid 1012); 11 Jan 2003 05:45:55 -0000 Date: Fri, 10 Jan 2003 23:45:55 -0600 From: Hari Bhaskaran To: "Gary W. Swearingen" Cc: freebsd-questions@freebsd.org Subject: (Solved) Recovering data from a faulty drive Message-ID: <20030111054555.GA27221@poecilotheria.netmails.net> References: <20030110002127.GA19809@poecilotheria.netmails.net> <20030110203458.GA25253@poecilotheria.netmails.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i 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 Fortunately, the FreeBSD installer's disklabel program (the graphical interactive one) was able to find the original partition information! I assigned the mount points (I don't think that was necessary), wrote ('W' from the screen) the label to disk again, it went thru a series of fscks and all my partitions are back again. I didn't try to install (restore) bootmanager, I merely mounted those partitions and took the data out on to another disk. I always thought the installer's disklabel program was same as disklabel(8). Thanks again to all those who replied (Gary, Mike Meyer) (And thanks to maxtor Made the first support call at 8AM, got a replacement delivered at 2PM the next day!) -- Hari Bhaskaran On Fri, Jan 10, 2003 at 02:41:06PM -0800, Gary W. Swearingen wrote: > Hari Bhaskaran writes: > > > Is there way to backup the partition info somewhere? (may be a floppy?) > > AFAIK, the partition info is entirely within the first sector of the > slice. The slice info is entirely within the first sector of the disk. > (There's other info in them too, so restoring a sector might change > more than partition info.) Having already given an example of "dd", > I'll leave the way to back them up as an exercise for the reader. > > I thought I mentioned this, but the "disklabel" program can output > partition info in ASCII format which you can backup and restore > from too. A better method than "dd", for general purposes. And > fdisk can give you slice info in ASCII for backup (but you'd have > to restore by hand). > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message