Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
How to recover a removed file under linux

I had a project directory inside my Eclipse workspace folder (on my Ubuntu Linux system)

By mistake I have overwrite this folder with a new wrong version dowloaded from Internet...

Can I recover the old deleted directory in some way?

share|improve this question

migrated from stackoverflow.com Nov 21 '12 at 18:14

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Ƭᴇcʜιᴇ007, Hennes, Sathya Nov 21 '12 at 19:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers 3

The short answer is no.

The long answer is maybe. It depends on the filesystem. It depends on the amount of data. It depends on how recognizable the files are. And, most importantly, it depends on whether or not the actual areas of the disk that contained the information that you accidentally deleted have been overwritten.

How to do this is rather outside of the scope of a StackOverflow answer. I would suggest bringing this to a professional if you care about retrieving your data. Until then, do not mount the drive read write and if it's ext3 or 4 mount it through a loopback device to prevent journal writes.

share|improve this answer

Probably, you have ext3 or ext4 filesystem. You may try to use program extundelete. On official page you'll find documentation.

Hope that it helps you!

P.S. Recommend you to use backups or better -- control version systems for your projects.

share|improve this answer
    
Which version control systems do you recommend? –  Anderson Green Nov 21 '12 at 18:26
    
This is offtopic, and it can be hollywar, but if you ask, I use it, and recommend Git (en.wikipedia.org/wiki/Git_(software)). But, of course, there are lot alternatives and you must choose it by your purposes. –  troyane Nov 21 '12 at 19:20

Your favourite search engine will probably point you towards some pages about this, for instance, I found http://askubuntu.com/questions/25311/best-tool-to-recover-removed-files

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.