I am wanting to set up an NFS, to share files between my desktop [server] (192.168.1.40) and my laptop [client] (192.168.1.20).
After pouring through numerous tutorials and searching through these forums, and after ensuring that the relevant daemons (rpc.portmap and rpc.nfsd) are running, I have done the following:
On the server (192.168.1.40), in /etc/exports, I added
Code:
/home/myfile/file-to-share 192.168.1.40/255.255.255.0(rw,sync,no_root_squash)
Thereafter, I ran exportfs -ra
and restarted the daemons for good measure
I then edited /etc/hosts.deny:
and /etc/hosts.allow:
Code:
portmap: 192.168.1.40
Then on the client side, I entered:
Code:
mount -t nfs -o rw 192.168.1.40:/home/myfile/file-to-share /mnt/file-to-share
This leads to an indefinite hanging ... and I can't kill the process either. It requires a reboot to shut down.
To deal with this, I have played around with the /etc/exports file, by editing so that it reads
Code:
...(rw,async,no_root_squash)
as well as
Code:
...(rw,sync,all_squash)
and even
Code:
...(rw,async,all_squash)
all of which have the same effect: the client/laptop just hangs ...
So, now I am stuck and have exhausted my options and need some help to get through this. I have googled quite extensively, but seem to have covered pretty much all of what google throws back.
Any suggestions for a fix?
Thanks