我有NFS服务器。我可以手动挂载它:
sudo mount -t nfs myserver:/srv/nfs /mnt但是我也可以用文件管理器安装它,因为我正在使用avahi广播它的存在。我可以通过thunar (xfce的文件管理器)挂载它,但是我无法通过GNOME的Nautilus访问它。
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/导出:
# /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>发布于 2021-08-29 09:28:38
我也有同样的问题,我可能会发现原因。可能是因为不支持NFSv4 4
https://unix.stackexchange.com/questions/651977
复制相似问题