From owner-freebsd-questions Thu Jan 9 18:37:48 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 B4E7437B401 for ; Thu, 9 Jan 2003 18:37:46 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id D600A43F5F for ; Thu, 9 Jan 2003 18:37:45 -0800 (PST) (envelope-from swear@attbi.com) Received: from localhost.localdomain ([12.242.158.67]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <2003011002374400300lbmjke>; Fri, 10 Jan 2003 02:37:44 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost.localdomain (8.12.6/8.12.6) with ESMTP id h0A2fsqN007944; Thu, 9 Jan 2003 18:41:54 -0800 (PST) (envelope-from swear@attbi.com) Received: (from jojo@localhost) by localhost.localdomain (8.12.6/8.12.6/Submit) id h0A2fn9v007943; Thu, 9 Jan 2003 18:41:49 -0800 (PST) (envelope-from swear@attbi.com) To: Hari Bhaskaran Cc: freebsd-questions@freebsd.org Subject: Re: Recovering data from a faulty drive References: <20030110002127.GA19809@poecilotheria.netmails.net> From: swear@attbi.com (Gary W. Swearingen) Date: 09 Jan 2003 18:41:48 -0800 In-Reply-To: <20030110002127.GA19809@poecilotheria.netmails.net> Message-ID: Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) 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 Hari Bhaskaran writes: > Is there any chance? I only need a couple of files recovered. Saving copies of the boot records and disklabels ain't a bad idea and not hard to do. Just something more to do... Anyway. Sounds like your MBR's partition table got messed up. If you were supposed to only have one slice, you might have some luck just trying to redo it from memory or what's most likely. Also sounds like your disklabel is bad, but maybe it's confused by the partition table mess. I'M NOT SURE, but you can probably try replacing that too, if you think you can guess the partitioning. I doubt if it messes with anything but the disklabel (and maybe boot code -- see disklabel manpage); just don't run "newfs", of course. FIrst try saving the disklabel (ASCII form) with "disklabel" command and maybe a binary copy. (? 'dd if=/dev/hd0s1 of=/somefile count=1 skip=1' ?) You probably can't do anything with the binary one except copy it back. If your data is really precious, you might want to save it on another disk, getting it off the bad disk with "dd". You don't have to copy the whole disk if you can guess where the slice with your data was located. (Eg, "dd if=/dev/hd0 of=/somedir/bigfile skip=_somenum_ \ count=_someothernum_") Again, it's not much good for anything but copying back and trying again, but you might be able to find some ASCII text of importance, if you're really desparate. Started your tape drive (and tapes) fund yet? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message