Free Data recovery tool for linux?

3

I deleted files on my linux drive that I shouldn't have. What is a good tool to use to recover these files that will:

  • Recover the various file types (txt, php etc)
  • Recover it as the original files names

TestDisk and PhotoRec almost do the trick, but the original filenames are not restored. So I need a better solution?

coderama

Posted 2010-01-25T13:31:50.393

Reputation: 699

Question was closed 2018-07-03T10:26:48.033

Any of those helpful? http://superuser.com/questions/98183/recovering-a-accidently-deleted-file-in-ubuntu

– Troggy – 2010-01-25T13:38:29.240

1What file system? There are many. – David Thornley – 2010-01-25T14:50:16.407

Answers

3

Maciek Sawicki

Posted 2010-01-25T13:31:50.393

Reputation: 1 072

I once used GNU ddrescue to pull lots of data off a damaged hard drive using Puppy Linux. It did pretty well. I did have to download some development tools for Puppy, though, so I could compile it. – Nathaniel – 2010-01-25T22:56:14.980

The problem with PhotoRec is that it doesnt recover the actual file NAMES. Any suggestions on how to get the fileNames? – coderama – 2010-01-26T07:08:18.827

It could be hard because of the way how file system works. http://en.wikipedia.org/wiki/Inode: "Inodes do not contain file names, only file metadata. Unix directories are lists of "link" structures, each of which contains one filename and one inode number."

– Maciek Sawicki – 2010-01-26T11:40:00.513

1

This may depend on the file system you are using. For example, on ext2, you can use undelete utility.

David Segonds

Posted 2010-01-25T13:31:50.393

Reputation: 113

1

It's probably not helpful to the OP, but the correct mantra here is "restore from backup."

If you haven't set up a fake delete (that moves files to a trashcan for later deletion), most of the Linux filesystems offer at best a probability of recovery.

mpez0

Posted 2010-01-25T13:31:50.393

Reputation: 2 578

Unfortunately - at least in my case - it was in the process of moving files from my camera's media stick to my file server that things went wrong. The file server is backed up nightly by Bacula - haven't yet found a camera that will do that!! – kwutchak – 2010-02-22T00:19:24.347