source: trunk/minix/man/man1/fsck.1@ 15

Last change on this file since 15 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.9 KB
Line 
1.TH FSCK 1
2.SH NAME
3fsck, 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
31on the specified devices.
32\fIFsck1\fR is an alternate version for use on obsolete V1 file systems.
33When either the \fB\-a\fR or \fB\-r\fR flags are given, the file system
34will be repaired if errors are found.
35Before running \fIfsck\fR on a mounted file system, it must first be unmounted.
36Trying to repair a mounted file system is dangerous and should not be
37attempted.
38.PP
39To repair the root file system (which cannot be unmounted), first
40type CTRL-F9 at the console to kill any and all processes. Log back in
41as \fBroot\fR, type \fIsync\fR to force any buffered changes to disk,
42run \fIfsck\fR on the root file system and immediately reboot the
43computer by typing \fIreboot\fR.
44.PP
45It is necessary to kill all processes before repairing the root file system
46to prevent them from modifying any disk blocks while \fIfsck\fR is running.
47This is only necessary for the root file system, any other file system can
48simply 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
Note: See TracBrowser for help on using the repository browser.