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)
挂载成功。
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)
挂载成功。
相关文章推荐
- Ubuntu中NFS服务及网络文件挂载
- Ubuntu14.04和Tiny6410挂载NFS服务!
- ubuntu 14.04 安装设置nfs服务,好让单板挂载使用
- ubuntu下beagleboard-XM 挂载NFS服务
- CentOS挂载ubuntu下NFS服务故障解决(UID Mapping)
- ubuntu下nfs服务的搭建-AMR板挂载
- Ubuntu 安装NFS服务,实现远程挂载功能
- Ubuntu16.04 挂载nfs服务
- Ubuntu14.04和Tiny6410挂载NFS服务!
- NFS奇怪问题1 - NFS无法工作,服务重启失败,挂载目录变成问号。
- ubuntu server 10.4下NFS服务的配置 推荐
- Ubuntu10.10中NFS服务的安装及配置
- vm中ubuntu 与arm nfs网络服务器挂载的问题解决
- Centos7安装配置NFS服务和挂载
- 详解UT6410开发板NFS挂载失败的原因
- Ubuntu nfs挂载树莓派文件夹
- ubuntu安装nfs服务
- Ubuntu安装nfs服务
- mini2440的NFS挂载失败的问题
- 挂载远程nfs目录-再次冲击Ubuntu之server篇