[问题]ubuntu7.10上nfs?

内核编译和嵌入式产品的设计与开发
回复
carrick
帖子: 5
注册时间: 2008-03-24 20:01

[问题]ubuntu7.10上nfs?

#1

帖子 carrick » 2008-03-27 17:58

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后,测试:挂载自己的 机器,结果出现以上错误.
请大虾指点!
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#2

帖子 yaoms » 2008-03-27 17:59

推荐使用 sshfs

比nfs 好用的。
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
carrick
帖子: 5
注册时间: 2008-03-24 20:01

#3

帖子 carrick » 2008-03-27 18:04

sshfs 也可以 用于目标板挂载主机吗?
头像
xhylyx
帖子: 353
注册时间: 2007-04-09 15:19

#4

帖子 xhylyx » 2008-04-02 12:21

很明显是nfs没配置好了
你好好检查下你的配置文件
Helen_xu
帖子: 5
注册时间: 2009-01-18 12:56

Re: [问题]ubuntu7.10上nfs?

#5

帖子 Helen_xu » 2009-02-13 22:28

我是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

有人知道原因吗?
lamehu
帖子: 6
注册时间: 2008-09-25 9:01

Re: [问题]ubuntu7.10上nfs?

#6

帖子 lamehu » 2009-02-19 19:06

我以前也遇到了这个问题,有高手帮我解决了,你可以参考一下http://forum.ubuntu.org.cn/viewtopic.php?f=50&t=152049,7楼的回复。
回复