root@carrick-laptop:~# sudo mount -t nfs 192.168.0.10:/home/arm/nfs /mnt
mount.nfs: mount to NFS server '192.168.0.10' failed: RPC Error: Program not registered
在7.10上安装好NFS后,测试:挂载自己的 机器,结果出现以上错误.
请大虾指点!
[问题]ubuntu7.10上nfs?
-
- 帖子: 5
- 注册时间: 2008-03-24 20:01
- yaoms
- 帖子: 4952
- 注册时间: 2007-10-19 14:51
- 来自: 深圳
-
- 帖子: 5
- 注册时间: 2009-01-18 12:56
Re: [问题]ubuntu7.10上nfs?
我是ubuntu8.04的
我的出现了这样的问题:mount.nfs: access denied by server while mounting 192.168.0.130:/zylinux/root
我的设置步骤是这样的:
1.要安装NFS服务程序:
root@xuqinxiong-desktop:~# sudo apt-get install nfs-kernel-server
2.配置NFS
(1)配置portmap
方法2: $ sudo dpkg-reconfigure portmap , 对Should portmap be bound to the loopback address? 选N.
(2)配置/etc/hosts.deny
禁止任何host(主机)能和你的NFS服务器进行NFS连接,加入:
### NFS DAEMONS
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
(3)配 置/etc/hosts.allow
加入:
### NFS DAEMONS
portmap: 192.168.2.
lockd: 192.168.2.
rquotad: 192.168.2.
mountd: 192.168.2.
statd: 192.168.2.
root@xuqinxiong-desktop:~# sudo /etc/init.d/portmap restart
重启portmap daemon.
(4)配置/etc/exports
NFS挂载目录及权限由/etc/exports文件定义
加入: /zylinux/root 192.168.0.*(rw,sync,no_root_squash,no_subtree_check)
root@xuqinxiong-desktop:~#showmount -e
查看NFS server的export list.
终端显示为:Export list for xuqinxiong-desktop: /zylinux/root 192.168.2.*
若更改了/etc/exports, 运行 root@xuqinxiong-desktop:~# exportfs -r 更新
运行 root@xuqinxiong-desktop:~# sudo /etc/init.d/nfs-kernel-server restart 重启nfs服务
(5)测试NFS
我的主机IP地址设为是:192.168.0.130
我现在试把/zylinux/root 目录挂载到/mnt目录下
root@xuqinxiong-desktop:~# mount -t nfs 192.168.0.130:/zylinux/root /mnt
但是出现了以下错误:
mount.nfs: access denied by server while mounting 192.168.0.130:/zylinux/root /mnt
有人知道原因吗?
我的出现了这样的问题:mount.nfs: access denied by server while mounting 192.168.0.130:/zylinux/root
我的设置步骤是这样的:
1.要安装NFS服务程序:
root@xuqinxiong-desktop:~# sudo apt-get install nfs-kernel-server
2.配置NFS
(1)配置portmap
方法2: $ sudo dpkg-reconfigure portmap , 对Should portmap be bound to the loopback address? 选N.
(2)配置/etc/hosts.deny
禁止任何host(主机)能和你的NFS服务器进行NFS连接,加入:
### NFS DAEMONS
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
(3)配 置/etc/hosts.allow
加入:
### NFS DAEMONS
portmap: 192.168.2.
lockd: 192.168.2.
rquotad: 192.168.2.
mountd: 192.168.2.
statd: 192.168.2.
root@xuqinxiong-desktop:~# sudo /etc/init.d/portmap restart
重启portmap daemon.
(4)配置/etc/exports
NFS挂载目录及权限由/etc/exports文件定义
加入: /zylinux/root 192.168.0.*(rw,sync,no_root_squash,no_subtree_check)
root@xuqinxiong-desktop:~#showmount -e
查看NFS server的export list.
终端显示为:Export list for xuqinxiong-desktop: /zylinux/root 192.168.2.*
若更改了/etc/exports, 运行 root@xuqinxiong-desktop:~# exportfs -r 更新
运行 root@xuqinxiong-desktop:~# sudo /etc/init.d/nfs-kernel-server restart 重启nfs服务
(5)测试NFS
我的主机IP地址设为是:192.168.0.130
我现在试把/zylinux/root 目录挂载到/mnt目录下
root@xuqinxiong-desktop:~# mount -t nfs 192.168.0.130:/zylinux/root /mnt
但是出现了以下错误:
mount.nfs: access denied by server while mounting 192.168.0.130:/zylinux/root /mnt
有人知道原因吗?
-
- 帖子: 6
- 注册时间: 2008-09-25 9:01
Re: [问题]ubuntu7.10上nfs?
我以前也遇到了这个问题,有高手帮我解决了,你可以参考一下http://forum.ubuntu.org.cn/viewtopic.php?f=50&t=152049,7楼的回复。