Linux and windows are file mounts

Source: Internet
Author: User

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

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.