|
|
1.1 root 1: .TH FSTAB 5
2: .CT 2 sa
3: .SH NAME
4: fstab, mtab \- information about file systems
5: .SH SYNOPSIS
6: .B #include <fstab.h>
7: .SH DESCRIPTION
8: The file
9: .F /etc/fstab
10: describes the normal configuration of file systems.
11: It guides the default operation of
12: .I mount,
13: .I umount,
14: .I swapon,
15: and
16: .IR fsck (8).
17: The order of records in
18: .F /etc/fstab
19: is important.
20: .PP
21: Each line of the file describes one file system.
22: Fields separated by colons specify
23: .IP
24: pathname of block device or other mounted object
25: .br
26: pathname of mount point
27: .br
28: file system type number
29: .br
30: integer mount flags
31: .br
32: pass number for checking; see
33: .IR fsck (8)
34: .PP
35: File system type numbers
36: and flags are listed in
37: .IR fmount (2).
38: .PP
39: Two special non-numeric file system types
40: signify things that aren't file systems:
41: .L xx
42: causes the line to be ignored,
43: .L sw
44: signifies a swap device.
45: .PP
46: Use
47: .IR getfsent (3)
48: to read data from
49: .LR /etc/fstab .
50: .PP
51: The file
52: .F /etc/mtab
53: lists file systems currently mounted.
54: Each entry is a structure of the form
55: .PP
56: .nf
57: .ft L
58: .ta 8n +27n
59: #define FSNMLG 32
60:
61: struct mtab {
62: char file[FSNMLG];\fR mount point\fP
63: char spec[FSNMLG-1];\fR mounted object\fP
64: char type;\fR file system type\fP
65: };
66: .ft R
67: .fi
68: .SH EXAMPLES
69: A simple
70: .I fstab.
71: .IP
72: .EX
73: /dev/ra00:/:0:0:1
74: /dev/ra02:/usr:0:0:2
75: /dev/ra05:/tmp:0:0:3
76: /dev/ra10:/ra10:0:1:1
77: /dev/ra11::sw:0:0
78: /dev/ra15:/ra15:0:1:3
79: /dev/null:/proc:2:0:0
80: .EE
81: .SH FILES
82: .F /etc/fstab
83: .br
84: .F /etc/mtab
85: .SH SEE ALSO
86: .IR fmount (2),
87: .IR getfsent (3),
88: .IR mount (8)
89: .SH BUGS
90: Swap areas are not file systems,
91: and should not be described in
92: .IR fstab .
93: .br
94: For compatibility with old programs and habits,
95: two deprecated magic file system types survive:
96: .L rw
97: means `type 0, flag 0'
98: (a disk file system, mounted for reading and writing);
99: .L ro
100: means `type 0, flag 1'
101: (a disk file system, mounted read-only).
102: .br
103: Only file systems mounted with
104: .IR mount (8)
105: are listed in
106: .IR mtab .
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.