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