LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-20-2015, 02:28 AM   #1
nazekimi
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
Samba server is working but NFS only gets error


Hello

I have i.MX6 device as server and i.MX28 as client.
Code:
server ip: 192.168.0.140
client ip: 192.168.0.131
I use the following codes to mount the shared folder with these errors
Code:
mount -t nfs 192.168.0.140:/mnt/nfs /mnt/nfs
mount: RPC: Unable to receive; errno = Connection reset by peer
mount: mounting 192.168.0.140:/mnt/nfs on /mnt/nfs failed: Bad file descriptor
/etc/export file
Code:
/mnt/nfs 192.168.0.131(rw,sync,no_root_squash,no_subtree_check)
/nfsshare 192.168.0.131(rw,sync,no_root_squash,no_subtree_check)
/etc/hosts.allow
Code:
nfsd: 192.168.0.131
portmap: 192.168.0.131
rquotad: 192.168.0.131
mountd: 192.168.0.131
statd: 192.168.0.131
Displaying mounted folders on the client
Code:
root@freescale /mnt/wlan$ showmount -e 192.168.0.140
Export list for 192.168.0.140:
/nfsshare  192.168.0.131
/mnt/nfs  192.168.0.131
RPC related output
Code:
root@imx6q-myboard:~# rpcinfo
   program version netid     address                service    owner
    100000    4    local     /var/run/rpcbind.sock  portmapper superuser
    100000    3    local     /var/run/rpcbind.sock  portmapper superuser
    100003    3    tcp       0.0.0.0.8.1            nfs        superuser
    100003    4    tcp       0.0.0.0.8.1            nfs        superuser
    100227    3    tcp       0.0.0.0.8.1            -          superuser
    100003    3    udp       0.0.0.0.8.1            nfs        superuser
    100003    4    udp       0.0.0.0.8.1            nfs        superuser
    100227    3    udp       0.0.0.0.8.1            -          superuser
    100021    1    udp       0.0.0.0.223.130        nlockmgr   superuser
    100021    3    udp       0.0.0.0.223.130        nlockmgr   superuser
    100021    4    udp       0.0.0.0.223.130        nlockmgr   superuser
    100021    1    tcp       0.0.0.0.190.156        nlockmgr   superuser
    100021    3    tcp       0.0.0.0.190.156        nlockmgr   superuser
    100021    4    tcp       0.0.0.0.190.156        nlockmgr   superuser
root@imx6q-myboard:~# rpcinfo -p
No remote programs registered.
root@imx6q-myboard:~# rpcinfo -p 192.168.0.140
   program vers proto   port  service
    100000    2   tcp    111  portmapper
    100024    1   udp  35734  status
    100024    1   tcp  42242  status
    100005    1   udp  37386  mountd
    100005    1   tcp  55494  mountd
    100005    2   udp  37386  mountd
    100005    2   tcp  55494  mountd
    100005    3   udp  37386  mountd
    100005    3   tcp  55494  mountd
root@imx6q-myboard:~# rpc
rpc.idmapd  rpc.nfsd    rpcbind     rpcinfo
rpc.mountd  rpc.statd   rpcclient
I don't know what lese I am missing, I can't seem to make the nfsserver work. It is always the same error [RPC: Unable to receive; errno = Connection reset by peer]
Although [rpcinfo -p] does not show anything and [rpcinfo -p <server ip>] does not list nfs in it. Is that perhaps the problem?

Best Regards
Yuri
 
Old 03-20-2015, 02:32 AM   #2
zafar_dandoti
Member
 
Registered: Dec 2005
Location: India
Distribution: centos
Posts: 178

Rep: Reputation: 13
Is port 1024 open in firewall
 
Old 03-20-2015, 02:56 AM   #3
nazekimi
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by zafar_dandoti View Post
Is port 1024 open in firewall
I believe I have not installed any firewalls on the device. ip_tables does not even work on the system.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS vs Samba for home server srunni Linux - Server 5 08-10-2008 11:37 PM
NFS Error during PXE Boot from NFS server JatMan Linux - Enterprise 0 10-16-2006 05:48 PM
NFS and Samba shares not working on MDK10, kernel 2.6.6 server DaneM Linux - Software 1 05-29-2004 08:42 PM
NFS and Samba on the same server? Baldur5018 Linux - General 3 02-06-2003 01:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration