OS Manuals

/usr/bin/xfs_scrub

XFS filesystem utilities

From xfsprogs-5.10 5.10.0-r48 (enterprise-packages), captured 2026-11-08 by running xfs_scrub --help (exit 8). permalink

/usr/bin/xfs_scrub: invalid option -- '-'
Usage: xfs_scrub [OPTIONS] mountpoint

Options:
  -a count     Stop after this many errors are found.
  -b           Background mode.
  -C fd        Print progress information to this fd.
  -e behavior  What to do if errors are found.
  -k           Do not FITRIM the free space.
  -m path      Path to /etc/mtab.
  -n           Dry run.  Do not modify anything.
  -T           Display timing/usage information.
  -v           Verbose output.
  -V           Print version.
  -x           Scrub file data too.
EXPERIMENTAL xfs_scrub program in use! Use at your own risk!
Options (11)
OptionDescriptionSource
-a countAbort if more than this many errors are found on the filesystem.help + man
-bRun in background mode.help + man
-C fdThis option causes xfs_scrub to write progress information to the specified file description so that the progress of the filesystem check can be monitored.help + man
-e behaviorSpecifies what happens when errors are detected.help + man
-kDo not call TRIM on the free space.help + man
-m pathSearch this file for mounted filesystems instead of /etc/mtab.help + man
-nOnly check filesystem metadata.help + man
-TPrint timing and memory usage information for each phase.help + man
-vEnable verbose mode, which prints periodic status updates.help + man
-VPrints the version number and exits.help + man
-xRead all file data extents to look for disk errors.help + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.