Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:general_information:nfs [2018/03/22 17:57] – reworked liedmannen:general_information:nfs [2025/05/16 11:16] (current) weinholdo
Line 1: Line 1:
-~~NOTOC~~ 
 ====== NFS server ====== ====== NFS server ======
 +
 +The NFS server can be used to provide a root file system that can be mounted root filesystem on the traget hardware, this is very convenient for application development. 
 +
 +<hidden>
 ===== Tested with the following operating systems ===== ===== Tested with the following operating systems =====
   * Ubuntu 10.04 x86 in VMware Player   * Ubuntu 10.04 x86 in VMware Player
Line 6: Line 9:
   * Ubuntu 14.04 x86_64 in VMware Player   * Ubuntu 14.04 x86_64 in VMware Player
   * Ubuntu 16.04 x86_64 in VMware Player   * Ubuntu 16.04 x86_64 in VMware Player
 +</hidden>
 ===== Installation ===== ===== Installation =====
-\\+On Ubuntu the nfs-kernel-server package has to be installed. 
 <code bash> <code bash>
 user@ubuntu:~$ sudo apt-get install nfs-kernel-server user@ubuntu:~$ sudo apt-get install nfs-kernel-server
 </code> </code>
-\\ 
 ---- ----
 ===== Example Configuration for NFS boot ===== ===== Example Configuration for NFS boot =====
-\\ 
 Create a directory on the host root filesystem. Create a directory on the host root filesystem.
 <code bash> <code bash>
Line 42: Line 44:
 </code> </code>
 ++++ ++++
-<WRAP round important>+<alert type="warning">
 This path must match the U-Boot environment variable ''rootpath'' on the target and defines the source for the NFS rootfs. This path must match the U-Boot environment variable ''rootpath'' on the target and defines the source for the NFS rootfs.
-</WRAP>+</alert>
  
-<WRAP round info>+<callout type="info" icon="true">
 After the /etc/exports file was modified the NFS server need to be restarted: After the /etc/exports file was modified the NFS server need to be restarted:
 <code bash> <code bash>
 user@ubuntu:~$ sudo service nfs-kernel-server restart user@ubuntu:~$ sudo service nfs-kernel-server restart
 </code> </code>
-</WRAP>+</callout>
 ---- ----
 ===== Test the configuration ===== ===== Test the configuration =====
-\\ 
 With the command ''showmount'' you can see the exported directories. With the command ''showmount'' you can see the exported directories.
 <code bash> <code bash>
Line 63: Line 64:
  
 =====Related Links===== =====Related Links=====
-\\ 
   * [[en:tftp|How to setup a TFTP Server on your Host Computer]]   * [[en:tftp|How to setup a TFTP Server on your Host Computer]]
   * [[en:general_information:tutorial:nfs_boot|Using NFS boot]]   * [[en:general_information:tutorial:nfs_boot|Using NFS boot]]
 ===== Troubleshooting ===== ===== Troubleshooting =====
-\\ 
 If the root file system cannot be mounted via NFS the log file of the NFS server should be checked. In Ubuntu the log is written to the file ''/var/log/syslog''. If the root file system cannot be mounted via NFS the log file of the NFS server should be checked. In Ubuntu the log is written to the file ''/var/log/syslog''.
  
Line 79: Line 78:
  
  
-===== Sources ===== 
-\\ 
-  * https://help.ubuntu.com/community/SettingUpNFSHowTo 
-  * [[http://www.denx.de/wiki/view/DULG/SystemSetup#Section_4.8.|http://www.denx.de/wiki/view/DULG/SystemSetup#Section_4.8.]] 
-  * http://www.centos.org/docs/5/html/Deployment_Guide-en-US/ch-nfs.html