首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

,开发板上NFS,mount的有关问题

2012-03-05 
求救,开发板上NFS,mount的问题我想在ubuntu10.10上用NFS来挂载,一切都准备就绪,就是mount不上,说什么无效

求救,开发板上NFS,mount的问题
我想在ubuntu10.10上用NFS来挂载,一切都准备就绪,就是mount不上,说什么无效参数,具体如下:
服务器已经设置好:
/home/work *(rw,sync,no_root_squash,no_subtree_check)

我重启过NFS了,在我机子(就是NFS的服务器)上可以mount本地文件

在板上ping我的服务器得通,192.168.1.102是我的服务器IP,目标板的IP为192.168.1.1:
# ping 192.168.1.102
PING 192.168.1.102 (192.168.1.102) 56(84) bytes of data.
64 bytes from 192.168.1.102: icmp_seq=1 ttl=64 time=6.20 ms
64 bytes from 192.168.1.102: icmp_seq=2 ttl=64 time=0.195 ms
64 bytes from 192.168.1.102: icmp_seq=3 ttl=64 time=0.177 ms
^C
--- 192.168.1.102 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2015ms
rtt min/avg/max/mdev = 0.177/2.192/6.205/2.837 ms


板子上就是mount不了,我的语句如下:
# mount -t nfs -o nolock 192.168.1.102:/home/work /mnt/nfs
mount: Invalid argument
# mount -t nfs -o nolock 192.168.1.102:/home/work /mnt/nfs
mount: Invalid argument

实在没办法才提问的,搞了一天多了,我搜了很多,在此拜谢!有一篇类似我这样的情况的http://topic.csdn.net/u/20101118/11/8a3c3dbd-b0c0-450c-b8df-6b9d34870751.html







[解决办法]

探讨
我想在ubuntu10.10上用NFS来挂载,一切都准备就绪,就是mount不上,说什么无效参数,具体如下:
服务器已经设置好:
/home/work *(rw,sync,no_root_squash,no_subtree_check)

我重启过NFS了,在我机子(就是NFS的服务器)上可以mount本地文件

在板上ping我的服务器得通,192.168.1.102是我的服务器IP……

[解决办法]
也许kernel里没支持nfs.
[解决办法]
尝试一下关闭服务器的防火墙
[解决办法]
我觉得是你 mount 命令的参数不对,你用 mount -h 看看 mount 的参数选项。

可以试试用下面的命令看能不能mount上:
mount -t nfs -o tcp 192.168.1.102:/home/work /mnt/nfs
[解决办法]
运行 mount -h 看看mount的参数有哪些,像比如我板子是这样的:

[~]mount -h
mount: illegal option -- h
BusyBox v1.10.4 (2009-03-16 13:29:15 CST) multi-call binary

Usage: mount [flags] DEVICE NODE [-o options,more-options]

Mount a filesystem. Filesystem autodetection requires /proc be mounted.

Options:
-a Mount all filesystems in fstab
-f don't mount
-r Read-only mount
-t fs-type Filesystem type
-w Read-write mount (default)
-o option:
loop Ignored (loop devices are autodetected)
[a]sync Writes are asynchronous / synchronous
[no]atime Disable / enable updates to inode access times
[no]diratime Disable / enable atime updates to directories
[no]dev Allow use of special device files / disallow them
[no]exec Allow use of executable files / disallow them
[no]suid Allow set-user-id-root programs / disallow them
[r]shared Convert [recursively] to a shared subtree
[r]slave Convert [recursively] to a slave subtree
[r]private Convert [recursively] to a private subtree
[un]bindable Make mount point [un]able to be bind mounted
bind Bind a directory to an additional location
move Relocate an existing mount point
remount Remount a mounted filesystem, changing its flags
ro/rw Mount for read-only / read-write

There are EVEN MORE flags that are specific to each filesystem
You'll have to see the written documentation for those filesystems


你可以试试
mount -t nfs -o loop 192.168.1.102:/home/work /mnt/nfs
再看看。
------解决方案--------------------


呵呵,这么麻烦。
用 mount --help 试试
[解决办法]
来学习学习高手碰到的问题,呵呵………………
[解决办法]
直接:mount -t nfs 192.168.1.102:/home/work /mnt
或者mount 192.168.1.102:/home/work /mnt 不行吗?


[解决办法]
可能还是主机这边没有设置好
[解决办法]
现在宿主机上看看nfs启动没有
service nfs status
再在宿主机上mount到自己某个测试目录试试

如果都ok了再到开发板上去mount

热点排行