1. 程式人生 > >Linux:mount命令出現Host is down如何解決

Linux:mount命令出現Host is down如何解決

導讀 當使用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命令出現Host is down如何解決Linux:mount命令出現Host is down如何解決

工具/原料

Linux
mount命令
遠端共享主機,例如: 10.0.0.1
遠端共享目錄名稱: share
本地掛載點: /mnt/sharefolder

方法/步驟1:

通過以下命令來解決Host is down的問題:

#mount -t cifs //10.0.0.1/share /mnt/sharefolder -o username=sensirx,password=sensirx,vers=2.0

注意事項
這個問題主要在於版本上面,所以在mount cifs的時候顯式指定一下掛載的cifs是最新的版本即可

原文來自: https://www.linuxprobe.com/linux-mounthost-is-down.ht