1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/btrfs-scrub.md
Managor ae436c1b00
linux/*: add option placeholders (#16192)
* batch1

* batch2

* batch3

* batch4

* Update matchpathcon.md

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/linux/arecord.md

Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
2025-04-19 21:21:53 +00:00

800 B

btrfs scrub

Scrub btrfs filesystems to verify data integrity. It is recommended to run a scrub once a month. More information: https://btrfs.readthedocs.io/en/latest/btrfs-scrub.html.

  • Start a scrub:

sudo btrfs scrub start {{path/to/btrfs_mount}}

  • Show the status of an ongoing or last completed scrub:

sudo btrfs scrub status {{path/to/btrfs_mount}}

  • Cancel an ongoing scrub:

sudo btrfs scrub cancel {{path/to/btrfs_mount}}

  • Resume a previously cancelled scrub:

sudo btrfs scrub resume {{path/to/btrfs_mount}}

  • Start a scrub, but wait until the scrub finishes before exiting:

sudo btrfs scrub start -B {{path/to/btrfs_mount}}

  • Start a scrub in quiet mode (does not print errors or statistics):

sudo btrfs scrub start {{[-q|--quiet]}} {{path/to/btrfs_mount}}