Ext2fs Undeletion of Directory Structures mini-HOWTO


The author is not responsible for damages due actions taken based on this document and/or damages made by this program. You will do everything at your own risk.


Here I will describe a straight forward way of recovering whole directory structures, instead of file by file, that have been removed by a misplaced "rm -rf".

This document is supposed to be as an complementary to the "Ext2fs-Undeletion mini-HOWTO" written by Aaron Crane. I really recommend you to carefully study that one before reading this.

Ext2fs Undeletion of Directory Structures mini-HOWTO, v0.1.1, 14 November 2000. Read online.
plain, gz, bz2 - HTML Multiple pages
plain, gz, bz2 - HTML Single page
plain, gz, bz2 - PDF
plain, gz, bz2 - PostScript
plain, gz, bz2 - Plain text
plain, gz, bz2 - SGML DocBook 3.1


I have made a small program in C to automate some steps described in the document. The program takes as input a directory dump (created by debugfs). The output (at stdout) consist of each entrys inode number and filename.

e2dirana (ext2fs directory analyse), v0.3pre, 19 August 2001, change log.
Thanks to the following persons for added features and bug fixes (in alphabetic order): Anik Rahman, Sascha Rogmann, Gilbert Roulot
plain, gz, bz2 - Sourcecode.
plain, gz, bz2 - Executable compiled under Linux 2.4.3-12, glibc-2.2.2


This mini-HOWTO is part of the The Linux Documentation Project.

Tomas Ericsson
Updated: December 7, 2002