Using DFS commands and files

Mounting a set of resources

To mount a set of resources, perform the following:

  1. Create a file that lists the resources you want to mount. The syntax of the entries in your file is the same syntax as the entries in the /etc/vfstab file, as follows:

    special fsckdev mountp fstype fsckpass automnt mntopts

    See the vfstab(4) manual page for a description of the fields in the /etc/vfstab file.

  2. Once you create the file, specify it as the input file for the mountall command. The syntax of the mountall command is as follows:

    mountall [-F FSType] [-l | -r] [file_system_table]

    If you do not specify an input file, the /etc/vfstab file is used by default.

    If the mountall command is entered without arguments, it mounts all local file systems and remote resources in the vfstab file that have the automnt field set to ``yes.''

See the mountall(1M) manual page for an explanation of the options accepted by the mountall command. For an illustration of how to mount a set of resources, refer to ``Example: mounting a set of resources''.

Example: mounting a set of resources

Your system mounts resources automatically when you enter init state 3, using the /etc/vfstab file. While resources are still mounted, you add entries to the vfstab file. Now you want to mount the resources you added to the file, without exiting init state 3 and unmounting currently mounted resources. Type the following command:

mountall -r

The system uses the updated vfstab file as the input file. It mounts all remote resources in the file that are not currently mounted and displays error messages for those resources that are mounted already.

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004