[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Наступна ревізія
Попередня ревізія
uk:howtos:slackware_admin:set_up_grub_as_boot_loader_on_uefi_based_hardware [2016/03/25 13:23 (UTC)] – створено streamthreaderuk:howtos:slackware_admin:set_up_grub_as_boot_loader_on_uefi_based_hardware [2016/03/27 06:31 (UTC)] (поточний) streamthreader
Рядок 1: Рядок 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
  
-====== Йде переклад, зачекайте... ======+====== Встановлення завантажувача Grub на UEFI обладнання ======
  
-====== Set up Grub as boot loader on UEFI hardware ======+Встановлення та запуск Slackware на комп’ютер який використовує (Уніфікований Розширювальний Інтерфейс Прошивок Unified Extensible Firmware Interface (UEFI)) складніше, ніж це робиться на традиційному BIOS комп'ютері. 
 +Не можливо завантажити офіційний диск встановлювача напряму через UEFI, так як той не містить завантажувача UEFI.
  
-Installation and running of Slackware on computers that use Unified Extensible Firmware Interface (UEFI) rather than traditional BIOS poses problemsIt may be impossible to boot the official install media via UEFI directly and the installation discs do not include a UEFI bootloader.+Процес встановлення Slackware на систему з UEFI, описано на сторінці [[http://docs.slackware.com/howtos:slackware_admin:installing_on_uefi_hardware]] 
 +На тій сторінці описано процес створення USB носія, який буде у в змозі завантажити slackware.
  
-Installation of Slackware on UEFI systems is described in the page [[http://docs.slackware.com/howtos:slackware_admin:installing_on_uefi_hardware]]+На цій сторінці описано встановлення завантажувача Grub2 для систем базованих на UEFI. Grub2 має перевагу, так як може показувати меню, яке надає можливість зробити подвійне завантаження (dual boot) з Windows. Передбачається, що Slackware встановлена та завантажується на системі базованій на UEFI.
  
-That page describes production of a USB disk which can used to boot slackware.+Наступна послідовність складається з
  
-This page describe installation of Grub2 as bootloader for UEFI based systems. Grub2 has the advantage that it brings up a menu on booting and it is possible to use the menu to dual boot with Windows.  It is assumed that Slackware has been installed and it is being booted through a UEFI based system.+  - Встановлення Grub2-efi на завантажувальну USB флешку (Цей крок можна пропустити, але безпечніше перевірити спочатку встановлення на флешку) 
 +  - Як тільки завантаження з USB флешки працює, Grub2-efi встановлюється на жорсткий диск 
 +  - Модифікація завантажувального меню UEFI
  
-The sequence followed is that of +===== Встановлення Grub2-efi =====
  
-  - Installation of Grub2-efi to a USB boot stick (This stage can be bypassed but it might be safer to check carry out the installation to a USB stick first) +Встановіть grub2 використовуючи slackbuild, але відредагуйте налаштування додавши
-  - Once booting from the USB stick is working Grub2-efi is installed on the hard drive +
-  - Modification of the UEFI boot menu +
- +
- +
-===== Install Grub2-efi ===== +
- +
- +
-Install grub2 using the slackbuild but modifying it by adding+
  
 <code> <code>
Рядок 29: Рядок 25:
 </code> </code>
  
-to ./configure+у ./configure
  
  
 +Потім дотримуйтесь інструкції з [[https://wiki.archlinux.org/index.php/Grub#UEFI_systems_2]]
  
- +Починаючи з монтування USB флеш носія у /boot/efi
-Then follow some of the instructions at [[https://wiki.archlinux.org/index.php/Grub#UEFI_systems_2]] +
- +
-starting with mounting the usb stick at /boot/efi+
 <code> <code>
 #mount /dev/sdc1 -t vfat /boot/efi (where sdc1 is your USB stick) #mount /dev/sdc1 -t vfat /boot/efi (where sdc1 is your USB stick)
Рядок 47: Рядок 41:
  
  
-Configure grub.cfg with+Налаштуйте grub.cfg командою
  
 <code> <code>
 #grub-mkconfig -o /boot/grub/grub.cfg #grub-mkconfig -o /boot/grub/grub.cfg
 </code> </code>
-This process should have created a file on the USB stick+Цей процес повинен створити файл на USB носії
  
 /EFI/grub/grubx64.efi.  /EFI/grub/grubx64.efi. 
  
-At this point it is advisable that to check that it is possible to boot from the USB stick with grubx64.efi. If the UEFI system does not see it copy it to /EFI/BOOT/bootx64.efi+З цієї миті рекомендовано перевірити, чи можливо завантажити USB флеш носій з grubx64.efi. Якщо система UEFI не бачить ії, скопіюйте файл у /EFI/BOOT/bootx64.efi
  
-==== Installation of grubx64.efi to the hard drive ====+==== Встановлення grubx64.efi на жорсткий диск ====
  
-The EFI partition on the hard drive should be mountedThe partition will have a structure like this:+Розділ EFI жорсткого диску, повинен бути смонтованийЦей розділ повинен мати структуру як наприклад:
  
 /EFI/Boot/bootx64.efi /EFI/Boot/bootx64.efi
  
-There may be a folder /EFI/Microsoft/Boot and the efi file booting windows may be bootmgr.efi +Там може бути директорія /EFI/Microsoft/Boot та файл для завантаження windows bootmgr.efi
- +
-The safest way of proceeding at this stage is to create a new folder, for example /EFI/Linux/ and place grubx64.EFI in there. +
- +
-At this point it may be worth testing if the UEFI system is able to see the new Linux boot option or not, usually by pressing F8 on booting the computer. If it does then it should be straightforward to set this as a default option. It is also likely that it is not seen. If that is the case the choice it to either replace the working .efi (for example /EFI/Boot/bootx64.efi or /EFI/Microsoft/Bootbootmgr.efi) or to modify the UEFI boot menu. Replacing the existing file is likely to make it impossible to boot into Windows. If the intention is to set up a dual boot system then the UEFI boot menu has to be modified. +
  
-=== Modifying the UEFI boot menu ===+Кращим шляхом зараз, це створити окрему нову директорію, наприклад /EFI/Linux/ та покласти в неї grubx64.EFI.
  
 +З цієї миті, варто перевірити, чи бачить система UEFI новий пункт завантаження Linux, зазвичай це можна зробити натиснувши клавішу F8 під час завантаження комп'ютера. Якщо система UEFI бачить новий пункт, далі буде не складно встановити Linux як варіант за замовченням. Також якщо нового пункту немає, то потрібно замінити пацюючий файл .efi (наприклад /EFI/Boot/bootx64.efi чи /EFI/Microsoft/Bootbootmgr.efi) чи відредагувати меню завантаження UEFI. Заміна існуючого файлу призведе к неможливості завантажувати Windows. Якщо ви маєте намір зробити подвійне завантажування, то потрібно відредагувати меню завантаження UEFI.
  
 +=== Редагування меню завантаження UEFI ===
  
-Download efibootmger from [[http://linux.dell.com/efibootmgr/]]+Завантажте efibootmger з [[http://linux.dell.com/efibootmgr/]]
  
-untar itchange into the folder and run make+розпакуйте йогоувійдіть у нову директорію, та запустіть make
  
-Copy src/efibootmgr/efibootmgr into /usr/sbin and chown it to root.+Скопіюйте src/efibootmgr/efibootmgr у /usr/sbin та виконайте chown для root.
  
-Mount the efi partition of the hard drive to /boot/efi+Змонтуйте розділ efi жорсткого диску у директорію /boot/efi
 <code> <code>
 # mount /dev/sdXy -t vfat /boot/efi  # mount /dev/sdXy -t vfat /boot/efi 
-where X = drive and y = partition+де X = диск, та y = розділ
 # modprobe efivars # modprobe efivars
 # efibootmgr -c -g -d /dev/sdX -p Y -w -L "Linux" -l '\EFI\Linux\bootx64.efi'  # efibootmgr -c -g -d /dev/sdX -p Y -w -L "Linux" -l '\EFI\Linux\bootx64.efi' 
-assuming that the grubx64.efi file had been copied to \EFI\Linux\bootx64.efi+припускається що файл grubx64.efi скопійовано до \EFI\Linux\bootx64.efi
 </code> </code>
  
-On next reboot Linux with Grub comes up as an option on the boot menu+Під час наступного перезавантаження Linux з Grub, з'явиться меню у завантажувачі
-====== Sources ======+====== Джерела ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 <!-- * Original source: [[http://some.website.org/some/page.html]] --> <!-- * Original source: [[http://some.website.org/some/page.html]] -->
 <!-- Authors are allowed to give credit to themselves! --> <!-- Authors are allowed to give credit to themselves! -->
-Originally written by [[wiki:user:arubin | arubin]]+Автор статті [[wiki:user:arubin | arubin]]
 <!-- * Contributions by [[wiki:user:yyy | User Y]] --> <!-- * Contributions by [[wiki:user:yyy | User Y]] -->
  
 uk:howtos:slackware_admin:set_up_grub_as_boot_loader_on_uefi_based_hardware ()