nfs mount nfs new install v19 no go

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
cbrace
Level 2
Level 2
Posts: 88
Joined: Sun Jan 22, 2012 7:23 am
Location: Amsterdam
Contact:

nfs mount nfs new install v19 no go

Post by cbrace »

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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
catweazel
Level 19
Level 19
Posts: 9763
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: nfs mount nfs new install v19 no go

Post by catweazel »

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.
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
cbrace
Level 2
Level 2
Posts: 88
Joined: Sun Jan 22, 2012 7:23 am
Location: Amsterdam
Contact:

Re: nfs mount nfs new install v19 no go

Post by cbrace »

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

Re: nfs mount nfs new install v19 no go

Post by ajgringo619 »

Do you have ufw enabled?

EDIT: never mind, glad you got it working.
Locked

Return to “Networking”