mount: wrong fs type, bad option, bad superblock on 125.64.41.244:/data/img,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
根據錯誤提示,查看/sbin/mount.<type>文件,果然發現沒有/sbin/mount.nfs的文件,安裝nfs-utils即可
解決方法:
代碼如下 | 複製代碼 |
apt-get install nfs-common 或者 yum install nfs-utils |
安裝之後,/sbin/下面多了兩個mount文件,分別是mount.nfs和mount.nfs4:
代碼如下 | 複製代碼 |
[root@web data]# ll /sbin/mount* |
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
使用mount命令直接掛載,如下
居然報錯,那我們使用-t 參數,加上cifs
居然還是報錯
仔細查看上面的報錯,小括號裏面的,need a /sbin/mount.<tpye> helper program)
貌似在/sbin/有很多與mount相關的命令,查看如下,使用雙tab列出所有/sbin/mount.開頭的命令:
貌似少了一個mount.cifs,因爲samba使用的文件系統是cifs:那就安裝嘛,如下
上面安裝mount.cifs命令,首先你得有一個可靠的yum環境
安裝成功後,查看,如下
[root@MSX ~]# /sbin/mount. mount.cifs mount.fuse mount.nfs mount.nfs4 mount.tmpfs
第一個就是mount.cifs,那我們繼續完成掛載操作,如下
搞定