Chapter 18. Essential Troubleshooting Skills Flashcards
Which key do you need to press to enter the GRUB boot menu editor mode?
Press e to enter the GRUB boot menu editor mode.
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?
An error in /etc/fstab prevents the fsck command on that file system from finishing successfully.
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?
Pass systemd.unit=rescue.target to the kernel to enter a mode that provides access to most of the machine’s functionality.
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?
Start from a rescue system.
You want to find out which units are available in a specific troubleshooting environment. Which command would you use?
systemctl list-units shows which units are available in a specific troubleshooting environment.
You want to start troubleshooting a lost root password. Which argument would you pass to the GRUB 2 boot loader?
Pass rd.break to the GRUB 2 boot loader to start troubleshooting a lost root password
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?
load_policy -i loads the SELinux policy.
While troubleshooting the root password, what do you need to do to make sure the SELinux labels are set correctly?
chcon -t shadow_t /etc/shadow ensures that the SELinux labels are set correctly.
You have applied changes to the GRUB 2 boot loader and want to save them. How do you do that?
grub2-mkconfig -o /boot/grub2/grub.cfg saves changes applied to the GRUB 2 boot loader.
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?
systemd.unit=emergency.target enters the most minimal troubleshooting mode.