Difference between revisions of "Install/Bootloader/ru"

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 17: Line 17:
}}
}}
</div>
</div>
==== boot.conf ====


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Затем отредактируйте {{c|/etc/boot.conf}} с помощью {{c|nano}} и укажите  "{{c|Funtoo Linux genkernel}}" в настройке {{c|default}} в верхней части файла, заменив  {{c|"Funtoo Linux"}}. Если вы не используете memtest86+ удалите данную запись в {{c|boot.conf }} во избежание ошибок.
</div>
==== NVIDIA Graphics Card Users ====
If you have NVIDIA graphics and plan to set up a graphical environment, you have a couple of choices when it comes to graphics drivers -- the proprietary NVIDIA drivers provided by NVIDIA corporation itself, or the Open Source Nouveau drivers. If you don't know which to choose, we recommend starting with the proprietary NVIDIA drivers first for optimal performance on a wider range of hardware.
;If using proprietary NVIDIA graphics...: It is safe to leave the {{c|nomodeset}} parameter in {{c|/etc/boot.conf}} as the proprietary drivers handle setting the graphics mode themselves. However, you will need to ''blacklist the nouveau modules'' so they do not load upon boot. See [[Package:NVIDIA_Linux_Display_Drivers|the NVIDIA Linux Display Drivers page]] for information on how to get these drivers set up.
;If using Nouveau...: {{c|nomodeset}} should be ''should be removed'' as explained in the '''Other Graphics Cards''' section below.
==== Other Graphics Cards ====
Most users, particularly those who plan on setting up a graphical environment, will want to eventually remove {{c|nomodeset}} from {{c|params}} in {{f|/etc/make.conf}}. {{c|nomodeset}} prevents the kernel from changing graphics modes at boot.  This option is in {{c|/etc/boot.conf}} by default for a couple of good reasons:
* '''For users with HiDPI (4K+) displays''': 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.
Disabling mode setting is therefore a good, safe option for initial installs of Funtoo Linux, but most users will ''want to remove this option.''
This is because essentially all graphics drivers (the big exception being the proprietary NVIDIA drivers) rely on mode setting to set the graphics mode of your display. So most users ''will need to remove it'', and run {{c|ego boot update}} and reboot before they set up X or Wayland. Otherwise, X will not be able to initialize the display. Of course, you can also choose to remove it now and then you won't need to remember to remove it later :)
теперь {{c|/etc/boot.conf}} должен выглядеть так:
теперь {{c|/etc/boot.conf}} должен выглядеть так:
</div>


<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
Line 53: Line 34:


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


"Funtoo Linux genkernel" {
"Funtoo Linux (nomodeset)" {
kernel kernel[-v]
kernel kernel[-v]
initrd initramfs[-v]
initrd initramfs[-v]
        # IMPORTANT: Most users -- remember to REMOVE nomodeset below!
params += real_root=auto rootfstype=auto nomodeset
params += real_root=auto rootfstype=auto nomodeset
}
}
Line 67: Line 47:


Если Вы используете собственное, нестандартное ядро, ознакомьтесь с <code>man boot.conf</code> на предмет информации о различных доступных вам параметрах.
Если Вы используете собственное, нестандартное ядро, ознакомьтесь с <code>man boot.conf</code> на предмет информации о различных доступных вам параметрах.
==== 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 {{c|nomodeset}} option, simply select that option from the GRUB menu when your system boots.


=== Intel Microcode ===
=== Intel Microcode ===
Line 121: Line 111:
Осталось только выполнить <code>grub-install</code> если это -- первая установка Funtoo Linux. Также нужно будет выполнять <code>boot-update</code> каждый раз как Вы отредактируете файл <code>/etc/boot.conf</code> на предмет добавления новых ядер в систему. Эта команда сгенерирует файл <code>/etc/boot.conf</code> и после перезагрузки Ваши новые ядра сразу появятся в загрузочном меню GRUB-а.
Осталось только выполнить <code>grub-install</code> если это -- первая установка Funtoo Linux. Также нужно будет выполнять <code>boot-update</code> каждый раз как Вы отредактируете файл <code>/etc/boot.conf</code> на предмет добавления новых ядер в систему. Эта команда сгенерирует файл <code>/etc/boot.conf</code> и после перезагрузки Ваши новые ядра сразу появятся в загрузочном меню GRUB-а.
</div>
</div>
==== 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 [https://wiki.archlinux.org/index.php/GRUB#Default/fallback_boot_path default/fallback path]
{{console|body=
%chroot% ##i##mv -v '/boot/EFI/Funtoo Linux [GRUB]' /boot/EFI/BOOT
%chroot% ##i##mv -v /boot/EFI/BOOT/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI
}}
<noinclude>{{InstallNavigation|num=14|prev=Kernel|next=Network|align=right}}</noinclude>
<noinclude>{{InstallNavigation|num=14|prev=Kernel|next=Network|align=right}}</noinclude>

Revision as of 18:30, September 9, 2020

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 >