NFS

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Created page with 'How to setup an NFS server on Ubuntu 10.04 (LTS) <source lang="bash"> apt-get install nfs-common nfs-kernel-server </source> == Server == To share a directory using NFS, add th…')
 
m (β†’β€ŽServer)
Line 14: Line 14:
 
<source lang="text">
 
<source lang="text">
 
/nfsroot 192.168.0.0/24(rw,no_root_squash)
 
/nfsroot 192.168.0.0/24(rw,no_root_squash)
 +
</source>
 +
 +
And restart the server:
 +
<source lang="bash">
 +
sudo /etc/init.d/nfs-kernel-server restart
 
</source>
 
</source>
  

Revision as of 16:14, 1 December 2011

How to setup an NFS server on Ubuntu 10.04 (LTS)

apt-get install nfs-common nfs-kernel-server

Server

To share a directory using NFS, add this (sort of thing) to /etc/exports:

/home/shared  192.168.0.0/16(rw)

If you are going to be using the share as an NFS root filsystem, add somethinglike this:

/nfsroot 192.168.0.0/24(rw,no_root_squash)

And restart the server:

sudo /etc/init.d/nfs-kernel-server restart

Client

Either use /etc/fstab like this:

server:/home/shared                      /home/shared      nfs     user,auto,exec  0       0

Or, use mount like this:

sudo mount -t nfs server:/home/shared ./shared
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox