您的位置:首页 > 其它

Ubuntu nfs服务挂载失败

2018-03-28 17:03 295 查看
启动nfs服务出现以下信息:
root@ubuntu:/mnt# service nfs-kernel-server restart
 * Stopping NFS kernel daemon                                            [ OK ] 
 * Unexporting directories for NFS kernel daemon...                      [ OK ] 
 * Exporting directories for NFS kernel daemon...                               exportfs: /etc/exports [2]: Neither 'subtree_check' or 'no_subtree_check' specified for export "*:/home/topeet/minLinux/".
  Assuming default behaviour ('no_subtree_check').
  NOTE: this default has changed since nfs-utils version 1.0.x

                                                                         [ OK ]

 * Starting NFS kernel daemon                                            [ OK ] 

但挂载目录失败:
topeet@ubuntu:/mnt$ sudo mount -t nfs localhost:~/minLinux/system/ /mnt/

mount.nfs: access denied by server while mounting localhost:~/minLinux/system/
解决办法:
在/etc/exports最后加上no_subtree_check,如下:

/home/topeet/minLinux/ *(rw,sync,no_root_squash,no_subtree_check)

挂载成功。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  嵌入式