Nfs
From Attie's Wiki
(Difference between revisions)
m (Created page with 'Sharing folders with NFS! On the server do the following: <pre> $ nano /etc/exports </pre> and add the following line (with changes): <pre> /home/attie 192.168.0.2(rw) </pre> …') |
m (Redirected page to Ubuntu server 12.04/nfs) |
||
(5 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
+ | #redirect [[Ubuntu_server_12.04/nfs]] | ||
Sharing folders with NFS! | Sharing folders with NFS! | ||
− | + | [[Nfs_root|Mounting an NFS share as the root filesystem]] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <h2>Server</h2> | |
− | <pre> | + | <pre>$ nano /etc/exports</pre> |
− | $ nano /etc/fstab | + | and add the following line (with changes): |
− | </pre> | + | <pre>/home/attie 192.168.0.2(rw)</pre> |
+ | {{note|multiple hosts can be specified with the 192.168.0.0/24 notation or with a space between hosts}} | ||
+ | and restart NFS: | ||
+ | <pre>$ /etc/init.d/nfs restart</pre> | ||
+ | <h2>Client</h2> | ||
+ | <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> | + |
Latest revision as of 12:33, 16 December 2014
- redirect Ubuntu_server_12.04/nfs
Sharing folders with NFS!
Mounting an NFS share as the root filesystem
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