nfs-utils未安装导致nfs挂载失败

Posted 王万林 Ben

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nfs-utils未安装导致nfs挂载失败相关的知识,希望对你有一定的参考价值。

问题描述

[centos@CentOS7 ~]$ tail -1 /etc/fstab 
192.168.6.31:/nfs /nfs nfs defaults 0 0
[centos@CentOS7 ~]$ sudo mount 192.168.6.31:/nfs /nfs 
mount: wrong fs type, bad option, bad superblock on 192.168.6.31:/nfs,
       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.
[centos@CentOS7 ~]$ sudo /sbin/mount.nfs 192.168.6.31:/nfs /nfs 
sudo: /sbin/mount.nfs: command not found
[centos@CentOS7 ~]$ 

问题解决

[root@CentOS7 ~]# yum install -y nfs-utils >& /dev/null
[root@CentOS7 ~]# 

挂载

[root@CentOS7 ~]# mount /nfs
[root@CentOS7 ~]# df -h /nfs
Filesystem         Size  Used Avail Use% Mounted on
192.168.6.31:/nfs   12G  1.3G   11G  11% /nfs

以上是关于nfs-utils未安装导致nfs挂载失败的主要内容,如果未能解决你的问题,请参考以下文章

nfs-utils bug导致nfs挂载失败

NFS配置及开机自动挂载

Windows挂载NFS文件系统

Linux Windows 挂载NAS服务

Linux网络服务------NFS共享储存服务

2018-3-27 14周2次课 NFS(下)FTP(上)