Portál AbcLinuxu, 12. května 2025 06:42
mount -t nfs4 192.168.1.101:/home/martin/ /net/ -v
skoncilo to takto
mount.nfs4: mounting 192.168.1.101:/home/martin/ failed, reason given by server:
No such file or directory
skusil som zadať na pc
[root@archlinuxpc martin]# /etc/rc.d/rpcbind restart
:: Stopping rpcbind [DONE]
:: Starting rpcbind [DONE]
[root@archlinuxpc martin]# /etc/rc.d/nfs-common restart
:: Stopping rpc.idmapd daemon [FAIL]
:: Starting rpc.statd daemon [DONE]
:: Mounting pipefs filesystem [BUSY] :: Starting rpc.idmapd daemon [DONE]
[root@archlinuxpc martin]# /etc/rc.d/nfs-server restart
:: Stopping rpc.mountd daemon [FAIL]
:: Mounting nfsd filesystem [DONE]
:: Exporting all directories [BUSY] exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "192.168.1.0/24:/home/martin".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
[DONE]
:: Starting rpc.nfsd daemon [BUSY] rpc.nfsd: writing fd to kernel failed: errno 111 (Connection refused)
rpc.nfsd: unable to set any sockets for nfsd
v /etc/hosts.allow
nfsd: ALL
rpcbind: ALL
mountd: ALL
swat: ALL
a /etc/hosts.deny je všetko zakomentovane
nastavenie /etc/exports notebooku
/home/martin 192.168.1.100(ro, root, no_squash,sync,no_subtree_check)
kontrola funkčnosti NFS servera na notebooku
#service nfsserver status
mountd running
statd running
nfsd running
Neviete kde mám chybu ? Kde som to skušal opačne, t.j nfs server na pc a klient na notebooku , všetko fungovalo. ďakujem za pomoc
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.