exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 59 discussion

Actual exam question from CompTIA's XK0-005
Question #: 59
Topic #: 1
[All XK0-005 Questions]

A Linux system fails to start and delivers the following error message:

Which of the following commands can be used to address this issue?

  • A. fsck.ext4 /dev/sda1
  • B. partprobe /dev/sda1
  • C. fdisk /dev/sda1
  • D. mkfs.ext4 /dev/sda1
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 5 months ago
The fsck.ext4 command is used to check and repair file system errors on an ext4 file system. In this case, the command is checking the file system located on /dev/sda1. The fsck.ext4 utility is used to detect and correct file system inconsistencies, such as corrupt or lost inodes, missing block groups, and other issues. It's typically run automatically by the operating system during system boot, or manually by the administrator when file system problems are suspected. By running the fsck.ext4 /dev/sda1 command, the administrator is checking the ext4 file system on the first partition of the first SATA disk (/dev/sda1) for any errors. If any problems are found, fsck.ext4 will attempt to repair them. It's important to note that running fsck.ext4 on a mounted file system can cause data loss, so it's recommended to run it on an unmounted file system or in a maintenance mode.
upvoted 6 times
...
RayRay2
Most Recent 2 weeks ago
Selected Answer: A
The correct answer is A. fsck.ext4 /dev/sda1. Here's why: The fsck.ext4 command is used to check and repair an ext4 filesystem. When a Linux system fails to start and provides an error message related to filesystem issues, running fsck.ext4 /dev/sda1 will check the integrity of the filesystem on /dev/sda1 and attempt to fix any detected errors. Here's a brief explanation of the other options: B. partprobe /dev/sda1: This command informs the operating system of partition table changes but does not check or repair filesystems. C. fdisk /dev/sda1: This command is used for partitioning disks, not for checking or repairing filesystems. D. mkfs.ext4 /dev/sda1: This command creates a new ext4 filesystem on the specified partition, which would erase all existing data on /dev/sda1, so it is not suitable for repair purposes.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago