Results 1 to 8 of 8

Thread: No GRUB after fresh Ubuntu install

  1. #1
    Join Date
    May 2017
    Beans
    14

    Unhappy No GRUB after fresh Ubuntu install

    I have a Microsoft Surfacebook, and tried to install Ubuntu 17.04 via a bootable USB (not a dualboot setup). I previously had Windows 10 (not dualboot) and had it removed via the Linux installation (clear all existing data).
    After the installation indicated everything was successful, I restarted my computer, only to find that there was no GRUB loader. It showed the SurfaceBook logo/loading screen, which flashes a few times (odd) and then just goes into the BIOS menu. I checked the boot sources, and Ubuntu was nowhere to be seen -- the Windows Boot Manager is also missing.
    I therefore ran the boot-repair-tool for Linux, and everything was seemingly 'fixed' after it ran (according to the success message). Here is the output:
    http://paste.ubuntu.com/24591526/
    I have tried different Linux distributions (these resulted in the same problem), as well as Windows from a bootable USB (it was simply ignored altogether during boot -- worked fine on my other machines, however).
    I have run out of ideas at this point -- any help would be greatly appreciated.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: No GRUB after fresh Ubuntu install

    Did you use the Boot-Repair live version which is now old and does not support newer NVMe drives?
    Better to use the Ubuntu live installer and add Boot-Repair with ppa.

    https://help.ubuntu.com/community/Boot-Repair

    Code:
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt-get update
    sudo apt-get install -y boot-repair && boot-repair
    You are missing ubuntu entry in UEFI. But some systems only boot the fallback or hard drive entry at /EFI/Boot/bootx64.efi. Boot-Repair will copy shimx64.efi to be that file, but probably will not add UEFI entry which we can do if needed.
    Since only booting Ubuntu another work around is to in effect change UEFI description from "ubuntu" to "Windows Boot Manager", since UEFI checks description not actual boot file which needs to be shimx64.efi or grubx64.efi.

    With only Ubuntu, you will not normally get grub menu, unless you press escape key, perhaps more than once from UEFI but before grub loads & starts booting kernel.

    More details in workarounds for UEFI systems in link in my signature.

    Bit older version of Ubuntu:
    https://ubuntuforums.org/showthread....8#post13424798
    Last edited by oldfred; May 17th, 2017 at 06:33 PM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    May 2017
    Beans
    14

    Re: No GRUB after fresh Ubuntu install

    I went ahead and ran these commands -- seems to have ran successfully.
    This time around, however, when I boot up instead of just getting the flickering screen and general process described earlier, I get these messages:
    Code:
    Failed to open \EFI\BOOT\grubx64.efi - Not found
    Failed to open \EFI\BOOT\grubx64.efi: Not found
    start_image() returned Not Found
    Sounds to me that the entry may be missing, or it is named incorrectly? How does one add the UEFI entry?
    Last edited by mdobrenko; May 18th, 2017 at 04:46 AM.

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: No GRUB after fresh Ubuntu install

    UEFI only boots external drives from /EFI/Boot/bootx64.efi. It can use that as fallback to boot internal drives also.
    I copy both grub & shim (all of /EFI/ubuntu) into /EFI/Boot on internal drive and rename shimx64.efi to bootx64.efi, but still have a (non-usuable) grubx64.efi in /EFI/Boot.
    Live installers for both Ubuntu & Windows will have /EFI/Boot/bootx64.efi (different actual files) for UEFI boot.

    Check entry is there.
    sudo efibootmgr -v

    see this for details:
    man efibootmgr

    Depending on if ESP - efi system partition is sda1 or some other drive/partition makes a different on commands. The efibootmgr defaults to sda1 for ESP. If any other drive or partition you have to specify.

    An example, more in link in my signature.

    sudo efibootmgr -c -g -w -L "UEFI hard drive" -l '\EFI\Boot\bootx64.efi' -d /dev/sdX -p Y
    sdX is drive, Y is efi partition example for sda2
    sudo efibootmgr -c -l EFIubuntu/shimx64.efi -L "ubuntu" -d /dev/sda -p 2
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  5. #5
    Join Date
    May 2017
    Beans
    14

    Re: No GRUB after fresh Ubuntu install

    The output of
    Code:
    sudo efibootmgr -v
    is:
    Code:
    BootCurrent: 0003
    Timeout: 2 seconds
    BootOrder: 0000,0001,0002
    Boot0000* Internal Storage    FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)SDD.
    Boot0001* USB Storage    FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)USB.
    Boot0002* PXE Network    FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)PXE.
    Boot0003* MsTemp    PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/USB(0,0)/HD(1,MBR,0x4294967177,0x800,0x3b8200)
    I could not tell which one to pick based on that output -- but gathering from the command you listed, I took this info from g-parted:



    And ran the following command:
    Code:
    sudo efibootmgr -c -g -w -L "UEFI hard drive" -l '\EFI\Boot\bootx64.efi' -d /dev/nvme0n1 -p 1
    Got this output:
    Code:
    Could not prepare Boot variable: No space left on device
    Any idea why this happens? Is my command incorrect?
    Last edited by mdobrenko; May 19th, 2017 at 08:24 PM.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: No GRUB after fresh Ubuntu install

    Please attach screen shots, not post in line.
    Some do not have faster Internet.
    You can easily attach with Forum's advanced editor and paper clip icon.

    Do you have a file /EFI/Boot/bootx64.efi in ESP?
    You often have to copy shimx64.efi from internal drive to be that file.
    And that version of shim/grub has to also have all of /EFI/ubuntu folder as it looks for other files in that location.

    Post Summary Report from Boot-Repair.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Apr 2016
    Beans
    21

    Re: No GRUB after fresh Ubuntu install

    The flickering seems to be a hardware problem on boot, my surface book does it even after the latest USB reload from MS. Which to be fair did cure a load of other problems and made the thing actually useable. Sorry I can't help with your major problem though.

  8. #8
    Join Date
    May 2017
    Beans
    14

    Re: No GRUB after fresh Ubuntu install

    Closing this thread as the circumstances have changed, so much that the original post is too far off (installed Windows 10, needed to have my machine for work) -- still having problems installing dualboot ubuntu, however. Posting a new thread.

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
  •