Mount window files to linux

Source: Internet
Author: User

The window file is mounted to linux. When configuring the development environment, you need to mount the folders under windows to linux. Follow these steps: 1. First share the directory to be mounted under windows. 2. Ensure that linux and windows are in the same LAN. 3. Create a directory to be mounted under linux. 4. Use the mount command for mounting. 1 mount-t cifs // ip/shared file name on windows/mount point directory on linux-o username = windows user, password = password required for access to share note: this method is only used for temporary mounting. It will expire upon next restart. Therefore, you can add the following line after the/etc/fstab file to automatically mount linux when it is started. (The root user permission must be used to modify this file.) 1 // ip/shared file name on windows/mount point cifs default on linux, username = accessible shared user name on windows, password = password for accessing the shared user 0 2 Note: the files in linux have the permissions of the user and the group. The above method is mounted. the user and group of the files mounted to linux are root. If you want to mount the files with other users and groups, you can change the content of/etc/fstab to: 1 // ip/shared file name on windows/mount point cifs default on linux, username = username for windows shared access, password = password for accessing shared users, uid = user ID, gid = group id 0 2 where the user id of the file you want to mount belongs to that user id. The id value can be viewed in the/etc/passwd file. Gid is also available.

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.