/[gentoo-x86]/sys-fs/e2fsprogs/files/fsck_ext2fs.8
Gentoo

Contents of /sys-fs/e2fsprogs/files/fsck_ext2fs.8

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Sep 15 08:54:26 2007 UTC (7 years, 8 months ago) by uberlord
Branch: MAIN
CVS Tags: HEAD
Add the fsck_ext2fs helper and man page for FreeBSD and add a patch for 1.40.2 to work on FreeBSD.
(Portage version: 2.1.3.9)

1 .TH fsck_ext2fs 8 2006-07-02 "Matthias Andree" "FreeBSD Ports"
2 .\"
3 .\" fsck_ext2fs.8 - manual page for fsck_ext2fs wrapper
4 .\"
5 .\" (C) Copyright 2006 by Matthias Andree <matthias.andree@gmx.de>
6 .\"
7 .\" License: This file may be redistributed in accordance with the terms
8 .\" of the GNU General Public License v2.
9 .\"
10 .\" Upstream $Id: fsck_ext2fs.8,v 1.3 2006/07/02 11:45:21 emma Exp $
11 .\" $FreeBSD: ports/sysutils/e2fsprogs/files/fsck_ext2fs.8,v 1.1 2006/07/04 15:47:51 leeym Exp $
12 .\"
13 .SH NAME
14 .B fsck_ext2fs
15 \- compatibility wrapper for e2fsck
16 .SH SYNOPSIS
17 .P
18 .B fsck_ext2fs
19 [\fB\-Fpfnyv\fR] [\fB\-b\fR \fIblock\fR]
20 .SH DESCRIPTION
21 .P
22 \fBfsck_ext2fs\fR maps the traditional FreeBSD \fBfsck_ffs\fR options to
23 options with the same functionality for \fBe2fsck,\fR runs \fBe2fsck\fR
24 and then maps its exit status to values that FreeBSD understands.
25 \fBe2fsck\fR is a utility to check and repair ext2 and ext3 file
26 systems.
27
28 .SH OPTIONS
29 .IP \fB\-F\fR
30 (check foreground mode required) Immediately exits with status 1 to tell
31 \fBfsck\fR that ext2fs cannot be checked in the background. \fBfsck\fR
32 usually runs \fBfsck_*\fR programs twice, first with \fB\-F\fR to find
33 out if they can do background checking, then either immediately without
34 \fB\-F\fR for foreground checking or deferred in the background with
35 \fB\-B\fR.
36 .IP \fB\-p\fR
37 (preen mode) This option suppresses adding the \fB\-f\fR option (unless
38 \fB\-f\fR is also given) and adds the \fB\-p\fR option to the
39 \fBe2fsck\fR command line. This causes \fBe2fsck\fR to automatically fix
40 any filesystem problems that can safely be fixed without operator
41 intervention. Without this option given, \fBe2fsck\fR will be run with
42 the \fB\-f\fR option to force a check, since interactive scan and repair
43 mode is the default on FreeBSD, but not on Linux where \fBe2fsck\fR
44 comes from.
45 .IP \fB\-f\fR
46 (force check) This option forces the check of a clean file system while
47 preening and is passed to \fBe2fsck\fR verbatim.
48 .IP \fB\-n\fR
49 ("no" mode) This option causes the file system to be opened in read-only
50 mode and assume "no" as answer to all questions. This is the only way to
51 safely run \fBfsck\fR on a mounted ext2 or ext3 file system. This option
52 is passed to \fBe2fsck\fR verbatim.
53 .IP \fB\-y\fR
54 ("yes" mode) This option is passed verbatim to \fBe2fsck\fR and causes
55 it to assume "yes" as answer to all questions. This allows the
56 non-interactive use of e2fsck but is rather aggressive. Use with care.
57 .IP \fB\-v\fR
58 (verbose output) This option is passed verbatim to \fBe2fsck\fR and
59 causes it to verbosely report its progress.
60 .IP "\fB\-b\fR \fIblock\fR"
61 (use alternate super block) This option is passed verbatim to
62 \fBe2fsck\fR and selects an alternate super block, for use when the
63 primary super block has been damaged. Please see the \fBe2fsck\fR(8)
64 manual page for details.
65
66 .SH EXIT STATUS
67 If errors remain after \fBe2fsck\fR, an invalid option or too many
68 options have been specified, \fBe2fsck\fR was killed with a signal or
69 the \fIfork\fB system call failed, \fBfsck_ext2fs\fR exits with status
70 EXIT_FAILURE (usually 1). If \fBe2fsck\fR cannot be started, exits with
71 status 127. If the file system is clean after \fBe2fsck\fR operation,
72 exits with status EXIT_SUCCESS (0).
73
74 .SH NOTES
75 .P
76 This utility is merely meant as an adaptor so that \fBe2fsck\fR can be
77 run during the boot process, it does not support all options that
78 \fBe2fsck\fR offers. If you need one of its advanced options, please run
79 \fBe2fsck\fR directly.
80
81 .SH FILES
82 .TP
83 .I /sbin/e2fsck
84 is the location of the \fBe2fsck\fR program to run.
85
86 .SH AUTHOR
87 .P
88 Matthias Andree <matthias.andree@gmx.de> wrote the program and this
89 manual page.
90 .SH CONFORMING TO
91 The FreeBSD 6.1 command line interface for \fBfsck_ufs\fR(8).
92 .SH SEE ALSO
93 .BR fsck (8),
94 .BR e2fsck (8)
95 and
96 .BR fsck_ufs (8).

  ViewVC Help
Powered by ViewVC 1.1.20