Forum
Problem with NFS server on RPi - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: Problem with NFS server on RPi (/thread-2774.html)



Problem with NFS server on RPi - Wawrzek - 22nd Feb, 2015 12:06 PM

I have the XBIAN on a RPi and I cannot start NFS server properly. I noticed that the /etc/init.d/rpcbind does not exist. That seems to be rather important file, base on Google results.

That my error message at RPi:
Code:
# /etc/init.d/nfs-kernel-server restart
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd
[warn] Not starting: portmapper is not running ... (warning).


And on a client I see:
Code:
mount.nfs4: trying text-based options 'rsize=32768,wsize=32768,addr=192.168.0.2,clientaddr=192.168.0.10'
mount.nfs4: mount(2): Connection refused
mount.nfs4: Connection timed out



RE: Problem with NFS server on RPi - Wawrzek - 26th Feb, 2015 09:49 AM

I managed the address the problem of missing rpcbind file. There is something wrong with xbian-update, but after downloading rpcbind package and unpacking it with dpkg

Code:
# apt-get download rpcbind                          
Get:1 Downloading rpcbind 0.2.0-8 [42.7 kB]
Fetched 42.7 kB in 0s (127 kB/s)  
# dpkg  --unpack rpcbind_0.2.0-8_armhf.deb                    
(Reading database ... 27598 files and directories currently installed.)
Preparing to replace rpcbind 0.2.0-8 (using rpcbind_0.2.0-8_armhf.deb) ...
Unpacking replacement rpcbind ...
Replaced by files in installed package xbian-update ...
Processing triggers for man-db ...

I got rpcbind.dpkg-new. A bit of configuration and rpcbind works fine:

Code:
mv  /etc/init.d/rpcbind.dpkg-new /etc/init.d/rpcbind
update-rc.d rpcbind defaults 15

But still not 100% luck with nfs-server.

Actually problem is fix now. The rest was wrong configuration in /etc/exports on server and /etc/fstab on client.