SETMNT(8,C) AIX Commands Reference SETMNT(8,C)
-------------------------------------------------------------------------------
setmnt
PURPOSE
Creates a mount table.
SYNTAX
setmnt ----------------|
| |
+-- -a --+
Warning: See restrictions, Chapter 18, AIX Programming Tools and Interfaces.
DESCRIPTION
The setmnt command reads lines from standard input and writes the /etc/mtab
table (see the mtab file in AIX Operating System Technical Reference). The
/etc/mtab is needed for both the mount and unmount commands. setmnt creates an
mtab 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 mtab entry. The maximum number of characters per mtab
entry is set to 95.
This command can only be run by the superuser.
FLAGS
-a Append to existing /etc/mtab rather than overwriting it.
EXAMPLES
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".
Processed November 8, 1990 SETMNT(8,C) 1
SETMNT(8,C) AIX Commands Reference SETMNT(8,C)
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/mtab Record of mounted file systems.
RELATED INFORMATION
See the mtab file in AIX Operating System Technical Reference.
Processed November 8, 1990 SETMNT(8,C) 2