CIFS
From X-Wrt
So just a quick note here since i struggled with mounting a samba share using cifs for a day or so
1) ipkg install kmod-cifs
2) ipkg install cifsmount
3) Now try and mount your samba share using one of the following syntax
see http://linux.die.net/man/8/mount.cifs
mount.cifs {service} {mount-point} [-o options]
examples
mount -t cifs //SmbServer/share /tmp/mnt -o unc=\\\\SmbServer\\share,user=YY,pass=XX ,dom=workgroup
mount.cifs //SmbServer/share /mnt/somedir -o user=admin, password=xxx
mount.cifs //SmbServer/share /mnt/somedir
you will may get an errors like
'mount error 20 = Not a directory' '
or
'mount error: could not find target server. TCP name SmbServer/share not found rc = 4197056'
I found this in a thread on openwrt tried
echo 0 > /proc/fs/cifs/LinuxExtensionsEnabled
I think this issue is NAS device dependent some NAS devices may have a better implemenation of the protocol
for 'mount error: could not find target server.'
use an IP adresss for the SmbServer,
add SmbServer to /etc/hosts
or spec an ip addr in the -o options
for 'mount error 20/22' I found this can be resolved entering the correct password
(dunno why cifs cant just re-prompt for passwd or error = xxx incorrect password /me should get motivated & fix it :( )
lastly there is no umount.cifs but it looks like busybox umount will un-mount a cifs share
Update 05/11/2008
you may also encounter
Mounting the DFS root for a particular server not implemented yet No ip address specified and hostname not found
This can occur if you forget the share path from the Smb Server eg
mount.cifs //SmbServer /mnt/somedir
mount.cifs //SmbServer\share /mnt/somedir

