HP-UX Reference (11i v2 04/09) - 4 File Formats (vol 8)

f
fstab(4) fstab(4)
NAME
fstab - static information about the file systems
SYNOPSIS
#include <fstab.h>
DESCRIPTION
fstab is an ASCII file that resides in directory
/etc. Programs read it, but do not write to or from it.
System administrators are responsible for creating and maintaining this file properly.
/etc/fstab contains a list of mountable file-system entries. Each file-system entry appears on a
separate line, and consists of fields separated by one or more blanks or tabs.
The order of entries in
/etc/fstab is important only for entries without a pass number field. Entries
without a pass number are sequentially checked by
fsck (see fsck (1M)) after the entries with a pass
number have been checked.
Each file-system entry must contain a device special file and may additionally contain all of the following
fields, in the following order:
directory
type
options
backup frequency
pass number (on parallel
fsck)
comment
If any field after the name of the device special file is present, all fields must be present in the order indi-
cated, to ensure correct place-holding.
Entries from this file are accessed using getmntent() (see getmntent (3X)).
The fields are separated by white space, and a
# as the first non-whitespace character in an entry or field
indicates a comment.
device special file A block device special file name. This field is used by
fsck
, mount, swapon,
crashconf, and other commands to identify the location of the storage device on
which the file system resides.
directory Name of the root of the mounted file system that corresponds to the device special
file.Iftype is
swapfs, directory can be the name of any directory within a file sys-
tem. Only one directory should be specified per file system. directory must already
exist and must be given as an absolute path name.
type Can be
swap, swapfs, dump, ignore, or a file system type (for example,
hfs,
vxfs, cdfs, nfs,orlofs).
If type is
swap, the device special file is made available as an area of swap space by
the swapon command (see swapon (1M)). The options field is valid. The fields
directory , pass number, and backup frequency are ignored for swap entries.
If type is
swapfs, the file system in which directory resides is made available as
swap space by swapon. The options field is valid. The fields device special file,
pass number, and backup frequency are ignored for swapfs entries.
If type is
dump, the device special file is made available as an area into which a sys-
tem crash dump may occur, by the crashconf command (see crashconf (1M)).
The fields options , directory , pass number, and backup frequency are ignored for
dump entries.
Entries marked by the type
ignore are ignored by all commands and can be used
to mark unused sections. If type is specified as either ignore, dump, swap,or
swapfs, the entry is ignored by the mount and fsck commands (see mount(1M)
and fsck(1M)). fsck also ignores entries with type specified as cdfs, nfs,orlofs.
options A comma-separated list of option keywords, as found in mount (1M) or swapon(1M).
The keywords used depend on the parameter specified in type.
Section 456 Hewlett-Packard Company 1 HP-UX 11i Version 2: September 2004