LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS mounting (https://www.linuxquestions.org/questions/linux-networking-3/nfs-mounting-761101/)

Eva2002 10-11-2009 03:16 AM

NFS mounting
 
Hi all,

I apologise if I posted in the wrong thread as I am not sure which category this falls under.

I am trying to get my arm board to obtain it root file system from the host my laptop but I encounter lots of problem and require some help.

what I have done:

- my arm board ip = 192.168.0.38 (interface to host => ethernet cable and serial port)

- host Ethernet address = 192.168.0.123

On host
- added in /etc/hosts.allow

portmap: 192.168.0.38
lockd: 192.168.0.38
mountd: 192.168.0.38
rquotad: 192.168.0.38
statd: 192.168.0.38

- added in /etc/hosts.deny

portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

- added in /etc/exports

=> /home/EVA/Desktop/Project 192.168.0.38(rw,sync,crossmnt)

- under system services:
turn on netfs, nfs, nfslock, rpcbind
turn off iptables
firewall disabled

chkconfig --list iptables
iptables 0: off 1: off 2: off 3: off 4: off 5: off 6: off

chkconfig --list ipchains
error reading information on service ipchains: No such file or directory

For client

- under linux kernel Kconfig
=> enabled NFS client support with NFS version 3 client protocol
=> enable “Root File System on NFS”

Kernel Commandline =
console=ttyS0,115200 root=/dev/nfs rw nfsroot=192.168.0.123:/home/EVA/,nolock ip=192.168.0.38:192.168.0.123::::: off

Problem:

When I run my kernel on the arm board it gives me the following

...
Kernel command line: console=ttyS0,115200 root=/dev/nfs/ rw nfsroot=192.168.0.123:/home/EVA,nolock ip=192.168.0.38:192.168.0.123::::: off
...
IP-Config: Failed to open eth0
IP-Config: No network devices available.
Looking up port of RPC 100003/2 on 192.168.0.123
rpcbind: server 192.168.0.123 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.0.123
rpcbind: server 192.168.0.123 not responding, timed out
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /home/EVA
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs/" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)


Can someone tell me what's wrong with my setup?
Thx

Stanley

MBybee 10-19-2009 02:53 PM

That looks to me like the initial problem is the network card isn't starting up properly. Are you using the correct drivers?


All times are GMT -5. The time now is 12:04 AM.