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

I have Samba 3.5.11 on Debian/kfreebsd sid. (Also tested with 3.6.1 from experimental)
I have a zfs filesystem Storage/Photos.
If I open one the the folders on there (Storage/Photos/folder1) it shows (on Windows 7, Total Commander):

  • file1.jpg
  • file1.jpg
  • file2.jpg
  • file2.jpg

So I see the same file several times in Total Commander (and Windows Explorer as well).
Sometimes the Thumbs.db comes up 20-30 pieces.
I don't know where to start, what can be the problem?

share|improve this question

Test it with a simpler client first.

On the Debian box, run

smbclient //server/share

Enter credentials and run

ls /your/directory

Also examine your logs closely.

share|improve this answer
The problem comes up only the number of files reaches a limit. So I generated a lot of file (190 pieces), in this case on Windows some of them was doubled, alltogether 330 files showed up. With smbclient the files are not doubled, but was not in order, I mean I generated the files in sequence, so they sould be in name order on the disk (I suppose). – netmano Nov 4 '11 at 10:46
what output do you get if you do dir on the win7 box on the samba share? 190 files are not so much, so this should not be a problem. – f4m8 Nov 4 '11 at 14:04
Strange, if I use dir from command line (on Win7) I get the right answer each file once. But if I see the same in Total Commander, or Windows Explorer I got doubling. I made some test, now in my system, the magic number is 135, so if I have 135 or more files in a dir, I get the error, under 135 I don't. – netmano Nov 5 '11 at 7:44

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.