A Linux system administrator needs to check an ext4 filesystem for errors and attempt to repair any issues found on an unmounted partition. Which of the following commands is the primary utility for this task?
The fsck (file system consistency check) command is the standard utility used to check and repair filesystem errors on Linux. It is a front-end for various filesystem-specific checkers (e.g., e2fsck for ext4). The fdisk and parted commands are used for managing disk partitions, not for checking the integrity of the data within a filesystem. The mkfs command is used to create a new filesystem on a partition, which would destroy any existing data.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are the prerequisites for using the fsck command?
Open an interactive chat with Bash
What is the difference between e2fsck and fsck?
Open an interactive chat with Bash
How does fsck handle different types of filesystem errors?