must zero the buffer
[unix-history] / usr / src / sbin / fsck / SMM.doc / 1.t
CommitLineData
a38b2411
KM
1.\" Copyright (c) 1982 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
6a1194d8 5.\" @(#)1.t 4.2 (Berkeley) %G%
a38b2411
KM
6.\"
7.ds RH Introduction
8.NH
9Introduction
10.PP
11This document reflects the use of
12.I fsck
6a1194d8 13with the 4.2BSD and 4.3BSD file system organization. This
a38b2411
KM
14is a revision of the
15original paper written by
16T. J. Kowalski.
17.PP
18When a UNIX
19operating system is brought up, a consistency
20check of the file systems should always be performed.
21This precautionary measure helps to insure
22a reliable environment for file storage on disk.
23If an inconsistency is discovered,
24corrective action must be taken.
25.I Fsck
26runs in two modes.
27Normally it is run non-interactively by the system after
28a normal boot.
29When running in this mode,
30it will only make changes to the file system that are known
31to always be correct.
32If an unexpected inconsistency is found
33.I fsck
34will exit with a non-zero exit status,
35leaving the system running single-user.
36Typically the operator then runs
37.I fsck
38interactively.
39When running in this mode,
40each problem is listed followed by a suggested corrective action.
41The operator must decide whether or not the suggested correction
42should be made.
43.PP
44The purpose of this memo is to dispel the
45mystique surrounding
46file system inconsistencies.
47It first describes the updating of the file system
48(the calm before the storm) and
49then describes file system corruption (the storm).
50Finally,
51the set of deterministic corrective actions
52used by
53.I fsck
54(the Coast Guard
55to the rescue) is presented.
56.ds RH Overview of the File System