XK0-006 Troubleshooting Practice Question
A server running RHEL 8 fails to boot with a 'Dependency failed for /data' error. The /data filesystem is an ext4 partition on /dev/sdb1. Which sequence of steps should be taken to repair the filesystem?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Boot into rescue mode, run 'umount /dev/sdb1', then 'fsck.ext4 -f /dev/sdb1'
To repair a filesystem, it must be unmounted; using a rescue environment (e.g., systemd emergency target) ensures the partition is not in use.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use 'xfs_repair /dev/sdb1' since it's ext4
Why it's wrong here
xfs_repair is for XFS, not ext4.
- ✗
Run 'fsck.ext4 -f /dev/sdb1' from the running system
Why it's wrong here
Cannot fsck a mounted filesystem.
- ✗
Remount the filesystem as read-only and run fsck
Why it's wrong here
Even read-only mount may prevent fsck; safer to unmount.
- ✓
Boot into rescue mode, run 'umount /dev/sdb1', then 'fsck.ext4 -f /dev/sdb1'
Why this is correct
Rescue mode ensures filesystem unmounted; fsck repairs it.
Go deeper
Related to this question
Learn chapter
Navigating the Filesystem
Key term
Dependency
A dependency is a piece of software, library, or package that another software application requires in order to function correctly.
Key term
systemd
systemd is a system and service manager for Linux operating systems that initializes and manages processes, services, and system resources after the kernel boots.
About these practice questions
One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.