3.6. Настройка аппаратного обеспечения и операционной системы перед установкой

This section will walk you through pre-installation hardware setup, if any, that you will need to do prior to installing Debian. Generally, this involves checking and possibly changing BIOS/UEFI/system firmware settings for your system. The «BIOS/UEFI» or «system firmware» is the core software used by the hardware; it is most critically invoked during the bootstrap process (after power-up).

3.6.1. Invoking the BIOS/UEFI Set-Up Menu

The BIOS/UEFI provides the basic functions needed to boot your machine and to allow your operating system to access your hardware. Your system provides a BIOS/UEFI setup menu, which is used to configure the BIOS/UEFI. To enter the BIOS/UEFI setup menu you have to press a key or key combination after turning on the computer. Often it is the Delete or the F2 key, but some manufacturers use other keys. Usually upon starting the computer there will be a message stating which key to press to enter the setup screen.

3.6.2. Выбор загрузочного устройства

Within the BIOS/UEFI setup menu, you can select which devices shall be checked in which sequence for a bootable operating system. Possible choices usually include the internal harddisks, the CD/DVD-ROM drive and USB mass storage devices such as USB sticks or external USB harddisks. On modern systems there is also often a possibility to enable network booting via PXE.

В зависимости от установочного носителя (CD/DVD ROM, карта памяти USB, загрузка по сети) вы должны включить загрузку с соответствующих устройств, если это ещё не сделано.

Most BIOS/UEFI versions allow you to call up a boot menu on system startup in which you select from which device the computer should start for the current session. If this option is available, the BIOS/UEFI usually displays a short message like «press F12 for boot menu» on system startup. The actual key used to select this menu varies from system to system; commonly used keys are F12, F11 and F8. Choosing a device from this menu does not change the default boot order of the BIOS/UEFI, i.e. you can start once from a USB stick while having configured the internal harddisk as the normal primary boot device.

If your BIOS/UEFI does not provide you with a boot menu to do ad-hoc choices of the current boot device, you will have to change your BIOS/UEFI setup to make the device from which the debian-installer shall be booted the primary boot device.

Unfortunately some computers may contain buggy BIOS/UEFI versions. Booting debian-installer from a USB stick might not work even if there is an appropriate option in the BIOS/UEFI setup menu and the stick is selected as the primary boot device. On some of these systems using a USB stick as boot medium is impossible; others can be tricked into booting from the stick by changing the device type in the BIOS/UEFI setup from the default «USB harddisk» or «USB stick» to «USB ZIP» or «USB CDROM». In particular if you use an isohybrid installation image on a USB stick (see Раздел 4.3.1, «Preparing a USB stick using a hybrid CD/DVD image»), changing the device type to «USB CDROM» helps on some BIOSes which will not boot from a USB stick in USB harddisk mode. You may need to configure your BIOS/UEFI to enable «USB legacy support».

If you cannot manipulate the BIOS/UEFI to boot directly from a USB stick you still have the option of using an ISO copied to the stick. Boot debian-installer using Раздел 4.4, «Подготовка файлов для загрузки с жёсткого диска» and, after scanning the hard drives for an installer ISO image, select the USB device and choose an installation image.

3.6.3. Устройства с микропрограммой UEFI

UEFI («Единый Расширяемый Интерфейс Микропрограммы») — новый вид системной микропрограммы, который используется в современных устройствах и — помимо прочего — предназначен для замеры классического BIOS ПК.

В настоящее время ПК с UEFI также содержат так называемый «Compatibility Support Module» (CSM), который предоставляет тот же интерфейс, что и классический BIOS ПК, поэтому ПО, написанное для BIOS ПК, может использоваться без изменений.Тем не менее UEFI предназначен однажды полностью заменить старый BIOS ПК без предоставления обратной совместимости и поэтому уже сейчас многие системы с UEFI поставляются без CSM.

При установке ОС на устройства с UEFI нужно учесть несколько вещей. Способ, которым микропрограмма загружает ОС кардинально отличается от классического BIOS (или UEFI в режиме CSM). Основным отличием является способ размещения разделов на жёстком диске. В классическом BIOS и UEFI в режиме CSM используется таблица разделов DOS, а в UEFI используется другая схема разметки, называемая «GUID Partition Table» (GPT). Имея один диск, можно использовать что-то одно, и в случае мульти-загрузки различных ОС с одного диска, они все должны использовать единый тип таблицы загрузки. Загрузка с диска с GPT возможна только в родном режиме UEFI, но по мере роста объёмов дисков случаев использования GPT становится всё больше, так как классическая таблица разделов DOS не вмещает адреса дисков более 2 терабайт (а GPT позволяет использовать гораздо большие диски). Другим существенным отличием BIOS (или UEFI в режиме CSM) от UEFI является место, где хранится загрузочный код и его формат. Это означает, что для каждой из систем необходим свой загрузчик.

The latter becomes important when booting debian-installer on a UEFI system with CSM because debian-installer checks whether it was started on a BIOS- or on a native UEFI system and installs the corresponding bootloader. Normally this simply works but there can be a problem in multi-boot environments. On some UEFI systems with CSM the default boot mode for removable devices can be different from what is actually used when booting from hard disk, so when booting the installer from a USB stick in a different mode from what is used when booting another already installed operating system from the hard disk, the wrong bootloader might be installed and the system might be unbootable after finishing the installation. When choosing the boot device from a firmware boot menu, some systems offer two separate choices for each device, so that the user can select whether booting shall happen in CSM or in native UEFI mode.

3.6.4. Secure boot

Another UEFI-related topic is the so-called «secure boot» mechanism. Secure boot means a function of UEFI implementations that allows the firmware to only load and execute code that is cryptographically signed with certain keys and thereby blocking any (potentially malicious) boot code that is unsigned or signed with unknown keys. In practice the only key accepted by default on most UEFI systems with secure boot is a key from Microsoft used for signing the Windows bootloader. Debian includes a «shim» bootloader signed by Microsoft, so should work correctly on systems with secure boot enabled.

3.6.5. Disabling the Windows «fast boot»/«fast startup» feature

Windows offers a feature (called «fast boot» in Windows 8, «fast startup» in Windows 10) to cut down system startup time. Technically, when this feature is enabled, Windows does not do a real shutdown and a real cold boot afterwards when ordered to shut down, but instead does something resembling a partial suspend to disk to reduce the «boot» time. As long as Windows is the only operating system on the machine, this is unproblematic, but it can result in problems and data loss, when you have a dual boot setup, in which another operating system accesses the same filesystems as Windows does. In that case the real state of the filesystem can be different from what Windows believes it to be after the «boot» and this could cause filesystem corruption upon further write accesses to the filesystem. Therefore in a dual boot setup, to avoid filesystem corruption the «fast boot»/«fast startup» feature has to be disabled within Windows.

Furthermore, the Windows Update mechanism has (sometimes) been known to automatically re-enable this feature, after it has been previously disabled by the user. It is suggested to re-check this setting periodically.

Также может потребоваться отключить «fast boot» даже для получения доступа к настройке UEFI, чтобы выбрать для запуска другую операционную систему или debian-installer. В некоторых системах с UEFI микропрограмма сокращает время «загрузки» не инициализируя контроллер клавиатуры или аппаратуру USB; в таких случаях необходимо загрузиться в Windows и выключить это свойство позволяя, тем самым, изменить порядок загрузки.

3.6.6. Аппаратные проблемы, которых нужно остерегаться

Поддержка USB в BIOS и клавиатуры. Если ваша клавиатура имеет разъём не PS/2, а USB, то чтобы использовать её в загрузочном меню на некоторых очень старых компьютерах вам может потребоваться включить эмуляцию устаревших (legacy) клавиатур в настройках BIOS (этой проблемы нет у современных ПК). Если клавиатура не работает в загрузочном меню посмотрите руководство к материнской плате и найдите параметры в BIOS «Legacy keyboard emulation» или «USB keyboard support».