I'm using the latest MX6 LTIB on a Sabre Lite board, with kernel NFS support turned on, and can't export any directories. I get this error from exportfs:
exportfs: /data does not support NFS export
This message seems to occur because (fs_has_fsid == 1) in exportfs.c's validate_export(), but this may be a red herring.
My /etc/exports file simply contains a line with "/data *(ro)".
Running 'showmount -e localhost' shows an empty set.
Since there's no NFS startup script I'm using the startup order from the nfs-utils README file:
mount -t nfsd nfsd /proc/fs/nfsd
exportfs -av ; rpc.mountd
rpc.statd --no-notify
rpc.nfsd
I also tried nfs-utils-1.2.7 to no avail. Any ideas appreciated! Thanks!
Solved! Go to Solution.
Hello,Kyle,
I paste a document summarized by me here , It should be helpful for your setting up enviromnet ! check it ,please !
Regards,
Weidong
Also, please try setting a folder under your HOME, just to make sure that the problem is not related to the mounting point. Which OS host are you running? which filesystem's type is on /data? ext4?
Leo
I was using ext4. I'll take a look the next time I boot into the LTIB
rootfs. For what it's worth, it works in Ubuntu after turning on NFS
server kernel support.
Hi Weidong (and others),
I think you are focusing on the host NFS setup, to allow the target board to act as an NFS client. I am trying to make the target board act as an *NFS Server*. As far as I can tell, this the opposite of what the posted document describes.
Hello,Kyle,
I guess you are running ubuntu on board, so you can run "apt-get install" command on board to install NFS Server program.
If you the command can't get server address, NFS server can't be installed on you board. becatuse server addresses in source list are all for ARM ubuntu.
Try it ,please !
Regards,
Weidong
Way ahead of you. I've installed nfs-kernel-server on the board and
rebuilt the kernel to include nfs server support.
Hello,Kyle,
Can you provide the steps for setting up the NFS-server on the imx6 Target board.
Regards
Samuel
Hello,Kyle,
Try to apply "/opt/nfsroot *(rw,sync,no_root_squash)" in your /etc/exports file. Then use "networking " restart nework.
#sudo /etc/init.d/networking restart
</opt/nfsroot is NFS directory, you should change it to yours.>
Regards,
Weidong