Objective 3: Troubleshooting Boot Loaders

In this section we cover the problems you might come across in the boot stages. Both LILO and GRUB are covered, because you'll need both for the test.

One of the most common installation problems outside of hardware support relates to LILO, the LInux LOader. Occasionally, a disk sector is bad and LILO doesn't install to it properly. Other times, it doesn't work because it was misconfigured.

One of the best ways to troubleshoot your LILO problems is to watch the output of LILO itself. Watch for your LILO prompt. If you don't see any part of the LILO prompt, LILO didn't load. Otherwise, the characters in the prompt tell you how far LILO got:

L

The first-stage boot loader is loaded and started.

LI

The second-stage boot loader is loaded.

LIL

The second-stage boot loader is started.

LIL?

The second-stage boot loader was loaded at an incorrect address.

LIL-

The descriptor table is corrupt.

LILO

All of LILO has been loaded correctly.

A very common problem LILO users run into is forgetting to rerun /sbin/lilo whenever a change is made to /etc/lilo.conf. This problem, along with the cryptic error messages of LILO, was a major factor in the design of GRUB.

GRUB, the GRand Unified Bootloader, is a user-friendly replacement for LILO. GRUB boots in three stages: Stage 1, Stage 1.5, and Stage 2.

Stage 1 errors are typically errors in reading Stage 1.5 or Stage 2 from the disk. Pressing Ctrl-Alt-Del will reboot the system.

A Stage 2 error prints an ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.