mount: wrong fs type, bad option, bad superblock on 125.64.41.244:/data/img

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*
-rwsr-xr-x. 1 root root 123776 11月 22 2013 /sbin/mount.nfs
lrwxrwxrwx. 1 root root      9 6月   9 13:41 /sbin/mount.nfs4 -> mount.nfs
-rwxr-xr-x. 1 root root   1338 2月  22 2013 /sbin/mount.tmpfs


>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>


使用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,那我們繼續完成掛載操作,如下

技術分享

搞定



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章