CentOS7解决samba挂载报错"mount: wrong fs type, bad option..."问题

搭建完samba服务后尝试挂载

[root@client0 sh]# mount -t cifs //192.168.56.10/temp /mnt

弹出如下错误提示

mount: wrong fs type, bad option, bad superblock on //192.168.56.10/temp,
       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/目录下的文件

[root@client0 sh]# ll /sbin/mount.*
-rwsr-xr-x. 1 root root 117504 Nov  8 00:56 /sbin/mount.nfs
lrwxrwxrwx. 1 root root      9 Apr  9 13:13 /sbin/mount.nfs4 -> mount.nfs

应该是没有cifs文件系统格式的挂载程序, 故

[root@client0 sh]# yum provides mount.cifs
cifs-utils-6.2-10.el7.x86_64 : Utilities for mounting and managing CIFS mounts
Repo        : base
Matched from:
Filename    : /usr/sbin/mount.cifs


[root@client0 sh]# yum install -y cifs-utils

至此问题解决

[参考文章]

linux下挂载samba时报错,wrong fs type,bad option,bad superblock

发布了41 篇原创文章 · 获赞 6 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/sean908/article/details/89307663