NFS was developed at a time when we weren’t able to share our drives like we are able to today – in the Windows environment. It offers the ability to share the hard disk space of a big server with many smaller clients. Again, this is a client/server environment. While this seems like a standard service to offer, it was not always like this. In the past, clients and servers were unable to share their disk space.
Thin clients have no hard drives and thus need a “virtual” hard-disk. The NFS mount their hard disk from the server and, while the user thinks they are saving their documents to their local (thin client) disk, they are in fact saving them to the server. In a thin client environment, the root, usr and home partitions are all offered to the client from the server via NFS.
• Local workstations use less disk space because commonly used data can be stored on a single machine and still remain accessible to others over the network.
• There is no need for users to have separate home directories on every network machine. Home directories could be set up on the NFS server and made available throughout the network.
• Storage devices such as floppy disks, CDROM drives, and Zip® drives can be used by other machines on the network. This may reduce the number of removable media drives throughout the network.
Install NFS Server in Ubuntu
When configuring portmap do =not= bind loopback. If you do you can either edit /etc/default/portmap using the following
or use the following command
Restart Portmap using the following command
NFS Server Configuration
Here are some quick examples of what you could add to your /etc/exports
Or for Read Only from a single machine
save this file and exit
If you make changes to /etc/exports on a running NFS server, you can make these changes effective by issuing the command
Install NFS client support in Ubuntu
This will install all the required packages for nfs client
You need to mount the share using the following command
Now you may need to restart services using the following command
Mounting at boot using /etc/fstab
Change “servername.mydomain.com:/files”, and “/files” to match your server name,share name, and the name of the mount point you created.
Setup NFS Shares