| 1 |
.\" Man page generated from reStructuredText |
| 2 |
.\" by the Docutils 0.22.4 manpage writer. |
| 3 |
. |
| 4 |
. |
| 5 |
.nr rst2man-indent-level 0 |
| 6 |
. |
| 7 |
.de1 rstReportMargin |
| 8 |
\\$1 \\n[an-margin] |
| 9 |
level \\n[rst2man-indent-level] |
| 10 |
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 11 |
- |
| 12 |
\\n[rst2man-indent0] |
| 13 |
\\n[rst2man-indent1] |
| 14 |
\\n[rst2man-indent2] |
| 15 |
.. |
| 16 |
.de1 INDENT |
| 17 |
.\" .rstReportMargin pre: |
| 18 |
. RS \\$1 |
| 19 |
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] |
| 20 |
. nr rst2man-indent-level +1 |
| 21 |
.\" .rstReportMargin post: |
| 22 |
.. |
| 23 |
.de UNINDENT |
| 24 |
. RE |
| 25 |
.\" indent \\n[an-margin] |
| 26 |
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 27 |
.nr rst2man-indent-level -1 |
| 28 |
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] |
| 29 |
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u |
| 30 |
.. |
| 31 |
.TH "FSCK.BTRFS" "8" "May 10, 2026" "7.0" "BTRFS" |
| 32 |
.SH NAME |
| 33 |
fsck.btrfs \- do nothing, successfully |
| 34 |
.SH SYNOPSIS |
| 35 |
.sp |
| 36 |
\fBfsck.btrfs\fP [\-aApy] [<device>...] |
| 37 |
.SH DESCRIPTION |
| 38 |
.sp |
| 39 |
\fBfsck.btrfs\fP is a type of utility that should exist for any filesystem and is |
| 40 |
called during system setup when the corresponding \fB/etc/fstab\fP entries |
| 41 |
contain non\-zero value for \fIfs_passno\fP, see fstab(5) \%<https://\:man7\:.org/\:linux/\:man-pages/\:man5/\:fstab\:.5\:.html> for more. |
| 42 |
.sp |
| 43 |
Traditional filesystems need to run their respective fsck utility in case the |
| 44 |
filesystem was not unmounted cleanly and the log needs to be replayed before |
| 45 |
mount. This is not needed for BTRFS. You should set fs_passno to 0. |
| 46 |
.sp |
| 47 |
If you wish to check the consistency of a BTRFS filesystem or repair a damaged |
| 48 |
filesystem, see btrfs\-check(8) \%<>\&. By default filesystem consistency is checked, |
| 49 |
the repair mode is enabled via the \fI\-\-repair\fP option (use with care!). |
| 50 |
.SH OPTIONS |
| 51 |
.sp |
| 52 |
The options are all the same and detect if \fBfsck.btrfs\fP is executed in |
| 53 |
non\-interactive mode and exits with success, otherwise prints a message about |
| 54 |
btrfs check. |
| 55 |
.SH EXIT STATUS |
| 56 |
.sp |
| 57 |
There are two possible exit codes returned: |
| 58 |
.INDENT 0.0 |
| 59 |
.TP |
| 60 |
.B 0 |
| 61 |
No error |
| 62 |
.TP |
| 63 |
.B 8 |
| 64 |
Operational error, e.g. device does not exist |
| 65 |
.UNINDENT |
| 66 |
.SH FILES |
| 67 |
.sp |
| 68 |
\fB/etc/fstab\fP |
| 69 |
.SH SEE ALSO |
| 70 |
.sp |
| 71 |
btrfs(8) \%<>, |
| 72 |
fsck(8) \%<https://\:man7\:.org/\:linux/\:man-pages/\:man8/\:fsck\:.8\:.html>, |
| 73 |
fstab(5) \%<https://\:man7\:.org/\:linux/\:man-pages/\:man5/\:fstab\:.5\:.html> |
| 74 |
.\" End of generated man page. |