Linux mount/Uninstall Windows shared folders

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.