Difference between revisions of "UEFI - Install Guide"

imported>Aaditya
imported>Aaditya
(14 intermediate revisions by 3 users not shown)
Line 43: Line 43:
   from Nvidia or ATI.
   from Nvidia or ATI.


* 5. Open terminal & enter:
 
{{Note|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.}}
 
 
* 5. To use the Graphical Installer select the '''Install Manjaro''' option from the Manjaro Welcome screen or from the desktop.
 
 
=== Advanced instructions (for CLI installer) ===
 
 
* 5-b. Open terminal & enter:


  $ sudo setup
  $ sudo setup


* 6. Now, we are in the CLI Installer (the graphical installer doesn't support UEFI yet).  
* 6. Now, we are in the CLI Installer.  
'''Choose 2.''' Use testing installer (EFI support).
'''Choose 2.''' Use testing installer (EFI support).


Line 63: Line 73:
  then please post here: [http://forum.manjaro.org/index.php?topic=5268.0]
  then please post here: [http://forum.manjaro.org/index.php?topic=5268.0]


So, if '''8.1''' (Auto-Prepare) is chosen, you skip the process below and go to 9...
'''If 8.1''' (Auto-Prepare) was chosen, you skip the process below and go to point 9 below.


  * When you '''click 2.''' Partition Hard Drives,  
  * When you '''click 2.''' Partition Hard Drives,  
Line 108: Line 118:


For UEFI install the Disk partition table should be of type '''GPT (Guid Partition Table).'''
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




Line 114: Line 127:
Its basically a fat32 partition which has the .efi files for booting.
Its basically a fat32 partition which has the .efi files for booting.


You can create the partition using Gparted.
You can create the partition using Gparted (type- fat32 or fat16 and size around 512 mb).


You would also need to install/check whether following packages are present-
You would also need to install/check whether following packages are present-
Line 121: Line 134:
  2. dosfstools
  2. dosfstools
  3. grub
  3. grub
[[Pacman_Overview | (How to install packages)]]




Line 140: Line 155:
5.) Update Grub configuration file.
5.) Update Grub configuration file.
  sudo update-grub
  sudo update-grub
'''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 [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.
If you get the following error :
EFI variables are not supported on this system.
then you should load the '''efivars''' module :
sudo modprobe efivars




Line 145: Line 173:


[[Restore the GRUB Bootloader]]
[[Restore the GRUB Bootloader]]
[https://forum.manjaro.org/index.php?topic=7315.msg120001#msg120001 https://forum.manjaro.org/index.php?topic=7315.msg120001#msg120001]


== Dual booting with Windows ==
== Dual booting with Windows ==
Line 151: Line 181:




'''In such cases install ''[http://www.rodsbooks.com/refind/index.html rEFInd]'''''
'''In such cases ''[http://www.rodsbooks.com/refind/index.html rEFInd]''''' can be used.




Line 164: Line 194:
Files will be present in  /usr/share/refind .
Files will be present in  /usr/share/refind .


2.Or use mine [https://www.dropbox.com/s/bafo0sp432pw2tj/refind.zip here]
2.Or using the instructions on the rEFInd website: [http://www.rodsbooks.com/refind/installing.html]
Extract the contents of the zip file.


=== Instructions ===
=== Instructions ===


Go inside the refind folder ('''/usr/share/refind''', or from the one obtained from my .zip file), and copy the files and folders to-
Inside the refind folder ('''/usr/share/refind'''), copy the files and folders to-


  /boot/efi/EFI/Boot/
  /boot/efi/EFI/Boot/
Line 191: Line 220:
  bootx64.efi
  bootx64.efi


You need to '''''rename''''' it to ''windows.bootx64.efi''
You can '''''rename''''' it as ''windows.bootx64.efi''
Then you should rename ''refind_x64.efi'' to ''bootx64.efi''
Then you can rename ''refind_x64.efi'' to ''bootx64.efi''
And you are done!


The bootx64.efi files boot by default, hence rEFInd would now boot by default, and would detect your 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.


'''Note'''-
'''Note'''-
Line 213: Line 241:




See this 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 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: [http://forum.manjaro.org/index.php?topic=11998.0]


==Feedback:==
==Feedback:==
Anonymous user