[lkml]   [2003]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Undelete files on ext3 ??
On 7 Jan 2003, Max Valdez wrote:

> >
> > By the way, there used to be undelete tool for ext2. It created a list
> > of deleted inodes with correct stat, but no names, only their inode
> > numbers. You could then pick the corect inode and give it a name, thus
> > bringing it back to life. Since ext3 is just ext2 with journal, I guess
> > it might work. It existed as a standalone tool and integrated to
> > midnight commander.
> >
> I think there must be some other differences between ext2 and ext3, I've
> tryed e2undel and unrm, both made for ext2, and none of them found any
> deleted inode.
> I umonted immediately the drive, and nothing has been writen on it after
> the rm *
> Thanks for the comments !
> I will keep searching !
> Max

There is a project waiting for someone who wants
to contribute. It only slightly involves the kernel,
but is quite useful.

As more people are switching from the Redmond stuff
to Linux, many have "learned" from the Redmond stuff
that `rm` isn't permanent. You can always get it
back from the `wastebasket`. Of course, the Unix
gurus know you can't. Therefore, it's time for somebody
to put a 'dumpster` in all the Linux file-systems.
Somebody should then modify `rm` and the kernel unlink
to `mv' files to the dumpster directory on the
file-system, instead of really deleting them. Then,
just like the Redmond stuff, a separate program can
be used to clear out the "dumpster" or `mv` them back.

Since sys_unlink() takes only a path-name, there isn't
a current mechanism whereby it could take a flag to
tell it to 'really' delete a file (or is there?). So,
maybe we need a new kernel function? Just hacking existing
utilities won't do the whole thing because we need programs
that delete files to transparently put them into the
dumpster as well.

The wastebasket should be called a hopper or a dumpster so
Redmond doesn't get confused and send lawyers.

Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Why is the government concerned about the lunatic fringe? Think about it.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:32    [W:0.160 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site