| @@ -1,370 +1,377 @@ | | | @@ -1,370 +1,377 @@ |
1 | .\" $NetBSD: fsck_ffs.8,v 1.48 2011/05/14 19:46:10 dholland Exp $ | | 1 | .\" $NetBSD: fsck_ffs.8,v 1.49 2012/03/06 10:30:20 wiz Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1980, 1989, 1991, 1993 | | 3 | .\" Copyright (c) 1980, 1989, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | | 4 | .\" The Regents of the University of California. All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" 3. Neither the name of the University nor the names of its contributors | | 14 | .\" 3. Neither the name of the University nor the names of its contributors |
15 | .\" may be used to endorse or promote products derived from this software | | 15 | .\" may be used to endorse or promote products derived from this software |
16 | .\" without specific prior written permission. | | 16 | .\" without specific prior written permission. |
17 | .\" | | 17 | .\" |
18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | | 18 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | | 19 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | | 20 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | | 21 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | | 22 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | | 23 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | | 24 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | | 25 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | | 26 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | | 28 | .\" SUCH DAMAGE. |
29 | .\" | | 29 | .\" |
30 | .\" @(#)fsck.8 8.3 (Berkeley) 11/29/94 | | 30 | .\" @(#)fsck.8 8.3 (Berkeley) 11/29/94 |
31 | .\" | | 31 | .\" |
32 | .Dd May 14, 2011 | | 32 | .Dd March 6, 2012 |
33 | .Dt FSCK_FFS 8 | | 33 | .Dt FSCK_FFS 8 |
34 | .Os | | 34 | .Os |
35 | .Sh NAME | | 35 | .Sh NAME |
36 | .Nm fsck_ffs | | 36 | .Nm fsck_ffs |
37 | .Nd Fast File System consistency check and interactive repair | | 37 | .Nd Fast File System consistency check and interactive repair |
38 | .Sh SYNOPSIS | | 38 | .Sh SYNOPSIS |
39 | .Nm | | 39 | .Nm |
40 | .Op Fl adFfPpqUX | | 40 | .Op Fl adFfPpqUX |
41 | .Op Fl B Ar byteorder | | 41 | .Op Fl B Ar byteorder |
42 | .Op Fl b Ar block | | 42 | .Op Fl b Ar block |
43 | .Op Fl c Ar level | | 43 | .Op Fl c Ar level |
44 | .Op Fl m Ar mode | | 44 | .Op Fl m Ar mode |
45 | .Op Fl x Ar snap-backup | | 45 | .Op Fl x Ar snap-backup |
46 | .Op Fl y | n | | 46 | .Op Fl y | n |
47 | .Ar filesystem ... | | 47 | .Ar filesystem ... |
48 | .Sh DESCRIPTION | | 48 | .Sh DESCRIPTION |
49 | .Nm | | 49 | .Nm |
50 | performs interactive file system consistency checks and repair for each of | | 50 | performs interactive file system consistency checks and repair for each of |
51 | the file systems specified on the command line. | | 51 | the file systems specified on the command line. |
52 | It is normally invoked from | | 52 | It is normally invoked from |
53 | .Xr fsck 8 . | | 53 | .Xr fsck 8 . |
54 | .Pp | | 54 | .Pp |
55 | The kernel takes care that only a restricted class of innocuous file system | | 55 | The kernel takes care that only a restricted class of innocuous file system |
56 | inconsistencies can happen unless hardware or software failures intervene. | | 56 | inconsistencies can happen unless hardware or software failures intervene. |
57 | These are limited to the following: | | 57 | These are limited to the following: |
58 | .Pp | | 58 | .Pp |
59 | .Bl -item -compact -offset indent | | 59 | .Bl -item -compact -offset indent |
60 | .It | | 60 | .It |
61 | Unreferenced inodes | | 61 | Unreferenced inodes |
62 | .It | | 62 | .It |
63 | Link counts in inodes too large | | 63 | Link counts in inodes too large |
64 | .It | | 64 | .It |
65 | Missing blocks in the free map | | 65 | Missing blocks in the free map |
66 | .It | | 66 | .It |
67 | Blocks in the free map also in files | | 67 | Blocks in the free map also in files |
68 | .It | | 68 | .It |
69 | Counts in the super-block wrong | | 69 | Counts in the super-block wrong |
70 | .El | | 70 | .El |
71 | .Pp | | 71 | .Pp |
72 | These are the only inconsistencies that | | 72 | These are the only inconsistencies that |
73 | .Nm | | 73 | .Nm |
74 | in | | 74 | in |
75 | .Dq preen | | 75 | .Dq preen |
76 | mode (with the | | 76 | mode (with the |
77 | .Fl p | | 77 | .Fl p |
78 | option) will correct; if it encounters other inconsistencies, it exits | | 78 | option) will correct; if it encounters other inconsistencies, it exits |
79 | with an abnormal return status. | | 79 | with an abnormal return status. |
80 | For each corrected inconsistency one or more lines will be printed | | 80 | For each corrected inconsistency one or more lines will be printed |
81 | identifying the file system on which the correction will take place, | | 81 | identifying the file system on which the correction will take place, |
82 | and the nature of the correction. | | 82 | and the nature of the correction. |
83 | After successfully correcting a file system, | | 83 | After successfully correcting a file system, |
84 | .Nm | | 84 | .Nm |
85 | will print the number of files on that file system, | | 85 | will print the number of files on that file system, |
86 | the number of used and free blocks, | | 86 | the number of used and free blocks, |
87 | and the percentage of fragmentation. | | 87 | and the percentage of fragmentation. |
88 | .Pp | | 88 | .Pp |
89 | If sent a | | 89 | If sent a |
90 | .Dv QUIT | | 90 | .Dv QUIT |
91 | signal, | | 91 | signal, |
92 | .Nm | | 92 | .Nm |
93 | will finish the file system checks, then exit with an abnormal return status. | | 93 | will finish the file system checks, then exit with an abnormal return status. |
94 | .Pp | | 94 | .Pp |
95 | If | | 95 | If |
96 | .Nm | | 96 | .Nm |
97 | receives a | | 97 | receives a |
98 | .Dv SIGINFO | | 98 | .Dv SIGINFO |
99 | signal | | 99 | signal |
100 | (see the | | 100 | (see the |
101 | .Sy status | | 101 | .Sy status |
102 | argument for | | 102 | argument for |
103 | .Xr stty 1 ) , | | 103 | .Xr stty 1 ) , |
104 | a line will be written to the standard error output indicating | | 104 | a line will be written to the standard error output indicating |
105 | the name of the device currently being checked, the current phase | | 105 | the name of the device currently being checked, the current phase |
106 | number and phase-specific progress information. | | 106 | number and phase-specific progress information. |
107 | .Pp | | 107 | .Pp |
108 | Without the | | 108 | Without the |
109 | .Fl p | | 109 | .Fl p |
110 | option, | | 110 | option, |
111 | .Nm | | 111 | .Nm |
112 | audits and interactively repairs inconsistent conditions for file systems. | | 112 | audits and interactively repairs inconsistent conditions for file systems. |
113 | If the file system is inconsistent the operator is prompted for concurrence | | 113 | If the file system is inconsistent the operator is prompted for concurrence |
114 | before each correction is attempted. | | 114 | before each correction is attempted. |
115 | It should be noted that some of the corrective actions which are not | | 115 | It should be noted that some of the corrective actions which are not |
116 | correctable under the | | 116 | correctable under the |
117 | .Fl p | | 117 | .Fl p |
118 | option will result in some loss of data. | | 118 | option will result in some loss of data. |
119 | The amount and severity of data lost may be determined from the diagnostic | | 119 | The amount and severity of data lost may be determined from the diagnostic |
120 | output. | | 120 | output. |
121 | The default action for each consistency correction | | 121 | The default action for each consistency correction |
122 | is to wait for the operator to respond | | 122 | is to wait for the operator to respond |
123 | .Li yes | | 123 | .Li yes |
124 | or | | 124 | or |
125 | .Li no . | | 125 | .Li no . |
126 | If the operator does not have write permission on the file system | | 126 | If the operator does not have write permission on the file system |
127 | .Nm | | 127 | .Nm |
128 | will default to a | | 128 | will default to a |
129 | .Fl n | | 129 | .Fl n |
130 | action. | | 130 | action. |
131 | .Pp | | 131 | .Pp |
132 | .Nm | | 132 | .Nm |
133 | has more consistency checks than | | 133 | has more consistency checks than |
134 | its predecessors | | 134 | its predecessors |
135 | .Em check , dcheck , fcheck , | | 135 | .Em check , dcheck , fcheck , |
136 | and | | 136 | and |
137 | .Em icheck | | 137 | .Em icheck |
138 | combined. | | 138 | combined. |
139 | .Pp | | 139 | .Pp |
140 | The following flags are interpreted by | | 140 | The following flags are interpreted by |
141 | .Nm . | | 141 | .Nm . |
142 | .Bl -tag -width XBXbyteorderXX -offset indent | | 142 | .Bl -tag -width XBXbyteorderXX -offset indent |
143 | .It Fl a | | 143 | .It Fl a |
144 | Interpret the filesystem as an Apple UFS filesystem, even if | | 144 | Interpret the filesystem as an Apple UFS filesystem, even if |
145 | there is no Apple UFS volume label present. | | 145 | there is no Apple UFS volume label present. |
146 | .It Fl B Ar byteorder | | 146 | .It Fl B Ar byteorder |
147 | Convert the file system metadata to | | 147 | Convert the file system metadata to |
148 | .Ar byteorder | | 148 | .Ar byteorder |
149 | byte order if needed. | | 149 | byte order if needed. |
150 | Valid byte orders are | | 150 | Valid byte orders are |
151 | .Dq be | | 151 | .Dq be |
152 | and | | 152 | and |
153 | .Dq le . | | 153 | .Dq le . |
154 | If | | 154 | If |
155 | .Nm | | 155 | .Nm |
156 | is interrupted while swapping the metadata byte order, the file system cannot | | 156 | is interrupted while swapping the metadata byte order, the file system cannot |
157 | be recovered. | | 157 | be recovered. |
158 | .Nm | | 158 | .Nm |
159 | will print a message in interactive mode if the file system is not in host | | 159 | will print a message in interactive mode if the file system is not in host |
160 | byte order. | | 160 | byte order. |
161 | .It Fl b Ar block | | 161 | .It Fl b Ar block |
162 | Use the block number | | 162 | Use the block number |
163 | .Ar block | | 163 | .Ar block |
164 | as the super block for the file system. | | 164 | as the super block for the file system. |
165 | Block 32 is usually an alternative super block. | | 165 | Block 32 is usually an alternative super block. |
| | | 166 | The |
| | | 167 | .Fl b |
| | | 168 | option of the |
| | | 169 | .Xr scan_ffs 8 |
| | | 170 | utility can also be used to find the offset of other super block backups |
| | | 171 | in a file system. |
166 | .It Fl c Ar level | | 172 | .It Fl c Ar level |
167 | Convert the FFSv1 file system to the level | | 173 | Convert the FFSv1 file system to the level |
168 | .Ar level . | | 174 | .Ar level . |
169 | Note that the level of a file system can only be raised. | | 175 | Note that the level of a file system can only be raised. |
170 | There are currently five levels defined: | | 176 | There are currently five levels defined: |
171 | .Bl -tag -width 3n -offset indent | | 177 | .Bl -tag -width 3n -offset indent |
172 | .It 0 | | 178 | .It 0 |
173 | The file system is in the old (static table) format. | | 179 | The file system is in the old (static table) format. |
174 | .It 1 | | 180 | .It 1 |
175 | The file system is in the new (dynamic table) format. | | 181 | The file system is in the new (dynamic table) format. |
176 | Such file systems are made by using the | | 182 | Such file systems are made by using the |
177 | .Fl O Ar 0 | | 183 | .Fl O Ar 0 |
178 | option to | | 184 | option to |
179 | .Xr newfs 8 . | | 185 | .Xr newfs 8 . |
180 | .It 2 | | 186 | .It 2 |
181 | The file system supports 32-bit UIDs and GIDs, | | 187 | The file system supports 32-bit UIDs and GIDs, |
182 | short symbolic links are stored in the inode, | | 188 | short symbolic links are stored in the inode, |
183 | and directories have an added field showing the file type. | | 189 | and directories have an added field showing the file type. |
184 | This format was introduced in | | 190 | This format was introduced in |
185 | .Bx 4.4 . | | 191 | .Bx 4.4 . |
186 | .It 3 | | 192 | .It 3 |
187 | If maxcontig is greater than one, | | 193 | If maxcontig is greater than one, |
188 | build the free segment maps to aid in finding contiguous sets of blocks. | | 194 | build the free segment maps to aid in finding contiguous sets of blocks. |
189 | If maxcontig is equal to one, delete any existing segment maps. | | 195 | If maxcontig is equal to one, delete any existing segment maps. |
190 | This was the default before | | 196 | This was the default before |
191 | .Nx 2.0 . | | 197 | .Nx 2.0 . |
192 | .It 4 | | 198 | .It 4 |
193 | Rearrange the super block to the same layout as FFSv2; | | 199 | Rearrange the super block to the same layout as FFSv2; |
194 | disable the rotational layout tables and per cylinder group | | 200 | disable the rotational layout tables and per cylinder group |
195 | block totals. | | 201 | block totals. |
196 | Such file systems are made by using the | | 202 | Such file systems are made by using the |
197 | .Fl O Ar 1 | | 203 | .Fl O Ar 1 |
198 | option to | | 204 | option to |
199 | .Xr newfs 8 . | | 205 | .Xr newfs 8 . |
200 | .El | | 206 | .El |
201 | .Pp | | 207 | .Pp |
202 | Note that FFSv2 file systems are always level 4. | | 208 | Note that FFSv2 file systems are always level 4. |
203 | .Pp | | 209 | .Pp |
204 | In interactive mode, | | 210 | In interactive mode, |
205 | .Nm | | 211 | .Nm |
206 | will list the conversion to be made | | 212 | will list the conversion to be made |
207 | and ask whether the conversion should be done. | | 213 | and ask whether the conversion should be done. |
208 | If a negative answer is given, | | 214 | If a negative answer is given, |
209 | no further operations are done on the file system. | | 215 | no further operations are done on the file system. |
210 | In preen mode, | | 216 | In preen mode, |
211 | the conversion is listed and done if | | 217 | the conversion is listed and done if |
212 | possible without user interaction. | | 218 | possible without user interaction. |
213 | Conversion in preen mode is best used when all the file systems | | 219 | Conversion in preen mode is best used when all the file systems |
214 | are being converted at once. | | 220 | are being converted at once. |
215 | .Pp | | 221 | .Pp |
216 | The output of | | 222 | The output of |
217 | .Xr dumpfs 8 | | 223 | .Xr dumpfs 8 |
218 | can be examined to determine the format of the file system | | 224 | can be examined to determine the format of the file system |
219 | .Dq ( format | | 225 | .Dq ( format |
220 | in the second line) | | 226 | in the second line) |
221 | and the file system level | | 227 | and the file system level |
222 | .Dq ( fslevel | | 228 | .Dq ( fslevel |
223 | in the sixth line). | | 229 | in the sixth line). |
224 | .It Fl d | | 230 | .It Fl d |
225 | Print debugging output. | | 231 | Print debugging output. |
226 | .It Fl F | | 232 | .It Fl F |
227 | Indicates that | | 233 | Indicates that |
228 | .Ar filesystem | | 234 | .Ar filesystem |
229 | is a file system image, rather than a raw character device. | | 235 | is a file system image, rather than a raw character device. |
230 | .Ar filesystem | | 236 | .Ar filesystem |
231 | will be accessed | | 237 | will be accessed |
232 | .Sq as-is , | | 238 | .Sq as-is , |
233 | and no attempts will be made to read a disklabel. | | 239 | and no attempts will be made to read a disklabel. |
234 | .It Fl f | | 240 | .It Fl f |
235 | Force checking of file systems. | | 241 | Force checking of file systems. |
236 | Normally, if a file system is cleanly unmounted, the kernel will set a | | 242 | Normally, if a file system is cleanly unmounted, the kernel will set a |
237 | .Dq clean flag | | 243 | .Dq clean flag |
238 | in the file system super block, and | | 244 | in the file system super block, and |
239 | .Nm | | 245 | .Nm |
240 | will not check the file system. | | 246 | will not check the file system. |
241 | This option forces | | 247 | This option forces |
242 | .Nm | | 248 | .Nm |
243 | to check the file system, regardless of the state of the clean flag. | | 249 | to check the file system, regardless of the state of the clean flag. |
244 | .It Fl m Ar mode | | 250 | .It Fl m Ar mode |
245 | Use the octal value | | 251 | Use the octal value |
246 | .Ar mode | | 252 | .Ar mode |
247 | as the permission bits to use when creating the | | 253 | as the permission bits to use when creating the |
248 | .Pa lost+found | | 254 | .Pa lost+found |
249 | directory rather than the default 1700. | | 255 | directory rather than the default 1700. |
250 | In particular, systems that do not wish to have lost files accessible | | 256 | In particular, systems that do not wish to have lost files accessible |
251 | by all users on the system should use a more restrictive | | 257 | by all users on the system should use a more restrictive |
252 | set of permissions such as 700. | | 258 | set of permissions such as 700. |
253 | .It Fl n | | 259 | .It Fl n |
254 | Assume a no response to all questions asked by | | 260 | Assume a no response to all questions asked by |
255 | .Nm | | 261 | .Nm |
256 | except for | | 262 | except for |
257 | .Ql CONTINUE? , | | 263 | .Ql CONTINUE? , |
258 | which is assumed to be affirmative; | | 264 | which is assumed to be affirmative; |
259 | do not open the file system for writing. | | 265 | do not open the file system for writing. |
260 | .It Fl P | | 266 | .It Fl P |
261 | Display a progress meter for the file system check. | | 267 | Display a progress meter for the file system check. |
262 | A new meter is displayed for each of the 5 file system check passes, unless | | 268 | A new meter is displayed for each of the 5 file system check passes, unless |
263 | .Fl p | | 269 | .Fl p |
264 | is specified, in which case only one meter for overall progress is displayed. | | 270 | is specified, in which case only one meter for overall progress is displayed. |
265 | Progress meters are disabled if the | | 271 | Progress meters are disabled if the |
266 | .Fl d | | 272 | .Fl d |
267 | option is specified. | | 273 | option is specified. |
268 | .It Fl p | | 274 | .It Fl p |
269 | Specify | | 275 | Specify |
270 | .Dq preen | | 276 | .Dq preen |
271 | mode, described above. | | 277 | mode, described above. |
272 | .It Fl q | | 278 | .It Fl q |
273 | Quiet mode, do not output any messages for clean filesystems. | | 279 | Quiet mode, do not output any messages for clean filesystems. |
274 | .It Fl U | | 280 | .It Fl U |
275 | Resolve user ids to usernames. | | 281 | Resolve user ids to usernames. |
276 | .It Fl X | | 282 | .It Fl X |
277 | Similar to | | 283 | Similar to |
278 | .Fl x | | 284 | .Fl x |
279 | but uses a file system internal snapshot on the file system to be checked. | | 285 | but uses a file system internal snapshot on the file system to be checked. |
280 | .It Fl x Ar snap-backup | | 286 | .It Fl x Ar snap-backup |
281 | Use a snapshot with | | 287 | Use a snapshot with |
282 | .Ar snap-backup | | 288 | .Ar snap-backup |
283 | as backup to check a read-write mounted filesystem. | | 289 | as backup to check a read-write mounted filesystem. |
284 | Must be used with | | 290 | Must be used with |
285 | .Fl n . | | 291 | .Fl n . |
286 | See | | 292 | See |
287 | .Xr fss 4 | | 293 | .Xr fss 4 |
288 | for more details. | | 294 | for more details. |
289 | The point is to check an internally-consistent version of the | | 295 | The point is to check an internally-consistent version of the |
290 | filesystem to find out if it is damaged; on failure one should unmount | | 296 | filesystem to find out if it is damaged; on failure one should unmount |
291 | the filesystem and repair it. | | 297 | the filesystem and repair it. |
292 | .It Fl y | | 298 | .It Fl y |
293 | Assume a yes response to all questions asked by | | 299 | Assume a yes response to all questions asked by |
294 | .Nm ; | | 300 | .Nm ; |
295 | this should be used with great caution as this is a free license | | 301 | this should be used with great caution as this is a free license |
296 | to continue after essentially unlimited trouble has been encountered. | | 302 | to continue after essentially unlimited trouble has been encountered. |
297 | .El | | 303 | .El |
298 | .Pp | | 304 | .Pp |
299 | Inconsistencies checked are as follows: | | 305 | Inconsistencies checked are as follows: |
300 | .Bl -enum -offset indent -compact | | 306 | .Bl -enum -offset indent -compact |
301 | .It | | 307 | .It |
302 | Blocks claimed by more than one inode or the free map. | | 308 | Blocks claimed by more than one inode or the free map. |
303 | .It | | 309 | .It |
304 | Blocks claimed by an inode outside the range of the file system. | | 310 | Blocks claimed by an inode outside the range of the file system. |
305 | .It | | 311 | .It |
306 | Incorrect link counts. | | 312 | Incorrect link counts. |
307 | .It | | 313 | .It |
308 | Size checks: | | 314 | Size checks: |
309 | .Bl -item -offset indent -compact | | 315 | .Bl -item -offset indent -compact |
310 | .It | | 316 | .It |
311 | Directory size not a multiple of DIRBLKSIZ. | | 317 | Directory size not a multiple of DIRBLKSIZ. |
312 | .It | | 318 | .It |
313 | Partially truncated file. | | 319 | Partially truncated file. |
314 | .El | | 320 | .El |
315 | .It | | 321 | .It |
316 | Bad inode format. | | 322 | Bad inode format. |
317 | .It | | 323 | .It |
318 | Blocks not accounted for anywhere. | | 324 | Blocks not accounted for anywhere. |
319 | .It | | 325 | .It |
320 | Directory checks: | | 326 | Directory checks: |
321 | .Bl -item -offset indent -compact | | 327 | .Bl -item -offset indent -compact |
322 | .It | | 328 | .It |
323 | File pointing to unallocated inode. | | 329 | File pointing to unallocated inode. |
324 | .It | | 330 | .It |
325 | Inode number out of range. | | 331 | Inode number out of range. |
326 | .It | | 332 | .It |
327 | Dot or dot-dot not the first two entries of a directory | | 333 | Dot or dot-dot not the first two entries of a directory |
328 | or having the wrong inode number. | | 334 | or having the wrong inode number. |
329 | .El | | 335 | .El |
330 | .It | | 336 | .It |
331 | Super Block checks: | | 337 | Super Block checks: |
332 | .Bl -item -offset indent -compact | | 338 | .Bl -item -offset indent -compact |
333 | .It | | 339 | .It |
334 | More blocks for inodes than there are in the file system. | | 340 | More blocks for inodes than there are in the file system. |
335 | .It | | 341 | .It |
336 | Bad free block map format. | | 342 | Bad free block map format. |
337 | .It | | 343 | .It |
338 | Total free block and/or free inode count incorrect. | | 344 | Total free block and/or free inode count incorrect. |
339 | .El | | 345 | .El |
340 | .El | | 346 | .El |
341 | .Pp | | 347 | .Pp |
342 | Orphaned files and directories (allocated but unreferenced) are, | | 348 | Orphaned files and directories (allocated but unreferenced) are, |
343 | with the operator's concurrence, reconnected by | | 349 | with the operator's concurrence, reconnected by |
344 | placing them in the | | 350 | placing them in the |
345 | .Pa lost+found | | 351 | .Pa lost+found |
346 | directory. | | 352 | directory. |
347 | The name assigned is the inode number. | | 353 | The name assigned is the inode number. |
348 | If the | | 354 | If the |
349 | .Pa lost+found | | 355 | .Pa lost+found |
350 | directory does not exist, it is created. | | 356 | directory does not exist, it is created. |
351 | If there is insufficient space its size is increased. | | 357 | If there is insufficient space its size is increased. |
352 | .Pp | | 358 | .Pp |
353 | Because of inconsistencies between the block device and the buffer cache, | | 359 | Because of inconsistencies between the block device and the buffer cache, |
354 | the raw device should always be used. | | 360 | the raw device should always be used. |
355 | .Sh DIAGNOSTICS | | 361 | .Sh DIAGNOSTICS |
356 | The diagnostics produced by | | 362 | The diagnostics produced by |
357 | .Nm | | 363 | .Nm |
358 | are fully enumerated and explained in Appendix A of | | 364 | are fully enumerated and explained in Appendix A of |
359 | .Rs | | 365 | .Rs |
360 | .%T "Fsck \- The UNIX File System Check Program" | | 366 | .%T "Fsck \- The UNIX File System Check Program" |
361 | .Re | | 367 | .Re |
362 | .Sh SEE ALSO | | 368 | .Sh SEE ALSO |
363 | .Xr fss 4 , | | 369 | .Xr fss 4 , |
364 | .Xr fs 5 , | | 370 | .Xr fs 5 , |
365 | .Xr fstab 5 , | | 371 | .Xr fstab 5 , |
366 | .Xr dumpfs 8 , | | 372 | .Xr dumpfs 8 , |
367 | .Xr fsck 8 , | | 373 | .Xr fsck 8 , |
368 | .Xr fsdb 8 , | | 374 | .Xr fsdb 8 , |
369 | .Xr newfs 8 , | | 375 | .Xr newfs 8 , |
370 | .Xr reboot 8 | | 376 | .Xr reboot 8 , |
| | | 377 | .Xr scan_ffs 8 |