Results 1 to 5 of 5

Thread: UEFI Installing - Tips

Threaded View

  1. #1
    Join Date
    Jun 2009
    Chicago Suburbs
    Ubuntu 12.04 Precise Pangolin

    UEFI Installing - Tips

    General UEFI install Info (not for Macs)
    Do not attempt to reinstall Ubuntu except with Something Else. Users are reinstalling Ubuntu and it only shows Ubuntu and they think it will only overwrite the Ubuntu install. If it does now show the Windows then it totally erases drive. Not sure if just user error, installer bug, or Windows reverts to hibernation or fast boot and then the installer cannot see Windows so just assumes you want to install to entire drive.
    Backups are very important, see backup section below.

    Windows 8 pre-installed & secure boot
    Windows 7 with UEFI (only a few as most used BIOS), or new self built system - no secure boot issues
    Boot-Repair fixes needed
    Boot but black screen/Video issues

    Additional Info
    UltraBooks with Intel SRT and dual video
    Two drive installs - both must be gpt partitioned
    efi Menu cleanup
    gpt partitioning
    Backup - Windows & efi partition
    rEFInd Boot Manager may solve some issues

    Examples - Some users have posted details of how they did it.
    Links to additional info

    Windows 8 pre-installed & secure boot

    It seems they all let you disable secure boot (It is a Microsoft requirement), but it also seems only some let you still boot Windows with secure boot off. If Windows boots with secure boot off, you do not have to install the signed versions of grub & kernels.
    Since vendors also have bugs in UEFI, they are also updating regularly. Best to update to latest UEFI/BIOS version.
    You will need to use the 64 bit version of 13.10 (best for very new hardware) or 12.04.4 and from the UEFI menu, boot the flash drive or DVD in UEFI mode. That way it will install in UEFI mode.
    You may also need Boot-Repair for several work arounds for Vendor UEFI issues and grub bugs(most now fixed).
    Systems need Windows fast start up (hibernation) and UEFI/BIOS fast boot quick boot UEFI settings. Vital for some systems.
    Use Windows Disk Tools to shrink Windows main partition, but not to create any new partitions, if installing on same drive. Reboot into Windows after shrink so it can run its repairs to its new size.
    Backup efi partition and Windows partition before Install of Ubuntu.
    Shows install with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu
    Also shows Windows 8 screeens
    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot. required for UEFI & grub bug fixes
    With Boot-Repair Do not say yes to backup & auto rename unless you have an UEFI that just will not boot the ubuntu entry after all other fixes and only boots Windows from UEFI menu.
    Windows 8 & Ubuntu in 10 steps, shows screens
    Linux on UEFI: A Quick Installation Guide

    As of 12.04.2 or later, it is possible to install on UEFI systems with Secure Boot enabled (using signed versions of Shim, GRUB, and the Linux kernel).
    Installing Grub for UEFI secure boot is only possible if you have booted your system using EFI with secure boot on. And some systems will only boot with UEFI and secure boot on or with CSM if secure boot is off. Best to test system to see which modes it boots in.
    In secure boot mode it will only show/allow systems that have secure boot.

    Systems may now have mutlple ways to boot. UEFI Secure boot and only Windows efi file works, Secure boot and you can boot Ubuntu & Windows without the file rename, UEFI boot both systems with secure boot off. and CSM/BIOS/legacy boot.

    And some vendors have modified UEFI code (against UEFI standard) to only boot the Windows efi file. The UEFI looks for the Windows file name and only boot it with secure boot on. Or UEFI has been modified to only boot Windows.
    Boot-Repair's work around is rename grub2's shim which has the Microsoft signing key to the Windows name and boot it, so grub is in contol and then grub can boot the renamed Windows efi file. Do not run rename if you can boot Ubuntu in UEFI mode.

    Since many UEFI systems have internal issues Vendors are regularly updating UEFI/BIOS. Probably best to upgrade to newest UEFI/BIOS version.

    One user posted this which you probably need to do for those systems that only boot Windows with secure boot on:
    The key was to launch into Window 8 with secure boot enabled then choose Restart in Windows 8 selecting USB as the device to restart on.
    This is really strange since the big breakthrough was being able to run Boot Repair launched in "secure boot" mode and checking the "Secure Boot" checkbox in Boot Repair before running it.
    Only booting Windows efi file is against UEFI standard but Boot-Repair has a work around by renaming files. Also can un-rename with restore backups..
    Boot-Repair - Updated Jan 1, 2013 to not rename first time, but rename if first time Windows does not boot. Post 706 and 711, It may suggest to rename if buggy Windows seen. But if you can boot Ubuntu do not rename.
    Do not run this unless you have tested and cannot boot ubuntu entry from UEFI menu. Also some prefer manual editing of names.
    Answer NO to "buggy-kernel detected. Do you want to activate [Backup and rename Windows EFI files]?"
    Only if then you cannot boot the ubuntu entry in UEFI menu, run this:
    To perform this for buggy UEFI, just run Boot-Repair --> Adv options --> tick "Backup and rename EFI files" --> Apply

    To undo & to rename files to their original names, you just need to tick the "Restore EFI backups" option of Boot-Repair. Be sure to run this before any Windows updates to booting as efi files may get out of sync.

    Some have a corrupted efi partition. Only work around so far is backup, erase & recreate with gparted, FAT32 & boot flag to make it efi partition.
    grub-efi fails to install with Input/output error - locked efi

    UEFI NVRAM boot entries are cached in the BCD store
    BCD has 1:1 mappings for some UEFI global variables
    Any time {fwbootmgr} is manipulated, NVRAM is automatically updated

    Some systems work better to register grub/shim from inside Windows - for those that keep resetting Windows as default
    bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi

    Windows 7 UEFI, or new self built system - no secure boot issues

    You will not have any of the secure boot issues, but still should use the newest versions of Ubuntu. They include many UEFI & grub install updates.
    You still have gpt partitioning and should use Windows disk tools to shrink Windows if you have Windows.
    If installing only Ubuntu (no Window), see partitioning below. But you then can use either BIOS or UEFI, but probably should use gpt partitioning.

    Boot-Repair fixes needed

    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot.:
    Boot-Repair will convert a BIOS install to UEFI by uninstalling grub-pc, and installing grub-efi, if gpt partitioned. It will also rename Windows file if system only boots Windows and installs grub2's shim that has Microsoft secure boot key.
    Boot-Repair also installs correct Windows boot menu entry into 25_custom as the os-prober does not yet work with UEFI installs. Old bug now fixed in 13.10 and 12.04.4 or later with newest grub2's os-prober, so Boot-Repair not then required to have a correct Windows entry. Older versions still need it.
    Working entries from Boot-Repair when secure boot not required or systems that will boot multiple systems not just Windows efi file.
    menuentry "Windows UEFI bootmgfw.efi" {

    "Buggy" UEFI (At least some HP & Sony)
    Or for those UEFI that only boot Windows, Boot_Repair backs up/renames Windows efi file to boot with. Caution - if you have the "buggy" UEFI and run rename, undo rename before running Windows updates or versions of bootmgfw.efi may get out of sync (backup may be old and cannot be restored). Best to also backup efi partition also:
    Original Windows efi file bootmgfw.efi renamed bkpbootmgfw.efi. UEFI boots shim file renamed to be bootmgrw.efi, so code in UEFI thinks it still boots Windows. but actually boots grub.
    menuentry "Windows UEFI bkpbootmgfw.efi" {
    With rename you cannot boot Windows directly from UEFI, but only the renamed file from grub menu.

    Two Drive installs
    - See also examples below

    Both drives must be gpt partitioned. Best to include efi partition as first partition on every gpt drive, even if booting from Windows efi partition.
    Once you are booting with UEFI, best to have all drives and larger external devices even larger flash as gpt partitioned with an efi partition first even if just for future use. May have to manually edit UUID of efi partition, but Boot-Repair updated for two drive installs.


    With UEFI, gpt partitioning is required. If multiple drives all bootable drives need to be gpt and best if data drives are also gpt in case later you want to make it bootable. With gpt there is no primary, extended, logical partitions as in MBR(msdos) nor the 4 primary partition limit.
    You can only have one efi partition per drive and with gparted you use the boot flag to assign it as the efi partition. No other partitions can have boot flag. Only if booting in BIOS mode with Ubuntu on gpt partitioned drive, you need a bios_grub partition.
    Windows will only boot in UEFI mode so you cannot install Windows to gpt drive unless booting with UEFI.

    Black Screen/ Video Modes
    This usually required with AMD or nVidia.
    How to set NOMODESET and other kernel boot options in grub2 - both liveCD & first boot, but different
    Newer systems may have this setting:
    Also turn off one Video mode or Intel settings in UEFI/BIOS like Intel NIC if USB flash not working.
    Some Laptops need this in place of quiet splash:
    acpi_osi=Linux acpi_backlight=vendor
    Some laptops just have backlight set way down, press f key to make it brighter

    Some new Intel may need above or this:
    Or Force Intel Video mode as boot parameter in grub menu - change to your screen size

    New Haswell systems may need newest kernel in currently 13.10 to support newest video and other devices.

    - Also see examples below

    Ubuntu now installs with Intel SRT on, but when grub sees the RAID grub will not install. So you have to turn the SRT off or set UEFI/BIOS to AHCI and remove the RAID meta data from the drives. Some install Ubuntu to SSD, others install to hard drive and turn SRT back on and have had it work.
    Some discussion of limits of new nVidia driver with some Optimus support
    Intel Smart Response Technology
    Some general info in post #3
    Uses larger SSD for both Intel SRT & Ubuntu
    Ubuntu on hard drive, re-enable SRT post #19 details
    Disable the RAID, it was using the Intel rapid management thingy and telling it to disable the acceleration or the use of the SSD. If you have a different system, just disable the RAID system then install Ubuntu. Once installed you can then re-enable it.
    sudo dmraid -E -r /dev/sda
    sudo dmraid -E -r /dev/sdb

    efi Menu cleanup (# is comment)
    Grub menu

    # I add this line to grub configuration or turn off the execute bit on 30_os-prober
    gksudo gedit /etc/default/grub
    #or turn off executable bit
    sudo chmod a-x /etc/grub.d/30_os-prober
    # Then do:
    sudo update-grub
    #Or one liner
    sudo bash -c "echo GRUB_DISABLE_OS_PROBER=true >> /etc/default/grub"
    sudo update-grub
    # Edit descriptions used by Boot-Repair or remove entire boot stanza
    sudo cp -a /etc/grub.d/25_custom /etc/grub.d/bkup25_custom
    gksudo gedit /etc/grub.d/25_custom
    #Then do:
    sudo update-grub

    UEFI menu clean up (UEFI saves entries)
    If you cannot do change from UEFI menu, you can from command line with efibootmgr.
    sudo apt-get install efibootmgr

    You can add, change or delete UEFI entries:;hb=HEAD

    Remove Duplicate Firmware Objects in Windows BCD and NVRAM
    UEFI NVRAM boot entries are cached in the BCD store
    BCD has 1:1 mappings for some UEFI global variables
    Any time {fwbootmgr} is manipulated, NVRAM is automatically updated

    gpt partitioning

    GPT fdisk Tutorial -srs5694 in forums
    GPT Advantages (older but still valid) srs5694 post #2:
    You can also use gparted but must change default partitioning first.
    Select gpt under device, advanced over msdos(MBR) default partitioning....

    Backup - Windows, data & efi partitions
    Backup windows before install - post by Mark Phelps
    Another suggestion by srs5694
    Windows 8 UEFI repair USB must be FAT32
    rEFInd - Boot Manager
    rEFInd is a boot manager with nice graphical boot choices. UEFI and grub are also boot managers, but UEFI is limited and grub only has menu. You will still need grub2 as it is Ubuntu's boot loader but may want rEFInd. rEFInd also solves some issues with UEFI that will not correctly dual boot.

    Alternative efi boot Manager for UEFI limited systems:

    Haswell Laptop - Toshiba P50
    How to install Ubuntu for dual-boot with Windows 8 on Acer Aspire V5-551G. Post #3

    Ubuntu on the Precision M3800 or XPS15 Nov 2013 - Some Intel issues common to all Haswell systems
    ASUS Zenbook Prime UX32VD

    HP's seem to require rename, and manually renaming may also work better?
    Dell UltraBook - Instructions & Details in Post #15 & 16 Devine Shine
    Installing Ubuntu 12.10 x64 on Dell XPS 13 Alongside Windows from USB New user with Details post 10
    [SOLVED] Can't install Windows 8 & Ubuntu in Toshiba Portege Z930 with explanation how by OP feb 2013
    Lenovo Ideapad Y500 LiveUSB Problem
    GUIDE: (U)EFI installation Also full install post #52 superfreak on pg.6
    Intel Bay Trail 32 bit Dell Venue Pro 8/11/Asus T100 Compile own grub

    Two drive Examples

    Two Drive UEFI installs
    Samsung Series 7 laptop - Ubuntu UEFI install to sdc (ignore CSM sidetrack)
    Installing Ubuntu 12.10 alongside Windows 8 on Asus K95V laptop HD/SSD (EFI) Two drives. Details in post #6
    UEFI dual boot two drives - HP
    UEFI dual boot two drives see #14 on how edit UUID to Windows efi partiton

    Links to more Info
    Background and details of what UEFI is.
    Matthew Garrett's Blog
    Details on Ubuntu's shim with 12.10
    They land alongside their unsigned variants in /boot with the file suffix “.efi.signed”.
    Fast Startup off


    Intel - Install Ubuntu 12.10 part 3 of series for new system w/secure boot, part one install keys, part 2 install Windows 8

    Acer Windows 8 Video on getting into UEFI
    Dual-Boot Windows 8 and Ubuntu 12.10 (BIOS)
    Technical info on Legacy BIOS and UEFI AMI AptioMar 2012 - 20 MIn

    Windows 8 UEFI Repairs
    Last edited by oldfred; March 3rd, 2014 at 03:46 PM. Reason: Correction, updates
    For info on UEFI boot install & repair:
    Please use Thread Tools above first post to close thread when/if answered completely.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts