diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index cf45362..f611806 100644
--- a/chapter10/grub.xml
+++ b/chapter10/grub.xml
@@ -18,29 +18,24 @@
- If your system has UEFI support and you wish to boot LFS with UEFI,
- you should skip this page, and config GRUB with UEFI support
- using the instructions provided in
- the BLFS page.
+ Если ваша система поддерживает UEFI и вы хотите загрузить LFS с помощью UEFI, вам следует
+ пропустить эту страницу и сконфигурировать GRUB с поддержкой UEFI используя инструкции,
+ приведенные на странице BLFS.
- Introduction
+ Введение
- Configuring GRUB incorrectly can render your system
- inoperable without an alternate boot device such as a CD-ROM or bootable
- USB drive. This section is not required to boot your LFS system. You may
- just want to modify your current boot loader, e.g. Grub-Legacy, GRUB2, or
- LILO.
+ При неправильной настройке GRUB ваша система перестанет загружаться без
+ вспомогательно загрузочного CD-ROM или USB-накопителя. Для загрузки системы LFS этот раздел
+ необязателен. Вы можете просто хотите изменить существующий загрузчик, например Grub-Legacy,
+ GRUB2 или LILO.
- Ensure that an emergency boot disk is ready to rescue
- the computer if the computer becomes unusable (un-bootable). If you do not
- already have a boot device, you can create one. In order for the procedure
- below to work, you need to jump ahead to BLFS and install
- xorriso from the
- libisoburn package.
+ Убедитесь, что аварийный загрузочный диск готов к спасению компьютера,
+ если он перестанет загружаться. Если у вас еще нет загрузочного диска, вы можете создать его.
+ Для этого необходимо перейти в раздел BLFS и установить программу xorriso
+ из пакета libisoburn.cd /tmp
grub-mkrescue --output=grub-img.iso
@@ -49,72 +44,64 @@ xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso
- GRUB Naming Conventions
+ Соглашения об именовании GRUB
- GRUB uses its own naming structure for drives and partitions in
- the form of (hdn,m), where n
- is the hard drive number and m is the partition
- number. The hard drive number starts from zero, but the partition number
- starts from one for normal partitions and five for extended partitions.
- Note that this is different from earlier versions where
- both numbers started from zero. For example, partition sda1 is (hd0,1) to
- GRUB and sdb3 is
- (hd1,3). In contrast to Linux, GRUB does not
- consider CD-ROM drives to be hard drives. For example, if using a CD
- on hdb and a second hard drive
- on hdc, that second hard drive
- would still be (hd1).
+ GRUB использует собственную структуру именования дисков и разделов в
+ виде (hdn,m), где n
+ — номер жесткого диска, а m — номер раздела. Номер жесткого диска
+ начинается с нуля, а номер раздела начинается с единицы для обычных разделов и с пяти
+ для расширенных разделов. Обратите внимание, что это отличается от более ранних версий,
+ где оба номера начинались с нуля. Например, раздел sda1
+ это (hd0,1) в GRUB, а sdb3
+ (hd1,3). В отличие от Linux, GRUB не считает приводы CD-ROM жесткими
+ дисками. Например, если используемый CD-привода определяется как hdb,
+ а второй жесткий диск как hdc, этот второй жесткий
+ диск все равно будет (hd1).
- Setting Up the Configuration
+ Настройка
- GRUB works by writing data to the first physical track of the
- hard disk. This area is not part of any file system. The programs
- there access GRUB modules in the boot partition. The default location
- is /boot/grub/.
+ GRUB записывает данные на первый физический сектор жесткого диска. Эта область не
+ является частью какой-либо файловой системы. Программа в загрузочном разделе имеет доступ
+ к модулям GRUB расположенным по умолчанию в /boot/grub/.
- The location of the boot partition is a choice of the user that
- affects the configuration. One recommendation is to have a separate small
- (suggested size is 200 MB) partition just for boot information. That way
- each build, whether LFS or some commercial distro, can access the same boot
- files and access can be made from any booted system. If you choose to do
- this, you will need to mount the separate partition, move all files in the
- current /boot directory (e.g. the
- linux kernel you just built in the previous section) to the new partition.
- You will then need to unmount the partition and remount it as /boot. If you do this, be sure to update
- /etc/fstab.
+ Расположение загрузочного раздела - это выбор пользователя, который влияет на конфигурацию.
+ Одна из рекомендаций заключается в том, чтобы иметь отдельный небольшой раздел (примерно 200 МБ)
+ исключительно для загрузочной информации. В этом случае каждая сборка, будь то LFS или другой дистрибутив,
+ может обращаться к тем же загрузочным файлам, а доступ может быть получен из любой загруженной
+ системы. Если вы решите так сделать, вам необходимо примонтировать отдельный раздел, переместить
+ все файлы из текущего каталога /boot (например, ядро Linux,
+ которое вы создали в предыдущем разделе) в новый раздел. Затем нужно отмонтировать раздел и
+ примонтировать его заново в каталог /boot. Когда вы это
+ сделаете, обязательно обновите данные в файле /etc/fstab.
- Using the current lfs partition will also work, but configuration
- for multiple systems is more difficult.
+ Использование текущего раздела lfs также будет работать, но его настройка для нескольких
+ систем сложнее.
- Using the above information, determine the appropriate
- designator for the root partition (or boot partition, if a separate
- one is used). For the following example, it is assumed that the root
- (or separate boot) partition is Используя информацию выше, определите соответствующие точки монтирования для
+ корневого раздела (или загрузочного раздела, если используется отдельный). В следующем
+ примере предполагается, что корневым (или отдельным загрузочным) разделом является sda2.
- Install the GRUB files into /boot/grub and set up the boot track:
+ Установите файлы GRUB в каталог /boot/grub и настройте загрузочный сектор:
- The following command will overwrite the current boot loader. Do not
- run the command if this is not desired, for example, if using a third party
- boot manager to manage the Master Boot Record (MBR).
+ Следующая команда перезапишет текущий загрузчик. Не выполняйте эту команду,
+ если это не нужно, например, если вы используете сторонний менеджер загрузки для
+ управления главной загрузочной записью (MBR).grub-install /dev/sda
- If the system has been booted using UEFI,
- grub-install will try to install files for the
- x86_64-efi target, but those files
- have not been installed in .
- If this is the case, add to the
- command above.
+ Если система была загружена с использованием UEFI,
+ grub-install попытается установить файлы для
+ x86_64-efi, но эти файлы не были установлены в
+ . Если это так, добавьте
+ к приведенной выше команде.