NFS

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Server)
m (Redirected page to Ubuntu server 12.04/nfs)
 
Line 1: Line 1:
 +
#REDIRECT [[Ubuntu_server_12.04/nfs]]
 +
 
How to setup an NFS server on Ubuntu 10.04 (LTS)
 
How to setup an NFS server on Ubuntu 10.04 (LTS)
  

Latest revision as of 12:59, 7 August 2012

  1. REDIRECT Ubuntu_server_12.04/nfs

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

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

[edit] 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

[edit] 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