| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
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 |
| @@ -19,27 +19,27 @@ | | | @@ -19,27 +19,27 @@ |
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 |
| @@ -153,26 +153,32 @@ and | | | @@ -153,26 +153,32 @@ 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 |
| @@ -357,14 +363,15 @@ The diagnostics produced by | | | @@ -357,14 +363,15 @@ 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 |