CompTIA Linux+ XK0-006 (V8) Practice Question

A production database server lost power unexpectedly. After it reboots you see the following kernel messages in the system console:

EXT4-fs error (device /dev/sdb1): ext4_lookup: deleted inode referenced: 184844
EXT4-fs (sdb1): Remounting filesystem read-only

The logical volume /dev/sdb1, which contains /var/lib, is now mounted read-only. SMART tests report no hardware problems.

Which action should you take first to correct the data-corruption issue and return the server to normal operation with minimal additional risk to the data?

  • Remount the partition with mount -o rw,discard /dev/sdb1 so that the ext4 journal can finish replaying.

  • Run smartctl -t long /dev/sdb1 and, if the disk passes, continue normal multi-user operation without further action.

  • Boot into single-user or rescue mode and run fsck.ext4 -f /dev/sdb1, allowing it to repair any inconsistencies it finds.

  • Overwrite the first 100 MB of the partition with dd if=/dev/zero of=/dev/sdb1 bs=1M count=100 and then recreate the filesystem.

CompTIA Linux+ XK0-006 (V8)
Troubleshooting
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot