From Mageia wiki
Jump to: navigation, search
Line 24: Line 24:
 
For classical and live EFI installs:<BR>
 
For classical and live EFI installs:<BR>
  
'''secure boot''' should disabled<BR>
+
'''secure boot''' must be disabled<BR>
  
 
Boot from real DVD should work out of the box.<BR>
 
Boot from real DVD should work out of the box.<BR>
Line 47: Line 47:
 
The most important one to remember: UEFI (Unified Extensible Firmware Interface) support in mga4 is '''experimental''' and will get proper integration only for mga5 so there are some known facts / restrictions and issues:
 
The most important one to remember: UEFI (Unified Extensible Firmware Interface) support in mga4 is '''experimental''' and will get proper integration only for mga5 so there are some known facts / restrictions and issues:
  
* '''secure boot''' should disabled
+
* '''secure boot''' must be disabled
 
* the x86_64 classical boot(-nonfree).iso and Mageia-4-x86_64-DVD and the x86_64 liveDVDs are capable of booting in UEFI mode directly if burned to CD or DVD
 
* the x86_64 classical boot(-nonfree).iso and Mageia-4-x86_64-DVD and the x86_64 liveDVDs are capable of booting in UEFI mode directly if burned to CD or DVD
 
* if you need/want to boot from USB, copy the '''contents''' of the isos to a FAT32 formatted stick (UEFI spec does not require iso9660 boot detection)
 
* if you need/want to boot from USB, copy the '''contents''' of the isos to a FAT32 formatted stick (UEFI spec does not require iso9660 boot detection)

Revision as of 21:05, 13 February 2015

this page is a draft.
It requires improvements. If you want to improve it, simply log in and click on the Edit tab.

Please remove this {{Draft}}template, when you're sure the page is complete and correct.


View the other draft pages, or other pages to improve and maintain.

This page will give you indications on how to install Mageia with UEFI. This is useful is you want to keep a Windows 8 or later OS on you computer.


Mageia 5 instructions

In general

Starting with Mageia 5 beta 3, UEFI integration is done and install should be somewhat straightforward

For classical and live EFI installs:

secure boot must be disabled

Boot from real DVD should work out of the box.
No need to worry about gpt partitioning before starting the install, as the installer will enforce gpt partitioning.

For bootloader install you can only select which drive is boot drive, you cant select bootloader anymore, it will enforce grub2-efi.

Installing from USB

If you want to install from USB stick there is only this:

1. the stick must be formatted FAT32
2a. for classical installer we do not care about label anymore
2b. for live installer you _must_ label the stick MGALIVE
3. copy the contents of the DVD to the stick
4. boot from it


Mageia 4 instructions

In general

The most important one to remember: UEFI (Unified Extensible Firmware Interface) support in mga4 is experimental and will get proper integration only for mga5 so there are some known facts / restrictions and issues:

  • secure boot must be disabled
  • the x86_64 classical boot(-nonfree).iso and Mageia-4-x86_64-DVD and the x86_64 liveDVDs are capable of booting in UEFI mode directly if burned to CD or DVD
  • if you need/want to boot from USB, copy the contents of the isos to a FAT32 formatted stick (UEFI spec does not require iso9660 boot detection)
  • for classic installs the label does not matter, but for live medias you must label it MGALIVE so draklive module will pick it up when you use the menu options that are marked (usb boot)
  • the harddisk needs to already have a gpt partition table, otherwise partitioning fails
  • you need a fat32 formatted 100M+ partition type ef (efi boot)
    • (for dual booters with efi system this is already the case)

Preparation of USB stick

Prepare a USB stick big enough for the ISO, labelled MGALIVE and formatted FAT32. For example, in command line, if your USB device is /dev/sdf (replace 'f' in /dev/sdf with the real letter):

#mkdosfs -F 32 -I -n MGALIVE /dev/sdf

Then copy the contents of the iso to the USB stick. For example (all as root):

#mount -t iso9660 <iso-image> <a-mount-point>
#cp -a <iso-mount-point/*> <path-to-USB-stick/>
#umount <iso-mount-point>
#sync

The copy can be done from a file manager like Dolphin.

It is normal to get very many

 "cp: failed to preserve ownership for ‘/run/media/<you>/MGALIVE/*/*/*’: Operation not permitted"

-like errors, because FAT32 does not support ACLs


Classical install

  • boot from the image. This can be a challenge, according to which BIOS manage the boot of you computer. You will find hereunder explanation for specific hardware.
  • when you boot from USB and you get a list of entries in correspondence with Mageia, choose the entry ending with "usb".
  • the classic installer (stage2) X server will crash with "no display found" when uefi hands over the console, as uefi does not support/provide vesa as such,
    • but here is the fun part... just wait... you will see repeated "X server is slow to start" and in 15-60 seconds it will get started back up and the install will start.
  • when you come to partitioning, see the help for the partioning step:
    • choose "Custom disk partitioning"
    • and then mount the EFI partition as /boot/EFI,
  • and when you get to the summary screen:
    • set bootloader to grub2, and it will install grub2-efi and add it as primary bootloader in uefi menu, after that just finish the install as normal.
  • reboot

Live media

There a special instruction to follow with LiveCD or LiveDVD.

  • boot from the image, as for classical install.
  • when you boot from USB and you get a list of entries in correspondence with Mageia, choose the entry ending with "usb".
  • start the Live mode as usual
  • launch the installation from the desktop icon
  • when you come to partitioning, see the help for the partioning step:
    • choose "Custom disk partitioning"
    • and then mount the EFI partition as /boot/EFI,
  • and when you get to the summary screen:
    • open a terminal window and enter:
su -
chroot /mnt/install
urpmi grub2-efi   #(allow it to uninstall conflicting grub2)
exit #(from chroot)
exit #(from su -)
exit #(closes terminal window)
    • set bootloader to grub2, and /dev/sda as install point (it will only install in efi partition anyway). It will install grub2-efi and add it as primary bootloader in uefi menu. After that just finish the install as normal.
  • reboot

After the installation

In the case the os-prober does not write a proper menu entry for a Windows 8 install, you can add the following to /boot/grub2/custom.cfg:

menuentry 'Windows 8.1' {
     insmod part_gpt
     insmod fat
     insmod chain
     set root='hd0,gpt2 '
     chainloader ($root)/EFI/Microsoft/Boot/bootmgfw.efi
 }


Note:
For problems booting into Mageia after updating your EFI system, see EFI: can no longer boot into Mageia
Note:
The previous commands can be added to /etc/grub.d/40_custom instead and followed by grub2-mkconfig >/boot/grub2/grub.cfg
Note:
os-prober does not work with Logical Volumes Manager even if GRUB_PRELOAD_MODULES=lvm is added to /etc/default/grub.

Instructions to specific hardware

Asus

  • Plug the USB stick or insert the disc.
  • How to enter in Bios configuration: [1]
  • Then how to select the boot order: [2] French
    The media should be listed. Select it in "Boot Option #1".