System Management
The kernel log shows I/O errors for an ext4 filesystem on /dev/sdc1, which is mounted at /data. Which action checks and repairs the filesystem safely?
Show the answer
Correct answerC. Unmount /data, then run fsck.ext4 -f /dev/sdc1
A filesystem must be unmounted before fsck.ext4 repairs it, and a forced check covers ext4 metadata. Running a repair on a mounted filesystem is tempting to avoid downtime but can corrupt data. xfs_repair is for XFS only, and resize2fs changes size, not integrity.