|
当使用
Linux
中的mount
命令
挂载一个Windows的共享目录的时候有时会出现:
mount error(112): Host is downRefer to the mount.cifs(8) manual page (e.g. man mount.cifs) |
出现
Host is down
的错误在挂载Windows 8,8.1,10的时候会经常出现,这时候其实不是
命令
本身的原因,但是对于挂载windows共享目录来说仍然给大家提供标准的语法:
#mount -t cifs
//IP地址/共享名称 挂载点
-o username
=用户名,
password
=密码,其他选项
Linux
mount
命令
远程共享主机,例如:
10.0.0.1
远程共享目录名称:
share
本地挂载点:
/mnt/sharefolder
通过以下命令来解决
Host is down的问题:
#mount -t cifs //10.0.0.1/share /mnt/sharefolder -o username=sensirx,password=sensirx,vers=2.0
注意事项
这个问题主要在于版本上面,所以在
mount cifs
的时候显式指定一下挂载的
cifs
是最新的版本即可
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31559985/viewspace-2643145/ ,如需转载,请注明出处,否则将追究法律责任。