by Lepoulpe » Fri Dec 29, 2006 2:08 pm
Hello,
I have the exact same problem with my Synology ds106 running firmware 2.0.1 - 3.0371.
I try to mount the public share from my linux system (Debian etch, kernel 2.6.19.1) using the following entry in the /etc/fstab file :
//ds106/public /mnt/ds106 cifs rw,guest,uid=1001,gid=1001,rsize=8192,wsize=8192,soft,iocharset=utf8,file_mode=0777,dir_mode=0777,nosetuids,noperm 0 0
Mount is OK but I can't list the files :
hobbes:/mnt# mount -a
hobbes:/mnt# mount | tail -1
//ds106/public on /mnt/ds106 type cifs (rw,mand)
hobbes:/mnt# cd ds106/
hobbes:/mnt/ds106# ls
hobbes:/mnt/ds106# cd Series
hobbes:/mnt/ds106/Series# ls
The only workaround I found is connecting (telnet/ssh) to the ds106 and, as root, restarting samba :
DiskStation> /usr/syno/etc/rc.d/S80samba.sh restart
##################
Stoping Samba
##################
Starting smbd and nmbd.
then it works :
hobbes:/mnt/ds106# ls
Series
I need to restart samba on the ds106 each time I umount/mount the filesystem and, as reported before, everything works fine under windows.
To investigate a bit, I made a network capture using tcpdump. I don't know a lot about the SMB protocol, but, according to ethereal, it seems that when I enter the ls command, the client sends a SMB request FIND_FIRST2, with /* pattern.
On success, when I can see the files, the server returns a SMB response with NT status : STATUS_SUCCESS and a file list.
On failures, when I can't list the directory, the server returns a SMB response with NT status : STATUS_NO_SUCH_FILE.
I can send the capture files to anybody interrested.
Hope this helps the support to investigate this issue.
Thanks.