FSCK.BTRFS(8)
π
FSCK.BTRFS β it's a fsck.btrfs(8) situation, bestie
okay so first things first, this is a page from the BTRFS section 8 of the manual, and it's about a little utility called fsck.btrfs. and listen. the tea is that it does literally nothing. successfully. iconic behaviour, honestly. π
β¨ NAME β¨
fsck.btrfs β do nothing, successfully
yes bestie you read that right, that's the whole job π
β¨ SYNOPSIS β¨
fsck.btrfs [-aApy] [<device>...]
β¨ DESCRIPTION β¨
so like, fsck.btrfs is the kind of utility that's just supposed to exist for any filesystem, periodt. it gets called during system setup when the matching /etc/fstab entries have a non-zero value for fs_passno. if you wanna know more about that, go check out fstab(5) over at <https://man7.org/linux/man-pages/man5/fstab.5.html>. π«Ά
like, traditional filesystems need to run their own respective fsck utility in case the filesystem wasn't unmounted cleanly and the log needs to be replayed before mount. BTRFS does not need this. you should set fs_passno to 0. that's it, that's the vibe. π
ngl if you're sitting there wanting to actually check the consistency of a BTRFS filesystem, or repair a damaged one, that's a whole different girl β go seebtrfs-check(8). by default filesystem consistency is checked, and the repair mode gets enabled via the--repairoption. (use with care!) seriously bestie, with care.
β¨ OPTIONS β¨
the options are all the same, okay? all of them. what they do is detect if fsck.btrfs is being executed in non-interactive mode and then exits with success. otherwise it prints a message about btrfs check. that's the entire plot. no cap. π
β¨ EXIT STATUS β¨
there are exactly two possible exit codes that get returned, so let's go:
0β No error β¨8β Operational error, e.g. device does not exist π
β¨ FILES β¨
/etc/fstab
β¨ SEE ALSO β¨
btrfs(8)fsck(8)β <https://man7.org/linux/man-pages/man8/fsck.8.html>fstab(5)β <https://man7.org/linux/man-pages/man5/fstab.5.html>
okay and that's the whole page bestie, we ate and left no crumbs. π this was version 7.3, dated Oct 24, 2026 β love that for us. now go set your fs_passno to 0 and live your best life, mwah π
ππ§
π¦ where this page comes from
- arch rolling: btrfs-progs 7.3-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms