setmnt
PURPOSE
Creates mount table.
SYNOPSIS
setmnt
DESCRIPTION
The setmnt command reads lines from standard input and
writes the /etc/mnttab table to standard output (see the
mnttab file in AIX Operating System Technical Reference).
The /etc/mmttab is needed for both the mount and unmount
commands. setmnt creates a mnttab entry for each line
read. Input lines have the format:
filesys directory
where filesys is the name of the file system's special
file and directory is the root name of that file system.
Thus, filesys and directory become the first two strings
in the mnttab entry. filesys and directory must not be
longer than 100 characters.
The setmnt command enforces an upper limit on the maximum
number of mnttab entries.
EXAMPLE
To set the mount table after it has been destroyed or
made invalid:
setmnt <<end
hd1 /u
fd0 /a
fd1 /b
end
This command sets the mount table to show /dev/hd1
mounted on "/u", /dev/fd0 on "/a", and /dev/fd1 on
"/b".
The "<<end" and "end" define a Here Document, which uses
the text entered before the "end" line as the standard
input for the setmnt command. For more details, see
"Inline Input Documents."
FILES
/etc/mnttab
RELATED INFORMATION
The mnttab file in AIX Operating System Technical Refer-
ence.