错误集:Linux端挂载Windows共享的目录时报错mount error(112): Host is down

Linux端挂载Windows共享的目录时报错mount error(112): Host is down Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

报错现象:

[root@bogon /]#mount.cifs //192.168.2.1/gx /data
Password for root@//192.168.2.1/gx:  
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

在这里插入图片描述

解决方法:

在控制面板->程序和功能->启动或关闭windows更能中勾选SMB的相关项,之后重启电脑即可
在这里插入图片描述
在这里插入图片描述

再次尝试挂载Windows端共享的目录:

yum install -y cifs-utils
mkdir /data
mount.cifs //192.168.2.1/gx /data
不需要输入密码直接回车
df -h
ls /data

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_35456705/article/details/114950170