Difference between revisions of "NFS mount on EA board"
Line 31: | Line 31: | ||
On the EA board issue this command: | On the EA board issue this command: | ||
<source lang="bash"> | <source lang="bash"> | ||
− | mount -t nfs < source host>:< source export directory> <destination directory> | + | mount -t nfs -o <options> < source host>:< source export directory> <destination directory> |
</source> | </source> | ||
where the '''< source host>''' can be an IP address, the '''< source directory>''' is the directory that was exported from the development host and '''<destination directory>''' is the directory on where the exported directory shall be mounted. | where the '''< source host>''' can be an IP address, the '''< source directory>''' is the directory that was exported from the development host and '''<destination directory>''' is the directory on where the exported directory shall be mounted. |
Revision as of 09:09, 22 February 2011
Exporting a directory from the development host and mounting this directory eases the development process.
In /etc/exports add this line
directory hostname(options)
where directory is the directory you want to export to the net and the hostname is for instance an IP address of your EA board. The options can be rw,sync.
Example:
/home/emb/uClinuxDist 10.1.18.73(rw,sync)
And every time you have changed in /etc/exports then you have to reload nfs service.
/sbin/service nfs reload
Configure the firewall to allow NFS traffic to come through
system-config-securitylevel-tui
Select Customize and set a star in the NFS4 field.
On the EA board issue this command:
mount -t nfs -o <options> < source host>:< source export directory> <destination directory>
where the < source host> can be an IP address, the < source directory> is the directory that was exported from the development host and <destination directory> is the directory on where the exported directory shall be mounted.