Nfs
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 5: | Line 5: | ||
and add the following line (with changes): | and add the following line (with changes): | ||
<pre>/home/attie 192.168.0.2(rw)</pre> | <pre>/home/attie 192.168.0.2(rw)</pre> | ||
− | {{note|multiple hosts can be specified with the | + | {{note|multiple hosts can be specified with the 192.168.0.0/24 notation or with a space between hosts}} |
and restart NFS: | and restart NFS: | ||
<pre>$ /etc/init.d/nfs restart</pre> | <pre>$ /etc/init.d/nfs restart</pre> |
Revision as of 00:44, 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 192.168.0.0/24 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