Information Technology Reference
In-Depth Information
The following listing shows using the
mount
command to mount the
/export/home
file from the Solaris system on the
/sun_home
mount point.
The resource is soft mounted (1,000 attempts) with read-only access:
# mount -F nfs -o soft,retry=1000,ro solaris:/export/home /sun_home
#
If the
mount
command is used without any command-line arguments, all cur-
rently mounted file systems (standard Solaris file systems and NFS
resources) are displayed.
The umount Command
The
umount
command is used to unmount local file systems and remote NFS
resources so that local users can no longer access them. For NFS, one or
more
system:pathname
pairs (or file system mount points) that are currently
mounted are specified as command-line arguments.
Two other command-line arguments are supported. The first is the
-V
command-line argument, which is used to display the command line used
to actually perform the unmount (used to verify the command line). The
second is the
-a
command-line argument, which is used to perform parallel
unmount operations if possible.
The following listing shows the
umount
command unmounting the
/export/home
file system being shared from the Solaris host:
# umount solaris:/export/home
#
The /etc/vfstab File
The
/etc/vfstab
file, referred to as the
file system table
, specifies resources
that should be automatically mounted when the system is booted or when
the
mountall
command is used.
This file can be modified using any text editor. To automatically mount an
NFS resource, add a line to the
/etc/vfstab
file that contains the appropri-
ate options that would have been entered manually with a
mount -F nfs
command. To remove automatic mounting of an NFS resource, delete the
appropriate line from the
/etc/vfstab
file.
Table 15.4 lists the (tab-separated) fields and the appropriate values of an
entry in the
/etc/vfstab
file as they pertain to mounting an NFS resource.
A hyphen (
-
) is used to indicate no entry in a field.