I am trying to mount a Directory from my server to my local machine. This is because I want to edit the directory and execute the files without having the manually push the files to the server after each edit.
I am using NFS and currently getting: 'Connection refused' when I try to mount from a machine on the same network.
My server ip is 192.168.0.12.
My local machine ip is 192.168.0.2.
And in /etc/exports
I have:
/mnt/export 192.168.0.0/24(rw,async,no_subtree_check)
/mnt/export *(rw)
where /mnt/export
is the directory I want to mount and I have chmod 777 -r
the directory
On my local machine I execute this command:
mount 192.168.0.12:/mnt/export /Desktop/tes
But get this error:
can't mount /mnt/export from 192.168.0.12 onto /Desktop/tes:
Connection refused
Does anyone have any idea to where I am going wrong?
Best Answer
You can test some of this from the client side. rpcinfo is useful to tell you if rpc calls are making it to the server processes, then you can check mountd specifically, and lastly, showmount will ask the server what volumes are exported:
(note that "cut" in the first command was just to make the output more concise. you can drop off everything but the first command.)