4

Do you know of any tools/commands by which I recover files which I accidentally removed?

kal
  • 28,545
  • 49
  • 129
  • 149
  • This site is for programming questions. You may be able to get help with this at one of the sites listed here: http://stackoverflow.com/questions/321618/where-can-i-ask-questions-that-arent-programming-questions – EBGreen Jan 23 '09 at 21:18
  • @mkal: you've been a member for 7 weeks, have asked and answered dozens of questions, and didn't know this was a site for programming questions? – Robert Gamble Jan 23 '09 at 22:14
  • I knew it was a site of programming questions for sure, but then there were tags of linux and reccovery. But Robert you are correct this was my bad. – kal Jan 24 '09 at 01:07
  • You may be interested to know that Jeff plans on launching an "IT" StackOverflow in a couple of months, more information here: http://blog.stackoverflow.com/2009/01/coming-in-march-it-stack-overflow/. – Robert Gamble Jan 24 '09 at 05:32

5 Answers5

8
  • Don't do anything on the partition; unmount it as it is;
  • Install the TestDisk suite, or boot from a live distribution with a recovery suite installed (see the TestDisk wikipedia page);
  • I found the PhotoRec utility very useful in similar situations (it was on a VFAT partition, but I guess it works also on ext2).
Federico A. Ramponi
  • 46,145
  • 29
  • 109
  • 133
1

How critical is it? You can, but it's using forensics methods. This means you'll want to unmount the drive, remount it read only and then use something like Helix to carve at the drive to recover it.

Tom Ritter
  • 99,986
  • 30
  • 138
  • 174
1

Sorry to here about your troubles - I would start poking around for file recovery utilities but don't get your hopes up.

Are you using an ext3 file system? If so then even file recovery utilities will not help you there - here is some info on ext3.

Andrew Hare
  • 344,730
  • 71
  • 640
  • 635
0

You can't. Sorry, but the whole point is that it is permanently deleted†. Given that you are asking this, you probably don't have something like safe-rm installed.

† Kind of. Without forensic recovery tools, then yes.

Lucas Jones
  • 19,767
  • 8
  • 75
  • 88
0

Better talk to your SA about recovering a backup.

Failing that, you are likely out of luck.

Jon 'links in bio' Ericson
  • 20,880
  • 12
  • 98
  • 148