Setting up NFS client

Paul Smith paul at mad-scientist.us
Sat Apr 18 15:03:11 UTC 2009


On Sat, 2009-04-18 at 01:52 -0700, Chris Plasun wrote:
> On the board I run "mount -t nfs 192.168.1.102:/home/na/nfstest 
> /nfstest" but it eventually returns with the following error:
> 
> mount: RPC: Timed out
> mount: nfsmount failed: Bad file descriptor
> mount: Mounting 192.168.1.102:/home/na/nfstest on /nfstest failed:
> Bad file descriptor

In addition to Ralf's good points about checking the config in the NFS
server, you should also make sure the client is properly configured.
You need to enable at least these things in the kernel (I'm assuming
you're building your own kernel for the Freescale?):

        CONFIG_NFS_COMMON=y
        CONFIG_NFS_FS=y
        CONFIG_NFS_V3=y
        CONFIG_LOCKD=y
        CONFIG_SUNRPC=y

Also, if you're seeing a delay on the client you probably don't have the
portmapper running on the client.  If you don't want to add it there
that's OK, but then you have to disable lock management; add the "-o
nolock" option to your mount command on the client.

I don't know what the "bad file descriptor" means.  You did
create /nfstest (mkdir /nfstest) first right?  If none of this seems to
help then check the /var/log/messages file on the server and see if
there's anything suspicious there.


More information about the busybox mailing list