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:

 代码如下 复制代码

[[email protected] 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命令直接挂载,如下

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

居然报错,那我们使用-t 参数,加上cifs

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

居然还是报错

仔细查看上面的报错,小括号里面的,need a /sbin/mount.<tpye> helper program)

貌似在/sbin/有很多与mount相关的命令,查看如下,使用双tab列出所有/sbin/mount.开头的命令:

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

貌似少了一个mount.cifs,因为samba使用的文件系统是cifs:那就安装嘛,如下

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

上面安装mount.cifs命令,首先你得有一个可靠的yum环境

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

安装成功后,查看,如下

[[email protected] ~]# /sbin/mount.
mount.cifs   mount.fuse   mount.nfs    mount.nfs4   mount.tmpfs

第一个就是mount.cifs,那我们继续完成挂载操作,如下

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

搞定