NFS on Ubuntu

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

NFS on Ubuntu

NFS on Ubuntu

Network File System (NFS)

    

Setting the host

        

1 - Install NFS Service on host typing:

      

$sudo apt-get install nfs-kernel-server 

        

2 - Create symbolic link to ltib/rootfs

      

$sudo ln -s <ltib instalation folder>/rootfs /tftpboot/rootfs 

        

3 - Setup exports typing:

      

$sudo gedit /etc/exports 

        

and add the following line:

      

/tftpboot/rootfs/ *(rw,no_root_squash,no_subtree_check,async) 

        

4 - Restart the NFS server:

      

$sudo /etc/init.d/nfs-kernel-server restart 

        

Now the host is ready to use NFS

    

Setting Target Linux Image to use NFS

        

1. Run LTIB configuration by typing:

$cd <ltib instalation folder>

        

$./ltib -c

        

2 . On first page menu, go to "Target Image Generation -> Options"      

3. Select the option NFS only and exit LTIB configuration to compile with the new configuration.

        

4. LTIB should start new compiling and create a new Linux image on /<ltib instalation folder>/rootfs/boot/zImage

        

5. Copy the created image on /<ltib instalation folder>/rootfs/boot/zImage to /tftpboot/zImage

        

6. The system is ready to run with NFS. The root file system on target will be located on host on /<ltib instalation folder>/rootfs/

        


标记 (2)
评论

Hello, I try to create NFS Server on LS104ARDB,

however, I  run Restart the NFS server:

$sudo /etc/init.d/nfs-kernel-server restart 

device show:
Restarting nfs-kernel-server (via systemctl): nfs-kernel-server.serviceA dependency job
for nfs-server.service failed. See 'journalctl -xe' for details.

Do you know how I can figure out this issue?

Thanks you
%3CLINGO-SUB%20id%3D%22lingo-sub-1113004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EUbuntu%20%E4%B8%8A%E7%9A%84%20NFS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CH1%20id%3D%22toc-hId-381497873%22%20id%3D%22toc-hId-381497873%22%20id%3D%22toc-hId-1304219474%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%E7%BD%91%E7%BB%9C%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%20(NFS)%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1072059347%22%20id%3D%22toc-hId-1072059347%22%20id%3D%22toc-hId-1994780948%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%E8%AE%BE%E7%BD%AE%E4%B8%BB%E6%9C%BA%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E1-%E5%9C%A8%E4%B8%BB%E6%9C%BA%E4%B8%8A%E5%AE%89%E8%A3%85%20NFS%20%E6%9C%8D%E5%8A%A1%EF%BC%8C%E8%BE%93%E5%85%A5%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20apt-get%20install%20nfs-kernel-server%20%3C%2FPRE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E2%20-%20%E5%88%9B%E5%BB%BA%E5%88%B0%20ltib%2Frootfs%20%E7%9A%84%E7%AC%A6%E5%8F%B7%E9%93%BE%E6%8E%A5%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20ln%20-s%20%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%20%2Ftftpboot%2Frootfs%20%3C%2FLTIB%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E3%20%E2%80%93%20%E8%AE%BE%E7%BD%AE%E5%AF%BC%E5%87%BA%E8%BE%93%E5%85%A5%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20gedit%20%2Fetc%2Fexports%20%3C%2FPRE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%E5%B9%B6%E6%B7%BB%E5%8A%A0%E4%BB%A5%E4%B8%8B%E8%A1%8C%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%2Ftftpboot%2Frootfs%2F*%EF%BC%88rw%EF%BC%8Cno_root_squash%EF%BC%8Cno_subtree_check%EF%BC%8C%E5%BC%82%E6%AD%A5%EF%BC%89%20%3C%2FPRE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E4%20%E2%80%93%20%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20NFS%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9A%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24sudo%20%2Fetc%2Finit.d%2Fnfs-kernel-server%E9%87%8D%E5%90%AF%20%3C%2FPRE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%E7%8E%B0%E5%9C%A8%E4%B8%BB%E6%9C%BA%E5%B7%B2%E5%87%86%E5%A4%87%E5%A5%BD%E4%BD%BF%E7%94%A8%20NFS%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CH2%20id%3D%22toc-hId--735395116%22%20id%3D%22toc-hId--735395116%22%20id%3D%22toc-hId-187326485%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%E8%AE%BE%E7%BD%AE%E7%9B%AE%E6%A0%87%20Linux%20%E6%98%A0%E5%83%8F%E4%BB%A5%E4%BD%BF%E7%94%A8%20NFS%3C%2FSPAN%3E%3C%2FH2%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E1.%20%E8%BE%93%E5%85%A5%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%E8%BF%90%E8%A1%8C%20LTIB%20%E9%85%8D%E7%BD%AE%EF%BC%9A%3C%2FP%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3E%24cd%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%3C%2FLTIB%3E%3C%2FP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CP%3E%24.%2Fltib%20-c%3C%2FP%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E2.%E5%9C%A8%E7%AC%AC%E4%B8%80%E9%A1%B5%E8%8F%9C%E5%8D%95%E4%B8%8A%EF%BC%8C%E8%BD%AC%E5%88%B0%E2%80%9C%E7%9B%AE%E6%A0%87%E5%9B%BE%E5%83%8F%E7%94%9F%E6%88%90-%26gt%3B%E9%80%89%E9%A1%B9%E2%80%9D%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E3.%20%E9%80%89%E6%8B%A9%E9%80%89%E9%A1%B9NFS%20only%E5%B9%B6%E9%80%80%E5%87%BALTIB%E9%85%8D%E7%BD%AE%E4%BB%A5%E4%BD%BF%E7%94%A8%E6%96%B0%E9%85%8D%E7%BD%AE%E8%BF%9B%E8%A1%8C%E7%BC%96%E8%AF%91%E3%80%82%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E4.%20LTIB%20%E5%BA%94%E8%AF%A5%E5%BC%80%E5%A7%8B%E6%96%B0%E7%9A%84%E7%BC%96%E8%AF%91%E5%B9%B6%E5%9C%A8%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%20%2Frootfs%2Fboot%2FzImage%20%E4%B8%8A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E6%96%B0%E7%9A%84%20Linux%20%E6%98%A0%E5%83%8F%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2010pt%3B%20line-height%3A%201.5em%3B%22%3E5.%20%E5%B0%86%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%20%2Frootfs%2Fboot%2FzImage%20%E4%B8%8A%E5%88%9B%E5%BB%BA%E7%9A%84%E6%98%A0%E5%83%8F%E5%A4%8D%E5%88%B6%E5%88%B0%20%2Ftftpboot%2FzImage%3C%2FLTIB%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E6.%E7%B3%BB%E7%BB%9F%E5%B7%B2%E5%87%86%E5%A4%87%E5%A5%BD%E8%BF%90%E8%A1%8C%20NFS%E3%80%82%E7%9B%AE%E6%A0%87%E4%B8%8A%E7%9A%84%E6%A0%B9%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F%E5%B0%86%E4%BD%8D%E4%BA%8E%E4%B8%BB%E6%9C%BA%E4%B8%8A%E7%9A%84%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%20%2Frootfs%2F%3C%2FLTIB%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1113005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9AUbuntu%20%E4%B8%8A%E7%9A%84%20NFS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3Dutf-8%22%20%2F%26gt%3B%0A%3CP%3E%E4%BD%A0%E5%A5%BD%EF%BC%8C%E6%88%91%E5%B0%9D%E8%AF%95%E5%9C%A8%20LS104ARDB%20%E4%B8%8A%E5%88%9B%E5%BB%BA%20NFS%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%8C%3C%2FP%3E%3CP%3E%E4%BD%86%E6%98%AF%EF%BC%8C%E6%88%91%E8%BF%90%E8%A1%8C%3CSPAN%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%22%3E%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20NFS%20%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22%22%3E%24sudo%20%2Fetc%2Finit.d%2Fnfs-kernel-server%E9%87%8D%E5%90%AF%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%AE%BE%E5%A4%87%E5%B1%95%E7%A4%BA%EF%BC%9A%3CBR%20%2F%3E%E9%87%8D%E6%96%B0%E5%90%AF%E5%8A%A8%20nfs-kernel-server%EF%BC%88%E9%80%9A%E8%BF%87%20systemctl%EF%BC%89%EF%BC%9Anfs-kernel-server.serviceA%20%E4%BE%9D%E8%B5%96%E4%BD%9C%E4%B8%9A%3CBR%20%2F%3Enfs-server.service%20%E5%A4%B1%E8%B4%A5%E3%80%82%E6%9C%89%E5%85%B3%E8%AF%A6%E7%BB%86%E4%BF%A1%E6%81%AF%EF%BC%8C%E8%AF%B7%E5%8F%82%E9%98%85%E2%80%9Cjournalctl%20-xe%E2%80%9D%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E4%BD%A0%E7%9F%A5%E9%81%93%E6%88%91%E8%AF%A5%E5%A6%82%E4%BD%95%E8%A7%A3%E5%86%B3%E8%BF%99%E4%B8%AA%E9%97%AE%E9%A2%98%E5%90%97%EF%BC%9F%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%84%9F%E8%B0%A2%E6%82%A8%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
无评分
版本历史
最后更新:
‎09-10-2020 02:20 AM
更新人: