2 .\" Copyright (c) 2000, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH FSCK_PCFS 1M "Jan 28, 2000"
8 fsck_pcfs \- file system consistency check and interactive repair
12 \fBfsck\fR \fB-F\fR pcfs [\fIgeneric_options\fR] \fIspecial\fR
17 \fBfsck\fR \fB-F\fR pcfs [\fIgeneric_options\fR] [\fB-o\fR \fIspecific_options\fR] \fIspecial\fR
23 The \fBfsck\fR utility audits and interactively repairs inconsistent conditions
24 on file systems. \fIspecial\fR represents the character special device on which
25 the file system resides, for example \fB/dev/rdiskette\fR. The character
26 special device, not the block special device, should be used.
29 In the case of correcting serious inconsistencies, by default, \fBfsck\fR asks
30 for confirmation before making a repair and waits for the operator to respond
31 either \fByes\fR or \fBno\fR. If the operator does not have write permission on
32 the file system, \fBfsck\fR defaults to a \fB-n\fR (no corrections) action. See
36 Repairing some file system inconsistencies may result in loss of data. The
37 amount and severity of data loss may be determined from the diagnostic output.
40 When executed with the verify option (\fB\fR\fB-o\fR\fB v\fR), \fBfsck_pcfs\fR
41 automatically scans the entire file system to verify that all of its allocation
42 units are accessible. If it finds any units inaccessible, it updates the file
43 allocation table (\fBFAT\fR) appropriately. It also updates any effected
44 directory entries to reflect the problem. This directory update includes
45 truncating the file at the point in its allocation chain where the file data is
46 no longer accessible. Any remaining accessible allocation units become
50 Orphaned chains of accessible allocation units are, with the operator's
51 concurrence, linked back into the file system as files in the root directory.
52 These files are assigned names of the form file\fINNNN\fR.chk, where the
53 \fIN\fRs are digits in the integral range from \fB0\fR through \fB9\fR.
56 After successfully scanning and correcting any errors in the file system,
57 \fBfsck\fR displays a summary of information about the file system. This
58 summary includes the size of the file system in bytes, the number of bytes used
59 in directories and individual files, and the number of available allocation
60 units remaining in the file system.
65 \fB\fIgeneric_options\fR\fR
68 The following generic options are supported:
75 Check but do not repair. This option checks that the file system is suitable
76 for mounting, returning the appropriate exit status. If the file system is
77 ready for mounting, \fBfsck\fR displays a message such as:
81 pcfs fsck: sanity check:
82 \fB/dev/rdiskette\fR okay
92 \fB\fB-n\fR | \fB-N\fR\fR
95 Assume a no response to all questions asked by \fBfsck\fR; do not open the
96 file system for writing.
105 Echo the expanded command line, but do not execute the command. This option
106 may be used to verify and to validate the command line.
112 \fB\fB-y\fR | \fB-Y\fR\fR
115 Assume a \fByes\fR response to all questions asked by \fBfsck\fR.
123 \fB\fB-o\fR \fIspecific_options\fR\fR
126 Specify \fBpcfs\fR file system specific options in a comma-separated list, in
127 any combination, with no intervening spaces.
134 Verify all allocation units are accessible prior to correcting inconsistencies
144 Check and fix the file system non-interactively (\fBpreen\fR). Exit
145 immediately if there is a problem requiring intervention.
154 Check writable file systems only.
166 The device which contains the pcfs. The device name for a diskette is specified
167 as \fB/dev/rdiskette0\fR for the first diskette drive, or \fB/dev/rdiskette1\fR
168 for a second diskette drive. A hard disk device or high-capacity removable
169 device name much be qualified with a suffix to indicate the proper \fBFDISK\fR
172 For example, in the names: \fB/dev/rdsk/c0t0d0p0:c\fR and
173 \fB/dev/rdsk/c0t4d0s2:c\fR, the \fB:c\fR suffix indicates the first partition
174 on the disk contains the \fBpcfs\fR.
180 See \fBattributes\fR(5) for descriptions of the following attributes:
188 ATTRIBUTE TYPE ATTRIBUTE VALUE
190 Interface Stability Stable
196 \fBfsck\fR(1M), \fBfstyp\fR(1M), \fBfdisk\fR(1M), \fBmkfs\fR(1M),
197 \fBmkfs_pcfs\fR(1M), \fBmountall\fR(1M), \fBattributes\fR(5), \fBpcfs\fR(7FS),
201 The operating system buffers file system data. Running \fBfsck\fR on a mounted
202 file system can cause the operating system's buffers to become out of date with
203 respect to the disk. For this reason, the file system should be unmounted when
204 \fBfsck\fR is used. If this is not possible, care should be taken that the
205 system is quiescent and that it is rebooted immediately after \fBfsck\fR is
206 run. Quite often, however, this is not sufficient. A panic will probably occur
207 if running \fBfsck\fR on a file system modifies the file system.