Linux NFS挂载:错误的fs类型,错误的选项,错误的fs2超级块:/data3错误和解决方案
时间:2020-01-09 10:42:36 来源:igfitidea点击:
我有一个netapp NFS服务器以/data3作为共享目录。
我在Ubuntu Linux上执行以下命令来挂载NFS服务器:
mount fs2:/data3/nfs /
或者mount 192.168.1.100:/data3/nfs /
但是我得到一个错误,内容如下:
mount fs2:/data3 /nfs/
OR
mount 192.168.1.100:/data3 /nfs/But I’m getting an error which read as follows:
mount: wrong fs type, bad option, bad superblock on fs2:/data3,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog – try
dmesg | tail or so
我该如何解决这个问题?
NFS客户端需要portmap服务,只需按如下所示安装nfs-comman软件包即可解决此问题:
$ sudo apt-get install nfs-common
确保portmap服务正在运行:
sudo service portmap status
输出示例:
portmap start/running, process 4193
如果不只是启动它:
$ sudo service portmap start
安装一个后,您可以看到所有共享的NFS目录,如下所示:
showmount -e fs2
输出示例:
Export list for fs2: /Sales /Web /Accounting /Recordings /Public /Network Recycle Bin 1 /Music /Download /Games /Family
只需再次运行mount命令:
$ sudo mkdir /nfs $ sudo mount fs2:/data3 /nfs/ $ ls /nfs