Error set: Mount error(112): Host is down is reported when mounting a Windows shared directory on Linux

Mount error(112): Host is down Refer to the mount.cifs(8) manual page (eg man mount.cifs) when mounting a Windows shared directory on Linux

Error report phenomenon:

[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)

Insert picture description here

Solution:

Check the SMB related items in the Control Panel -> Programs and Features -> Start or Shut Down Windows, and then restart the computer.
Insert picture description here
Insert picture description here

Try to mount the shared directory on the Windows side again:

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

Insert picture description here

Guess you like

Origin blog.csdn.net/qq_35456705/article/details/114950170