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…')

Revision as of 16:13, 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)

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