Exportfs: <path> does not support NFS export

I'm having problems with NFS Server on OpenWrt 19.07.7 (ZBT-WE826).
I've followed the installation procedures as outlined here and have successfully created shares in tmp directory. I can also mount these shares on my Mac no problem.
However, any attempt to create a share on any other directory (e.g. /mnt ) fails.
For instance, if I follow the "Server Configuration" procedures as outlined in the above documentation, with /etc/exports set (for /mnt and /mnt/sda1) as documented (but with corrected IP address), I get:

  • "exports -ra" returns "exportfs: /mnt/sda1 does not support NFS export", and exports: /mnt does not support NFS export"
  • Any attempt to mount sda1 on a client fails with "Permission Denied"

I do not think the issues is a permission issue, but a filesystem issue. I can successfully create a share if the filesystem is tmpfs, but fails for overlayfs.
I also wonder if this is the same issue as reported here (albeit for 19.07 instead of 21.02)
Has anyone successfully shared files from mnt or any overlayfs filesystem on 19.07.7?

1 Like

I'm having the similar issue to the GitHub link you posted, although I'm on OpenWrt 21.02.0-rc3.

On a D-Link DWR-118 A2.
OpenWrt 21.02.0-rc3, r16172-2aba3e9784
For me mounting /tmp neither possible.
(just copied my comment from the GitHub issue)

Architecture MediaTek MT7621 ver:1 eco:3
Target Platform ramips/mt7621
Firmware Version OpenWrt 21.02.1 r16325-88151b8303 / LuCI openwrt-21.02 branch git-22.083.69138-0a0ce2a
Kernel Version 5.4.154
same issue