我有 NFS 服务器。我可以手动安装它:
sudo mount -t nfs myserver:/srv/nfs /mnt
但我也可以使用文件管理器安装它,因为我正在使用 avahi 广播它的存在。我可以通过 thunar(xfce 的文件管理器)安装它,但我无法通过 GNOME 的 Nautilus 访问它。
鹦鹉螺 说:
Unable to access location: Mountpoint does not exist.
GVFS 日志显示:
nfs: Added new job source 0x55c37a44e2f0 (GVfsBackendNfs)
nfs: Queued new job 0x55c37a43cf30 (GVfsJobMount)
nfs: send_reply(0x55c37a43cf30), failed=1 (Mountpoint does not exist)
服务器端/etc/exports:
# /etc/exports - exports(5) - directories exported to NFS clients
#
# Example for NFSv2 and NFSv3:
# /srv/home hostname1(rw,sync) hostname2(ro,sync)
# Example for NFSv4:
# /srv/nfs4 hostname1(rw,sync,fsid=0)
# /srv/nfs4/home hostname1(rw,sync,nohide)
# Using Kerberos and integrity checking:
# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0)
# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide)
#
# Use `exportfs -arv` to reload.
/srv/nfs 192.168.1.0/24(rw,sync,no_subtree_check,all_squash,insecure)
服务器端/etc/avahi/services/nfs.service:
<?xml version="1.0" standalone='no'?>
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
<name replace-wildcards="yes">%h-nfs</name>
<service>
<type>_nfs._tcp</type>
<port>2049</port>
<txt-record>path=/srv/nfs</txt-record>
</service>
</service-group>
答案1
我也有同样的问题,我可能已经找到原因了。可能是因为不支持 NFSv4