Suppose I have an SMB share mounted somewhere in a Linux filesystem. If I do this (from within the mounted share):

rm -rf some-directory
mkdir some-directory
ls -a some-directory

some-directory is empty (and I mean empty, not even . or .. show up). If I unmount and mount the share again, everything's fine. Is there a way to fix this?

link|improve this question

50% accept rate
1  
It sounds like a buggy smb client. What smb client are you using (fusesmb, mount.cifs, mount.smb, other)? The distro+version might be useful to. – Zoredache Jan 21 '10 at 18:10
Mount.cifs and Ubuntu Karmic. – Jason Baker Jan 24 '10 at 2:50
"If I do this (from within the mounted share)" -- you mean you're executing that on the client? Or on the server? – Josh Apr 14 '11 at 15:21
I've never had to remount SMB shares like that. Perhaps it's a bug in the SMB client. – gtirloni May 13 '11 at 19:28
samba has an option to hide certain directory entries from clients, are you experiencing something where the server configuration is responsible for this -- though . and .. missing is indeed not what linux should present to you. – Server Horror Jun 18 '11 at 22:32
feedback

1 Answer

I think you must try to mont the filesystem with specific mount options ..

Do you have any specific mount options when your mounting it ?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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