NFS on Ubuntu

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

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/

        


Tags (2)
Comments

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%3ENFS%20on%20Ubuntu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113004%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-381497873%22%20id%3D%22toc-hId-381497873%22%20id%3D%22toc-hId-1297693297%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ENetwork%20File%20System%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-1988254771%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ESetting%20the%20host%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-%20Install%20NFS%20Service%20on%20host%20typing%3A%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-%20Create%20symbolic%20link%20to%20ltib%2Frootfs%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-%20Setup%20exports%20typing%3A%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%3Eand%20add%20the%20following%20line%3A%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%20*(rw%2Cno_root_squash%2Cno_subtree_check%2Casync)%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-%20Restart%20the%20NFS%20server%3A%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%20restart%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%3ENow%20the%20host%20is%20ready%20to%20use%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-180800308%22%3E%3CSPAN%20class%3D%22mw-headline%22%3ESetting%20Target%20Linux%20Image%20to%20use%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.%20Run%20LTIB%20configuration%20by%20typing%3A%3C%2FP%3E%3CBLOCKQUOTE%20class%3D%22jive-quote%22%3E%3CP%3E%24cd%20%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%20.%20On%20first%20page%20menu%2C%20go%20to%20%22Target%20Image%20Generation%20-%26gt%3B%20Options%22%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E3.%20Select%20the%20option%20NFS%20only%20and%20exit%20LTIB%20configuration%20to%20compile%20with%20the%20new%20configuration.%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%20should%20start%20new%20compiling%20and%20create%20a%20new%20Linux%20image%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%2Fboot%2FzImage%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.%20Copy%20the%20created%20image%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%2Frootfs%2Fboot%2FzImage%20to%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.%20The%20system%20is%20ready%20to%20run%20with%20NFS.%20The%20root%20file%20system%20on%20target%20will%20be%20located%20on%20host%20on%20%2F%3CLTIB%20instalation%3D%22%22%20folder%3D%22%22%3E%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%3ERe%3A%20NFS%20on%20Ubuntu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1113005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I%20try%20to%20create%20NFS%20Server%20on%20LS104ARDB%2C%3C%2FP%3E%3CP%3Ehowever%2C%20I%26nbsp%3B%20run%26nbsp%3B%3CSPAN%20style%3D%22color%3A%20%2351626f%3B%20background-color%3A%20%23ffffff%3B%22%3ERestart%20the%20NFS%20server%3A%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22%22%3E%24sudo%20%2Fetc%2Finit.d%2Fnfs-kernel-server%20restart%20%3CBR%20%2F%3E%3CBR%20%2F%3Edevice%20show%3A%3CBR%20%2F%3ERestarting%20nfs-kernel-server%20(via%20systemctl)%3A%20nfs-kernel-server.serviceA%20dependency%20job%20%3CBR%20%2F%3Efor%20nfs-server.service%20failed.%20See%20'journalctl%20-xe'%20for%20details.%3CBR%20%2F%3E%3CBR%20%2F%3EDo%20you%20know%20how%20I%20can%20figure%20out%20this%20issue%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20you%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:20 AM
Updated by: