Windows服务器目录挂载到linux服务器
2021-05-04 18:29
标签:windows mount centos 挂载 把Windows服务器172.17.43.56(内网地址)的目录mount到CentOS服务器172.17.43.57(内网地址)的目录上。 #linux服务器的挂载状态 #/mnt目录为空 #挂载失败 #安装cifs-utils #再次挂载成功(需要Windows服务器的administrator用户密码)
#复制挂载目录的文件没有问题
#挂载成功后的状态 参考文档: http://os.51cto.com/art/201408/449273.htm——Windows与Linux文件系统互访的几种方法 http://blog.csdn.net/yasi_xi/article/details/38356247——inux mountWindows目录遇到 write-protected 问题 本文出自 “dark-matter” 博客,请务必保留此出处http://gagarin.blog.51cto.com/1056957/1974583 Windows服务器目录挂载到linux服务器 标签:windows mount centos 挂载 原文地址:http://gagarin.blog.51cto.com/1056957/1974583[root@iZ2zeoecj5h2z0720hZtmp]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 493G 87G 381G 19% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 592K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 380M 0 380M 0% /run/user/0
[root@iZ2zeoecj5h2z0720hZ/]# cd mnt/
[root@iZ2zeoecj5h2z0720hZmnt]# ll
total 0
[root@iZ2zeoecj5h2z0720hZmnt]# cd ..
[root@iZ2zeoecj5h2z0720hZ /]# mount -t cifs -ousername="administrator" //172.17.43.56/bak /mnt
mount: //172.17.43.56/bakis write-protected, mounting read-only
mount: cannotmount //172.17.43.56/bak read-only
[root@iZ2zeoecj5h2z0720hZ/]# cd mnt/
[root@iZ2zeoecj5h2z0720hZmnt]# ll
total 0
[root@iZ2zeoecj5h2z0720hZ mnt]# cd ..
[root@iZ2zeoecj5h2z0720hZ /]#yum installcifs-utils.x86_64 -y
[root@iZ2zeoecj5h2z0720hZ /]# mount -t cifs -ousername="administrator" //172.17.43.56/bak /mnt
Password for administrator@//172.17.43.56/bak: ****************
[root@iZ2zeoecj5h2z0720hZ /]# cd mnt/
[root@iZ2zeoecj5h2z0720hZ mnt]# ll -h
total 120G
-rwxr-xr-x 1 root root 51G Oct 1818:03 ecyingusystem-20171018175058.bak
-rwxr-xr-x 1 root root 9.8G Oct 18 18:17 ecyingusystem-20171018180614.bak
-rwxr-xr-x 1 root root 9.2G Oct 18 18:51 ecyingusystem-20171018180614.rar
[root@iZ2zeoecj5h2z0720hZmnt]# cp ecyingusystem-20171018180614.bak /tmp/
[root@iZ2zeoecj5h2z0720hZmnt]# ll /tmp/
total 14380696
-rwxr-xr-x 1root root 10434044928 Oct 19 11:29 ecyingusystem-20171018180614.bak
drwxr-xr-x 2root root 4096 Oct 16 17:12hsperfdata_root
[root@iZ2zeoecj5h2z0720hZ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 493G 116G 352G 25% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 1.9G 604K 1.9G 1% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 380M 0 380M 0% /run/user/0
//172.17.43.56/bak 420G 224G 196G 54% /mnt
文章标题:Windows服务器目录挂载到linux服务器
文章链接:http://soscw.com/index.php/essay/82390.html