854
edits
m (added languages and translate tags) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
<translate> | <translate> | ||
= Introduction = | = Introduction = <!--T:1--> | ||
UEFI is the commonly agreed on name for both the EFI & UEFI | <!--T:2--> | ||
UEFI is the commonly agreed on name for both the EFI & UEFI | |||
standards which merged. It does not include the old EFI v1, | standards which merged. It does not include the old EFI v1, | ||
or Apple's own non-standard version of EFI. | or Apple's own non-standard version of EFI. | ||
= Target computer = | = Target computer = <!--T:3--> | ||
<!--T:4--> | |||
The following guide aims to install Manjaro on a machine with UEFI enabled, Secure boot disabled, and using GUID Partition Table (GPT) disk(s). | The following guide aims to install Manjaro on a machine with UEFI enabled, Secure boot disabled, and using GUID Partition Table (GPT) disk(s). | ||
<!--T:5--> | |||
For multi-boot, the EFI system partition which is already present (or will be created), can usually be shared amongst multiple Linux installs. | 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 = | = The steps = <!--T:6--> | ||
== Common == | == Common == <!--T:7--> | ||
<!--T:8--> | |||
* 1. Download your preferred Manjaro version (XFCE, Openbox, Cinnamon, KDE, ...), must be 64-bits. | * 1. Download your preferred Manjaro version (XFCE, Openbox, Cinnamon, KDE, ...), must be 64-bits. | ||
<!--T:9--> | |||
* 2. Burn the .iso to USB or DVD. See [[Burn_an_ISO_File]] for more details. | * 2. Burn the .iso to USB or DVD. See [[Burn_an_ISO_File]] for more details. | ||
<!--T:10--> | |||
* 3. Check your BIOS, UEFI must be ON and Secure boot OFF. | * 3. Check your BIOS, UEFI must be ON and Secure boot OFF. | ||
<!--T:11--> | |||
* 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: | * 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: | ||
* Boot Manjaro Linux ... (default) - | <!--T:12--> | ||
* Boot Manjaro Linux ... (default) - | |||
This chooses the ''open-source - free'' GPU drivers. | This chooses the ''open-source - free'' GPU drivers. | ||
* Boot Manjaro Linux ... (nonfree) - | * Boot Manjaro Linux ... (nonfree) - | ||
Line 32: | Line 40: | ||
from Nvidia or ATI. | from Nvidia or ATI. | ||
=== Graphical Installer === | === Graphical Installer === <!--T:13--> | ||
<!--T:14--> | |||
{{BoxSuccess|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.}} | {{BoxSuccess|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.}} | ||
<!--T:15--> | |||
To use the Graphical Installer select the '''Install Manjaro''' option from the Manjaro Welcome screen or from the desktop. | To use the Graphical Installer select the '''Install Manjaro''' option from the Manjaro Welcome screen or from the desktop. | ||
<!--T:16--> | |||
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'' | 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'' | ||
<!--T:17--> | |||
If you are dual booting then an EFI partition from a previous install can also be used. | If you are dual booting then an EFI partition from a previous install can also be used. | ||
=== CLI installer === | === CLI installer === <!--T:18--> | ||
<!--T:19--> | |||
* 5-b. Open terminal & enter: | * 5-b. Open terminal & enter: | ||
<!--T:20--> | |||
{{UserCmd|command=sudo setup}} | {{UserCmd|command=sudo setup}} | ||
<!--T:21--> | |||
* 6. Now, we are in the CLI Installer. | * 6. Now, we are in the CLI Installer. | ||
<!--T:22--> | |||
* 7. ''Choose 1.'' Set date and time - an easy intuitive configuration. | * 7. ''Choose 1.'' Set date and time - an easy intuitive configuration. | ||
==== Disk preparation ==== | ==== Disk preparation ==== <!--T:23--> | ||
<!--T:24--> | |||
{{BoxSuccess|tip|If your hard disk is already partitioned the way you want, then this step can be skipped.}} | {{BoxSuccess|tip|If your hard disk is already partitioned the way you want, then this step can be skipped.}} | ||
* When you ''click 2.'' Partition Hard Drives, | <!--T:25--> | ||
* When you ''click 2.'' Partition Hard Drives, | |||
you get a dialog saying "Do you want to use GUID | you get a dialog saying "Do you want to use GUID | ||
Partition Table (GPT)", '''choose Yes'''. | Partition Table (GPT)", '''choose Yes'''. | ||
Line 65: | Line 83: | ||
mine is 100MB (code: ef00) | mine is 100MB (code: ef00) | ||
==== Setting filesystem mount points ==== | ==== Setting filesystem mount points ==== <!--T:26--> | ||
* After the partitioning is done, go to ''4. Set Filesystem'' | <!--T:27--> | ||
* After the partitioning is done, go to ''4. Set Filesystem'' | |||
''Mountpoints.'' | ''Mountpoints.'' | ||
* '''Important Step:''' Format the EFI Partition you | * '''Important Step:''' Format the EFI Partition you | ||
created as '''VFAT''' and mount on /boot/efi | created as '''VFAT''' and mount on /boot/efi | ||
<!--T:28--> | |||
{{BoxInfo|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.}} | {{BoxInfo|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 ==== | ==== Installation ==== <!--T:29--> | ||
<!--T:30--> | |||
* 9. ''Choose 3.'' Install system and wait... | * 9. ''Choose 3.'' Install system and wait... | ||
<!--T:31--> | |||
* 10. Now, go to ''4. Configure System'' and configure it the way you like (username, password, mirrorlist, system-name, ...). | * 10. Now, go to ''4. Configure System'' and configure it the way you like (username, password, mirrorlist, system-name, ...). | ||
<!--T:32--> | |||
* 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. When you are done, go to ''5. Install bootloader.'' Choose EFI_x86_64 > GRUB (2) UEFI x86_64, ''DON'T select BIOS GRUB.'' | ||
<!--T:33--> | |||
* 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen. | * 11.1 It will ask to format the EFI Partition you created earlier as FAT32, yes can be chosen. | ||
{{BoxInfo|note|Formatting not required if reusing previous EFI partition.}} | {{BoxInfo|note|Formatting not required if reusing previous EFI partition.}} | ||
<!--T:34--> | |||
* 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! | * 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! | ||
<!--T:35--> | |||
* 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes. | * 13. If the installer asks you about copying grub/efi files to another folder in order to maintain compatibility in some systems, choose Yes. | ||
<!--T:36--> | |||
* 14. ''Click 6.'' Quit | * 14. ''Click 6.'' Quit | ||
<!--T:37--> | |||
* 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now! | * 15. Shutdown, remove the DVD or USB, and boot. Your system should appear now! | ||
= Switching from BIOS to UEFI = | = Switching from BIOS to UEFI = <!--T:38--> | ||
<!--T:39--> | |||
1) You need to create an ''ESP (EFI System Partition)''. | 1) You need to create an ''ESP (EFI System Partition)''. | ||
<!--T:40--> | |||
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. | 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. | ||
<!--T:41--> | |||
You should also install/check whether following packages are present- | You should also install/check whether following packages are present- | ||
1. efibootmgr | <!--T:42--> | ||
1. efibootmgr | |||
2. dosfstools | 2. dosfstools | ||
3. grub | 3. grub | ||
<!--T:43--> | |||
[[Pacman_Overview | (How to install packages)]] | [[Pacman_Overview | (How to install packages)]] | ||
<!--T:44--> | |||
2) Create the ''/boot/efi'' directory | 2) Create the ''/boot/efi'' directory | ||
{{UserCmd|command=sudo mkdir /boot/efi}} | {{UserCmd|command=sudo mkdir /boot/efi}} | ||
<!--T:45--> | |||
3.) Mount the EFI partition as ''/boot/efi'' | 3.) Mount the EFI partition as ''/boot/efi'' | ||
sudo mount /dev/sdXY /boot/efi | sudo mount /dev/sdXY /boot/efi | ||
Line 117: | Line 152: | ||
Y = Partition number of the EFI partition = 1,2,3,4... | Y = Partition number of the EFI partition = 1,2,3,4... | ||
<!--T:46--> | |||
Example - ''/dev/sda4'' | Example - ''/dev/sda4'' | ||
<!--T:47--> | |||
4.) Install Grub according to UEFI | 4.) Install Grub according to UEFI | ||
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck}} | {{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=manjaro --recheck}} | ||
<!--T:48--> | |||
5.) Update Grub configuration file. | 5.) Update Grub configuration file. | ||
{{UserCmd|command=sudo update-grub}} | {{UserCmd|command=sudo update-grub}} | ||
<!--T:49--> | |||
{{BoxInfo|note|If you get an error like:}} | {{BoxInfo|note|If you get an error like:}} | ||
path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting | path '/boot/grub' is not readable by Grub on boot. Installation is impossible. Aborting | ||
<!--T:50--> | |||
Then you will need to [https://wiki.archlinux.org/index.php/Change_Root chroot] as described [[Restore_the_GRUB_Bootloader#Identify_and_Prepare_the_Installed_Partition.28s.29|here]], and then perform Step 5 again. | Then you will need to [https://wiki.archlinux.org/index.php/Change_Root chroot] as described [[Restore_the_GRUB_Bootloader#Identify_and_Prepare_the_Installed_Partition.28s.29|here]], and then perform Step 5 again. | ||
<!--T:51--> | |||
{{BoxInfo|note|If you get the following error:}} | {{BoxInfo|note|If you get the following error:}} | ||
EFI variables are not supported on this system. | <!--T:52--> | ||
EFI variables are not supported on this system. | |||
<!--T:53--> | |||
then you could load the '''efivarfs''' module : | then you could load the '''efivarfs''' module : | ||
{{UserCmd|command=sudo modprobe efivarfs}} | {{UserCmd|command=sudo modprobe efivarfs}} | ||
<!--T:54--> | |||
'''See also''' | '''See also''' | ||
<!--T:55--> | |||
[[Restore the GRUB Bootloader]] | [[Restore the GRUB Bootloader]] | ||
<!--T:56--> | |||
[https://forum.manjaro.org/t/using-livecd-v17-0-1-as-grub-to-boot-os-with-broken-bootloader/24916] | [https://forum.manjaro.org/t/using-livecd-v17-0-1-as-grub-to-boot-os-with-broken-bootloader/24916] | ||
= Dual booting with Windows = | = Dual booting with Windows = <!--T:57--> | ||
<!--T:58--> | |||
{{BoxSuccess|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.}} | {{BoxSuccess|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.}} | ||
<!--T:59--> | |||
'''In such cases ''[http://www.rodsbooks.com/refind/index.html rEFInd]''''' can be used. | '''In such cases ''[http://www.rodsbooks.com/refind/index.html rEFInd]''''' can be used. | ||
<!--T:60--> | |||
[[File:Refind.png]] | [[File:Refind.png]] | ||
<!--T:61--> | |||
There are two ways to install rEFInd- | There are two ways to install rEFInd- | ||
<!--T:62--> | |||
1.Install rEFInd from its website [http://www.rodsbooks.com/refind/installing.html] (detailed) or '''install using pacman'''''(preferred)''- | 1.Install rEFInd from its website [http://www.rodsbooks.com/refind/installing.html] (detailed) or '''install using pacman'''''(preferred)''- | ||
{{UserCmd|command=sudo pacman -S refind}} | {{UserCmd|command=sudo pacman -S refind}} | ||
<!--T:63--> | |||
Files will be present in /usr/share/refind . | Files will be present in /usr/share/refind . | ||
<!--T:64--> | |||
2.Or using the instructions on the rEFInd website: [http://www.rodsbooks.com/refind/installing.html] | 2.Or using the instructions on the rEFInd website: [http://www.rodsbooks.com/refind/installing.html] | ||
== Instructions == | == Instructions == <!--T:65--> | ||
<!--T:66--> | |||
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 [https://wiki.archlinux.org/index.php/REFInd#Installation Arch wiki] for more details. | 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 [https://wiki.archlinux.org/index.php/REFInd#Installation Arch wiki] for more details. | ||
=== Manual install === | === Manual install === <!--T:67--> | ||
<!--T:68--> | |||
Inside the refind folder ('''/usr/share/refind'''), copy the files and folders to- | Inside the refind folder ('''/usr/share/refind'''), copy the files and folders to- | ||
/boot/efi/EFI/Boot/ | <!--T:69--> | ||
/boot/efi/EFI/Boot/ | |||
<!--T:70--> | |||
{{BoxInfo|note|My ESP (EFI System Partition) is mounted at '''/boot/efi'''.}} | {{BoxInfo|note|My ESP (EFI System Partition) is mounted at '''/boot/efi'''.}} | ||
<!--T:71--> | |||
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 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. | ||
<!--T:72--> | |||
You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200mb-1gb. | You can check which partition is your ESP using Gparted; find which partition is formatted as fat32 and has size around 200mb-1gb. | ||
<!--T:73--> | |||
Can mount it as /boot/efi by | Can mount it as /boot/efi by | ||
<!--T:74--> | |||
{{UserCmd|command=sudo mount /dev/sdXN /boot/efi}} | {{UserCmd|command=sudo mount /dev/sdXN /boot/efi}} | ||
X=a,b,c... | X=a,b,c... | ||
Line 188: | Line 249: | ||
These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier. | These depend on which partition your ESP is present which can be obtained via Gparted as mentioned earlier. | ||
<!--T:75--> | |||
Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present- | Now inside the /boot/efi/EFI/Boot/ folder, there should already be a file present- | ||
bootx64.efi | bootx64.efi | ||
<!--T:76--> | |||
You can '''''rename''''' it as ''windows.bootx64.efi'' | You can '''''rename''''' it as ''windows.bootx64.efi'' | ||
Then you can rename ''refind_x64.efi'' to ''bootx64.efi'' | Then you can rename ''refind_x64.efi'' to ''bootx64.efi'' | ||
<!--T:77--> | |||
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. | 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. | ||
<!--T:78--> | |||
{{BoxInfo|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.}} | {{BoxInfo|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.}} | ||
<!--T:79--> | |||
So it could be like- | So it could be like- | ||
/boot/efi/EFI/Manjaro/grubx64.efi | /boot/efi/EFI/Manjaro/grubx64.efi | ||
<!--T:80--> | |||
rEFInd would use this file for booting Manjaro. | rEFInd would use this file for booting Manjaro. | ||
<!--T:81--> | |||
If you do not have this file or folder, try- | If you do not have this file or folder, try- | ||
<!--T:82--> | |||
{{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck}} | {{UserCmd|command=sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro --recheck}} | ||
<!--T:83--> | |||
to create '''/boot/efi/EFI/Manjaro/grubx64.efi''' | to create '''/boot/efi/EFI/Manjaro/grubx64.efi''' | ||
<!--T:84--> | |||
See also- [http://www.rodsbooks.com/refind/installing.html#naming http://www.rodsbooks.com/refind/installing.html#naming] | See also- [http://www.rodsbooks.com/refind/installing.html#naming http://www.rodsbooks.com/refind/installing.html#naming] | ||
=== An alternative: chainloading via GRUB === | === An alternative: chainloading via GRUB === <!--T:85--> | ||
<!--T:86--> | |||
An entry can be added to | An entry can be added to | ||
{{File|file=/etc/grub.d/40_custom| | {{File|file=/etc/grub.d/40_custom| | ||
Line 229: | Line 301: | ||
In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present. | In this case (hd0,4) or /dev/sda4 is the EFI System partition where the Windows bootloader is present. | ||
<!--T:87--> | |||
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. | 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. | ||
<!--T:88--> | |||
Related Forum thread: [https://forum.manjaro.org/t/detecting-efi-files-and-booting-them-from-grub/38083] | Related Forum thread: [https://forum.manjaro.org/t/detecting-efi-files-and-booting-them-from-grub/38083] | ||
<!--T:89--> | |||
The chainloading will fail on some hardware (Lenovo Ideapad 110) with the "invalid signature" message - the Refind method will still work. | The chainloading will fail on some hardware (Lenovo Ideapad 110) with the "invalid signature" message - the Refind method will still work. | ||
= Extras = | = Extras = <!--T:90--> | ||
== Using Rufus on Windows to create installation media == | == Using Rufus on Windows to create installation media == <!--T:91--> | ||
<!--T:92--> | |||
[http://rufus.akeo.ie/ Rufus] users can use the following settings: | [http://rufus.akeo.ie/ Rufus] users can use the following settings: | ||
* Click on the DVD icon and load your .iso | <!--T:93--> | ||
* Click on the DVD icon and load your .iso | |||
* In the menu left of the DVD icon, select DD Image | * In the menu left of the DVD icon, select DD Image | ||
* Device: "choose your USB" (Attention: choose correctly, | * Device: "choose your USB" (Attention: choose correctly, | ||
Line 251: | Line 328: | ||
* Click Start, and you are done (takes 2~5 min to complete). | * Click Start, and you are done (takes 2~5 min to complete). | ||
= Feedback = | = Feedback = <!--T:94--> | ||
<!--T:95--> | |||
Questions, suggestions, critics? Please post here: [http://forum.manjaro.org/] | Questions, suggestions, critics? Please post here: [http://forum.manjaro.org/] | ||
= External Links = | = External Links = <!--T:96--> | ||
<!--T:97--> | |||
Youtube video: https://www.youtube.com/watch?v=36tDZIXn3-k | Youtube video: https://www.youtube.com/watch?v=36tDZIXn3-k | ||
</translate> | </translate> | ||
[[Category:Contents Page{{#translation:}}]] | [[Category:Contents Page{{#translation:}}]] |