Create a new shared folder on the Windows system share, System User: Test, Password: 12345,ip:172.16.4.118
Create a new directory on the Linux system/home/share
Vi/etc/fstab Add the//172.16.4.118/share/home/share cifs Defaults,username=vqiao,password=vqiao as follows:
#
#/etc/fstab
# Created by Anaconda on Thu Oct 30 05:52:12 2014
#
# Accessible filesystems, by reference, is maintained under '/dev/disk '
# See mans Pages Fstab (5), Findfs (8), mount (8) and/or Blkid (8) for more info
#
/DEV/MAPPER/VG_CENTOS1-LV_ROOT/EXT4 Defaults 1 1
Uuid=ec9dac99-4d4d-4a20-b27a-d99ecbca50ea/boot EXT4 Defaults 1 2
/dev/mapper/vg_centos1-lv_swap swap swap defaults 0 0
TMPFS/DEV/SHM TMPFS Defaults 0 0
Devpts/dev/pts devpts gid=5,mode=620 0 0
Sysfs/sys Sysfs Defaults 0 0
172.16.4.118/123/home/share CIFS Defaults,username=vqiao,password=vqiao 0 0
Check with Mount-a for success, no problem if no display instructions.
Linux CIFS boot automatically mounts Windows shared files