
作業系統:Ubuntu14.04 64 位元 我在運行 Ubuntu 14.04 64 位元的 Nvidia 卡的機器上出現了一個奇怪的問題。 mount 指令在使用 IP 位址時有效,但在使用主機名稱時失敗
不起作用的命令:
sudo -S mount -t cifs //share.test.com/LAB/Testing/Path1/Path2/Requisite/ -o username=blabla,password=blabla /mnt/src_shar_lnx
掛載錯誤:
wrong fs type, bad option, bad superblock on //share.test.com/LAB/Testing/Path1/Path2/Requisite/ , missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount. helper program) In some cases useful info is found in syslog - try dmesg | tail or so
上述命令在沒有 Nvidia 卡的其他機器上無縫運行。
工作命令:
sudo -S mount -t cifs //192.168.200.1/LAB/Testing/Path1/Path2/Requisite/ -o username=blabla,password=blabla /mnt/src_shar_lnx
答案1
他的錯誤訊息提到:
缺少代碼頁或幫助程序,或其他錯誤(對於多個檔案系統(例如 nfs、cifs),您可能需要 /sbin/mount。幫助程序
鑑於您正在嘗試掛載 CIFS,這是相關的。 /sbin/mount.cifs 需要名為 cifs-utils 的套件。
所以安裝包:
sudo apt-get install cifs-utils
答案2
解決。安裝 cifs-utils 解決了問題