Chapter 9. Network File System (NFS) 119• -o file-systems — Specifies directories to be exported that are not listed in /etc/exports.Replace file-systems with additional file systems to be exported. These file systems must beformatted the same way they are specified in /etc/exports. Refer to Section 9.3.1 NFS ServerConfiguration File for more information on /etc/exports syntax. This option is often used totest an exported file system before adding it permanently to the list of file systems to be exported.• -i — Ignores /etc/exports; only options given from the command line are used to define ex-ported file systems.• -u — Unexports all shared directories. The command /usr/sbin/exportfs -ua suspends NFSfile sharing while keeping all NFS daemons up. To reenable NFS sharing, type exportfs -r.• -v — Verbose operation, where the file systems being exported or unexported are displayed ingreater detail when the exportfs command is executed.If no options are passed to the /usr/sbin/exportfs command, it displays a list of currently ex-ported file systems.For more information about the /usr/sbin/exportfs command, refer to the exportfs man page.9.4. NFS Client Configuration FilesNFS shares are mounted on the client side using the mount command. The format of the command isas follows:mount -o © optionsª «© host ª : © /remote/exportª ¬© /local/directory ªReplace options® with a comma separated list of options for the NFS file system (referto Section 9.4.3 Common NFS Mount Options for details). Replace host® with theremote host, /remote/export® with the remote directory being mounted, and replace/local/directory® with the local directory where the remote file system is to be mounted.Refer to the mount man page for more details.If accessing an NFS share by manually issuing the mount command, the file system must be re-mounted manually after the system is rebooted. Red Hat Enterprise Linux offers two methods formounting remote file systems automatically at boot time: the /etc/fstab file or the autofs ser-vice.9.4.1. /etc/fstabThe /etc/fstab file is referenced by the netfs service at boot time, so lines referencing NFS shareshave the same effect as manually typing the mount command during the boot process.A sample /etc/fstab line to mount an NFS export looks like the following example:¯server ° :¯ /remote/export° ¯ /local/directory ° nfs ¯ options° 0 0Replace ¯ server° with the hostname, IP address, or fully qualified domain name of the serverexporting the file system.Replace ¯ /remote/export° with the path to the exported directory.Replace ¯ /local/directory;° with the local file system on which the exported directory ismounted. This mount point must exist before /etc/fstab is read or the mount fails.The nfs option specifies the type of file system being mounted.Replace options® with a comma separated list of options for the NFS file system (refer to Sec-tion 9.4.3 Common NFS Mount Options for details). Refer to the fstab man page for additionalinformation.