Nfs
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
<h2>Server</h2> | <h2>Server</h2> | ||
− | <pre> | + | <pre>$ nano /etc/exports</pre> |
− | $ nano /etc/exports | + | |
− | </pre> | + | |
and add the following line (with changes): | and add the following line (with changes): | ||
− | <pre> | + | <pre>/home/attie 192.168.0.2(rw)</pre> |
− | /home/attie 192.168.0.2(rw) | + | {{note|multiple hosts can be specified with the ip/xx notation or with a space between hosts}} |
− | </pre> | + | and restart NFS: |
− | multiple hosts can be specified with the ip/xx notation or with a space between hosts | + | <pre>$ /etc/init.d/nfs restart</pre> |
<h2>Client</h2> | <h2>Client</h2> | ||
− | <pre> | + | <pre>$ nano /etc/fstab</pre> |
− | $ nano /etc/fstab | + | |
− | </pre> | + | |
add the following line (again with changes): | add the following line (again with changes): | ||
− | <pre> | + | <pre>server:/home/attie /home/attie/remotepc nfs noauto,user 0 0</pre> |
− | server:/home/attie /home/attie/remotepc nfs noauto,user 0 0 | + | |
− | </pre> | + | |
and then mount the share: | and then mount the share: | ||
− | <pre> | + | <pre>$ mount /home/attie/remotepc</pre> |
− | $ mount /home/attie/remotepc | + | |
− | </pre> | + |
Revision as of 00:43, 11 April 2010
Sharing folders with NFS!
Server
$ nano /etc/exports
and add the following line (with changes):
/home/attie 192.168.0.2(rw)
Note: multiple hosts can be specified with the ip/xx notation or with a space between hosts
and restart NFS:
$ /etc/init.d/nfs restart
Client
$ nano /etc/fstab
add the following line (again with changes):
server:/home/attie /home/attie/remotepc nfs noauto,user 0 0
and then mount the share:
$ mount /home/attie/remotepc