简体   繁体   English

挂载时出错,错误提示:“ mount.nfs:远程共享未采用'host:dir'格式”

[英]Got error while Mounting, error massage:“mount.nfs: remote share not in 'host:dir' format”

Im trying to do mount to a nfs server as follow - mount -t nfs 127.0.0.1 /mnt/mountPointToTest (I know it is local host, it is just for testing) and I got this error message: 我试图按照以下方式安装到nfs服务器mount -t nfs 127.0.0.1 /mnt/mountPointToTest (我知道它是本地主机,仅用于测试),我收到此错误消息:

mount.nfs: remote share not in 'host:dir' format . mount.nfs:远程共享不是'host:dir'格式。

Does anyone know how I can fix this error ? 有谁知道我该如何解决这个错误? Thank you. 谢谢。

-- edit: after changing to mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest got error : -编辑:更改为mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest之后: mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest得到错误:

mount.nfs: No such device. mount.nfs:没有这样的设备。

my /etc/exports looks like: 我的/ etc / exports看起来像:

在此处输入图片说明

You are missing the exported remote share. 您缺少导出的远程共享。 Let's say you have exported /var/share as a share, then your mount command would be 假设您已将/var/share导出为共享,那么您的mount命令将是

mount -t nfs 127.0.0.1:/var/share /mnt/mountPointToTest

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM