set: Host IP with Windows system 172.31.32.33 d:\test\share_dir\ share name 123, the system exists a user zkqqzkzkq, password cccc; on the host of the CentOS-equipped system, the Windows host's share_dir must be mounted to/mnt/. the mount-t cifs-o USERNAME=ZKQQZKZKQ,PASSWORD=CCCC//172.31.32.33/123/mnt can be executed in the CentOS system. If you need to boot vim/etc/fstab the bottom plus a line//172.31.32.33/123/mnt cifs USERNAME=ZKQQZKZKQ,PASSWORD=CCCC 0 0
Note: The symbol is full of half corner, where the space to space! After execution, the CD to/mnt see the contents of the 172.31.32.33 host D:\test\share_dir! In some CENTOS6 versions, Fstab is loaded before the network, causing the load of the network shared folder to fail. This situation suggests writing the command in a shell and putting it in/etc/rc.d/rc.local.
CentOS Mount Windows shared folder