Home > Articles

Managing and Understanding the Boot Procedure

In this sample chapter from Red Hat RHCSA 8 Cert Guide: EX200, explore how the boot procedure on Red Hat Enterprise Linux is organized, including how to use Systemd targets to boot your Linux system into a specific state and how to apply changes to the GRUB 2 boot loader.

This chapter is from the book

This chapter is from the book

The following topics are covered in this chapter:

  • Managing Systemd Targets

  • Working with GRUB 2

The following RHCSA exam objectives are covered in this chapter:

  • Configure systems to boot into a specific target automatically

  • Modify the system bootloader

In this chapter, you learn how the boot procedure on Red Hat Enterprise Linux is organized. In the first part of this chapter, you learn about Systemd targets and how you can use them to boot your Linux system into a specific state. The second part of this chapter discusses GRUB2 and how to apply changes to the GRUB 2 boot loader. Troubleshooting is not a topic in this chapter; it is covered in Chapter 18, “Essential Troubleshooting Skills.”

“Do I Know This Already?” Quiz

The “Do I Know This Already?” quiz allows you to assess whether you should read this entire chapter thoroughly or jump to the “Exam Preparation Tasks” section. If you are in doubt about your answers to these questions or your own assessment of your knowledge of the topics, read the entire chapter. Table 17-1 lists the major headings in this chapter and their corresponding “Do I Know This Already?” quiz questions. You can find the answers in Appendix A, “Answers to the ‘Do I Know This Already?’ Quizzes and ‘Review Questions.’”

Table 17-1 “Do I Know This Already?” Section-to-Question Mapping

Foundation Topics Section

Questions

Working with Systemd

1–7

Working with GRUB 2

8–10

  1. Which of the following is the most efficient way to define a system want?

    1. Use the systemctl enable command.

    2. Define the want in the unit file [Service] section.

    3. Create a symbolic link in the /usr/lib/system/system directory.

    4. Create a symbolic link in the unit wants directory in the /etc/system/system directory.

  2. Which target is considered the normal target for servers to start in?

    1. graphical.target

    2. server.target

    3. multi-user.target

    4. default.target

  3. Which of the following is not an example of a system target?

    1. rescue.target

    2. restart.target

    3. multi-user.target

    4. graphical.target

  4. Where do you define which target a unit should be started in if it is enabled?

    1. The target unit file

    2. The wants directory

    3. The systemctl.conf file

    4. The [Install] section in the unit file

  5. To allow targets to be isolated, you need a specific statement in the target unit file. Which of the following describes that statement?

    1. AllowIsolate

    2. Isolate

    3. SetIsolate

    4. Isolated

  6. An administrator wants to change the current multi-user.target to the rescue.target. Which of the following should she do?

    1. Use systemctl isolate rescue.target

    2. Use systemctl start rescue.target

    3. Restart the system, and from the GRUB boot prompt specify that rescue.target should be started

    4. Use systemctl enable rescue.target --now

  7. To which System V runlevel does multi-user.target correspond?

    1. 2

    2. 3

    3. 4

    4. 5

  8. What is the name of the file where you should apply changes to the GRUB 2 configuration?

    1. /boot/grub/menu.lst

    2. /boot/grub2/grub.cfg

    3. /etc/sysconfig/grub

    4. /etc/default/grub

  9. After applying changes to the GRUB 2 configuration, you need to write those changes. Which of the following commands will do that for you?

    1. grub2 -o /boot/grub/grub.cfg

    2. grub2-mkconfig > /boot/grub2/grub.cfg

    3. grub2 > /boot/grub2/grub.cfg

    4. grub2-install > /boot/grub2/grub.cfg

  10. What is the name of the GRUB2 configuration file that is generated on a UEFI system?

    1. /boot/efi/redhat/grub.cfg

    2. /boot/efi/EFI/redhat/grub.cfg

    3. /boot/EFI/grub.cfg

    4. /boot/EFI/efi/grub.cfg

Answers

  1. A. The systemctl enable command creates a want for the current unit in the target that is listed in the [Install] section in the service unit file.

  2. C. Servers typically don’t run a graphical interface and will start the multi-user.target.

  3. B. There is no restart.target.

  4. D. Unit files contain an [Install] section that is used to specify in which target the unit should be started.

  5. A. The required statement is AllowIsolate. All other statements mentioned here are invalid.

  6. A. To switch from a target with more unit files to a target with fewer unit files, use systemctl isolate.

  7. B. The multi-user.target corresponds roughly to runlevel 3 as used in a System V environment.

  8. D. Changes to GRUB 2 need to be applied to /etc/default/grub, not to /boot/grub2/grub.cfg. The /boot/grub2/grub.cfg file cannot be edited directly; you have to apply changes to /etc/default/grub and run the grub2-mkconfig command to write them to the appropriate configuration file.

  9. B. The grub2-mkconfig command enables you to regenerate the GRUB 2 configuration. The result, by default, is echoed to the screen. Use redirection to write it to a file.

  10. B. The /boot/efi/EFI/redhat/grub.cfg file is used to store the GRUB 2 bootloader on a UEFI system.

vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |