Forum

Full Version: Problem with NFS server on RPi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
Reference URL's