Windows shared folders are mapped to Linux

Source: Internet
Author: User

Environment:

1, there are two machines, a:windows (Win 7) and B:linux (CentOS)

2, a:192.168.0.101 b:192.168.0.102

3. Create a Yum source


Purpose: Share folders in Windows iOS, Mount Windows shared folders to a local disk in Linux

First, Windows

Folders in Windows, such as the iOS folder, the first to share this folder, it is important to note that when sharing, the default permissions are only everyone, allowing read and write permissions, the mount under Linux will also prompt no permission to operate this directory, Because Linux accesses Windows through a guest request, you also need to add the guest permission to read and write permissions to it.


Second, Linux

# mount-t cifs-l//192.168.0.101/ios/she

Enter Password: Here is the password to log in to Linux

Where//192.168.0.101/ios This is the network mapping location (IP and shared folder name of Windows),/she is the folder created by Linux itself


Third, Mount permanent entry into force

#vim/etc/fstab

192.168.0.101/ios/she CIFS defaults,auto,username=root,password=xxx

Restart or enter the mount-a.


Four, Yum source production

Need to install the Createrepo tool

#createrepo she/epel/

Yum Source production completed

This article is from the "Fish" blog, please be sure to keep this source http://kyfish.blog.51cto.com/1570421/1557922

Windows shared folders are mapped to Linux

Related Article

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.