exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 88 discussion

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

A Linux system is failing to boot with the following error:

Which of the following actions will resolve this issue? (Choose two.)

  • A. Execute grub-install --root-directory=/mnt and reboot.
  • B. Execute grub-install /dev/sdX and reboot.
  • C. Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
  • D. Fix the partition modifying /etc/default/grub and reboot.
  • E. Interrupt the boot process in the GRUB menu and add single to the kernel line.
  • F. Boot the system on a LiveCD/ISO.
Show Suggested Answer Hide Answer
Suggested Answer: BF 🗳️

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
hackeriam1
1 day, 17 hours ago
Selected Answer: AF
So What’s the "CompTIA-Correct" Answer? According to CompTIA exam philosophy: F. Boot system on a LiveCD/ISO → ✔️ Absolutely correct and expected A. grub-install --root-directory=/mnt and reboot → ✔️ Also correct in the eyes of the exam ⚠️ Why Not B on the Exam? grub-install /dev/sdX assumes a working mount or chroot — CompTIA wants the “safe, explicit method”. They want to see you understand the full GRUB repair process: Boot LiveCD Mount system manually Use --root-directory=/mnt to avoid chrooting Even though B is technically valid, CompTIA tends to prefer explicit and less assumption-based commands.
upvoted 1 times
...
Rob74613
4 months, 2 weeks ago
Selected Answer: BF
B. Execute grub-install /dev/sdX and reboot. This command reinstalls the GRUB bootloader on the specified disk (/dev/sdX). Replace /dev/sdX with the appropriate device identifier for the system's boot disk (e.g., /dev/sda, /dev/nvme0n1). After executing the command, reboot the system and check if it successfully boots. F. Boot the system on a LiveCD/ISO. Booting the system from a LiveCD/ISO allows you to access the system's filesystem and repair the GRUB bootloader. Once booted into the LiveCD/ISO environment, you can mount the system's root partition, chroot into it, and then reinstall GRUB using the appropriate commands (e.g., grub-install and update-grub). After performing the necessary repairs, restart the system and check if it boots correctly.
upvoted 2 times
...
LKRISB
5 months ago
B. Execute grub-install /dev/sdX and reboot. This action involves reinstalling the GRUB bootloader on the specified device (/dev/sdX). By reinstalling GRUB, it can help resolve any issues related to the bootloader and allow the system to boot successfully. F. Boot the system on a LiveCD/ISO. Booting the system using a LiveCD/ISO allows accessing the system's filesystem from an external environment. Once booted into the LiveCD/ISO, you can perform various troubleshooting steps such as checking the filesystem, repairing any errors, or modifying configuration files if necessary.
upvoted 1 times
...
linux_admin
8 months, 1 week ago
Selected Answer: BF
Option F "Boot the system on a LiveCD/ISO" would help along with option B, as booting the system on a LiveCD/ISO would allow the administrator to access the file system and make necessary changes to fix the issue. Additionally, the administrator could use the bootable LiveCD/ISO to run the grub-install command with the appropriate arguments, such as "/dev/sdX" (Option B), to install GRUB on the appropriate disk. This would help resolve the issue with the missing partition and allow the system to boot properly.
upvoted 4 times
...
KnifeClown1
8 months, 1 week ago
Selected Answer: BF
B)Execute grub-install /dev/sdX and reboot. F)Boot the system on a LiveCD/ISO.
upvoted 1 times
...
Ckl22
9 months, 3 weeks ago
Selected Answer: BF
I think its BF, but most resources state to: 1. Boot from live CD or ISO 2. Mount root partition 3. Reinstall GRUB
upvoted 1 times
...
TheRealManish
10 months, 4 weeks ago
Does anyone have any idea if B and D are correct?
upvoted 2 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