You are not logged in.

#1 2009-04-22 18:26:20

horsecool
Member
Registered: 2008-12-22
Posts: 55

[sloved, but not gracefully...] I deleted everything by accident!

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

#2 2009-04-22 18:45:01

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [sloved, but not gracefully...] I deleted everything by accident!

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

#3 2009-04-22 19:03:50

horsecool
Member
Registered: 2008-12-22
Posts: 55

Re: [sloved, but not gracefully...] I deleted everything by accident!

I was panic actually...

I am reading that post now. It seems quite complicated. Is there a more simple way to do it?

Offline

#4 2009-04-22 19:10:09

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [sloved, but not gracefully...] I deleted everything by accident!

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

#5 2009-04-22 21:35:37

kaarekuk
Member
Registered: 2008-06-22
Posts: 1

Re: [sloved, but not gracefully...] I deleted everything by accident!

bernarcher wrote:

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

#6 2009-04-22 21:46:50

FALK
Member
From: Denmark
Registered: 2008-03-24
Posts: 95

Re: [sloved, but not gracefully...] I deleted everything by accident!

Try sleuthkit. It's in community.

Offline

#7 2009-04-22 22:46:20

horsecool
Member
Registered: 2008-12-22
Posts: 55

Re: [sloved, but not gracefully...] I deleted everything by accident!

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

#8 2009-04-23 13:08:04

Lars Stokholm
Member
From: Denmark
Registered: 2009-03-17
Posts: 223

Re: [sloved, but not gracefully...] I deleted everything by accident!

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

Board footer

Powered by FluxBB