NFS server on beaglebone black

Hello,
I managed to run a NFS server on a Beaglebone a couple of years ago by simply installing the following module.
opkg nfs-utils install

Revisiting the idea with the Beaglebone black I get the following message when installing the package

nfs-utils: unsatisfied recommendation for kernel-module-nfsd

Unsurprisingly the service then fails :
root@beaglebone:~# systemctl status nfsserver.service

Jan 01 02:18:08 beaglebone rpc.statd[820]: Version 1.2.3 starting
Jan 01 02:18:08 beaglebone sm-notify[821]: Version 1.2.3 starting
Jan 01 02:18:08 beaglebone sm-notify[821]: Failed to read monitor data from /var/lib/nfs/sm.bak/state
Jan 01 02:18:08 beaglebone rpc.statd[820]: Failed to read /var/lib/nfs/state: Success
Jan 01 02:18:08 beaglebone rpc.statd[820]: Initializing NSM state
Jan 01 02:18:08 beaglebone rpc.statd[820]: Running as root. chown /var/lib/nfs to choose different user
Jan 01 02:18:08 beaglebone rpc.statd[820]: unable to register (statd, 1, udp).
Jan 01 02:18:08 beaglebone nfsserver[807]: starting statd: done
Jan 01 02:18:08 beaglebone systemd[1]: Failed to start LSB: Kernel NFS server support.
Jan 01 02:18:08 beaglebone systemd[1]: Unit nfsserver.service entered failed state

Trying resuscitation :

root@beaglebone:~# /etc/init.d/nfsserver start
creating NFS state directory: done
starting 8 nfsd kernel threads: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory).
Please try, as root, ‘mount -t nfsd nfsd /proc/fs/nfsd’ and then restart rpc.nfsd to correct the problem

Then kindly trying to make sense out of the error message

root@beaglebone:~# mount -t nfsd nfsd /proc/fs/nfsd
mount: unknown filesystem type ‘nfsd’

It seems pretty clear that something called “nfsd” is missing, but I can’t figure out what is needed to get it. Apparently it is not a package.

Any advice welcome.
Thanks.

It looks as if the kernel doesn’t have NFS configured; you’ll have to rebuild it. (See if there’s a /sys/module/nfsd present.)

Will

I’m in the same situation, anyone solved?

It’s seems that there is no kernel-module-nfsd for BBB on Angstrom repo…

Try cat /proc/filesystems. If nfs doesn't show, then that is your problem. For example:

~# cat /proc/filesystems
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev devtmpfs
nodev debugfs
nodev securityfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev rpc_pipefs
nodev devpts
         ext3
         ext2
         ext4
nodev ramfs
         vfat
         msdos
nodev nfs
nodev nfs4
nodev autofs
         fuseblk
nodev fuse
nodev fusectl
         btrfs
         f2fs
nodev mqueue
nodev mtd_inodefs
nodev nfsd

This is the result of cat /proc/filesystems

nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev cgroup
nodev tmpfs
nodev devtmpfs
nodev binfmt_misc
nodev debugfs
nodev securityfs
nodev sockfs
nodev pipefs
nodev anon_inodefs
nodev rpc_pipefs
nodev devpts
ext3
ext2
ext4
cramfs
nodev ramfs
vfat
msdos
nodev nfs
nodev nfs4
nodev jffs2
f2fs
nodev mqueue
nodev mtd_inodefs
nodev ubifs
nodev autofs