# Control the Boot Process ## Dennis Kibbe ### Mesa Community College Note: This slide presentation was created using [Reveal.js](https://revealjs.com). You can access a transcript of this presentation by pressing s for speaker notes. You can access navigation help by pressing the question mark key. Audio for this presentation is artificially generated. --- # Module Outline 1. Introduction 1. Select the Boot Target 1. Guided Exercise 1. Reset the Root Password 1. Guided Exercise 1. Repair File System Issues at Boot 1. Key Takeaways 1. Resources 1. Graded Lab Note: --- # Learning Objectives *After completing the work in this module you will be able to:* 1. Describe the Red Hat Enterprise Linux boot process, set the default target when booting, and boot a system to a non-default target. 1. Log in to a system and change the root password when the current root password is lost. 1. Manually repair file-system configuration or corruption issues that stop the boot process. Note: --- # Introduction ## Control the Boot Process Note: --- # Select the Boot Target Note: --- # Guided Exercise ## Select the Boot Target ![Clipart of two students studying](../images/homework.png) Note: --- # Reset the Root Password Note: --- # Guided Exercise ## Reset the Root Password ![Clipart of two students studying](../images/homework.png) Note: --- # Repair File System Issues at Boot Note: --- # Guided Exercise ## Repair File System Issues at Boot ![Clipart of two students studying](../images/homework.png) Note: --- # Key Takeaways 1. The `systemctl reboot` and `systemctl poweroff` commands reboot and power down a system, respectively. 1. The `systemctl isolate target-name.target` command switches to a new target at runtime. 1. The `systemctl get-default` and `systemctl set-default` commands can be used to query and set the default target. 1. You can use the `rd.break` option on the kernel command line to interrupt the boot process before control is handed over from the `initramfs`. The root file system is mounted read-only under `/sysroot`. 1. The emergency target can be used to diagnose and fix file-system issues. Note: --- # Resources 1. [An introduction to the Linux boot and startup processes](https://opensource.com/article/17/2/linux-boot-and-startup) Note: Here are some resources for the topics covered in this chapter. --- # Graded Lab ## Control the Boot Process ![Clipart of technicians in white lab coats](../images/lab_techs.png) Note: --- ![Mesa Community College logo](../images/mcc_logo.png "Mesa Community College") Note: This ends this slide presentation. I hope you found it useful.