Sign up ×
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.

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.

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
And this thread might help too, since nothing is fedora-specific. –  frabjous Aug 13 '11 at 19:29

4 Answers 4

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
Now you've learned something. –  bahamat Aug 13 '11 at 21:23
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

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

and finally:

share|improve this answer

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