To configure your host as an NFS client (to acquire remote files or directories), edit the /etc/fstab file as you would to mount any local file system. However, instead of using a device name to be mounted (such as /dev/hdai), enter the remote hostname and the desired file system to be imported. For example, one entry might look like this:
# Device Mount Point Type Options Freq Pass yourhost:/usr/iocai /usr/iocai nfs nfsvers=3,ro 0 0
If you use autofs on your system, you need to use proper autofs entries for your remote NFS mounts. See the section 5 man page for autofs.
The Options column uses the same options as standard fstab file entries with some additional entries, such as nfsvers=3, which specifies the third version of NFS. You can also use the mount command, as root, to quickly attach a remote directory to a local file system by using a remote host's name and exported directory. For example:
After you press Enter, the entire remote directory appears on your file system. You can verify the imported file system using the df command, as follows:
192.168.2.67:/music 36875376 20895920 14106280 60% /music
Make sure that the desired mount point exists before using the mount command. When finished using the directory (perhaps for copying backups), you can use the umount command to remove the remote file system. Note that if you specify the root directory (/) as a mount point, you cannot unmount the
Was this article helpful?