tool to recover fat partition

Polytropon freebsd at edvax.de
Thu Nov 13 01:46:19 PST 2008


On Wed, 12 Nov 2008 18:32:14 -0200, Gonzalo Nemmi <gnemmi at gmail.com> 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, ...


More information about the freebsd-questions mailing list