fsck.ocfs2(8)
๐ fsck.ocfs2 โ the OCFS2 file system check bestie ๐
okay so this is the fsck.ocfs2 page from the OCFS2 Manual Pages and honestly? it's a lot, but we're gonna get through it together, no cap. ๐ซถ
โจ NAME โจ
fsck.ocfs2 โ check an OCFS2 file system. that's it, that's the whole vibe. it's the girl who walks in and goes "soโฆ what's going on in here" and then actually fixes it. ๐
๐ธ SYNOPSIS ๐ธ
fsck.ocfs2 [ -pafFGnuvVy ] [ -b superblock block ] [ -B block size ]
device
๐ฆ DESCRIPTION ๐ฆ
fsck.ocfs2 is literally the tool you use to check an OCFS2 file system. it looks at your filesystem, finds the mess, and (depending on your flags) cleans it up.
device is the file where the file system is stored, like /dev/sda1 for example. and lowkey, it's almost always gonna be a device file โ but a regular file works too, so don't stress. ๐
๐ OPTIONS ๐
-aโ this one does the exact same thing as-p. it's only still here for backwards compatibility, periodt. the docs literally suggest you use-pwhenever you can instead of this. so likeโฆ use-p. ๐-bsuperblock block โ normallyfsck.ocfs2reads the superblock from the first block of the device, like a good girl. this option lets you specify an alternate block for it to read the superblock from instead. (use-rinstead of this option, though โ that's the word from on high. ๐)-Bblocksize โ the block size, in bytes, can range from512to4096. a value of0โ which is the default โ means "auto-detect the blocksize for me bestie". โจ-Dโ optimize directories in the filesystem. this makesfsck.ocfs2coalesce the directory entries so the filesystem performance gets better. glow-up for your directories, fr fr. ๐ฅ-fโ force checking even if the file system is clean. like, "i don't care that you said you're fine, we're checking anyway." ๐-Fโ by defaultfsck.ocfs2checks in with the cluster services to make sure the volume isn't in-use (mounted) on any node in the cluster before it proceeds.-Fskips that check entirely and should only be used when you can guarantee the volume isn't mounted on any node in the cluster.
โ ๏ธ WARNING: if the cluster check is disabled and the volume is mounted on one or more nodes, file system corruption is very likely. if you're unsure, do not use this option. i'm so serious, bestie. ๐ญ
-Gโ usuallyfsck.ocfs2will silently assume that inodes whose generation number doesn't match the generation number of the super block are unused inodes. this option makes it ask you whether those inodes should actually be marked unused. it's giving "let the girl decide." ๐ง-nโ gives the'no'answer to every questionfsckwill ask. this guarantees the file system will not be modified and the device will be opened read-only. bonus: the output offsck.ocfs2with this option can be redirected to produce a record of a file system's faults. very "just here to observe, not to participate." ๐-pโ automatically repair ("preen") the file system. this makesfsck.ocfs2automatically fix any problem that can be safely corrected without human intervention. if there are problems that do require intervention, the descriptions get printed andfsck.ocfs2exits with the value4logically or'd into the exit code. (see the EXIT CODE section, babes.) this option is normally used by the system's boot scripts. ๐-Pโ show progress. we love a little progress bar moment. โญ-rbackup-number โmkfs.ocfs2makes up to6backup copies of the superblock at offsets1G,4G,16G,64G,256Gand1T, depending on the size of the volume. use this option to specify which backup โ1thru6โ to use to recover the superblock. ๐-tโ show I/O statistics. and if you specify this option twice, it shows the statistics on a pass by pass basis. double the flag, double the stats. ๐-yโ gives the'yes'answer to all questions thatfsckwill ask. this will repair all faults thatfsck.ocfs2finds, but it will not give the operator a chance to intervene iffsck.ocfs2decides that it wants to drastically repair the file system. so likeโฆ she's gonna do what she's gonna do. ๐ณ-vโ this option causesfsck.ocfs2to produce a very large amount of debugging output. it's giving "verbose" and it is not playing around. ๐-Vโ print version information and exit. bye bestie! ๐
๐ EXIT CODE ๐
the exit code returned by fsck.ocfs2 is the sum of the following conditions:
0 - No errors
1 - File system errors corrected
2 - File system errors corrected, system should
be rebooted
4 - File system errors left uncorrected
8 - Operational error
16 - Usage or syntax error
32 - fsck.ocfs2 canceled by user request
128 - Shared library error
it's math, babe. add 'em up. ๐งฎโจ
๐ SEE ALSO ๐
debugfs.ocfs2(8) ยท fsck.ocfs2.checks(8) ยท mkfs.ocfs2(8) ยท mount.ocfs2(8) ยท mounted.ocfs2(8) ยท o2cluster(8) ยท o2image(8) ยท o2info(1) ยท tunefs.ocfs2(8)
go read those too, iykyk. ๐ฆ
๐ AUTHORS ๐
Oracle Corporation. this man page entry derives some text โ especially the exit code summary โ from e2fsck(8) by Theodore Y. Ts'o <tytso@mit.edu>. shoutout to the originals, respect where respect is due. ๐
๐ COPYRIGHT ๐
Copyright ยฉ 2004, 2012 Oracle. All rights reserved.
and that's the whole thing!! Version 1.8.9, dated January 2012 โ written back when some of y'all were literally in diapers, but she still ate and left no crumbs. periodt. ๐โจ๐
๐ฆ where this page comes from
- fedora 44: ocfs2-tools 1.8.9-2.fc44 ยท GPL-2.0-only
- fedora 44: ocfs2-tools 1.8.9-2.fc44 ยท GPL-2.0-only
- ubuntu resolute: ocfs2-tools 1.8.9-1 ยท GPL-2.0-or-later
- ubuntu stonking: ocfs2-tools 1.8.9-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms