NFS export don't work on LTIB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NFS export don't work on LTIB

Jump to solution
5,482 Views
kguilbert
Contributor II

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!

Labels (2)
Tags (4)
0 Kudos
Reply
1 Solution
4,518 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Kyle,

     I paste a document summarized by me here , It should be helpful for your setting up enviromnet ! check it ,please !

Regards,

Weidong

View solution in original post

0 Kudos
Reply
9 Replies
4,518 Views
LeonardoSandova
Specialist I

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

0 Kudos
Reply
4,518 Views
kguilbert
Contributor II

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.

0 Kudos
Reply
4,519 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Kyle,

     I paste a document summarized by me here , It should be helpful for your setting up enviromnet ! check it ,please !

Regards,

Weidong

0 Kudos
Reply
4,518 Views
kguilbert
Contributor II

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.

0 Kudos
Reply
4,518 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply
4,517 Views
kguilbert
Contributor II

Way ahead of you. I've installed nfs-kernel-server on the board and

rebuilt the kernel to include nfs server support.

0 Kudos
Reply
4,518 Views
sam_raj
Contributor I

Hello,Kyle,

     Can you provide the steps for setting up the NFS-server on the imx6 Target board.

Regards

Samuel

0 Kudos
Reply
4,518 Views
jimmychan
NXP TechSupport
NXP TechSupport

For your information, attached is a document about setting up a host.

4,518 Views
weidong_sun
NXP TechSupport
NXP TechSupport

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

0 Kudos
Reply