Easy Tutorial
❮ Linux Comm Mingetty Linux Comm Locate ❯

Linux e2fsck Command

Linux Command Manual

The Linux e2fsck command is used to check if a partition using the Linux ext2 file system is functioning correctly.

Syntax

e2fsck [-pacnydfvFV] [-b superblock] [-B blocksize] [-l|-L bad_blocks_file] [-C fd] device

Parameter Description:

Example

Checks if /dev/hda5 is functioning correctly, automatically repairs it if there are any issues, and sets all questions to be answered with "yes":

e2fsck -a -y /dev/hda5

Note:

When using e2fsck to check hard disk partitions, it is usually for special circumstances. Therefore, it is best to unmount the partition first and then execute e2fsck for the check. If it is necessary to check the root partition, enter single-user mode before executing.

Linux Command Manual

❮ Linux Comm Mingetty Linux Comm Locate ❯