Results 1 to 10 of 10

Thread: EFI Booting not Automatic

  1. #1
    Join Date
    Aug 2014
    Beans
    4

    EFI Booting not Automatic

    I am currently using elementaryOS (ubuntu 12.04 base) as my primary distro. I have been trouble free for some time but have had to use F9 to boot the system since I first installed the OS. If I do not use F9 to boot from a EFI file, the system will find nothing and reboot in a loop. I have secure boot disabled, EFI with CSM enabled in BIOS and legacy disabled as well. I have attempted to update grub numerous times but nothing has fixed the issue.

    I now ask for help from the community.

    Thanks
    Last edited by hatcher-hobby; August 28th, 2014 at 04:09 PM.

  2. #2
    Join Date
    Mar 2011
    Beans
    1,994

    Re: EFI Booting not Automatic

    What output do you get from sudo efibootmgr -v ?
    That should list the boot order list, and the bootloader paths.
    Usually, something will be obviously wrong, but you could add a "fallback" bootloader (grubx64.efi with non-secure boot) to /EFI/Boot/bootx64.efi. Thats grubx64.efi renamed as bootx64.efi. The grub.cfg file may stay in /EFI/ubuntu. This bootx64.efi is the removable media bootloader, but is sometimes tried when other failures occur.

  3. #3
    Join Date
    Aug 2014
    Beans
    4

    Re: EFI Booting not Automatic

    running sudo efibootmge -v gives me

    Code:
    BootCurrent: 0000
    Timeout: 5 seconds
    My current boot folder structure is laid out as follows
    /boot/
    /boot/grub/
    /boot/efi/EFI/elementary/grubx64.efi

    Since the cmd didnt list anything, Im gonna assume something is wrong.

  4. #4
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: EFI Booting not Automatic

    ...EFI with CSM enabled in BIOS and legacy disabled as well
    AFAIK CSM and legacy modes are same.
    If CSM is enabled then EFI boot is not possible... hence you have to use f9.
    Post the Bootinfo summary which Boot-Repair tool creates... just note down the url to the file and post it here.
    "Evolution is Nature's way of issuing upgrades."


  5. #5
    Join Date
    Aug 2014
    Beans
    4

    Re: EFI Booting not Automatic

    As you requested good sir...

    http://paste2.org/L5KDwxjI

  6. #6
    Join Date
    Mar 2011
    Beans
    1,994

    Re: EFI Booting not Automatic

    Looks like you are in UEFI mode,since there is no MBR, but you don't seem to have any bootloaders to try loaded into nvram. What machine do you have? Some are critically short of nvram, and might have failed to add the paths. efibootmgr has the capability to add a bootloader, and to adjust the boot order. I've never done it myself, but just read the man pages (man efibootmgr). However, if the nvram is lacking, maybe that won't work. First, I'd suggest copying the grubx64.efi bootloader to the bootx64 like:
    sudo cp /boot/efi/EFI/elementary/grubx64.efi /boot/EFI/Boot/bootx64.efi
    Now it just might boot, or at least get into grub. If you get into grub, but don't get a menu, just a command line, you are probably missing the grub.cfg file in the EFI partition. Usually, that's in /EFI/ubuntu/grub.cfg, and grubx64.efi will find it from wherever it is run, but don't know about elementary OS. Anyway, the grub.cfg file there is just a 3 liner which brings in the grub.cfg from /boot/grub/grub.cfg. Here's what it should look like:
    search.fs_uuid ec133adb-6cbd-4be0-b108-adcf846a855c root hd0,gpt2
    set prefix=($root)'/boot/grub'
    configfile $prefix/grub.cfg

    Try that, it doesn't take any nvram at all, and if it fails, then try the efibootmgr to add the grubx64.efi boot entry.

  7. #7
    Join Date
    Mar 2011
    Location
    Idaho
    Beans
    293

    Re: EFI Booting not Automatic

    to add efi path to the comps nvram:
    Code:
    sudo efibootmgr -c -d /dev/sda -p 1 -w -L  elementary -l /efi/elementary/grubx64.efi
    NOTE: -p 1 -w ==1 is ONE , -i /efi/== -i is a small L



    after you do that post
    Code:
    sudo efibootmgr -v
    Will likely need to set the elementary entry active and put it as first boot entry, but need it entry number first.

    http://linux.die.net/man/8/efibootmgr

  8. #8
    Join Date
    Apr 2011
    Location
    3rd Rock from the Sun
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: EFI Booting not Automatic

    Quote Originally Posted by hatcher-hobby View Post
    As you requested good sir...

    http://paste2.org/L5KDwxjI

    Code:
    parted -l: 
    Model: ATA MKNSSDAT240GB (scsi)
    Disk /dev/sda: 240GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
     
    Number  Start   End     Size    File system     Name  Flags
    1      1049kB  99.6MB  98.6MB  fat32                 boot
    2      99.6MB  223GB   223GB   ext4                  msftdata
    
    3      223GB   240GB   17.0GB  linux-swap(v1)
    Firstly, using Gparted remove 'msftdata' flag from the second or /dev/sda2 ext4 partition.
    'msftdata'=microsoftdata, but since its a Linux it should not be on Ext4 partition.

    Shut down and reboot from HDD. Tell us if Ubuntu boots.
    Run Boot-Repiar if you cannot boot.
    Make sure the Ubuntu DVD/USB boots in EFI mode to run boot-repair: See HERE.
    "Evolution is Nature's way of issuing upgrades."


  9. #9
    Join Date
    Aug 2014
    Beans
    4

    Re: EFI Booting not Automatic

    Alright, so I tried the suggested solutions such as adding the .efi file using efibootmgr cmd as well as removing the msftdata flag for my ext4 partition.
    I tried to create a few different paths to the nvram but nothing worked.

    I am at a loss still.

  10. #10
    Join Date
    Mar 2011
    Location
    Idaho
    Beans
    293

    Re: EFI Booting not Automatic

    post output of " sudo efibootmgr -v "

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
  •