搭建完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
至此问题解决

挂载命令

mount -t nfs 69.21.52.71:/tmp_file /本地目录

苏ICP备18039385号