NFS export don't work on LTIB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

NFS export don't work on LTIB

跳至解决方案
8,677 次查看
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!

标签 (2)
标记 (4)
0 项奖励
回复
1 解答
7,709 次查看
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 项奖励
回复
9 回复数
7,709 次查看
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 项奖励
回复
7,709 次查看
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 项奖励
回复
7,710 次查看
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 项奖励
回复
7,709 次查看
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 项奖励
回复
7,709 次查看
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 项奖励
回复
7,708 次查看
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 项奖励
回复
7,709 次查看
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 项奖励
回复
7,709 次查看
jimmychan
NXP TechSupport
NXP TechSupport

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

7,709 次查看
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 项奖励
回复