I am running Debian Jessie (Raspbian Jessie Lite) on my RPi model B. Previously with Wheezy I had great success booting with root filesystem mounted over NFS, but now it stalls on startup. I am running headless so don't have a console output to look at for the actual messages.
While investigating, I discovered that it will start if I disable
UFW. This seems promising, but I don't know what I need to enable. When I first set it up, I ran:
sudo ufw default allow outgoing sudo ufw default deny incoming
and added rules for some hosted services:
$ sudo ufw status Status: active To Action From -- ------ ---- 22/tcp ALLOW 192.168.0.0/24 80 ALLOW Anywhere 443 ALLOW Anywhere 5222/tcp ALLOW Anywhere 5269/tcp ALLOW Anywhere 80 ALLOW Anywhere (v6) 443 ALLOW Anywhere (v6) 5222/tcp ALLOW Anywhere (v6) 5269/tcp ALLOW Anywhere (v6)
If I try to mount NFS to a folder while running from the SD card, the command gives an rpc.statd error:
$ sudo mount nfs.example.com:/volume1/raspberrypi_nfs /tmp/nfsmount mount.nfs: rpc.statd is not running but is required for remote locking. mount.nfs: Either use '-o nolock' to keep locks local, or start statd. mount.nfs: an incorrect mount option was specified
What am I missing here? Do I need to enable a service that needs to accept incoming connections (therefore open another port in UFW)? If so, which service(s) and which port(s) should I be looking for?
If it helps, my
/boot/cmdline.txt looks like this:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/nfs nfsroot=192.168.0.180:/volume1/raspberrypi_nfs,udp,vers=3 ip=192.168.0.109:192.168.0.180:192.168.0.1:255.255.255.0:raspberrypi:eth0:off rootfstype=nfs smsc95xx.turbo_mode=N elevator=deadline rw rootwait