fsck.ext4 [-pf] [-b 超级区块] 设备名称
针对ext4型文件系统进行检测。
[root@192 /]# fsck.ext4 /dev/sdb2
e2fsck 1.42.9 (28-Dec-2013)
/dev/sdb2: clean, 11/65536 files, 12955/262144 blocks
[root@192 /]# dumpe2fs -h /dev/sdb2 | grep 'Blocks per group'
dumpe2fs 1.42.9 (28-Dec-2013)
Blocks per group: 32768
[root@192 /]# fsck.ext4 -b 32768 /dev/sdb2
e2fsck 1.42.9 (28-Dec-2013)
/dev/sdb2 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdb2: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sdb2: 11/65536 files (0.0% non-contiguous), 12955/262144 blocks