Results 1 to 9 of 9

Thread: UEFI Installing - Tips

  1. #1
    Join Date
    Jun 2009
    Chicago Suburbs
    Ubuntu 14.04 Trusty Tahr

    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 14.04 (best for very new hardware) or 12.04.5 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.1 & Ubuntu 14.04 in 10 steps, shows screens
    Linux on UEFI: A Quick Installation Guide
    But I suggest using Windows to shink Windows and reboot Windows first. But do not create any partitions with Windows disk tools. Shows Something Else Windows 8 & 14.04

    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). But best to use newest version to have latest software updates as UEFI fixes for newest hardware is more up to date in newer versions.
    14.04 Release Notes:
    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 (BIOS) 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.

    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.
    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 with Boot-Repair, 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
    Other work arounds for UEFI that only boots Windows. Most HP & Sony maybe others:

    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 used to not work with UEFI installs. Old bug now fixed in 14.04 and 12.04.4 or later with newest grub2's os-prober, so Boot-Repair not then required to have a correct Windows entry.
    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.
    Usually better to use other rename options.

    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 Also see updated comment #5 below. Grub may correctly install now with 14.04 without much effort.

    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
    acer aspire s7 Dual SSD RAID - [SOLVED] Installed Ubuntu on Pre- UEFI Win

    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; 4 Weeks Ago at 05:33 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.

  2. #2
    Join Date
    May 2013

    Re: UEFI Installing - Tips

    I thought this should be meantioned somewhere like here, by the "Boot-Repair will convert a BIOS install to UEFI" bit, or on .

    Main Point:
    While trying to Convert Ubuntu into EFI mode, If there is a bios_grub flagged partition, it needs to be removed before running boot-repair.

    I was installing and trying various Ubuntu + Mint flavours on my new Samsung 3 series laptop, in dual-boot with Win8. Somewhere along the line I picked up a small (1mb) grub_bios flagged partition, as at least one of the installations happened in legacy mode.

    SecureBoot was always disabled. UEFI only, CSM, and legacy were changed as neccessary to get my various Install Media to boot.

    Although EFI was detected by boot-repair, grub persisted in looking in this grub_bios partition and not the EFI partition after running boot-repair (with various options including a purge of grub). I confirmed that the grub on the EFI partition was good by "SET"ting it from the grub_rescue prompt and booting the pc to both win8 + linux thereafter.

    I eventually fixed my problems by;
    - booting a "live" disk in EFI mode.
    - deleting the bios_grub flagged partion with gparted.
    - running boot-repair again.

    This was far easier than most of the googled "help" which was mostly about installing and configuring some other EFI bootmanager manually. As a linux newbie, I wasn't prepared to put the time into learning all that. I was just going to delete linux partitions and re-install (after ensuring the DVD booted in EFI mode), when I noticed the extra partition.

    P.S. Thanks a lot for the consolidated info in your post, it was very helpful.

  3. #3
    Join Date
    Nov 2008
    Arizona, USA

    Re: UEFI Installing - Tips

    One thing that threw me, when setting up my newly-bought UEFI system for dual-botting Ubuntu (13.04, Raring) is when you use boot repair, it lets you know that you need to go into your UEFI setup (I guess you can't call it BIOS, if you have UEFI) and mark the correct .efi file as trusted, if you have secure boot enabled (My Win8 woudn't boot unless Secure Boot was enabled).
    It makes sense, now that I think about it after the fact, but in order to enable the UEFI setup to mark anything as trusted (and do a few other things), you have to have a password set in the UEFI Setup; on my Acer laptop (InsydeH2O firmware) it was the "Supervisor" password. there's nothing stopping you (with my system, yours may vary) from unsetting the password after you've made your changes and saved them, though I decided to leave it.
    Also, unless you need to set it, if the hard disk password setting says "Frozen", you can ignore it. The hard disk password can only be set/reset if you did a cold boot. I assume that's probably true for all dydtems, though they may call it something else on other UEFI formware.

    It was pretty frustrating that while I know the "help" within the UEFI firmware is limited, it couldn't have at least given a clue that some settings had to be changed (set a Supervisor password, in this case) in order for other settings to be available to even be selected. I wasn't able to find a mention of anything about the UEFI setup on Acer's official site, but I got a clue when someone on their Acer User's site happened to mention that he had to set the password in order to get to the additional settings.

    Again, in retrospect, given the purpose of SecureBoot, this actually makes sense, where you have to have changing settings that would get around SecureBoot password-protected by default. But at 11:30 at night when I had finally gotten to that point in my Ubuntu install, it didn't occur to me to try setting a password to see if that enabled changing any of the settings associated with SecureBoot.

  4. #4
    Join Date
    Mar 2014

    Re: UEFI Installing - Tips

    Here is my info on how to set up Toshiba p-50 dual boot in EFI mode with NIK working properly:

    Bios is set to secure boot enabled and nik on.
    Latest 13.10 as of today boots OK when secure boot is enabled and fails to boot when it off on this Toshiba P-50 laptop. BIOS has been updated with latest firmware but I think it did not make any difference.
    Boot USB stick with ubuntu 13.10 into live boot and at terminal start 'gparted'.

    Do not touch any partition except for the one where windows 8 is installed. It is partition #4 from disk start, ntfs resize it down to around 250 gigs
    Next after on empty space create Data partition NTFS for around 500 gigs for data storage. It will be partition #5 from disk start.
    Next after on empty space create primary partition around 190 gigs ext4 type for Ubuntu install. It will be partition #6 from disk start.
    Use the rest of empty space for linux swap partition.

    Now reboot into windows 8 - it should be ok on resized partition and it should see 500 gigs Data partition from windows explorer.
    Reboot with orange usb stick with ubuntu 13.10 and choose install into ext4 and swap partitions that you done previously.
    Choose to install boot loader into linux dedicated partiton.
    Linux will not boot after install as grub is not installed yet. Boot with usb stick again , mount EFI partition with 'disks' and back up all content.
    In case boot config goes wrong you can just delete everything on EFI partition and put backed up files and folders back.
    After that run
    sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update
    Press Enter, then type the following command:
    sudo apt-get install -y boot-repair && boot-repair

    choose 'recommended repair' and disregard it's whining about 'you should disable secure boot' as it will install.
    The problem with grub2 installed on toshiba p50 that it will ask you for F12 key for 6 seconds then it will try to boot from network if nik is enabled for couple of
    minutes first with version 6 then with version 4 network boot even when network boot is on the last position in BIOS. It just disregards bios settings and you can
    disable nik in bios to fix that. That is the huge problem of toshiba p-50 and to fix that permanently mount EFI partition with linux 'disks',
    ( bios set to EFI boot, NIK enabled, secure boot enabled )
    'sudo nautilus'
    to be able to edit it. EFI parttion was mounted on /boot/efi
    go to /boot/efi/EFI/Boot/ and rename bootx64.efi to bootx64-GRUB.efi
    now copy
    /boot/efi/EFI/ubuntu/shimx64.efi and paste it as

    Reboot and enjoy. GRUB will load instantly now without trying network boot and windows and ununtu will boot without any problem.
    Last edited by nik6; March 15th, 2014 at 04:50 AM.

  5. #5
    Join Date
    Sep 2010
    Brisbane, Australia
    Kubuntu 12.04 Precise Pangolin

    Re: UEFI Installing - Tips

    Thank you. This, again, is one of those clear and simple things one needs to do to have eg. Kubuntu 13.10 installed and running on modern hardware - especially one with ATI graphics card installed.

    What I did in the end I just installed Kubuntu 13.10 fresh, and instead of trying to boot it from the disk I shoved Boot Repair and repaired the grub mess. It worked nicely.
    Last edited by Sciezyna; April 7th, 2014 at 06:02 PM.
    Intel, Kubuntu 12.04 LTS, Oracle V-Box, AMD Ubuntu 8.04 Gnome.

  6. #6
    Join Date
    Oct 2007
    Ubuntu Studio

    Thumbs up Re: UEFI Installing - Tips boot repair
    This was very Helpfull!
    Uncle Sam
    Last edited by lisati; June 28th, 2014 at 07:15 PM. Reason: Fix font

  7. #7
    Join Date
    Jul 2013

    Re: UEFI Installing - Tips

    Recently purchased Acer E1-510, pre-installed with Windows 8. Bios (v 2.02) was unable to read USB iso Ubuntu 14.04 from UEFI.
    I downloaded Bios (v 2.07) and changed it to bootable via Unetbootin. Installed/updated Bios, which then gave UEFI/Legacy option. Then installed Ubuntu via Bios Legacy option.

  8. #8
    Join Date
    Sep 2010
    Beta Testing in Canada
    Ubuntu Development Release

    Re: UEFI Installing - Tips boot repair

    Quote Originally Posted by sam-c View Post
    This was very Helpfull!
    Uncle Sam

    Checked this out in the USC 14.04.1 Not there. So .. in a way .. not trusted?? Does'nt that defeat the whole security concept of UEFI?
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running Trusty /devel/@ 5.120GHz32bit/ Please put [ prefix] on New Threads!

  9. #9
    Join Date
    May 2005
    Staffordshire UK
    Ubuntu 14.04 Trusty Tahr

    Re: UEFI Installing - Tips

    UltraBooks[/B] - 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.
    That's not actually correct in all cases. Grub will install perfectly OK without disabling RAID. You need to install Grub on the EFI partition. Works perfectly OK with my Lenovo U410 Ultrabook.


Posting Permissions

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