fsck.f2fs8
Check a linux f2fs file system
Usage
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
Overview
fsck.f2fs is used to check an f2fs file system (usually in a disk partition). device is the special file corresponding to the device (e.g. /dev/sdXX).
The exit code returned by fsck.f2fs is 0 on success and -1 on failure.
Options
-aenable auto fix-
Enable to run file system check only if a bug was reported by the F2FS kernel module. It is disabled by default.
-fenable force fix-
Enable to fix all the inconsistency in the partition.
-
-H -
Specify support write hint.
-Mshow files map-
Enable to show all the filenames and inode numbers stored in the image
-penable preen mode-
Same as "-a" to support general fsck convention.
-tshow stored directory tree-
Enable to show every directory entries in the partition.
-ddebug-level-
Specify the level of debugging options. The default number is 0, which shows basic debugging messages.
-
-N -
Answer "No" for all questsions.
-
--nolinear-lookup -
Tune linear lookup fallback, must specify an argument, 0: enable linear lookup, 1: disable linear lookup. For android case, it will disable linear lookup by default.
--fault_injection=%denable fault injection-
Enable fault injection in all supported types with specified injection rate.
--fault_type=%dconfigure fault injection type-
Support configuring fault injection type, should be enabled with fault_injection option, fault type value is shown below, 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
- Initial checking code was written by Byoung Geun Kim <[email protected]>.
Releases
6 releases since Debian 9 (Stretch); the text changed 2 times.
--nolinear-lookup since Arch Linux 2026-11-01;
-H since Arch Linux 2026-11-01;
-N since Arch Linux 2026-11-01.