HOWTO recover deleted files on an ext3 file system

Posted by Sander_Marechal on Mar 14, 2008 9:43 AM EDT
Carlo Wood's homepage; By Carlo Wood
Mail this story
Print this story

It happens to everyone sooner or later: a split second after you hit Enter you realize your mistake, but it's too late; you just deleted a valuable file or directory for which no backup exists. Fortunately, you remember that files are never really deleted, at most overwritten by new content. So, you remount the disk read-only as fast as possible. But now? If you Google for "undelete ext3", almost every article you find will be users asking if it's possible and the answer is every time: no. On February 7th, 2008, I accidently deleted my whole home directory: over 3 GB of data, deleted with rm -rf. The only backup that I had was from June 2007. Not being able to undelete was unacceptable. So, I ignored what everyone tried to tell me and started to learn how an ext3 file system really works, and what exactly happens when files are deleted... Three weeks and nearly 5000 lines of code later, I had recovered every file on my disk.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Linux

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.