Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have two machines (desktop named palantir, and laptop named randir).
Both are running Linux Mint 17.2.
I have done everything I can think of, I'm trying to share the
home filesystem on palantir with randir. This is what I have done on
palantir
Quote:
Script started on Thu 07 Jan 2016 11:57:32 AWST
palantir beckwith #
palantir beckwith # # I have installed nfs-common & nfs-kernel-server
palantir beckwith #
palantir beckwith # rpcinfo -p | grep nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
palantir beckwith #
palantir beckwith # cat /proc/filesystems | grep nfs
nodev nfs
nodev nfs4
nodev nfsd
palantir beckwith #
palantir beckwith # rpcinfo -p | grep portmap
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
palantir beckwith #
palantir beckwith # cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home *(rw,sync,subtree_check)
/big *(rw,sync,subtree_check)
/fat *(rw,sync,subtree_check)
palantir beckwith #
palantir beckwith # cat /etc/hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
sendmail: all
rpcbind mountd nfsd statd lockd rquotad : \
192.168.0.2 192.168.0.3 192.168.0.4 192.168.0.5 192.168.0.6
palantir[01;34m beckwith #[00m
palantir[01;34m beckwith #[00m cat /etc/hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: some.host.name, .some.domain
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
rpcbind mountd nfsd statd lockd rquotad : ALL
palantir beckwith #
palantir beckwith # /etc/init.d/nfs-kernel-server restart
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
palantir beckwith #
palantir beckwith # exportfs -ra
palantir beckwith #
palantir beckwith # exit
exit
Script done on Thu 07 Jan 2016 12:01:34 AWST
This is what I have done on randir
Quote:
Script started on Thu 07 Jan 2016 11:20:36 AWST
randir beckwith #
randir beckwith # # I have installed nfs-common & nfs-kernel-server
randir beckwith # #
randir beckwith # rpcinfo -p | grep nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
randir beckwith #
randir beckwith # cat /proc/filesystems | grep nfs
nodev nfs
nodev nfs4
nodev nfsd
randir beckwith #
randir beckwith # rpcinfo -p |grep portmap
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
randir beckwith #
randir beckwith # cd /etc
randir etc # cat exports
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/home *(rw,sync,subtree_check)
randir etc #
randir etc # cat hosts.allow
# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
randir etc #
randir etc # cat hosts.deny
# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: some.host.name, .some.domain
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "rpcbind" for the
# daemon name. See rpcbind(8) and rpc.mountd(8) for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.
#
# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID
randir etc # tail fstab
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda1 during installation
UUID=7b463346-db17-46f4-a8fa-bb1c8c0e4397 / ext4 errors=remount-ro 0 1
# /home was on /dev/sda3 during installation
UUID=e4e2e3f6-9334-451c-9adb-2f3ce4b4b0e6 /home ext4 defaults 0 2
# swap was on /dev/sda5 during installation
UUID=387f886c-5288-4df3-a31b-ba38b65c5e2b none swap sw 0 0
#
palantir:/home /palantir-home nfs noatime,nodiratime,rsize=32768,wsize=32768,async,timeo=14,intr,tcp,vers=3 0 0
randir etc #
randir etc # /etc/init.d/nfs-kernel-server restart
* Stopping NFS kernel daemon [ OK ]
* Unexporting directories for NFS kernel daemon... [ OK ]
* Exporting directories for NFS kernel daemon... [ OK ]
* Starting NFS kernel daemon [ OK ]
rabdir etc #
randir etc # mount palantir:/home
mount.nfs: Connection timed out
randir etc #
randir etc # exit
Script done on Thu 07 Jan 2016 11:27:41 AWST
this is what happens when I add "-v" to the mount command
Quote:
randir beckwith # mount -v palantir:/home
mount.nfs: timeout set for Thu Dec 17 10:37:34 2015
mount.nfs: trying text-based options 'rsize=32768,wsize=32768,async,timeo=14,intr,tcp,vers=3,addr=192.168.0.2'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: portmap query failed: RPC: Unable to receive
It turns out that you are not the only one with this problem. Put the error message into your favourite search engine and receiv tons of hits. One common issue is portmap not running, for example here: http://www.linuxquestions.org/questi...-5-nfs-483343/. The trouleshooting tool is rpcinfo, which you should run on the server and perhaps the client as well, but also netstat or its successor ss to see if somebody listens on port 111.
Perhaps something goes wrong when you start the NFS server services, or you need to start another service.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.