<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>Linux Ext2fs Undeletion mini-HOWTO</TITLE> <LINK HREF="Ext2fs-Undeletion-1.html" REL=next> </HEAD> <BODY> <A HREF="Ext2fs-Undeletion-1.html">Next</A> Previous Contents <HR> <H1>Linux Ext2fs Undeletion mini-HOWTO</H1> <H2>Aaron Crane, <CODE> <A HREF="mailto:aaronc@pobox.com">aaronc@pobox.com</A></CODE></H2>v1.3, 2 February 1999 <P><HR> <EM>Picture this. You've spent the last three days with no sleep, no food, not even a shower. Your hacking compulsion has at last paid off: you've finished that program that will bring you world-wide fame and recognition. All that you still need to do is tar it up and put it on Metalab. Oh, and delete all those Emacs backup files. So you say <CODE>rm * ~</CODE>. And too late, you notice the extra space in that command. You've just deleted your <EM>magnum opus</EM>! But help is at hand. This document presents a discussion of how to retrieve deleted files from a Second Extended File System. Just maybe, you'll be able to release that program after all...</EM> <HR> <P> <H2><A NAME="toc1">1.</A> <A HREF="Ext2fs-Undeletion-1.html">Introduction</A></H2> <UL> <LI><A HREF="Ext2fs-Undeletion-1.html#ss1.1">1.1 Revision history</A> <LI><A HREF="Ext2fs-Undeletion-1.html#ss1.2">1.2 Canonical locations of this document</A> </UL> <P> <H2><A NAME="toc2">2.</A> <A HREF="Ext2fs-Undeletion-2.html">How not to delete files</A></H2> <P> <H2><A NAME="toc3">3.</A> <A HREF="Ext2fs-Undeletion-3.html">What recovery rate can I expect?</A></H2> <P> <H2><A NAME="toc4">4.</A> <A HREF="Ext2fs-Undeletion-4.html">So, how do I undelete a file?</A></H2> <P> <H2><A NAME="toc5">5.</A> <A HREF="Ext2fs-Undeletion-5.html">Unmounting the file system</A></H2> <P> <H2><A NAME="toc6">6.</A> <A HREF="Ext2fs-Undeletion-6.html">Preparing to change inodes directly</A></H2> <P> <H2><A NAME="toc7">7.</A> <A HREF="Ext2fs-Undeletion-7.html">Preparing to write data elsewhere</A></H2> <P> <H2><A NAME="toc8">8.</A> <A HREF="Ext2fs-Undeletion-8.html">Finding the deleted inodes</A></H2> <P> <H2><A NAME="toc9">9.</A> <A HREF="Ext2fs-Undeletion-9.html">Obtaining the details of the inodes</A></H2> <P> <H2><A NAME="toc10">10.</A> <A HREF="Ext2fs-Undeletion-10.html">Recovering data blocks</A></H2> <UL> <LI><A HREF="Ext2fs-Undeletion-10.html#ss10.1">10.1 Short files</A> <LI><A HREF="Ext2fs-Undeletion-10.html#ss10.2">10.2 Longer files</A> </UL> <P> <H2><A NAME="toc11">11.</A> <A HREF="Ext2fs-Undeletion-11.html">Modifying inodes directly</A></H2> <P> <H2><A NAME="toc12">12.</A> <A HREF="Ext2fs-Undeletion-12.html">Will this get easier in future?</A></H2> <P> <H2><A NAME="toc13">13.</A> <A HREF="Ext2fs-Undeletion-13.html">Are there any tools to automate this process?</A></H2> <P> <H2><A NAME="toc14">14.</A> <A HREF="Ext2fs-Undeletion-14.html">Colophon</A></H2> <P> <H2><A NAME="toc15">15.</A> <A HREF="Ext2fs-Undeletion-15.html">Credits and Bibliography</A></H2> <P> <H2><A NAME="toc16">16.</A> <A HREF="Ext2fs-Undeletion-16.html">Legalities</A></H2> <HR> <A HREF="Ext2fs-Undeletion-1.html">Next</A> Previous Contents </BODY> </HTML>