You are not logged in.
I intented to run "rm *~", but I typed enter too quickly, so it became
rm *
That's a homework I almost finished...
How can I recover it?
Last edited by horsecool (2009-04-22 22:47:24)
Offline
Number One: DON'T PANIC!
There are several howtos about undeleting files in ext3. E.g. this one: http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html
To know or not to know ...
... the questions remain forever.
Offline
I was panic actually...
I am reading that post now. It seems quite complicated. Is there a more simple way to do it?
Offline
It takes some effort and patience, yes. There was an "undelete" tool around some years ago, but I cannot find it anymore.
Googeling after "ext3 undelete" will surely bring up some other tools. Yet you should understand what is going on and how it is possible to undelete files before doing something real.
After all, good luck!
Last edited by bernarcher (2009-04-22 19:13:54)
To know or not to know ...
... the questions remain forever.
Offline
There was an "undelete" tool around some years ago, but I cannot find it anymore.
could it be photorec or testdisk you was thinking about?
http://www.cgsecurity.org/wiki/PhotoRec
Offline
Try sleuthkit. It's in community.
Offline
Thanks all for your reply!
I just redo all the work... Fortunately it's not too much work...
I will definitely check all the tools you mentioned, 'cuse next time it could be a real tradgey...
Thanks again. You guys are the main reason that I will stick with arch.
Offline
Until then, it could save you some trouble to put this in your .bashrc:
alias cp="cp -i"
alias mv="mv -i"
alias rm="rm -i"
And for deleting backup files I always use find. First I do a "find -name *~" and when I'm sure it lists what I want to delete, I add '-delete': "find -name *~ -delete".
Offline