I have a USB HDD I’m trying to share from OSMC on a Raspberry Pi 1 but I can’t get the drive to be available to the network without having to run
$ service nfs-kernel-server restart after rebooting. After restarting the service, everything works and I can access the drive from other devices at its nfs:// address.
On boot (before restarting nfs),
$ service nfs-kernel-server status
osmc@osmc:~$ sudo service nfs-kernel-server status
● nfs-kernel-server.service - LSB: Kernel NFS server support
Loaded: loaded (/etc/init.d/nfs-kernel-server)
Active: active (exited) since Sun 2015-07-12 14:12:21 UTC; 1min 20s ago
Process: 263 ExecStart=/etc/init.d/nfs-kernel-server start (code=exited, status=0/SUCCESS)
Jul 12 14:12:19 osmc nfs-kernel-server: Exporting directories for NFS kernel daemon....
Jul 12 14:12:19 osmc nfs-kernel-server: Starting NFS kernel daemon: nfsd
Jul 12 14:12:19 osmc nfs-kernel-server: Not starting: portmapper is not running ... (warning).
I can’t seem to find any information on how I can check on portmapper, but since restarting the nfs-kernerl-server works after reboot, I assume something is happening out of order? I’ve tried the following on a clean install of Raspbian and it works with no issue on every reboot.
Here’s the steps I followed on a clean NOOBS installation of OSMC:
edit /etc/fstab to make the USB drive mount at boot
UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /mnt/USBHDD ext4 defaults,noatime 0 0
$ apt-get install nfs-kernel-server
$ exportfs -ra
I’d appreciate any help.
Edit: just tried sharing the /home directory, and that doesn’t work on reboot either.