From owner-freebsd-questions@FreeBSD.ORG Thu Nov 13 13:57:53 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 6593B1065689 for ; Thu, 13 Nov 2008 13:57:53 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from mx.utwente.nl (mx2.utsp.utwente.nl [130.89.2.13]) by mx1.freebsd.org (Postfix) with ESMTP id DD7D78FC0A for ; Thu, 13 Nov 2008 13:57:52 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from lux.student.utwente.nl (lux.student.utwente.nl [130.89.170.81]) by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id mADDKujr002889; Thu, 13 Nov 2008 14:20:56 +0100 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Thu, 13 Nov 2008 14:20:55 +0100 User-Agent: KMail/1.9.10 References: <200811121832.14105.gnemmi@gmail.com> In-Reply-To: <200811121832.14105.gnemmi@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131420.56138.pieter@degoeje.nl> X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. X-UTwente-MailScanner: Found to be clean X-UTwente-MailScanner-From: pieter@degoeje.nl X-Spam-Status: No Cc: Gonzalo Nemmi Subject: Re: tool to recover fat partition 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: Thu, 13 Nov 2008 13:57:53 -0000 On Wednesday 12 November 2008, 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 :) > > Regards If the destroyed parition is an UFS partition, you could try fsck_ffs'ing it. Hopefully some superblock backups are still intact. Just to be extra safe, copy the entire partition to a file, create an md device from it and fsck the md device. -- Pieter de Goeje