Ans : Mount windows share using cifs file system (a kernel module) or add mount entries in fstab file
Example :
#mount -t cifs \\Win_IP\WIN_SHARE /mnt
or# cat /etc/fstab
. . . . .
\\win_ip\winshare /mnt cifs credentials=/root/.smbpasswd 0 0
Note :
win_ip = win server name = win IP
winshare = share directory on windows.
/mnt = mounted directory on linux
/root/.smbpasswd = contains login credentials to access windows share
cifs = filesytem name
Manual test :
$smbclient -L //win_ip -U workgroup/win_user
Note : You can configure autofs to automatically mount the shares.
Debugging of cifs :
1) "dmesg -c" (clear the error log)
2) "echo 7 > /proc/fs/cifs/cifsFYI" (enabling cifs
informational/debug messages)
3) try the mount and examine the dmesg output ("dmesg")
4) capture tcpdump.
Saturday, 17 September 2011
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment