NFS

From Attie's Wiki
Revision as of 16:14, 1 December 2011 by Attie (Talk | contribs)

Jump to: navigation, search

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