Re: Deleted files recovery

Ragnar Hojland Espinosa (ragnar@lightside.ddns.org)
Thu, 10 Sep 1998 12:51:42 +0200 (MET DST)


On Thu, 10 Sep 1998, DAVID BALAZIC wrote:

> Deleted file recovery is a MUST !
>
> I know it has been discussed already, but it just hit me hard ...
>
> If there is a solution already ( except backups , I can not make a backup
> before every write to the disk ! ) , please excuse my ignorance and point
> me to the right information.

Lesse.. this is what I do:

echo -e "lsdel\nquit" | debugfs /dev/hdc1 > /dev/hda2/lsdel

Then run debugfs and use dump <inode> filename_in_hda2 to recover a
file. Since lsdel is sorted by date of deletion, and has the size of the
file, it's pretty trivial to know what you are looking for. But undeleting
lots of files can be sort of exhausting.

-- 
____/|  Ragnar Hojland  (ragnar@lightside.ddns.org)      Fingerprint  94C4B
\ o.O|                                                   2F0D27DE025BE2302C
 =(_)=  "Thou shalt not follow the NULL pointer for      104B78C56 B72F0822
   U     chaos and madness await thee at its end."       hkp://keys.pgp.com

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/faq.html