Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:nfs [2016/06/07 15:52] – ernst | en:nfs [2022/08/04 15:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
====== NFS server ====== | ====== NFS server ====== | ||
- | ===== Used version | + | ===== Tested with the following operating systems |
- | * Ubuntu 10.04 x86 in vmware player | + | * Ubuntu 10.04 x86 in VMware Player |
- | * Ubuntu 12.04 x86 in vmware player | + | * Ubuntu 12.04 x86 in VMware Player |
+ | * Ubuntu 14.04 x86_64 in VMware Player | ||
+ | * Ubuntu 16.04 x86_64 in VMware Player | ||
===== Installation ===== | ===== Installation ===== | ||
+ | \\ | ||
<code bash> | <code bash> | ||
user@ubuntu: | user@ubuntu: | ||
+ | </ | ||
+ | \\ | ||
+ | ---- | ||
+ | ===== Example Configuration for NFS boot ===== | ||
+ | \\ | ||
+ | Create a directory on the host root filesystem. | ||
+ | <code bash> | ||
+ | user@ubuntu: | ||
+ | user@ubuntu: | ||
</ | </ | ||
- | After installation create an NFS share in file /etc/exports and add the rootpath to /etc/exports. In this example we used the BSP for TQMa6x: | + | Extract the content of root.tgz to your nfs directory.\\ |
- | + | root.tgz is located | |
- | < | + | * BSP download archive provided by TQ-Systems e.g. (TQMxx.BSP.SW.BIN.xxxx.tgz\TQMxx.BSP.SW.BIN.xxxx.tar\root.tgz) |
- | /home/ | + | * After building the BSP sources with PTXdist e.g. (../TQMxx-BSP-REV.xxxx/platform-MBxx/images/root.tgz) |
+ | < | ||
+ | user@ubuntu: | ||
+ | user@ubuntu: | ||
</ | </ | ||
- | After editing | + | Next step is to configure |
+ | Create an entry that contains | ||
- | ===== Configuration ===== | ||
- | To access rootfs via NFS the following line must be added to the file ''/ | ||
< | < | ||
- | <Rootfs | + | <path/ |
</ | </ | ||
- | For example | + | |
+ | ++++For example| | ||
< | < | ||
- | /opt/ | + | /nfs 192.168.0.0/ |
</ | </ | ||
- | + | ++++ | |
- | This path must match the variable '' | + | <WRAP round important> |
+ | This path must match the U-Boot environment | ||
+ | </ | ||
<WRAP round info> | <WRAP round info> | ||
- | After this file was changed | + | After the / |
<code bash> | <code bash> | ||
user@ubuntu: | user@ubuntu: | ||
</ | </ | ||
</ | </ | ||
+ | ---- | ||
===== Test the configuration ===== | ===== Test the configuration ===== | ||
- | With the command '' | + | \\ |
+ | With the command '' | ||
<code bash> | <code bash> | ||
- | user@ubuntu: | + | user@ubuntu: |
- | Export list for 192.168.0.5: | + | Export list for localhost: |
- | /opt/ | + | /nfs 192.168.0.0/ |
</ | </ | ||
+ | =====Related Links===== | ||
+ | \\ | ||
+ | * [[en: | ||
+ | * [[en: | ||
===== 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 ''/ | 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 ''/ | ||
Line 53: | Line 77: | ||
In this case the server rejects the connection because the host does not match the one in the file ''/ | In this case the server rejects the connection because the host does not match the one in the file ''/ | ||
- | ===== Configuration firewall / host system (NAT) ===== | + | |
- | NFS uses port TCP 2049. The configuration of Windows-XP as host system is descibed here: [[vm]]. | + | |
===== Sources ===== | ===== Sources ===== | ||
- | | + | \\ |
+ | | ||
* [[http:// | * [[http:// | ||
* http:// | * http:// | ||
- | * http:// | ||