ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 99 - XK0-005 discussion

Report
Export

A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two.)

A.
Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
Answers
A.
Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.
B.
Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.
Answers
B.
Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.
C.
Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.
Answers
C.
Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.
D.
Interrupt the boot process in the GRUB menu and add single=user in the kernel line.
Answers
D.
Interrupt the boot process in the GRUB menu and add single=user in the kernel line.
E.
Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
Answers
E.
Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.
F.
Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.
Answers
F.
Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.
Suggested answer: C, F

Explanation:

The administrator can use the following two options to boot the system into the single user mode:

Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.

This option will boot the system into the rescue mode, which is a minimal environment that allows the administrator to perform basic tasks such as repairing the system. The GRUB menu is a screen that appears when the system is powered on and allows the administrator to choose which kernel or operating system to boot. The kernel line is a line that specifies the parameters for the kernel, such as the root device, the init system, and the boot options. The administrator can interrupt the boot process by pressing the e key in the GRUB menu and edit the kernel line by adding systemd.unit=rescue.target at the end. This option will tell the system to use the rescue target, which is a unit that defines the state of the system in the rescue mode. The administrator can then press Ctrl+X to boot the system with the modified kernel line. This option will boot the system into the single user mode and allow the administrator to troubleshoot the issues.

Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.

This option will boot the system into the single user mode, which is a mode that allows the administrator to log in as the root user and perform maintenance tasks. The GRUB menu and the kernel line are the same as the previous option. The administrator can interrupt the boot process by pressing the e key in the GRUB menu and edit the kernel line by adding systemd.unit=single.target at the end. This option will tell the system to use the single target, which is a unit that defines the state of the system in the single user mode. The administrator can then press Ctrl+X to boot the system with the modified kernel line. This option will boot the system into the single user mode and allow the administrator to troubleshoot the issues.

The other options are incorrect because they either do not boot the system into the single user mode (execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot or interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line) or do not use the correct syntax (interrupt the boot process in the GRUB menu and add single=user in the kernel line or interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 8:

Managing the Linux Boot Process, pages 267-268.

asked 02/10/2024
Suraj Porwal
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first