Install/Bootloader/ru

From Funtoo
< Install
Revision as of 17:10, February 21, 2021 by R.ivan (talk | contribs)
Jump to navigation Jump to search
Other languages:
English • ‎Türkçe • ‎español • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Руководство по установке: Установка загрузчика

Install Guide, Chapter 14 < Prev Next >

boot.conf Configuration

Данная инструкция по установке показывает, как использовать GRUB для загрузки с использованием BIOS (устаревший) или UEFI.

Обновление загрузки ego (ego boot)установлено по умолчанию, а GRUB - нет, поскольку это требуется не для всех систем Funtoo Linux (например, контейнеры.) Но для загрузки на «голое железо» это рекомендуемый и наиболее поддерживаемый загрузчик, поэтому вам потребуется его установить:

(chroot) # emerge -av grub

boot.conf

теперь /etc/boot.conf должен выглядеть так:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux genkernel" 
	timeout 3 
}
</div>

"Funtoo Linux" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto
}

"Funtoo Linux (nomodeset)" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto nomodeset
}

Если Вы используете собственное, нестандартное ядро, ознакомьтесь с man boot.conf на предмет информации о различных доступных вам параметрах.

nomodeset

You will notice after booting that you there will be a boot option in the GRUB menu for a "nomodeset" mode. We don't recommend you use this mode by default but it is available to you for a couple of good reasons:

  • For users with HiDPI (4K+) displays, especially laptops: If you have not set up a graphical environment, when the kernel automatically changes graphics modes, the console font can be tiny and unreadable.
  • For users with incompatible graphics cards: Some graphics cards don't handle mode setting properly and this can result in a blank screen after reboot. Use this boot option as a temporary workaround.

To use the nomodeset option, simply select that option from the GRUB menu when your system boots.


Intel Microcode

ego boot will ensure that you have the most recent Intel CPU microcode installed on your system if you emerge the following packages:

chroot # emerge intel-microcode iucode_tool

This is not necessary for AMD systems.

Классический (BIOS) MBR

Следуя классическому способу, выполните следующую команду для установки GRUB на MBR, и генерации конфигурационного файла /boot/grub/grub.cfg, используемым GRUB при загрузке.

(chroot) # grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ego boot update

Современный (UEFI) загрузочная запись (Boot Entry)

Если Вы следуете современному способу, выполните следующий набор команд, в зависимости от того, устанавливаете 32- или 64-битную систему. Это добавит GRUB как загрузочную запись UEFI.

Для 64-битных x86-систем:

(chroot) # mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ego boot update

Для 32-битных x86-систем:

(chroot) # mount -o remount,rw /sys/firmware/efi/efivars
(chroot) # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ego boot update

Первая загрузка и продолжение

ОК, все готово к загрузке!

Осталось только выполнить grub-install если это -- первая установка Funtoo Linux. Также нужно будет выполнять boot-update каждый раз как Вы отредактируете файл /etc/boot.conf на предмет добавления новых ядер в систему. Эта команда сгенерирует файл /etc/boot.conf и после перезагрузки Ваши новые ядра сразу появятся в загрузочном меню GRUB-а.

Post reboot UEFI troubleshooting

In case UEFI NVRAM boot entry is missing in BIOS and grub does not start you can try moving an already installed GRUB EFI executable to the default/fallback path

chroot # mv -v '/boot/EFI/Funtoo Linux [GRUB]' /boot/EFI/BOOT
chroot # mv -v /boot/EFI/BOOT/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI
Install Guide, Chapter 14 < Prev Next >