Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

  1. #11
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    Some that dual boot still want Windows to boot, but then can copy grub or shim into the /EFI/Boot folder. Ubuntu originally created it, but does not now. The older UEFI spec said that was just for external drives but newest UEFI also includes internal hard drives. Most systems then let you set UEFI to boot hard drive entry.

    If you can boot the efi partition is already mounted at /boot/efi, if you already have a bootx64.efi rename it first:
    If you do not have /EFI/Boot folder
    mkdir /boot/efi/EFI/Boot
    cp /boot/efi/EFI/grub/grubx64.efi /boot/efi/EFI/Boot/bootx64.efi
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #12
    Join Date
    Mar 2011
    Beans
    1,717

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    Sorry for the errors in my earlier post, I corrected them, and some others too. The order is /EFI/Microsoft/Boot. With double quotes around the path string, only one backslash is needed, as oldfred noted, and another typo bootmgfw4.efi was fixed.

  3. #13
    Join Date
    Dec 2013
    Beans
    77

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    !

    Well, broken through at last thanks to your help.

    The learning points for me were:-

    -When working with UEFI there is a partition that is FAT32 formatted and holds the file that efibootmgr writes to called NVRAM here.
    -NVRAM communicates with Ubuntu boot folders at boot time.
    -HP have fixed their firmware to auto access a particular path <your mount point>/EFI/Microsoft/Boot (I think)
    -HP have further nobbled UEFI to access a particular file for auto boot, namely bootmgfw.efi (I think)
    -Ubuntu has a </boot/efi> mount point for the FAT32 partition when set up with uefi enabled in the BIOS, requiring path /boot/efi/EFI/Microsoft/Boot to be formed in Ubuntu. (I used sudo nautilus)
    -shimx64 is the 'UEFI mode' bootloader in Ubuntu
    -grubx64 is the 'legacy mode' bootloader in Ubuntu
    -copy shimx64.efi and rename it bootmgfw.efi and put it in /boot/efi/EFI/Microsoft/Boot folder (again sudo nautilus helps keep an eye on the overall picture when doing this)

    ...so, jobs are as post #7! Thank you ubfan1 and oldfred!!! A Very Merry Christmas to you both

    This NVRAM set up worked for me by the way:-
    (note \ because its writing to a FAT32 file system)
    Code:
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi
    Last edited by robert48; December 11th, 2014 at 09:08 PM.

  4. #14
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    NVRAM is actually on the motherboard. It gets updated by UEFI. An dit reads the files in the FAT32 formatted efi partition. Each operating system has a folder for its boot files and the hard drive has a folder.

    Windows automatically adds its entry bootmgfw.efi but also likes to reset itself as first.
    When you install Ubuntu it registers its entries.
    Shimx64.efi is the secure boot signed version of grub.
    grubx64.efi is the UEFI boot but not signed.
    bootx64.efi is a generic boot from a device.

    HP does modify UEFI to only auto boot an entry that says Windows. So we can copy grub or shim into either the Boot or Microsoft folders and rename it to the name UEFI expects.

    Typical boot folders in efi partition when viewed from live installer.
    /EFI/Boot
    /EFI/Microsoft/Boot
    /EFI/ubuntu

    Once Ubuntu is booted, they get mounted at /boot/efi so full path is /boot/efi/EFI/ubuntu.




    You may have to copy again if grub has a major update as then you have version differences.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #15
    Join Date
    Dec 2013
    Beans
    77

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    Thanks for the further clarification. I found this useful as background understanding from wikipedia:-

    https://en.wikipedia.org/wiki/UEFI#Criticism

    It appears that UEFI is a Microsoft trojan designed to block non Microsoft software from running other OSes like linux. The hardware suppliers are increasingly being cajoled into making UEFI a lock in to Microsoft. HP you should be assamed of yourself, Microsoft are in the descendant (thankfully) and open source in the ascendant. Just make sure when you purchase a machine it is capable of running linux DIRECTLY without having to work around Microsoft imposed restrictions to the hardware. Do avoid HP machines. HP tell lies.

  6. #16
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    There is no real issue with UEFI, but with secure boot and how it is implemented.
    and then vendors modifying UEFI internally to only boot one systems by default. That is actually against the UEFI standard.
    http://www.zdnet.com/torvalds-clarif...on-7000011918/
    the whole UEFI thing is more about control than security


    I really believe the "secure" boot feature is just marketing by Microsoft who has had and has many security issues. What better to have a secure boot system to cover over all the past issues. The only thing is that the only major boot virus we have had was actually by Sony in trying to restrict your music or movie use. And secure boot does not help on all the other virus.

    http://www.zdnet.com/torvalds-clarif...on-7000011918/
    the whole UEFI thing is more about control than security

    And I assume Microsoft is offering discounts to vendors who violate the UEFI standard and make system boot Windows. Too many vendors now have implemented the same or similar features. And others have implemented other features that require many settings, where old BIOS only sometimes required a few settings. But a lot of that is just that systems are more complex and have more settings. And BIOS could not fully support all those features.

    Ubuntu even has a policy statement:

    Vendors violated UEFI specs - http://hwe.ubuntu.com/docs/ubuntu-bi...quirements.pdf
    Firmware should not enforce any boot policy other than the mechanism specified in Section 3 of the
    UEFI 2.3.1 specification [UEFI 2.3.1]. Specifically, firmware should not modify boot behaviour de-
    pending on the Description field of the EFI_LOAD_OPTION descriptor.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #17
    Join Date
    Dec 2013
    Beans
    77

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    Thanks again for the further illumination. While you are there,

    I assume NVRAM simply refers to a non volatile random access memory Questions:-

    Is that 'nvram' a pre programmed ROM chip on the motherboard?
    Or is it an (e)eprom that can be reprogrammed?
    In the FAT32 partition 'something' communicates with this hardware chip, what is the name of the managing 'application'?.

    Thanks

  8. #18
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    I think all the answers are the same or UEFI which is the replacement for BIOS.

    Links to more Info
    Intel UEFI general info
    http://uefidk.com/
    Background and details of what UEFI is.
    https://wiki.archlinux.org/index.php/UEFI

    Technical info on Legacy BIOS and UEFI AMI AptioMar 2012 - 20 MIn
    http://www.youtube.com/watch?v=dRMIvY7BiL4
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  9. #19
    Join Date
    May 2012
    Beans
    5

    Re: How do I get Ubuntu 14.10 64bit Desktop to auto boot on an EFI system?

    Quote Originally Posted by ubfan1 View Post
    To fool HP's broken UEFI implementation, put into nvram:
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi" (reversed order fixed, extra \ s removed)
    Case is not really important in a FAT filesystem. The bootmgfw.efi is the name of the original (now absent) Microsoft bootloader.
    Next, set up the bootloaders. Use shimx64.efi as the bootloader. Copy it into <your mount point>/EFI/Microsoft/Boot/bootmgfw.efi (Using the foward slashes you use on a Linux system). Also, copy grubx64.efi into the <your mount point>/EFI/Microsoft/Boot directory (since shim expects it there). I usually leave the grub.cfg file in <your mount point>/EFI/ubuntu/grub.cfg. grubx64.efi will find it there.
    That should be a working boot setup for secure or non secure boot . If you don't care about secure boot, you can just copy grubx64.efi into ...bootmgfw.efi
    Just as a fallback, you may put another copy of shim (or grubx64.efi) into .../EFI/Boot/bootx64.efi (note name change to bootx64.efi)(and a copy of grubx64.efi there too).
    Some machines will try that if the requested boot fails.
    THIS WORKS FOR: HP 19-2113w AIO

    In fact, I only had to create the .../EFI/Boot/ directory and populate as stated, above. I left the M$ directory completely out(tested multiple times to be sure).

    Enter the BIOS, at boot, using F10 and move(drag) the 'ubuntu' entry to the top of the 'Boot Order' list for UEFI. It can get reset during a failed boot!

    Also, I'm using the latest BIOS update from hp.com as of 07/13/2015.


    Thanx, again, ubfan1. This really saved my tofu !!

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

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