主题 : 菜鸟求助nfs挂载报错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 79706
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2012-10-11
最后登录: 2013-03-09
楼主  发表于: 2012-10-15 20:58

 菜鸟求助nfs挂载报错

刚学linux一个多月,还是菜鸟一个。。。搞了半天了。nfs挂载文件失败,根据上网看的修改了一下,还是错,实在想不出来啊!!大家救救我啊。iptables关了,nfs、rpcbind、portmap都开启成功,
gedit /etc/exports修改内容如下:
/opt/FriendlyARM/mini210s/linux/rootfs_qtopia_qt4  192.168.* (rw,sync,no_root_squash)
/home  192.168.* (rw,sync,no_root_squash)
/ *(rw)


[root@shaojun /]# mount -t nfs localhost:/home  /mnt
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
mount.nfs: an incorrect mount option was specified

[root@shaojun /]# mount -t nfs localhost:/home  /mnt -o nolock
mount.nfs: mount to NFS server 'localhost:/home' failed: RPC Error: Program not registered
级别: 侠客
UID: 24708
精华: 0
发帖: 94
金钱: 480 两
威望: 96 点
综合积分: 188 分
注册时间: 2010-07-13
最后登录: 2023-04-23
1楼  发表于: 2012-10-16 09:43
网卡里没有lo吧..?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2012-10-16 12:30

 回 楼主(大头bbs) 的帖子

也许这里的信息有点帮助
http://nfs.sourceforge.net/nfs-howto/ar01s07.html
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 79706
精华: 0
发帖: 8
金钱: 40 两
威望: 8 点
综合积分: 16 分
注册时间: 2012-10-11
最后登录: 2013-03-09
3楼  发表于: 2012-10-22 20:38
感谢楼上的各位同志。。我感觉我是portmap和rpcbind都启动了,所以导致了开启不成功,我把portmap关掉以后就好了,2掉了