1. First create the Share folder under Windows and set the share (right--property--share)
2. Confirm that Ubuntu installs Mount.cifs,apt-get install mount.cifs or replace it with (cifs-utils)
3. Create/mnt/winshare under Ubuntu to mount shared files
$ sudo mkdir/mnt/sharefolder
$ sudo chmod 777/mnt/sharefolder
4. Sudo mount-t cifs//(Win-server)/htdocs/mnt/winshare-o username= "Win user name", password= "Win password", Iocharset=utf8,dir_mod E=0777,file_mode=0777,uid= "+", gid= "1000"
Description: Win-server can be the IP or hostname, Username,password is the win system user and password, UID and GID designated files attached under Ubuntu belong to the main and belong to the group, Dir_mode,file_ mode specifies directory and file operation permissions under Ubuntu (invalid using chmod chown)
5. Boot automatically mount, add the above Mount command in/etc/rc.local
Linux and windows are file mounts