NFS export don't work on LTIB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NFS export don't work on LTIB

ソリューションへジャンプ
5,485件の閲覧回数
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 解決策
4,521件の閲覧回数
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 返答(返信)
4,521件の閲覧回数
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 件の賞賛
返信
4,521件の閲覧回数
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 件の賞賛
返信
4,522件の閲覧回数
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 件の賞賛
返信
4,521件の閲覧回数
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 件の賞賛
返信
4,521件の閲覧回数
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 件の賞賛
返信
4,520件の閲覧回数
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 件の賞賛
返信
4,521件の閲覧回数
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 件の賞賛
返信
4,521件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

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

4,521件の閲覧回数
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 件の賞賛
返信