1 | .TH FSCK 1
|
---|
2 | .SH NAME
|
---|
3 | fsck, fsck1 \- perform file system consistency check
|
---|
4 | .SH SYNOPSIS
|
---|
5 | \fBfsck\fR [\fB\-aclmrs\fR]\fR [\fIdevice\fR] ...\fR
|
---|
6 | .br
|
---|
7 | .de FL
|
---|
8 | .TP
|
---|
9 | \\fB\\$1\\fR
|
---|
10 | \\$2
|
---|
11 | ..
|
---|
12 | .de EX
|
---|
13 | .TP 20
|
---|
14 | \\fB\\$1\\fR
|
---|
15 | # \\$2
|
---|
16 | ..
|
---|
17 | .SH OPTIONS
|
---|
18 | .FL "\-a" "Automatically repair inconsistencies"
|
---|
19 | .FL "\-c" "Check and list only the specified i-nodes
|
---|
20 | .FL "\-l" "List the files and directories in the filesytem
|
---|
21 | .FL "\-r" "Prompt user for repairs if inconsistencies are found
|
---|
22 | .FL "\-s" "List the superblock of the file system"
|
---|
23 | .SH EXAMPLES
|
---|
24 | .EX "fsck /dev/c0d0p3" "Check file system on \fI/dev/c0d0p3\fR"
|
---|
25 | .EX "fsck \-a /dev/at0" "Automatically fix errors on \fI/dev/at0\fR"
|
---|
26 | .EX "fsck \-l /dev/fd0" "List the contents of \fI/dev/fd0\fR"
|
---|
27 | .EX "fsck \-c 2 3 /dev/c0d0p2" "Check and list \fI/dev/c0d0p2\fR i-nodes 2 & 3"
|
---|
28 | .SH DESCRIPTION
|
---|
29 | .PP
|
---|
30 | \fIFsck\fR performs consistency checks on the file systems which reside
|
---|
31 | on the specified devices.
|
---|
32 | \fIFsck1\fR is an alternate version for use on obsolete V1 file systems.
|
---|
33 | When either the \fB\-a\fR or \fB\-r\fR flags are given, the file system
|
---|
34 | will be repaired if errors are found.
|
---|
35 | Before running \fIfsck\fR on a mounted file system, it must first be unmounted.
|
---|
36 | Trying to repair a mounted file system is dangerous and should not be
|
---|
37 | attempted.
|
---|
38 | .PP
|
---|
39 | To repair the root file system (which cannot be unmounted), first
|
---|
40 | type CTRL-F9 at the console to kill any and all processes. Log back in
|
---|
41 | as \fBroot\fR, type \fIsync\fR to force any buffered changes to disk,
|
---|
42 | run \fIfsck\fR on the root file system and immediately reboot the
|
---|
43 | computer by typing \fIreboot\fR.
|
---|
44 | .PP
|
---|
45 | It is necessary to kill all processes before repairing the root file system
|
---|
46 | to prevent them from modifying any disk blocks while \fIfsck\fR is running.
|
---|
47 | This is only necessary for the root file system, any other file system can
|
---|
48 | simply be unmounted before it is checked.
|
---|
49 | .SH "SEE ALSO"
|
---|
50 | .BR mkfs (1),
|
---|
51 | .BR mount (1).
|
---|
52 | .\" disk name refs corrected, i.e., old hd1 now c0d0p0 -- ASW 2005-01-15
|
---|