HPlogo HP-UX Reference > S

setmnt(1M)

HP-UX 11i Version 2: December 2007 Update
» 

Technical documentation

 » Table of Contents

 » Index

NAME

setmnt — establish the file-system mount table, /etc/mnttab

SYNOPSIS

/usr/sbin/setmnt

DESCRIPTION

The setmnt command creates the /etc/mnttab table (see mnttab(4)), which is needed by both the mount and umount commands (see mount(1M)). setmnt reads the standard input and creates an entry in /etc/mnttab for each line of input. Input lines have the format:

filesys node

where filesys is the name of the device special file associated with the file system (such as /dev/dsk/c0t5d0) and node is the root name of that file system. Thus filesys and node become the first two strings in the mount table entry.

WARNINGS

The mount and umount commands rewrite the /etc/mnttab file whenever a file system is mounted or unmounted if /etc/mnttab is found to be out of date with the mounted file system table maintained internally by the HP-UX kernel. The syncer command also updates /etc/mnttab if it is out of date (see syncer(1M)).

/etc/mnttab should never be manually edited. Use of this command to write invalid information into /etc/mnttab is strongly discouraged.

The setmnt command is not intended to be run interactively; input should be directed to it from a file, for example,

setmnt < /tmp/file.mnt

If you run it interactively, terminate input with a Ctrl-D.

setmnt silently enforces an upper limit on the maximum number of /etc/mnttab entries.

It is unwise to use setmnt to create false entries for mount and umount.

This command is obsolete. It may not be available for future releases.

FILES

/etc/mnttab

Mounted file system table

STANDARDS CONFORMANCE

setmnt: SVID2, SVID3