forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
btrfs-scrub: add page (tldr-pages#5104)
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# btrfs scrub | ||
|
||
> Scrub btrfs filesystems to verify data integrity. | ||
> It is recommended to run a scrub once a month. | ||
> More information: <https://btrfs.wiki.kernel.org/index.php/Manpage/btrfs-scrub>. | ||
- 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 {{path/to/btrfs_mount}}` |