Installing and Starting or Stopping NFS

NFS is not installed by default on Ubuntu, so you need to install the nfs-common, nfskernei-server, and portmap packages. NFS itself consists of several programs that work together to provide the NFS server service. One is rpc.portmapper, which maps NFS requests to the correct daemon. Two others are rpc.nfsd, which is the NFS daemon, and rpc.mountd, which controls the mounting and unmounting of file systems.

Ubuntu automatically adds NFS to the system startup scripts, so it will always be available after you have configured it. To check this, get the sysv-rc-conf utility using synaptic or apt-get, and it will show you that is enabled under the 2 column. If you need to manually start the NFS server, use the following command:

# /etc/init.d/nfs-kernel-server start

Starting NFS services: [ OK ]

Starting NFS quotas: [ OK ]

Starting NFS daemon: [ oK ]

Starting NFS mountd: [ OK ]

In this example, NFS has been started. Use the stop keyword instead to stop the service, or restart to restart the server. This approach to controlling NFS proves handy, especially after configuration changes have been made. See the next section on how to configure NFS support on your Ubuntu system.

Was this article helpful?

0 0

Post a comment