Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Recover Deleted Files

Recover Deleted Files

Recover Deleted Files

I've read in several places that when you use dd to image a hard drive, it makes a byte-exact image which will even include the data from files that were recently deleted, but not yet overwritten by newer files.

I found something online about how to undelete files from ext2 file systems, and that for non-ext2 file systems you can run this command on the unmounted drive to try to recover some data from a deleted file:


grep -a -B[size before] -A[size after] 'text' /dev/[your_partition]

However, that assumes that you know something about the deleted file. Is there a way (preferrably filesystem-independent) for reading through a hard drive's data (or the data of a dd image) and come up with a list of all the files that were deleted?

On Windows there were some undelete programs that would scan the hard drive and, in most cases, be able to find the file names of the deleted files and give you an estimate of how likely it is that the file can be recovered. How would you do this on Linux?

Cuvou.com | My personal homepage
Project Fearless | My web blog

RE: Recover Deleted Files

There is a special version of Linux used for forensic and system recovery called Helix.  It should have tools for doing this sort of thing.  ext3 has journaling and you may be able to recover the data from teh journal, but ext3 will require special programs.

Keep in mind installing software, creating files or even updates to the the log files can create problems trying to recover data from a drive.

Have a look at: http://www.penguin-soft.com/penguin/man/8/e2undel.html


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close