FSCK.F2FS(8)
okay bestie, welcome to the fsck.f2fs(8) manual page β the System Manager's Manual one π it's all about checking a Linux F2FS file system, and yes it's exactly as iconic as it sounds.
β¨ NAME β¨
fsck.f2fs β check a Linux F2FS file system. that's the name, no cap π«Ά
π SYNOPSIS π
fsck.f2fs [ -a enable auto fix ] [ -f enable force fix ] [ -H ] [ -M show file map ] [ -p enable preen mode ] [ -t show stored directory tree ] [ -d debugging-level ] device
π¦ DESCRIPTION π¦
okay so fsck.f2fs is the bestie that checks an f2fs file system (usually it's hanging out on a disk partition). the device is the special file corresponding to the device, like /dev/sdXX β literally that.
the exit code returned by fsck.f2fs is 0 on success and -1 on failure. periodt π
πΈ OPTIONS πΈ
-a enable auto fixβ turns on auto-fix mode: it runs the file system check only if a bug was reported by the F2FS kernel module. it's disabled by default, bestie π-f enable force fixβ enables fixing all the inconsistency in the partition. yes, "inconsistency" β keeping the original wording, not me being weird π-Hβ specify support write hint. that's the whole vibe β¨-M show files mapβ enables showing all the filenames and inode numbers stored in the image. lowkey useful π-p enable preen modeβ same as"-a"to support general fsck convention.-t show stored directory treeβ enables showing every directory entries in the partition. every single one, no skipping π-d debugging-levelβ specify the level of debugging options. the default number is0, which shows basic debugging messages.-Nβ answer"No"for all questsions. (their spelling, not mine π)--nolinear-lookupβ tune linear lookup fallback, must specify an argument:0enables linear lookup,1disables linear lookup. for android case, it will disable linear lookup by default.--fault_injection=%d enable fault injectionβ enable fault injection in all supported types with specified injection rate.--fault_type=%d configure fault injection typeβ support configuring fault injection type, should be enabled withfault_injectionoption. fault type value is shown below, and it supports single or combined type π₯
=========================== ===========
Type_Name Type_Value
=========================== ===========
FAULT_SEG_TYPE 0x00000001
FAULT_SUM_TYPE 0x00000002
FAULT_SUM_ENT 0x00000004
FAULT_NAT 0x00000008
FAULT_NODE 0x00000010
FAULT_XATTR_ENT 0x00000020
FAULT_COMPR 0x00000040
FAULT_INODE 0x00000080
FAULT_DENTRY 0x00000100
FAULT_DATA 0x00000200
FAULT_QUOTA 0x00000400
π AUTHOR π
initial checking code was written by Byoung Geun Kim <bgbg.kim@samsung.com>. Jaegeuk Kim <jaegeuk@kernel.org> reworked most parts of the codes to support fixing any corrupted images. kings πβ¨
π AVAILABILITY π
fsck.f2fs is available from git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git β go get it, bestie π«Ά
π§ SEE ALSO π§
peace out from the FSCK.F2FS(8) footer, bestie β that's the end of the page, signed FSCK.F2FS(8), no extra date shown in the original πβ¨
π¦ where this page comes from
- arch rolling: f2fs-tools 1.17.0-1 Β· GPL-2.0-only AND (GPL-2.0-only OR LGPL-2.1-only)
- Copyright (c) 2013 Samsung Electronics Co., Ltd
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms