4

I have a Ubuntu 16.04 64-bit home server and I followed this guide to set up the NFS server. My problem is that I'm trying to connect (on my desktop) to it via IP address as the code below:

sudo mount 192.168.1.126/exports /local/ubuntu

But when I do, I get this:

mount: special device 192.168.1.126/exports does not exist

Is there a way to connect via IP address only or do you must have a domain and an address?

1 Answer 1

5

You are missing a colon (:) after the remote server IP:

sudo mount 192.168.1.126:/exports /local/ubuntu

Assuming the remote server (192.168.1.126) has exported /exports and you are mounting it on /local/ubuntu.

Although, the preferred solution is to add the mount in /etc/fstab so that you do not have to mount it manually everytime. Also nfs provides a whole bunch of options while mounting, these provide more finer control over the mount, look at man 5 nfs.

5
  • It works, but mount.nfs: access denied by server while mounting 192.168.1.126:exports. It means that I have permission issues on the server. Aug 11, 2016 at 20:31
  • @SvetlanaBelkin Yes, also apart from NFSv.4 all prior NFS uses UID/GID, not username/groupname for permission..make sure you have mapped UID/GID or check relevant options..
    – heemayl
    Aug 11, 2016 at 20:36
  • @SvetlanaBelkin Your client seems not to be allowed to mount the share. Try showmount -e 192.168.1.126 to see what really is exported for whom.
    – ridgy
    Aug 11, 2016 at 21:05
  • @ridgy svetlana@svetlana-laptop:~$ showmount -e 192.168.1.126 Export list for 192.168.1.126: /export/Elements 192.168.1.126/24 /export 192.168.1.126/24 Like I said to heemayl, I have new problem and I'm seeking the answer. Aug 11, 2016 at 21:06
  • The result of showmount -e tells that the server allows access to the share(s) for all comuters in the subnet 192.168.1.0/24. Are you sure your computer's IP address does match that constraint? The message access denied by server while mounting implies it does not; UID/GID is not relevant at that moment.
    – ridgy
    Aug 11, 2016 at 21:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .