nfs mount nfs new install v19 no go

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
cbrace
Level 2
Level 2
Posts: 52
Joined: Sun Jan 22, 2012 7:23 am
Location: Amsterdam
Contact:

nfs mount nfs new install v19 no go

Post by cbrace » Sun Sep 16, 2018 3:07 am

Hi all

I've just done a fresh install of Mint v19 on a new machine. For some reason I can't get nfs to mount a set of remote shares. The server is running Mint v18.2

As I recall, installing nfs-common was all that was needed in the past. But now:

Code: Select all

# mount ares:/mnt/disk1
mount.nfs: requested NFS version or transport protocol is not supported

Code: Select all

# mount -t nfs ares:/mnt/disk1
mount.nfs: requested NFS version or transport protocol is not supported

Code: Select all

# showmount -e ares
clnt_create: RPC: Program not registered
I have two client still running Mint v18.3 and the mounts work fine. I copied over the fstab entries but the exact same commands don't work on the new box.

What am I missing here?

Thanks

User avatar
catweazel
Level 17
Level 17
Posts: 7023
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: nfs mount nfs new install v19 no go

Post by catweazel » Sun Sep 16, 2018 3:14 am

cbrace wrote:
Sun Sep 16, 2018 3:07 am
As I recall, installing nfs-common was all that was needed in the past.
You're probably right but I install nfs-kernel-server on the client out of habit.

Code: Select all

sudo apt install nfs-kernel-server nfs-common
systemctl restart nfs-kernel-server
ufw allow from 192.168.20.100 to any port nfs
ufw status
showmount -e 192.168.20.101
That's how I install on a client, and it works on Mint 19 for me.

192.168.20.100 is the client IP and .101 is the server.

Finally:
sudo mount -o vers=3 192.168.20.101:/path/to/server-share /path/to/client/mount-point

Your error message is complaining about the NFS version. I include it in the mount command. It's also possibles that ares cannot be found. You can mount the IP of ares or stick it in the client's hosts file. Of course, this assumes you use fixed IP addresses.
Caution: Dancing Wu Li Master and Official curmudgeon-in-chief

cbrace
Level 2
Level 2
Posts: 52
Joined: Sun Jan 22, 2012 7:23 am
Location: Amsterdam
Contact:

Re: nfs mount nfs new install v19 no go

Post by cbrace » Mon Sep 17, 2018 1:26 pm

Got it working now, thanks. I had a spurious entry for the remote host in the /etc/hosts file that was screwing things up.

ajgringo619
Level 4
Level 4
Posts: 297
Joined: Thu Mar 01, 2018 8:36 pm
Location: San Diego, California

Re: nfs mount nfs new install v19 no go

Post by ajgringo619 » Mon Sep 17, 2018 1:36 pm

Do you have ufw enabled?

EDIT: never mind, glad you got it working.
[Mint 19 XFCE, AMD FX-8350 Eight-Core w/16 GB RAM, 4.15.0-34-generic, Nvidia 396.54/GeForce GTX 960]
Image

Post Reply

Return to “Other networking topics”