From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 10:01:41 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A081065687 for ; Thu, 13 Nov 2008 10:01:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 255868FC17 for ; Thu, 13 Nov 2008 10:01:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-196-88-233.dynamic.qsc.de [92.196.88.233]) by mx01.qsc.de (Postfix) with ESMTP id DEF1650955 for ; Thu, 13 Nov 2008 11:01:39 +0100 (CET) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id mADA1d9f009084 for ; Thu, 13 Nov 2008 11:01:39 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 13 Nov 2008 11:01:38 +0100 From: Polytropon To: FreeBSD Questions Message-Id: <20081113110138.9e4b167c.freebsd@edvax.de> In-Reply-To: <200811121832.14105.gnemmi@gmail.com> References: <200811121832.14105.gnemmi@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: tool to recover fat partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:01:41 -0000 On Wed, 12 Nov 2008 18:32:14 -0200, Gonzalo Nemmi wrote: > So ... > > newfs_msdos /dev/insert_typo_in_here > > .. new filesystem succesfully created ... lost partition on the wrong > drive ... > > Is there a tool to recover the files on said partition in FreeBSD (7 release)? > > Thanks for you help :) It seems my problems can at least be helpful to someone else. :-) There are many good tools for recovering data from MSDOS partitions, but you'll have to check which one serves your particular needs best, depending on the amount of damage done to the file system. >From the ports, there's magicrescue in the first place for file recovery. To scan and repair disk partitions, you can use testdisk. If everything else fails, go use the basics: The Sleuth Kit with its dls, dls or ils tools. There's helpful documentation installed that gives informations not mentioned in the manpages. I would recommend you do first do a dd copy of the drive, just in order to do no harm to the partition where your important files are located. Then, do all operations on the dd image, it's mich more safe. If dd is not possible, use dd_rescue or ddrescue. For most operations, it's good to use mdconfig to "put" the dd file onto a md device which is then used by the particular program. I can imagine how you feel about data loss, so good luck! -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...