Bookmark this page

Guided Exercise: Practice: Repairing a Boot Loader Problem

In this lab, you will repair an issue with the boot loader configuration on one of your machines.

Resources:
Machines: serverX

Outcomes:

A machine that boots normally without user intervention.

  • Reset your serverX system.

  • Log in and set up your serverX system:

    [student@serverX ~]$ lab bootbreakgrub setup

One of your former co-workers was experimenting with speeding up the boot process on one of your machines. After a number of failed attempts, you have now been tasked with repairing the damage done.

  1. Look at the console of your serverX machine, then reboot the machine and interrupt the boot loader countdown timer.

    1. Send a Ctrl+Alt+Del to your system using the relevant button or menu entry.

    2. When the boot loader menu appears, press any key to interrupt the countdown.

  2. Move the cursor to the default boot entry, then press e to edit that entry. Inspect the configuration closely, looking for anything that seems out of the ordinary.

  3. Find the line that is blocking the boot process, modify it, then boot with these changes.

    1. os16 is not a valid grub directive. Change it to linux16.

    2. Press Ctrl+x to boot your system with the modified configuration.

  4. Wait for the system to boot, log in as student, elevate your privileges to root, then generate a new grub2 configuration. Do not immediately overwrite the existing configuration, but inspect the new config first.

    1. [student@serverX ~]$ sudo -i
      [root@serverX ~]# grub2-mkconfig
    2. Scroll through the output to see if it looks like a valid grub2 configuration.

    3. Commit the configuration to disk.

      [root@serverX ~]# grub2-mkconfig > /boot/grub2/grub.cfg
  5. Reboot your machine, and check if it boots normally again without user intervention.

    1. [root@serverX ~]# systemctl reboot
Revision: rh134-7-63a207e