Ext2/Ext3 undelete

3 Comments

Frequently I come across queries on how to retrieve files in Linux wherein the most probably answer will be that it is almost impossible due to the journaling nature of the standard file systems for most Linux systems. Ext2 is not a journaled file system but its use for large partitions (>128MB) is not recommended since a premature crash (system-induced or external like a power shut-off) will cause the file system to be marked as dirty and be subjected to a file system check and possible data loss. At this time where terabytes of disk space are becoming available to us members of the unwashed masses, I don’t think anybody in a right mindset will even consider using ext2 on a 20GB partition.

Back to the topic, previously you are screwed if you were clicker/presser happy with delete operations (rm -rf ~ /tmp comes into mind, ouch!) then it only takes a split second from the time you confirmed the delete operation to switch between nonchalance and an agitated mental anguish. It may be a single document or your whole directory (I hope you are not in the habit of running as root for day-to-day use), but if you really need to get that file you just delete and you are using ext2/ext3 then there might still be some hope. I just came across the page for ext3undel which promises a set of utilities and scripts that will help you in getting your precious files back. The project is not available on official Mandriva and Arch repositories 🙁 but the project provides RPM and Deb downloads.

I haven’t used it yet as I am fortunate enough to haven’t gotten the need but the documentation on the project’s wiki seems to be simple enough. I am going to try installing this on my systems this weekend since this would be a handy tool to have when my stupidity arises need beckons.

ciao!

3 Comments (+add yours?)

  1. izzy
    Jul 16, 2008 @ 14:49:42

    Though the project is not available on official Mandriva and Arch repositories (what do you expect – it is just 1 month old 😉 there is not only the developers repository for RPM and Debian packages. As for ArchLinux, you find the PKGBUILD file on AUR (http://aur.archlinux.org/packages/ext3undel/ext3undel/PKGBUILD) plus another one inside the tarball. There will be a service for ArchLinux next to the other two repositories on apt.izzysoft.de hopefully soon as well.

    Reply

  2. Erin
    Jul 17, 2008 @ 08:21:05

    hi izzy,

    i didn’t mean anything on my comment regarding the availability aside from most non-techie users will only get their software from the repositories. providing both the rpm and deb already covers a great portion of the linux population though.

    keep the good work up. its nice to know that if i mess up then there is somebody there who has already created a solution. 🙂

    ciao!

    Reply

  3. Izzy
    Aug 12, 2008 @ 06:31:52

    Hi Erin,

    no offending intended from both sides, as all the smileys tell 😀 So I’d like to thank you for your great review – and will do my very best to keep up the work!

    @everybody: Feel free to post your comments/suggestions/bug-reports to the tracker at http://projects.izzysoft.de/trac/ext3undel – it would not be for the first time that a users feedback provided the final kick for the next release 😉

    Reply

Leave a Reply