CL Command Reference - MOUNT

CL Command List > MOUNT Reference

Description:

The Add Mounted File System (MOUNT) command makes the objects in a file system accessible to the integrated file system name space. The file system to be made accessible can be either a user-defined file system (*UDFS) on the local system, a remote file system accessed through local Network File System client (*NFS), or a local or remote NetWare file system (*NETWARE). The directory that is the destination for the mount, the Directory to mount over (MNTOVRDIR), must exist.

This command can also be issued using the following alternative command name:
. ADDMFS

Restrictions:

1. The user must have input/output (I/O) system configuration (*IOSYSCFG) special authority to use this command.

2. If the user is mounting a NetWare file system, the user must have execute (*EXECUTE) authority to the file system to be mounted.

3. The user must have write (*W) authority to the directory to be mounted over.

4. The user must have execute (*X) authority to each directory in the path.


Examples:

The alternative command name for MOUNT is ADDMFS. The following examples use the alternative command name, but MOUNT can be replaced directly for ADDMFS in all of them.

Example 1: Mounting a User-Defined File System

ADDMFS TYPE(*UDFS) MFS(¡¯/DEV/QASP03/PROD1¡¯) MNTOVRDIR(¡¯DIRB¡¯)

This command mounts a user-defined file system PROD1 over the directory, DIRB. It uses the defaults for the other parameters.



Example 2: Mounting a Network File System

ADDMFS TYPE(*NFS) MFS(¡¯RAINFALL:/QSYS.LIB/RAY.LIB¡¯)
MNTOVRDIR(¡¯/mystuff¡¯)

This command mounts the /qsys.lib/ray.lib file system from the remote system RAINFALL into the directory /mystuff.



Example 3: Mounting a Network File System with OPTIONS

ADDMFS TYPE(*NFS) MFS(¡¯RAINFALL:/QSYS.LIB/RAY.LIB¡¯)
MNTOVRDIR(¡¯/mystuff¡¯)
OPTIONS(¡¯ro,nosuid,rsize=256, retrans=10¡¯)
CODEPAGE(*ASCII *JOBCCSID) CCSID(*ASCII *JOBCCSID)

This command mounts the /qsys.lib/ray.lib file system from the remote system RAINFALL into the directory /mystuff. In addition it specifies to mount as read-only, not allow setuid execution, set the read buffer to 256 bytes, and the retransmission attempts to 10. The job CCSID is used to determine the coded character set identifier to use for remote path names.



Example 4: Mounting a NetWare File System with OPTIONS

ADDMFS TYPE(*NETWARE) MFS(¡¯RCHNWSVR1/LOTUS:LOTSUITE/SMARTCTR¡¯)
MNTOVRDIR(¡¯/temp1¡¯) OPTIONS(¡¯ro,agregmax=120¡¯)

This command mounts the NetWare directory LOTSUITE/SMARTCTR contained in the volume LOTUS that resides on server RCHNWSVR1 over the directory /temp1. In addition it specifies to mount as read-only, sets the maximum time to store file attributes locally to 120 seconds.



Example 5: Mounting using a NetWare Directory Services Context

Following are several examples of mounting a NetWare file system using NetWare Directory Services (NDS) contexts.

ADDMFS TYPE(*NETWARE) MFS(¡¯.LOTUS_VOL.ROCHESTER.IBM¡¯)
MNTOVRDIR(¡¯/temp1¡¯)

This command mounts path LOTSUITE/SMARTCTR on NDS volume LOTUS using a relative path and fully qualified names, over the directory /temp1.

ADDMFS TYPE(*NETWARE) MFS(¡¯.CN=LOTUSMAP.OU=ROCHESTER.O=IBM¡¯)
MNTOVRDIR(¡¯/temp1¡¯)

This command mounts a directory map object using a distinguished context and fully qualified names, over the directory /temp1.