Undeleting (possible?)

Kris Kennaway kris at FreeBSD.org
Tue Nov 13 13:54:39 PST 2007


Rene Ladan wrote:
> Fernando Schapachnik schreef:
>> Data recovery scenario (on 6.2): mistake while messing with Mail directory...
>>
>> cd ~
>> mv Mail/xMail ..
>> rm -r xMail (should have rm'ed Mail)
>> No extra writes to the filesystem. Plenty of extra space.
>>
>> Now I want to recover xMail (contains mbox files). sleuthkit only finds Mail/xMail with no content. It also doesn't find any of the contained mboxes.
>>
>> Is there still hope? My (limited) understanding is the content should be more or less intact. Problem is: how do I find it?
>>
> Maybe rm -W helps?  I've never tried it seriously myself though.

No, that's not what it is for.

Undeletion in UFS is only possible for wizards.  Otherwise, your only 
feasible option is to restore from backup.

Kris



More information about the freebsd-fs mailing list