Study guide

3.4 Legacy GRUB & Alternative Boot Loaders (102.2)

LPIC-1 Linux Administrator — Exam 101 101-500

Track your progress as you read

Finished sections get a check mark.

1 Exam Overview & Study Strategy

1.1 LPIC-1 101-500 Exam Structure & Blueprint 1.2 Command Line & Shell Fundamentals for Exam Success 1.3 Fill-in-the-Blank Strategies & Common Traps

2 Topic 101: System Architecture

2.1 Hardware Discovery, Sysfs, Procfs & Kernel Modules (101.1) 2.2 Udev, Dbus & Device Management (101.1) 2.3 BIOS vs. UEFI & System Boot Process (101.2) 2.4 Kernel Initialization, Initramfs & System Logs (101.2) 2.5 Systemd Boot Targets & Unit Management (101.3) 2.6 SysVinit Runlevels, Telinit & System Shutdown (101.3)

3 Topic 102: Linux Installation & Boot Management

3.1 Hard Disk Layout, Partition Schemes & Swap Design (102.1) 3.2 LVM & Standard Mount Point Allocation (102.1) 3.3 GRUB 2 Configuration & Troubleshooting (102.2) 3.4 Legacy GRUB & Alternative Boot Loaders (102.2) 3.5 Managing Shared Libraries & ldconfig (102.3) 3.6 Linux as a Virtualization Guest & Cloud Instances (102.6)

4 Topic 102: Package Management Systems

4.1 Debian Low-Level Package Management with dpkg (102.4) 4.2 High-Level Debian Package Management: apt, apt-get & apt-cache (102.4) 4.3 RPM Package Management with rpm (102.5) 4.4 YUM, DNF & Zypper Package Management (102.5) 4.5 Package Repositories & Integrity Verification (102.4/102.5) 4.6 Universal Linux Packages: Snap, Flatpak & AppImage (102.4/102.5)

5 Topic 103: Command Line & Text Processing

5.1 Shell Environment, Environment Variables & Aliases (103.1) 5.2 Command History, Quoting & Expansion (103.1) 5.3 Basic Text Filters: cat, head, tail, cut, paste, nl, od (103.2) 5.4 Advanced Text Filters: sort, uniq, wc, tr, split, less & Checksums (103.2) 5.5 Stream Editing with sed (103.2) 5.6 Basic File Management: cp, mv, rm, touch, mkdir, rmdir (103.3) 5.7 Archiving and Compression: tar, gzip, bzip2, xz, cpio & dd (103.3)

6 Topic 103: Streams, Processes, Regex & Vi

6.1 Standard Streams, Redirection & File Descriptors (103.4) 6.2 Pipelines, tee & xargs (103.4) 6.3 Process Monitoring: ps, top, free, watch, pgrep, pstree & uptime (103.5) 6.4 Signals, kill, Job Control, nohup, screen & tmux (103.5) 6.5 Process Priorities: nice & renice (103.6) 6.6 Regular Expressions & grep, egrep, fgrep (103.7) 6.7 vi / vim Modes, plus nano, Emacs & EDITOR Awareness (103.8)

7 Topic 104: Devices, Partitions & Filesystems

7.1 Block Devices, fdisk & gdisk (104.1) 7.2 GNU Parted & Partition Table Management (104.1) 7.3 Creating Filesystems: mkfs, ext4, XFS, VFAT/exFAT & Btrfs (104.1) 7.4 Filesystem Integrity: fsck, e2fsck, xfs_repair, xfs_fsr & xfs_db (104.2) 7.5 Monitoring Disk Usage: df, du & tune2fs (104.2) 7.6 Managing Swap Space: mkswap, swapon & swapoff (104.1/104.2)

8 Topic 104: Mounts, Permissions, Links & FHS

8.1 Mounting and Unmounting Filesystems: mount & umount (104.3) 8.2 Persistent Mounts: /etc/fstab, UUIDs & systemd mount units (104.3) 8.3 Standard File Permissions: chmod, chown, chgrp & umask (104.5) 8.4 Special Permissions: SUID, SGID & Sticky Bit (104.5) 8.5 Hard Links vs. Symbolic Links: ln & Inodes (104.6) 8.6 Filesystem Hierarchy Standard (FHS) & File Location (104.7)

3.4 Legacy GRUB & Alternative Boot Loaders (102.2)

Key Takeaways Explain This Topic AI

Legacy GRUB (version 0.97) uses a single static configuration file located at /boot/grub/menu.lst (or /boot/grub/grub.conf) that is edited directly by administrators.

Legacy GRUB indexes both hard drives and partitions starting at zero: (hd0,0) represents the first partition of the first disk (/dev/sda1).

In contrast, GRUB 2 indexes hard drives starting at zero but partitions starting at one: (hd0,1) represents /dev/sda1.

systemd-boot is a lightweight UEFI-only bootloader configured via /boot/loader/loader.conf and individual drop-in entry files in /boot/loader/entries/.

LILO (Linux Loader) requires running the /sbin/lilo command after any modification to /etc/lilo.conf or kernel updates to rewrite physical sector pointers in the MBR.

Last updated: August 2026

3.4 Legacy GRUB & Alternative Boot Loaders (102.2)

Quick Summary: While modern Linux distributions utilize GRUB 2, legacy systems and specialized environments employ alternative boot mechanisms. Legacy GRUB (version 0.97) relies on a directly editable /boot/grub/menu.lst file with 0-indexed partitions. Modern lightweight UEFI systems frequently use systemd-boot (formerly gummiboot), embedded devices use Syslinux/ISOLINUX, and historical servers may run LILO. Understanding partition numbering schemes and bootloader architectures is a core LPIC-1 requirement.

1. Legacy GRUB (GRUB 0.97) Architecture

Legacy GRUB (GRUB version 1 or 0.97) operates using a single, static configuration file. Unlike GRUB 2, there is no configuration generator ( grub-mkconfig ), and administrators edit the menu file directly.

  • Primary Configuration File Paths
  • Debian / openSUSE / Ubuntu (Legacy): /boot/grub/menu.lst

Red Hat / CentOS / Fedora (Legacy): /boot/grub/grub.conf (frequently symlinked from /etc/grub.conf and /boot/grub/menu.lst ) # Sample Legacy GRUB configuration (/boot/grub/menu.lst)

  • default=0
  • timeout=10
  • splashimage=(hd0,0)/boot/grub/splash.xpm.gz
  • hiddenmenu
  • title CentOS Linux (2.6.32-754.el6.x86_64)
  • root (hd0,0)
  • kernel /vmlinuz-2.6.32-754.el6.x86_64 ro root=/dev/sda2 quiet rhgb
  • initrd /initramfs-2.6.32-754.el6.x86_64.img
  • title CentOS Linux (Rescue Mode)
  • root (hd0,0)
  • kernel /vmlinuz-2.6.32-754.el6.x86_64 ro root=/dev/sda2 single
  • initrd /initramfs-2.6.32-754.el6.x86_64.img
  • Legacy GRUB Directive Syntax

default=N : Specifies the default boot entry index (0-indexed; 0 boots the first title stanza).

timeout=N : Wait time in seconds before automatically booting the default entry.

title <name> : Defines a new boot menu entry and its display label.

root (hdX,Y) : Defines the GRUB root partition where the kernel and initrd images reside.

kernel <path> <options> : Specifies the path to the kernel binary on the GRUB root filesystem, followed by kernel boot arguments.

initrd <path> : Specifies the path to the initial RAM disk image.

⚠️ LPIC-1 Trap (Separate /boot Partition): If /boot resides on a separate partition (hd0,0) , the kernel path is /vmlinuz-... , NOT /boot/vmlinuz-... . If /boot is part of the root partition (hd0,1) , the path is /boot/vmlinuz-... .

2. Partition Numbering Comparison: Legacy GRUB vs. GRUB 2

A critical topic on the LPIC-1 exam is the fundamental difference in disk and partition numbering between Legacy GRUB, GRUB 2, and Linux kernel device nodes.

  • Linux Device Node Legacy GRUB (0.97) Notation GRUB 2 Notation (MBR / GPT) Explanation
  • /dev/sda1 (hd0,0) (hd0,1) or (hd0,msdos1) / (hd0,gpt1) 1st disk, 1st partition
  • /dev/sda2 (hd0,1) (hd0,2) or (hd0,msdos2) / (hd0,gpt2) 1st disk, 2nd partition
  • /dev/sdb1 (hd1,0) (hd1,1) or (hd1,msdos1) / (hd1,gpt1) 2nd disk, 1st partition
  • /dev/sdb5 (hd1,4) (hd1,5) or (hd1,msdos5) 2nd disk, 1st logical partition
  • /dev/sdc3 (hd2,2) (hd2,3) or (hd2,gpt3) 3rd disk, 3rd partition

💡 LPIC-1 Rule of Thumb:

Legacy GRUB: Hard drives start at 0 , partitions start at 0 .

GRUB 2: Hard drives start at 0 , partitions start at 1 .

Linux OS: Disks use letters ( sda =1st, sdb =2nd), partitions use numbers starting at 1 ( sda1 ).

3. Alternative Bootloader: systemd-boot (gummiboot)

systemd-boot (formerly known as gummiboot ) is a simple, lightweight UEFI bootloader integrated into systemd. It does not load filesystem drivers or complex configuration scripts; instead, it relies strictly on UEFI firmware services.

  • Configuration Structure
  • Global Configuration: /boot/loader/loader.conf (or $ESP/loader/loader.conf )
  • Boot Entries Directory: /boot/loader/entries/*.conf # Global Loader Configuration (/boot/loader/loader.conf)
  • default arch.conf
  • timeout 4
  • console-mode max
  • editor no # Drop-in Boot Entry (/boot/loader/entries/arch.conf)
  • title Arch Linux
  • linux /vmlinuz-linux
  • initrd /initramfs-linux.img
  • options root=UUID=1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d rw quiet
  • bootctl Management Commands

bootctl status : Displays current firmware, ESP mountpoint, secure boot status, and configured bootloader entries.

bootctl install : Installs systemd-boot binary into the EFI System Partition.

bootctl update : Updates installed bootloader binaries.

4. Alternative Bootloader: Syslinux Suite

The Syslinux project is a collection of lightweight bootloaders designed for booting Linux from FAT filesystems, optical discs, and network PXE environments.

  • Variant Target Boot Media / Filesystem Configuration File Name
  • SYSLINUX FAT12 / FAT16 / FAT32 filesystems (Floppy, USB drives) syslinux.cfg
  • ISOLINUX ISO 9660 optical discs (Live CDs, installation media) isolinux.cfg
  • EXTLINUX ext2 / ext3 / ext4, Btrfs, and XFS partitions extlinux.conf
  • PXELINUX Network booting via DHCP and TFTP (PXE) pxelinux.cfg/default (or pxelinux.cfg/<MAC> )
  • 5. Alternative Bootloader: LILO (Linux Loader)

LILO is a classic Linux bootloader used extensively before GRUB. It relies on a single configuration file at /etc/lilo.conf . # Sample /etc/lilo.conf

  • boot=/dev/sda
  • map=/boot/map
  • install=/boot/boot.b
  • prompt
  • timeout=50
  • default=linux
  • image=/boot/vmlinuz-2.6.32
  • label=linux
  • read-only
  • root=/dev/sda1
  • The Critical LILO Mechanism

LILO does not contain filesystem drivers. When LILO boots, it loads kernel sectors directly from raw physical disk block addresses recorded in the boot sector.

⚠️ LPIC-1 Trap: Any time /etc/lilo.conf is edited OR a new kernel image is installed, the administrator MUST execute /sbin/lilo . Running lilo recalculates physical disk block pointers and writes them to the boot sector. If you fail to run lilo , the system will fail to boot on the next restart!

Loading diagram... Bootloader Evolution and Partition Indexing Comparison