1. Under Windows, create a folder F:\linux, share to win under the user username, the user password is passwd. The Windows system IP is 192.168.18.203 in the LAN
2. Run Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777 on the centos6.5 command line (root), fmask=777.
You can then see the contents of the shared folder F:\linux that belong to Windows in the CentOS/mnt/win directory.
Dmask=777 means that the folder owner can read and write, and the same fmask represents the permissions of the file 777. Can be set according to their own circumstances.
3. If you want the Windows folder to start mounting with CentOS, you can use the following command:
echo Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777,fmask=777 >>/etc/ Fstab
If not, you can use
echo Mount//192.168.18.203/linux/mnt/win-o username=username,password=passwd,dmask=777,fmask=777 >>/etc/ Rc.local
Reference:
http://zhangjunli177.blog.163.com/blog/static/13860730820130220264506/
Http://ry.tl/mount.html
To mount a Windows shared folder under centos6.5