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

本文详细记录了解决在Linux下挂载Samba服务时遇到的wrongfstype、badoption和badsuperblock错误的过程。通过检查挂载程序、安装cifs-utils软件包,最终成功解决了挂载问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

搭建完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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值