|
我的板子采用的是cramfs文件系统,fstab的内容为
none /proc proc defaults 0 0
none /dev/pts devpts mode=0622 0 0
tmpfs /dev/shm tmpfs defaults 0 0
192.168.1.98:/home/export/nfs /mnt/nfs nfs rsize=2048,wsize=8096
板子启动后配置网络:
/$ifconfig eth0 192.168.1.101
eth0: link down
/$eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
然后进行nfs挂载
/$
/$
/$mount /mnt/nfs
nfs warning: mount version older than kernel
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
lockd_up: makesock failed, error=-5
portmap: server localhost not responding, timed out
RPC: failed to contact portmap (errno -5).
在这里等待了很多时间才出现shell,不知道什么原因?但还是能成功mount上,且也能对/mn/nfs下的文件进行操作。
umount以后加上nolock参数进行mount以后能很快就mount上了,但cp的时候却出现服务器没反应的错误:
/$umount /mnt/nfs
/$mount -t nfs -o nolock 192.168.1.98:/home/export/nfs /mnt/nfs
nfs warning: mount version older than kernel
/$cd /mnt/nfs
/mnt/nfs$ls
a cardctl cardmgr config
/mnt/nfs$cp cardctl /tmp
nfs: server 192.168.1.98 not responding, still trying
nfs: server 192.168.1.98 not responding, still trying
nfs: server 192.168.1.98 not responding, still trying
请多指教。 |
|