Manjaro UEFI - Guide d'installation

UEFI - Guide d'installation

From Manjaro
This page is a translated version of the page UEFI - Install Guide and the translation is 26% complete.
Other languages:
Deutsch • ‎English • ‎français

Introduction

UEFI est le nom commun pour les standards EFI et UEFI. Cependant, il ne prend pas en compte la vielle version EFI v1, ou la version à part faite par Apple.

Ordinateurs concernés

Ce guide vise à l'installation de Manjaro sur une machine ayant UEFI d'activer, le démarrage sécurisé (Secure Boot) de désactive et utilisant le partitionnement GPT (GUID Partition Table).

Pour les machines possédant plusieurs systèmes d'exploitation, le système de partition EFI qui est déjà présent (ou qui sera créé par la suite), peut être tour à fait partager parmi les autres installations de Linux présentes.

Les Étapes

Préparons ce dont nous avons besoin

  • 1. Commencez part télécgharger votre version de Manjaro préférée (XFCE, Openbox, Cinnamon, KDE, etc.), il est cependant obligatoire de prendre une architecture 64 bits.
  • 2. Gravez le fichier .iso sur une clef USB ou un DVD. En cas de problèmes, consultez ce guide pour plus de détails.
  • 3. Consultez les paramètres de votre BIOS : UEFI doit être obligatoirement activé et Secure boot (démarrage sécurisé) désactivé.
  • 4. Démarrez sur votre clef ou DVD et utilisez le menu en face de vous (rEFInd) pour choisir avec quels pilotes GPU vous voulez installer Manjaro (libres ou propriétaires) :
* Démarrez Manjaro Linux ... (default) - 
  Choisira les pilotes libres (open source).
* Boot Manjaro Linux ... (nonfree) - 
  Cette option sélectionnera les pilotes propriétaires  pour Nvidia ou ATI

Installateur Graphique

Astuce
Depuis Manjaro-0.8.9, Le support d'UEFI est également pourvu dans l'installateur graphique. Ainsi, vous pouvez ignorer les étapes précédentes et essayer l'installateur graphique (moins rebutant) !

Pour utiliser cet installateur, sélectionnez Install Manjaro (Installer Manjaro) depuis l'écran de bienvenue proposé par Manjaro. Il est possible d'y accéder également depuis le bureau en cliquant sur l'icône prévue à cet effet.

Depuis l'ESP (EFI System Partition : système de partition EFI), qui enregistrera notre binaire GRUB de type EFI, une partition de 512 MB en fat32 peut être créée (depuis l'écran de modification des disques) et montée sur /boot/efi

Si vous essayez d'installer Manjaro à côté d'un autre système, alors une partition EFI déjà présente peut également être utilisée.

Installateur à l'interface en lignes de commandes (CLI)

  • 5-b. Ouvrez le terminal et tapez :
user $ sudo setup COPY TO CLIPBOARD


  • 6. Nous sommes à présent dans l'installateur à l'interface par lignes de commandes (CLI).
  • 7. Choisissez 1. Set date and time - an easy intuitive configuration (Configurez la date et l'heure - une option facile et intuitive).

Préparation du disque

Astuce
Si votre disque-dur est configuré comme il se doit pour continuer, alors cette étape peut être passée.
* When you click 2. Partition Hard Drives, 
  you get a dialog saying "Do you want to use GUID
  Partition Table (GPT)", choose Yes.
* Partition your disk(s) as you want (Instructions on
  manually partitioning are beyond the scope of this
  guide, some deatils are available here).
* Important Step: Create a 50~250MB EFI Partition,
  mine is 100MB (code: ef00)

Setting filesystem mount points

* After the partitioning is done, go to 4. Set Filesystem
  Mountpoints.
* Important Step: Format the EFI Partition you
  created as VFAT and mount on /boot/efi


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

1) You 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 at least 200-300 MiB.) Ensure the flags `boot` and `esp` are set on this partition.

You should also install/check whether following packages are present-

1. efibootmgr
2. dosfstools
3. grub

(How to install packages)


2) Create the /boot/efi directory

user $ sudo mkdir /boot/efi COPY TO CLIPBOARD



3.) Mount the EFI partition as /boot/efi

sudo mount /dev/sdXY /boot/efi

X = Alphabet of the drive = a,b,c ... Y = Partition number of the EFI partition = 1,2,3,4...

Example - /dev/sda4


4.) Install Grub according to UEFI

user $ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck COPY TO CLIPBOARD


5.) Update Grub configuration file.

user $ sudo update-grub COPY TO CLIPBOARD



note
If you get an error like:
path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting

Then you will need to chroot as described here, and then perform Step 5 again.


note
If you get the following error:
EFI variables are not supported on this system.

then you could load the efivarfs module :

user $ sudo modprobe efivarfs COPY TO CLIPBOARD



See also

Restore the GRUB Bootloader

[1]

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.


Refind.png


There are two ways to install rEFInd-

1.Install rEFInd from its website [2] (detailed) or install using pacman(preferred)-

user $ sudo pacman -S refind COPY TO CLIPBOARD


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-

/boot/efi/EFI/Boot/


note
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

user $ sudo mount /dev/sdXN /boot/efi COPY TO CLIPBOARD


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-

bootx64.efi

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.


note
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-

/boot/efi/EFI/Manjaro/grubx64.efi

rEFInd would use this file for booting Manjaro.

If you do not have this file or folder, try-

user $ sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck COPY TO CLIPBOARD


to create /boot/efi/EFI/Manjaro/grubx64.efi


See also- http://www.rodsbooks.com/refind/installing.html#naming

An alternative: chainloading via GRUB

An entry can be added to

/etc/grub.d/40_custom
menuentry 'Windows8 (UEFI)' {
insmod ntfs
set root=(hd0,gpt4)
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
boot
}

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:

* Click on the DVD icon and load your .iso
* In the menu left of the DVD icon, select DD Image
* Device: "choose your USB" (Attention: choose correctly,
  the device selected here will be formatted!!!)
* Partition scheme: GPT partition scheme for UEFI computer
* File system: FAT32
* Cluster size: "Don't modify"
* Volume label: "Don't modify"
* Click Start, and you are done (takes 2~5 min to complete).

Feedback

Questions, suggestions, critics? Please post here: [5]

External Links

Youtube video: https://www.youtube.com/watch?v=36tDZIXn3-k

Cookies help us deliver our services. By using our services, you agree to our use of cookies.