1. Create a user with a password on the Windows7, such as disk
2. Create a folder, such as D:\centos-disk2
3. Select this folder, click on the above share, specific users, add disk users, read and Write permissions
4. Install the Samba-client client under Linux
# yum Install Samba-client
5. Install the Cifs-utils package
# yum Install Cifs-utils
6. Create a mount point under Linux
# mkdir/mnt/windows
7. Mount the shared directory on Windows D:\redhat_disk to the/mnt/windows directory under Linux
# mount-t Cifs-o username=tommy//192.168.1.123/redhat_disk/mnt/windows
Enter password:111111
8, if the mount is successful, you can enter/mnt/windows, create a new file to see if Windows can see
9. In the/etc/fstab file, add the mount information of the shared directory
192.168.1.123/redhat_disk/mnt/windows CIFS username=tommy,password=111111 0 0
10. To this end, the shared directory on Windows//192.168.1.123/redhat_disk is successfully mounted on Linux, and after the Linux reboot, the directory is automatically mounted to the/mnt/windows directory.
================================
Mount-t Cifs-o Username=disk//109.105.4.176/centos-disk/windows/e
Mount-t Cifs-o Username=disk//109.105.4.176/centos-disk2/windows/d
Cat/etc/fstab
....
109.105.4.176/centos-disk/windows/e CIFS username=disk,password=qq77aa88 0 0
109.105.4.176/CENTOS-DISK2/WINDOWS/D CIFS username=disk,password=qq77aa88 0 0
CentOS uses Windows7 storage