Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

30.2.2. Загрузчик

This section looks at the default boot loader for the x86 platform, GRUB. Depending on the system's architecture, the boot process may differ slightly. Refer to Раздел 30.2.2.1, «Загрузчики для других архитектур» for a brief overview of non-x86 boot loaders. For more information about configuring and using GRUB, see Глава 9, Загрузчик GRUB.
Загрузчик для x86 разбит на две части (стадии). Загрузчик первой стадии представляет собой машинный код в основной загрузочной записи. Его единственной целью является нахождение расположения загрузчика второй стадии и загрузка его первой части в памяти.
GRUB has the advantage of being able to read ext2 and ext3 [13] partitions and load its configuration file — /boot/grub/grub.conf — at boot time. Refer to Раздел 9.7, «Файл конфигурации меню GRUB» for information on how to edit this file.

Примечание

При обновлении ядра с помощью Агента обновления Red Hat файл конфигурации загрузчика будет обновлен автоматически. Обратитесь к https://rhn.redhat.com/ за информацией о Red Hat Network.
После загрузки загрузчика в память будет отображен графический экран со списком доступных операционных систем и ядер. С помощью клавиш стрелок пользователь может выбрать ОС или ядро и нажать Enter для их загрузки. Если клавиша не нажата, по истечению таймаута будет загружен выбор по умолчанию.
Once the second stage boot loader has determined which kernel to boot, it locates the corresponding kernel binary in the /boot/ directory. The kernel binary is named using the following format — /boot/vmlinuz-<kernel-version> file (where <kernel-version> corresponds to the kernel version specified in the boot loader's settings).
For instructions on using the boot loader to supply command line arguments to the kernel, refer to Глава 9, Загрузчик GRUB. For information on changing the runlevel at the boot loader prompt, refer Раздел 9.8, «Changing Runlevels at Boot Time».
Затем загрузчик поместит подходящие образы initramfs в память. После этого ядро распакует образы в /sysroot/ (виртуальную файловую систему на основе RAM) с помощью cpio. initramfs используется ядром для загрузки необходимых драйверов и модулей, что особенно важно для систем с дисками SCSI и файловыми системами ext3.
После загрузки ядра и образов initramfs контроль будет передан ядру.
For a more detailed overview of the GRUB boot loader, refer to Глава 9, Загрузчик GRUB.

30.2.2.1. Загрузчики для других архитектур

Once the kernel loads and hands off the boot process to the init command, the same sequence of events occurs on every architecture. So the main difference between each architecture's boot process is in the application used to find and load the kernel.
Например, на платформах Itanium используется загрузчик ELILO, IBM eServer pSeries использует yaboot, а IBM System z — загрузчик z/IPL.


[13] GRUB reads ext3 file systems as ext2, disregarding the journal file. Refer to the chapter titled The ext3 File System in the Red Hat Enterprise Linux Deployment Guide for more information on the ext3 file system.