One, Mount Linux:ubuntu
1. Set up a shared directory on Windows
such as: Set D:\workspace to shared directory
2. Create a user on Windows, such as Tommy, password 111111
3. Add the Tommy user to the Access group of the shared directory D:\workspace and set Tommy to have full control of the shared directory (read, write)
4. Install the Samba-client client under Linux
# sudo install samba-client
5. Install the Cifs-utils package
# sudo 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/workspace/mnt/windowsenter 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 was successfully mounted on Linux, and after the Linux restart, will automatically mount the directory to the/mnt/windows directory II, uninstall Umount -l/mnt/windows
Linux mount/Uninstall Windows shared folders