So my server is at 192.168.0.15
the client is at 192.168.0.17
(Both machines have a user called 'work')
On the server, my USB HDD auto mounts as /media/work/EXT4-4TB
I'd like to access this from the nfs client, so, on the server my /etc/exports contains:
/media/work/EXT4-4TB 192.168.0.17(rw,sync,no_root_squash)
To start the nfs server I run:
$ sudo systemctl start nfs-kernel-server.service
On the client I have an empty directory set up at /home/work/archive/
But when I try and access the share with:
$ sudo mount 192.168.0.15:/home/work/EXT4-4TB /home/work/archive/
I get:
mount.nfs: access denied by server while mounting 192.168.0.15:/home/work/EXT4-4TB
I can access other nfs shared directories on this server, but the difference seems to be that this one is over USB.
I'm thinking it's something to do with the auto-mount or permissions but am out of ideas at this point on how to fix the problem.
Help would be appreciated.
/media/work/EXT4-4TB
but on your client you are trying to mount/home/work/EXT4-4TB
. You can mount the USB infstab
into/home/work
using step #2 in my response below. Try usingsudo mount 192.168.0.15:/media/work/EXT4-4TB
on the client as well if you want to narrow down the source of the problem. – m_krsic Jan 10 '18 at 16:25