Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I just deleted a file in Nautilus with Shift+Delete, which warned me that "If you delete an item, it will be permanently lost." I wonder if there is no way to recover the file?

My OS is Ubuntu 10.10.

share|improve this question

marked as duplicate by derobert, jasonwryan, warl0ck, Renan, manatwork Mar 13 '13 at 7:25

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.

1  
What kind of fs? ext3? ext4? – frabjous Aug 13 '11 at 19:26
    
@frabjous: ntfs shared with Windows. – Tim Aug 13 '11 at 19:28
3  
And this thread might help too, since nothing is fedora-specific. – frabjous Aug 13 '11 at 19:29

The first thing you have to do is to umount the partition. Next, TestDisk might help

share|improve this answer

You restore it from your back up. You do have one of those, right?

share|improve this answer
    
I don't have backup. – Tim Aug 13 '11 at 21:19
6  
Now you've learned something. – bahamat Aug 13 '11 at 21:23
2  
If you don't have a backup, your data is already dead; you just don't know it yet. – psusi Feb 3 '12 at 3:59

There are lots of disk scanners to help you get your files back after you unmount the file system. Try this one, a free open source solution just for ext filesystems.

share|improve this answer
    
Thanks! How about NTFS? – Tim Aug 13 '11 at 23:02
1  

Check the following links to find some howtos to use popular data recovery tools like foremost, photorec, scalpel and magic rescue:

http://www.howtogeek.com/howto/15761/recover-data-like-a-forensics-expert-using-an-ubuntu-live-cd/

https://help.ubuntu.com/community/DataRecovery

and finally:

http://technology-flow.com/articles/backtrack-5-complete-tut/forensics/

share|improve this answer

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