Home Explore Blog CI



man-pages

4th chunk of `fsck.man`
965b99a575154c0c9e0e615eccf824c736013a5af812f79e00000001000008fe
 mounted filesystems and return an exit status of 0 for
           mounted filesystems.

       -N
           Don’t execute, just show what would be done.

       -P
           When the -A flag is set, check the root filesystem in parallel with
           the other filesystems. This is not the safest thing in the world to
           do, since if the root filesystem is in doubt things like the
           e2fsck(8) executable might be corrupted! This option is mainly
           provided for those sysadmins who don’t want to repartition the root
           filesystem to be small and compact (which is really the right
           solution).

       -R
           When checking all filesystems with the -A flag, skip the root
           filesystem. (This is useful in case the root filesystem has already
           been mounted read-write.)

       -T
           Don’t show the title on startup.

       -V
           Produce verbose output, including all filesystem-specific commands
           that are executed.

       -?, --help
           Display help text and exit.

       --version
           Display version information and exit.

FILESYSTEM SPECIFIC OPTIONS
       Options which are not understood by fsck are passed to the
       filesystem-specific checker!

       These options must not take arguments, as there is no way for fsck to be
       able to properly guess which options take arguments and which don’t.

       Options and arguments which follow the -- are treated as
       filesystem-specific options to be passed to the filesystem-specific
       checker.

       Please note that fsck is not designed to pass arbitrarily complicated
       options to filesystem-specific checkers. If you’re doing something
       complicated, please just execute the filesystem-specific checker
       directly. If you pass fsck some horribly complicated options and
       arguments, and it doesn’t do what you expect, don’t bother reporting it
       as a bug. You’re almost certainly doing something that you shouldn’t be
       doing with fsck. Options to different filesystem-specific fsck’s are not
       standardized.

ENVIRONMENT
       The fsck program’s behavior is affected by the following environment
       variables:

       FSCK_FORCE_ALL_PARALLEL

Title: fsck Options: Controlling Execution, Output, and Passing Options to Filesystem-Specific Checkers
Summary
This section describes fsck options including: '-M' for skipping mounted filesystems, '-N' for a dry run, '-P' for parallel root filesystem checks (with caveats), '-R' for skipping the root filesystem, '-T' for suppressing the title, and '-V' for verbose output. It also details how fsck handles filesystem-specific options passed to the underlying checkers, emphasizing the importance of not using complex options and warning against reporting unexpected behavior as bugs.