fstab.4 (2010 09)

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.
/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. If type is memfs, this entry is ignored since a block
device is not required for a memory file system.
directory Name of the root of the mounted file system that corresponds to the device special
file.Iftype is
memfs, there is no corresponding device special file; directory is the
root of the memory based file system. If type is
swapfs, directory can be the name
of any directory within a file system. 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
memfs, the device special file field is ignored; the corresponding entry
displayed in mnttab is memfs. Additionally, if type is memfs, mount will skip
the fstab entry even for matches of directory , if a different type is specified to
mount.
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
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (4 pages)