Wednesday, June 9, 2010

Creating/Adding an NFS Share

A couple days ago I had to create an NFS share at work. I never had to create one before but I found it to be quite painless. Here's how I did it in Sabayon Linux:

1. Start the nfs daemon if it is not already launched:
#/etc/init.d/nfs start

2. Edit the /etc/exports file (create it if needed) to include the share you wish to allow access to using the following syntax:

[full_path_to_share] [client_ip] ([privalages])


Example:

/home/aether/share 192.168.64.100 (rw)


3. Update the exports by running:
#exportfs -rv


Note: you may see some output warnings, but it will most likely still work.

4. You should now be able to mount the nfs share on the client