Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is there any kind way (and chance) to recover deleted files on a samba share?

We're using Ubuntu Server 10.04 and a user accidentally deleted all his files. He used (I don't think it's useful anyway) Windows 7 to access the share and delete files.

ps I'll try to be clearer: no backup has been done and I'd just need any kind of deleted file recovery working tool on Ubuntu (like easyrecovery pro & co. for windows)

share|improve this question
Did you check the recycle bin on the Windows 7 box? – jftuga Mar 31 '11 at 15:30
Sadly it's empty :( – Pitto Mar 31 '11 at 16:01
You can set up recycle bins for Samba shares use the VFS module - this answer gives some good details about doing so. – Andrew Apr 11 '11 at 23:22
up vote 0 down vote accepted

There is a possibility, and a way, depending on the filesystem used to store the files. Here is how one person was able to recover files from an ext3 filesystem:

Of course, if you have backups, that would be preferable. You DO have backups right? If might be a great time to start, while the motivation is fresh in your mind.

Checkout BackupPC, Bacula, or just plain tar.

share|improve this answer
I'm just the luckiest guy around... I've found a working backup (thank god). – Pitto Apr 4 '11 at 9:55

You're pretty much stuck with recovering from backup unless you can get it back from the server side somehow (filesystem tricks, etc). That's pretty unlikely, though, as the physical location on disk where the files were stored have probably already been overwritten by other server activity. Windows only puts things in the recycle bin when deleting from local volumes. Items on network shares are just straight-up deleted.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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