From owner-freebsd-fs@FreeBSD.ORG Sun Oct 30 13:53:50 2005 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54D7B16A41F for ; Sun, 30 Oct 2005 13:53:50 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9D7843D46 for ; Sun, 30 Oct 2005 13:53:49 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.5/8.13.1) with ESMTP id j9UDrleG078660; Sun, 30 Oct 2005 08:53:47 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.5/8.13.1/Submit) id j9UDrkiL078659; Sun, 30 Oct 2005 08:53:46 -0500 (EST) (envelope-from bv) Date: Sun, 30 Oct 2005 08:53:46 -0500 From: Bill Vermillion To: Arne =?unknown-8bit?Q?W=F6rner?= Message-ID: <20051030135346.GA78577@wjv.com> References: <20051030130605.35720.qmail@web30302.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20051030130605.35720.qmail@web30302.mail.mud.yahoo.com> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-1.4 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on bilver.wjv.com Cc: freebsd-fs@freebsd.org Subject: Re: disklabel recovery X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Oct 2005 13:53:50 -0000 Arne Wörner, the prominent pundit, on Sun, Oct 30, 2005 at 05:06 while half mumbling, half-witicized: > --- Gal Ben-Haim wrote: > > meanwhile I did a 'dd' image of the drive to a network drive and > > formatted the hd, I needed the system up again. > > > > what can I do with that 'dd' image in order to restore atleast > > some of the data on that drive ? > > > 1. You could just dd the image back to the freshly sliced disc and > then do a "fsck -f" (forced check even if it is marked clean). > 2. You could try to fsck the image via > # mdconfig -a -t vnode -f > # fsck -f /dev/md > # mount /dev/md /mnt > # ls /mnt/. If the data is important he might try 'lazarus' from TCT - The Coroners Toolkit. But it can be tedious. It examines the drive and tried to determine what is data, and then puts it in small files. 'TCT' also comes with a program called 'unrm' but that works on a drive that has a FS intact, as 'unrm' is similar to 'dd' but only copies block that aren't allocated. You wind up with thousands of files. It has an HTML mode so that you can examine the found data with a brower. I'd try this only as last resort and only if the files are that important, becaus as I said above, it is tedious. Bill -- Bill Vermillion - bv @ wjv . com