Manual Page Result
0
Command: fstab | Section: 5 | Source: UNIX v10 | File: fstab.5
FSTAB(5) File Formats Manual FSTAB(5)
NAME
fstab, mtab - information about file systems
SYNOPSIS
#include <fstab.h>
DESCRIPTION
The file describes the normal configuration of file systems. It guides
the default operation of mount, umount, swapon, and fsck(8). The order
of records in is important.
Each line of the file describes one file system. Fields separated by
colons specify
pathname of block device or other mounted object
pathname of mount point
file system type number
integer mount flags
pass number for checking; see fsck(8)
File system type numbers and flags are listed in fmount(2).
Two special non-numeric file system types signify things that aren't
file systems: causes the line to be ignored, signifies a swap device.
Use getfsent(3) to read data from
The file lists file systems currently mounted. Each entry is a struc-
ture of the form
#define FSNMLG 32
struct mtab {
char file[FSNMLG]; mount point
char spec[FSNMLG-1]; mounted object
char type; file system type
};
EXAMPLES
A simple fstab.
/dev/ra00:/:0:0:1
/dev/ra02:/usr:0:0:2
/dev/ra05:/tmp:0:0:3
/dev/ra10:/ra10:0:1:1
/dev/ra11::sw:0:0
/dev/ra15:/ra15:0:1:3
/dev/null:/proc:2:0:0
FILES
SEE ALSO
fmount(2), getfsent(3), mount(8)
BUGS
Swap areas are not file systems, and should not be described in fstab.
For compatibility with old programs and habits, two deprecated magic
file system types survive: means `type 0, flag 0' (a disk file system,
mounted for reading and writing); means `type 0, flag 1' (a disk file
system, mounted read-only).
Only file systems mounted with mount(8) are listed in mtab.
FSTAB(5)