I can't connect to NFS share using nautilus "Connect to server" in "Other Location". "Connect" button seems to be disabled. Didn't find any logs related to this.
Already tried apt install gvfs-backends
from other answer but didn't work. Mounting using mount -t nfs server.local:/srv/nfs /mnt
works but I'd like to do this using nautilus and without root permissions.
Since this has not been solved in any meaningful way, here's what I found:
First of all, you can navigate to an NFS server either through the "Other locations" tab or by pressing ctrl+l and typing in the location:
nfs://host/exposed/path
If you try that you can be met with the following error message:
That means that the server didn't allow the user to connect. Let's see what we have in the server logs:
The port number will be different because every request is made to a new endpoint. To fix that, do the following:
/etc/externals
insecure
# exportfs -a
(as a root user)Done.
Normally, NFS connections on port higher than 1023 are not allowed. The
insecure
flag specifies that this share can be mounted insecurely (meaning on high ports).Create a directory for your username under
/media/
and then a directory under that to mount you nfs share. Then add the nfs mount to/etc/fstab
eg:
and then add the following to
/etc/fstab
then restart gnome files (nautilus) and it should appear in 'other locations' as your what ever you called the mount point. in this case it would appear as 'nfs_share'
You may need to kill nautilus from the command line and then re-start it because it likes to background rather than exit when you close it.
Don't use the directory
/media/username
as the mount point because you may want other shares and udisks may want to mount something else in there at some point.This work for me. I went into nautilus and found /mnt/your_mount_here and dragged it over under my other drives and it created the bookmark automatically