AnsweredAssumed Answered

NFS server on i.MX6 device

Question asked by ユーリ レリョーサ on Mar 19, 2015
Latest reply on Mar 24, 2015 by Victor Linnik

I am trying to setup a shared folder from a i.MX6 device and mounting it to a i.MX28 device, but it just ends up with the following error:

Server/Host:(i,MX6)   Client:(i.MX28)

mount: RPC: Unable to receive; errno = Connection reset by peer

mount: mounting 192.168.0.140:/mnt/nfs on /mnt/nfsshare failed: Bad file descriptor

 

This is the mount command that I use

mount -t nfs 192.168.0.140:/mnt/nfs /mnt/nfsshare

I even tried, testing it by mounting it on the same board. I get the same error.

Commands [exportfs] and [showmount] show that it seems to work well.

Also below is the [/etc/exports] file content

/mnt/nfs 192.168.0.130(rw,sync,no_root_squash,no_subtree_check)

/mnt/nfs 127.0.0.1(rw,sync,no_root_squash,no_subtree_check)

NFS related Kernel config file look like below:

CONFIG_NETWORK_FILESYSTEMS=y

CONFIG_NFS_FS=y

CONFIG_NFS_V2=y

CONFIG_NFS_V3=y

# CONFIG_NFS_V3_ACL is not set

# CONFIG_NFS_V4 is not set

# CONFIG_NFS_SWAP is not set

CONFIG_ROOT_NFS=y

# CONFIG_NFSD is not set

CONFIG_NFS_USE_KERNEL_DNS=y

CONFIG_NFSD=y

CONFIG_NFSD_V2_ACL=y

CONFIG_NFSD_V3=y

CONFIG_LOCKD=y

CONFIG_LOCKD_V4=y

CONFIG_NFS_ACL_SUPPORT=y

CONFIG_NFS_COMMON=y

 

Any idea as to what is causing this error?

Am I missing any other configurations?

 

Best Regards

Yuri

Outcomes