ubuntu7.04 从机不能利用mount nfs挂载主机

为当前最终发行版之前的所有版本提供支持
回复
abai
帖子: 4
注册时间: 2007-04-16 16:56
送出感谢: 0
接收感谢: 0

ubuntu7.04 从机不能利用mount nfs挂载主机

#1

帖子 abai » 2007-10-18 16:27

$ sudo apt-get install nfs-kernel-server

在/etc/exports文件内加如下语句:

/home/abai/abai_nfs 192.168.192.*(rw,sync,no_root_squash)

$ sudo exportfs -r

$ sudo /etc/init.d/nfs-kernel-server restart

但在本机上实验是出现如下现象:
$sudo mount -t nfs 192.168.192.48:/home/abai/abai_nfs /mnt
mount: 192.168.192.48:/home/abai/abai_nfs failed, reason given by server: Permission denied

在从机(开发板)上mount主机的现象如下:
# mount -t nfs 192.168.192.48:/home/abai/abai_nfs /mnt
mount: RPC: NFS: mount program didn't pass remote address!
Timed out
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.192.48:/home/abai/abai_nfs on /mnt failed: Invalid argument

# mount -o nolock 192.168.192.48:home/abai/abai_nfs /mnt
mount: RPC: NFS: mount program didn't pass remote address!
Timed out
mount: nfsmount failed: Bad file descriptor
mount: Mounting 192.168.192.48:home/abai/abai_nfs on /mnt failed: Invalid argument


我实在是搞不懂,也不知道该怎么办了,请各位大侠帮忙!
回复

回到 “老旧版本支持”