Difference between revisions of "NFS mount on EA board"

From Klaus' wiki
Jump to: navigation, search
Line 15: Line 15:
 
</source>  
 
</source>  
  
And every time you have changed in /etc/exports then you have to reload nfs service.
+
Change to suit your requirements.
 +
 
 +
You'll have to enable a few ports extra in the NFS configuration file: /etc/sysconfig/nfs
 +
 
 +
Remove the remarks (#) on the lines with these port numbers:
 +
 
 +
<source lang="bash">
 +
LOCKD_TCPPORT=32803
 +
LOCKD_UDPPORT=32769
 +
MOUNTD_PORT=892
 +
STATD_PORT=662
 +
</source>
 +
 
 +
And every time you have changed in /etc/exports or other configuration files you have to reload nfs service.
  
 
<source lang="bash">
 
<source lang="bash">
Line 27: Line 40:
 
</source>
 
</source>
  
Select '''Customize''' and set a star in the NFS4 field.
+
Select '''Customize''' and set a star in the NFS4 field and add in the field for other ports the following ports:
 +
 
 +
<source lang="bash">
 +
111:tcp 111:udp 32803:tcp 32803:udp 32769:tcp 32769:udp 892:tcp 892:udp 662:tcp 662:udp
 +
</source>
 +
 
 +
To check if your set-up is working correct issue this command on your bren login:
 +
 
 +
<source lang="bash">
 +
[klausk@bren ~]$  /usr/sbin/showmount -e 10.1.18.212
 +
Export list for 10.1.18.212:
 +
/home/nfsexport 10.1.18.73,10.2.2.82
 +
</source>
  
 
On the EA board issue this command:
 
On the EA board issue this command:

Revision as of 16:41, 23 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)

Change to suit your requirements.

You'll have to enable a few ports extra in the NFS configuration file: /etc/sysconfig/nfs

Remove the remarks (#) on the lines with these port numbers:

LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
STATD_PORT=662

And every time you have changed in /etc/exports or other configuration files 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 and add in the field for other ports the following ports:

111:tcp 111:udp 32803:tcp 32803:udp 32769:tcp 32769:udp 892:tcp 892:udp 662:tcp 662:udp

To check if your set-up is working correct issue this command on your bren login:

[klausk@bren ~]$  /usr/sbin/showmount -e 10.1.18.212
Export list for 10.1.18.212:
/home/nfsexport 10.1.18.73,10.2.2.82

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.