put Windows Server 172.17.43.56(intranet address) directory mount to the CentOS server 172.17.43.57(intranet address) directory.
#linux mount State of the server
[[email protected]]# df -hfilesystem size used avail use% mounted on/dev/vda1 493g 87g 381G 19% /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9g 0 1.9g 0% /dev/shmtmpfs 1.9G 592K 1.9G 1% /runtmpfs 1.9G 0 1.9G 0% /sys/fs/cgrouptmpfs 380m 0 380m 0% /run/user/0
#/mnt Directory is empty
[Email protected]/]# cd mnt/[[email protected]]# lltotal 0[[email protected]]# CD.
# Mount failed
[Email protected]/]# mount-t cifs-ousername= "Administrator"//172.17.43.56/bak/mntmount://172.17.43.56/bakis write-protected, mounting read-onlymount:cannotmount//172.17.43.56/bak read-only[[email protected]/]# cd Mnt/[[email protected]]# lltotal 0[[email protected] mnt]# CD.
# installation cifs-utils
[[email protected]/] #yum installcifs-utils.x86_64-y
# Mount successfully again (requires Windows Server's Administrator user password)
[Email protected]/]# mount-t cifs-ousername= "Administrator"//172.17.43.56/bak/mntpassword for [email PROTECTED]//17 2.17.43.56/bak: ****************[[email protected]/]# CD Mnt/[[email protected] mnt]# ll-htotal 120g-rwxr-xr-x 1 root R Oot 51G Oct 1818:03 ecyingusystem-20171018175058.bak-rwxr-xr-x 1 root root 9.8G Oct 18:17 ecyingusystem-20171018180614 . bak-rwxr-xr-x 1 root root 9.2G Oct 18:51 Ecyingusystem-20171018180614.rar
# Copy mounted directory files no problem
[Email protected]]# cp ecyingusystem-20171018180614.bak/tmp/[[email protected]]# ll/tmp/total 14380696-rwxr-xr-x 1root Root 10434044928 Oct 11:29 ecyingusystem-20171018180614.bakdrwxr-xr-x 2root root 4096 Oct 17:12HSPERFDA Ta_root
# Status after Mount succeeded
[[email protected]~]# df -hfilesystem Size Used Avail Use% Mounted on/dev/vda1 493G 116G 352G 25% /devtmpfs 1.9G 0 1.9G 0% /devtmpfs 1.9G 0 1.9G 0% /dev/shmtmpfs 1.9g 604k 1.9g 1% /runtmpfs 1.9g 0 1.9g 0% /sys/fs/cgrouptmpfs 380M 0 380M 0% /run/user/0//172.17.43.56/bak 420g 224g 196g 54% /mnt
Reference Documentation:
Http://os.51cto.com/art/201408/449273.htm--several ways to exchange visits between Windows and Linux file Systems
http://blog.csdn.net/yasi_xi/article/details/38356247--inux mountwindows directory encountered write-protected problem
This article is from the "Dark-matter" blog, make sure to keep this source http://gagarin.blog.51cto.com/1056957/1974583
Windows Server directory mounts to Linux server