我有 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