Chapter 18. Essential Troubleshooting Skills Flashcards

1
Q

Which key do you need to press to enter the GRUB boot menu editor mode?

A

Press e to enter the GRUB boot menu editor mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

During startup, the boot procedure is not completed and the server asks for the root password instead. What is likely to be the reason of this?

A

An error in /etc/fstab prevents the fsck command on that file system from finishing successfully.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

You want to enter troubleshooting mode, but you do not know the root password. Which argument would you pass to the kernel to enter a mode that provides access to most of the machine’s functionality?

A

Pass systemd.unit=rescue.target to the kernel to enter a mode that provides access to most of the machine’s functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

You start your server and nothing happens. You just see a blinking cursor and that’s all. What is the first step to troubleshoot this issue?

A

Start from a rescue system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

You want to find out which units are available in a specific troubleshooting environment. Which command would you use?

A

systemctl list-units shows which units are available in a specific troubleshooting environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

You want to start troubleshooting a lost root password. Which argument would you pass to the GRUB 2 boot loader?

A

Pass rd.break to the GRUB 2 boot loader to start troubleshooting a lost root password

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

From the shell that you have started to troubleshoot a lost password for user root, you want to load the SELinux policy. Which command enables you to do that?

A

load_policy -i loads the SELinux policy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

While troubleshooting the root password, what do you need to do to make sure the SELinux labels are set correctly?

A

chcon -t shadow_t /etc/shadow ensures that the SELinux labels are set correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

You have applied changes to the GRUB 2 boot loader and want to save them. How do you do that?

A

grub2-mkconfig -o /boot/grub2/grub.cfg saves changes applied to the GRUB 2 boot loader.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

You do know the root password on a machine where you want to enter the most minimal troubleshooting mode. Which GRUB 2 boot argument would you use?

A

systemd.unit=emergency.target enters the most minimal troubleshooting mode.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly