- UEFI — Install Guide
- Содержание
- Introduction
- Target computer
- The steps
- Common
- Graphical Installer
- CLI installer
- Disk preparation
- Setting filesystem mount points
- Installation
- Switching from BIOS to UEFI
- Dual booting with Windows
- Instructions
- Manual install
- An alternative: chainloading via GRUB
- Extras
- Using Rufus on Windows to create installation media
- Feedback
- UEFI — Инструкция по установке
- Contents
- Введение
- Целевой компьютер
- Общие
- Графический Инсталятор
- Инсталлятор CLI
- Подготовка диска
- Установка точек монтирования системы
- Установка
- Переход с BIOS на UEFI
- Двойная загрузка с Windows
- Инструкции
- Установка вручную
- An alternative: chainloading via GRUB
- Дополнительно
- Использование Rufus в Windows для создания установочного носителя
- Обратная связь
UEFI — Install Guide
Содержание
Introduction
Target computer
The following guide aims to install Manjaro on a machine with UEFI enabled, Secure boot disabled, and using GUID Partition Table (GPT) disk(s).
For multi-boot, the EFI system partition which is already present (or will be created), can usually be shared amongst multiple Linux installs.
The steps
Common
- 1. Download your preferred Manjaro version (XFCE, Openbox, Cinnamon, KDE, . ), must be 64-bits.
- 2. Burn the .iso to USB or DVD. See Burn_an_ISO_File for more details.
- 3. Check your BIOS, UEFI must be ON and Secure boot OFF.
- 4. Boot with your USB or DVD & use the rEFInd — Main Menu. to choose which GPU drivers you want to have installed, the open-source or proprietary:
Graphical Installer
Tip: Since Manjaro-0.8.9, UEFI support is also provided in the Graphical Installer, so one can simply try the Graphical installer and skip the instructions given below for the CLI installer.
To use the Graphical Installer select the Install Manjaro option from the Manjaro Welcome screen or from the desktop.
For the ESP (EFI system partition) which will store the EFI Grub binary, a 512mb partition of type fat32 can be created in the partitioning step, and mounted to /boot/efi
If you are dual booting then an EFI partition from a previous install can also be used.
CLI installer
- 5-b. Open terminal & enter:
- 6. Now, we are in the CLI Installer.
- 7. Choose 1. Set date and time — an easy intuitive configuration.
Disk preparation
Tip: If your hard disk is already partitioned the way you want, then this step can be skipped.
Setting filesystem mount points
note: If you are re-using your EFI partition (that was created by Windows previously (or any other OS), then there is no need to format. Formatting will wipe the previous bootloader. Only mounting the EFI partition as /boot/efi is required in that case.
Installation
- 9. Choose 3. Install system and wait.
- 10. Now, go to 4. Configure System and configure it the way you like (username, password, mirrorlist, system-name, . ).
- 11. When you are done, go to 5. Install bootloader. Choose EFI_x86_64 > GRUB (2) UEFI x86_64, DON’T select BIOS GRUB.
- 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen.
note: Formatting not required if reusing previous EFI partition.
- 12. If it gives a error in the final stages saying «efivars kernel module was not properly loaded», don’t worry, the system will work fine!
- 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes.
- 14. Click 6. Quit
- 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now!
Switching from BIOS to UEFI
For UEFI install the Disk partition table should be of type GPT (Guid Partition Table).
If you dont want to format your hard disk to GPT, but instead want to migrate from MBR to GPT while trying to save your data, can have a look at http://www.rodsbooks.com/gdisk/mbr2gpt.html
1) You would need to create an ESP (EFI System Partition).
It is a FAT32 partition which has the .efi files for booting, which you can create using Gparted or gdisk. (Size 200-512 MiB).
You would also need to install/check whether following packages are present-
2) Create the /boot/efi directory
3.) Mount the EFI partition as /boot/efi
X = Alphabet of the drive = a,b,c . Y = Partition number of the EFI partition = 1,2,3,4.
4.) Install Grub according to UEFI
5.) Update Grub configuration file.
Note- If you get an error like
Then you will need to chroot as described here, and then perform Step 5 again.
If you get the following error :
then you could load the efivarfs module :
Dual booting with Windows
Tip: Some manufactures EFI implementations cause GRUB not to be showed in the Boot Menu, or even if its there it can’t be made default.
In such cases rEFInd can be used.
There are two ways to install rEFInd-
1.Install rEFInd from its website [2] (detailed) or install using pacman(preferred)—
Files will be present in /usr/share/refind .
2.Or using the instructions on the rEFInd website: [3]
Instructions
The refind-install command can be used to automatically install rEFInd (the EFI partition may need to be mounted for this to work). See the Arch wiki for more details.
Manual install
Inside the refind folder (/usr/share/refind), copy the files and folders to-
My ESP (EFI System Partition) is mounted at /boot/efi.
You need to copy these files to the Boot folder on your EFI partition, and the Boot folder itself will be present inside the EFI folder on the EFI Partition, so take note of it.
You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200mb-1gb.
Can mount it as /boot/efi by
X=a,b,c. N=1,2,3. These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier.
Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present-
You can rename it as windows.bootx64.efi Then you can rename refind_x64.efi to bootx64.efi
The bootx64.efi files boot by default, hence rEFInd should now boot by default, and detect grubx64.efi(linux-manjaro) and efibootmgfw.efi (windows) automatically.
A folder Manjaro (name could be some other also) containing the file grubx64.efi should also be present in /boot/efi/EFI/ folder, which should contain the grubx64.efi file which will be used by rEFInd to boot Grub.
So it could be like-
rEFInd would use this file for booting Manjaro.
If you do not have this file or folder, try-
to create /boot/efi/EFI/Manjaro/grubx64.efi
An alternative: chainloading via GRUB
An entry can be added to /etc/grub.d/40_custom
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present.
After adding the above entry, running sudo update-grub updates the GRUB configuration file so that an entry named Windows8 (UEFI) is added to the GRUB boot menu.
Related Forum thread: [4]
The chainloading will fail on some hardware (Lenovo Ideapad 110) with the «invalid signature» message — the Refind method will still work.
Extras
Using Rufus on Windows to create installation media
Rufus users can use the following settings:
Feedback
Questions, suggestions, critics? Please post here: [5]
UEFI — Инструкция по установке
Contents
Введение
Целевой компьютер
Следующая инструкция предусматривает установку Manjaro на устройство с активированным UEFI, отключенной функцией Secure boot, и задействованной таблицей разделов диска(ов) GUID Partition Table (GPT).
UEFI, существующая уже или которая будет создана в системе разделов, может быть использована несколькими установленными системами.
Общие
- 1. Скачайте понравившуюся версию Manjaro (XFCE, Openbox, Cinnamon, KDE, . ), должны быть 64-битные.
- 2. Запишите .iso на USB илиDVD. См. подробностиBurn_an_ISO_File.
- 3. Убедитесь, что ваш BIOS, UEFI включены, а Secure boot выключен.
- 4. Загрузитесь с USB или DVD и воспользуйтесь основным меню, чтобы выбрать драйвера видео для установки — свободные или проприетарные:
Графический Инсталятор
Совет: Начиная с Manjaro-0.8.9, поддержка UEFI встроена в графический инсталлятор, поэтому можно смело пользоваться им и пропустить инструкции для инсталлятора CLI.
Чтобы воспользоваться графическим инсталлятором Thus, выберите его в приветственном окне Manjaro.
Для ESP, системы разделов EFI, в котором будет храниться код EFI Grub, необходимо на этапе разбивки диска создать раздел в формате fat32 размером 512 МБ и примонтировать его в /boot/efi
Если у вас предусмотрена двойная загрузка, то раздел EFI ранее установленной системы также может быть использован.
Инсталлятор CLI
- 5-b. Откройте терминал введите:
- 6. Теперь вы вошли в инсталлятор CLI.
- 7. Выберите 1. Установить дату и время — простая интуитивная настройка.
Подготовка диска
Совет: Если ваш диск уже поделен на разделы, тогда этот шаг можно пропустить.
Установка точек монтирования системы
Замечание: Если вы хотите воспользоваться уже существующим разделом EFI (созданный заранее при установке Windows (либо другой системы), тогда нет необходимости его форматировать. Форматирование уничтожит существующие загрузочные записи. Лишь примонтируйте раздел EFI как /boot/efi.
Установка
- 9. Выберите 3. Установка системы и ожидайте.
- 10. Теперь перейдите к пункту 4. Настройка системы и настройте ее по своему усмотрению (логин, пароль, список зеркал, имя компьютера и проч.).
- 11. Когда закончите, перейдите к 5. Установка загрузчика. Выберите EFI_x86_64 > GRUB (2) UEFI x86_64, НЕ выбирайте BIOS GRUB.
- 11.1 Будет задан вопрос о форматровнии ранее созданного раздела EFI в формат FAT32. Отвечайте утвердительно.
Замечание: Форматирование не требуется, если будет повторно использован существующий раздел EFI.
- 12. Если на последнем этапе появится ошибка «efivars kernel module was not properly loaded», не волнуйтесь, система отлично будет работать!
- 13. Есл сстема предложит вам скопировать файлы grub/efi в другую папку, чтобы обеспечить совместимость с другими системаи, отвечайте согласием.
- 14. Нажмите 6. Выход
- 15. Выключите компьютер, выньте DVD или USB, и загрузитесь. Теперь ваша система должна появиться!
Переход с BIOS на UEFI
Для установки UEFI тип таблицы разделов диска должен быть GPT (Guid Partition Table).
Если Вы не хотите форматировать свой жесткий диск в GPT, но при этом хотите мигрировать с MBR на GPT и сохранить свои данные, обратите внимание сюда http://www.rodsbooks.com/gdisk/mbr2gpt.html
1.) Вам нужно создать ESP (EFI System Partition).
Обычно это раздел в формате fat32, содержащий файлы .efi для загрузки.
Создать раздел можно с помощью Gparted (введите — fat32 или fat16 и размер около 512 МБ).
Также нужно проверить наличие и доустановить, если отсутствуют, следующие пакеты-
2.) Зоздайте директорю /boot/efi
3.) Примонтируйте раздел EFI как /boot/efi
X = буква раздела = a,b,c . Y = цифра раздела с EFI = 1,2,3,4.
4.) Установите Grub, соответсвующий UEFI
5.) Обновите конфигурационный файл Grub.
Учтите- Если возникнет ошибка типа
Тогда вам нужно воспользоваться chroot как описано здесь, и затем повторите Шаг 5.
Если Вы получите следующую ошибку:
нужно будет загрузить модуль efivarfs :
Двойная загрузка с Windows
Совет: Варианты EFI от некоторых производителей не дают возможности GRUB появиться в меню загрузки, или даже если он там появится, его нельзя будет применить по умолчанию.
В этом случае можно использовать rEFInd.
Есть два способа установить rEFInd-
1.Установить rEFInd с сайта программы [1] (подробно) или с помощью pacman(предпочтительно)—
Файлы находятся в /usr/share/refind .
2.Или использовать инструкции на сайте rEFInd : [2]
Инструкции
Команда refind-install предназначена для автоматической установки rEFInd (раздел EFI в этот момент должен быть примонтирован). См. подробности в Arch wiki.
Установка вручную
Скопируйте файлы и папки из папки refind (/usr/share/refind) в-
В моем случае ESP (EFI System Partition) примонтируйте к /boot/efi.
Вам нужно скопировать эти файлы в папку загрузки своего раздела EFI, и сама папка загрузки будет находиться внутри раздела. Этоьнужно учесть.
С помощью Gparted можно проверить, какой из разделов содержит ваш ESP; найдите раздел размеров 200 Мб- 1 ГБ, отформатированный в fat32.
Раздел можно смонтировать как /boot/efi с помощью команды
где в зависимости от того, на каком разделе находится ESP, который мы определили с помощью Gparted,
Теперь внутри папки /boot/efi/EFI/Boot/ должен появиться файл bootx64.efi
Можно переименовать его в windows.bootx64.efi Потом переименуйте refind_x64.efi в bootx64.efi
Фалы bootx64.efi загружаются по умолчанию, т.е. теперь rEFInd будет загружаться по умолчанию и автоматически определять grubx64.efi(linux-manjaro) и efibootmgfw.efi (windows).
Папка Manjaro (название может быть другим), содержащая файл grubx64.efi, используемый программой rEFInd для загрузки Grub, должна также находиться в папке /boot/efi/EFI/ .
Выглядит это так —
rEFInd будет использовать этот файл для загрузки Manjaro.
Если этого файла в папке нет, сделайте следующее —
чтобы создать /boot/efi/EFI/Manjaro/grubx64.efi
An alternative: chainloading via GRUB
An entry can be added to /etc/grub.d/40_custom
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present.
After adding the above entry, running sudo update-grub updates the GRUB configuration file so that an entry named Windows8 (UEFI) is added to the GRUB boot menu.
Related Forum thread: [3]
Дополнительно
Использование Rufus в Windows для создания установочного носителя
Пользователи Rufus могут использовать следующие настройки:
Обратная связь
Вопросы, мнения, критика? Пишите сюда: [4]