Elementary OS 0.3.1 Boot issue fix

Discussion in 'Installation' started by PersianDude, Sep 19, 2015.

  1. PersianDude

    PersianDude Thread Starter
    Expand Collapse
    New Member

    Joined:
    Sep 19, 2015
    Messages:
    2
    Likes Received:
    4
    As with most people I experienced the same issue (Elementary OS 0.3.1 not loading grub menu or booting the operating system).

    1) Install (or update to) Elementary OS 0.3.1, if you haven't already.
    2) Start your computer. You now see the black screen with "grub>"
    3) Check when your gub.cfg is located. Type "ls" to see all your partitions, Mine was in:
    Code (Text):
    ls (hd0,gpt1)/
    4) Assuming it's on (hd0, gpt1), type:
    Code (Text):
    configfile (hd0,gpt1)/efi/grub/grub.cfg
    5) You now get the grub boot menu, choose the first one.
    5.5) Note: If you have full disk encryption, you will be asked for your password in a strange way (it looks like something is wrong, but somewhere in the lines of text up there it says to enter your password, just type it).
    6) Elementary OS is booted (Note: if you get a black screen, either this is due to the acpi issue or just press or button or two and it's visible (my case), or CTRL+ALT+F1 and then CTRL+ALT+F7, otherwise acpi issue, in this case, restart again and get back to the boot list menu, like step 5, but press e and add "acpi=off" after splash)
    7) When you're in Elementary OS, open the terminal and type:
    Code (Text):

    sudo apt-get install --reinstall grub-efi-amd64
    sudo grub-install
    8) You can now reboot and everything works again.
     
    #1 PersianDude, Sep 19, 2015
    Last edited: Sep 19, 2015
  2. IgorM

    IgorM
    Expand Collapse
    New Member

    Joined:
    Sep 28, 2015
    Messages:
    1
    Likes Received:
    0
    Hello,
    I have problem reinstalling grub-efi-amd64.
    Terminal gives me:
    Reinstallation of grub-efi-amd64 is not possible, it cannot be downloaded.
    Do you have any idea how to fix this?
     
  3. akselic

    akselic
    Expand Collapse
    New Member

    Joined:
    May 16, 2015
    Messages:
    1
    Likes Received:
    0
    @PersianDude thank you so much! I spent hours trying grub-rescue and whatnot but your guide fixed the problem for me in 2 minutes.
     
  4. fons

    fons
    Expand Collapse
    Member

    Joined:
    Nov 3, 2015
    Messages:
    8
    Likes Received:
    0
    For the ones who have not migrate to gtp partition tables, the steps to follow are quite similar using "hd(0,2)" like syntax on grub, "sudo apt-get install --reinstall grub2-comon" instead.
     
  5. Agred

    Agred
    Expand Collapse
    New Member

    Joined:
    Nov 25, 2015
    Messages:
    3
    Likes Received:
    0
    If anyone has this problem even after doing everything that @PersianDude and @fons instructed, I managed to fix this problem another way.
    It's really simple and needs you only to download and launch Boot-Repair. To do this launch terminal and write:

    Code (Text):
    sudo add-apt-repository ppa:yannubuntu/boot-repair
    sudo apt-get update
    sudo apt-get install -y boot-repair && boot-repair
     
    Don't worry this is for Ubuntu. It worked great for me. Next thing to do is launch Boot-Repair if it hasn't by itself. You can do it by writing:
    Code (Text):
    boot-repair
    Next you only have to click
    and you are ready to go :)
    I hope it helps!
     
  6. Ismail

    Ismail
    Expand Collapse
    New Member

    Joined:
    Nov 28, 2015
    Messages:
    3
    Likes Received:
    0
    Hello everyone, i am very new to Linux. I have the latest version of Elementary OS,I am having the same problem mentioned above: when my computer boots it says "minimal bash line like edit...".

    When i use boot-repair it makes no difference, its says the problems fixed but when i reboot i'm back to square one.

    When i do what Persiandude said, (my configfile is at (hd0,gpt5)/boot/grub.grub.cfg and i'm booting in efi because i'm dual-booting with windows 10 which is installed in the same mode) i'm presented with the bootloader and can boot into Elementary OS, when i re-install the grub with the terminal like he mentioned, its says finished and everything appears fine but when i reboot again i'm back to square one; im presented with the same screen "minimal bash line..."

    Like i mentioned before boot-repair doesn't help. I hope someone can help me solve this, i really want to give linux a try but after a spending a whole day just to try and get linux to boot, and then failing at it, its not the most encouraging way to start.
     
  7. Agred

    Agred
    Expand Collapse
    New Member

    Joined:
    Nov 25, 2015
    Messages:
    3
    Likes Received:
    0
    Hi!
    When BootRepair finishes his work it shows a big window (fullscreen) with a link to share with others to help you if something went wrong. If this windows didn't appear then it means that BootRepair didn't do a thing. Maybe you've been installing something meanwhile? BootRepair doesn't work if something is being done with sudo. So, did you keep an eye on BootRepair working?
    Yesterday I updated my Win10 to "November Patch" (service pack?) and it has completely destroyed MBR to the point where I couldn't even access minimal BASH line but had "grub rescue".
    I've found a way to fix it here:
    http://askubuntu.com/a/495993
    After doing what he said I just had to use BootRepair again but this time it REINSTALLED whole Grub.
     
    #7 Agred, Nov 28, 2015
    Last edited: Nov 28, 2015
  8. Ismail

    Ismail
    Expand Collapse
    New Member

    Joined:
    Nov 28, 2015
    Messages:
    3
    Likes Received:
    0
    Hello after boot-repair finished it gave a link to the log (i forgot to mention), here it is: http://paste2.org/cZJKeJVt . I wasn't installing anything whilst boot-repair was working, i was keeping an eye on it, after it finished it said "repair complete" and gave a link to the log.

    I haven't looked at the link you've posted yet, i'll do that as soon as i can.
     
  9. Agred

    Agred
    Expand Collapse
    New Member

    Joined:
    Nov 25, 2015
    Messages:
    3
    Likes Received:
    0
    I'm afraid I'm too green to be able to help you any further. I see some strange errors in bootrepair log but I don't really know how to resolve them. Maybe someone else will answer Your problem.
    In your place I'd try using bootrepair again or searching for some other solution.
     
  10. Ismail

    Ismail
    Expand Collapse
    New Member

    Joined:
    Nov 28, 2015
    Messages:
    3
    Likes Received:
    0
    Hello again, i've got good news! I managed to fix it! But... the bad news is i dont exactly know how i did it.

    I might be wrong, but as far as i remember on the Main Options tab of Boot-repair these options were selected:
    .Reinstall Grub
    .Use the standard EFI File
    .Restore EFI Backups
    .Unhide boot menu

    Grub Location tab:
    Seperate //boot/EFI Partition (in my case sda2 from the drop down menu)

    Grub Options tab:
    .Purge Grub before reinstalling it (again, as far as i remember i think this was the only one i selected)

    After this i was given commands to enter in the terminal, i waited for them to complete, took a while. Here's a link to the log file created: http://paste2.org/Avf0LPX2

    Phewww! I feel so relieved after a day of head banging, though it would have been good to know what the problem was and how it was solved, but i'm not going to complain lol.
     
  11. paradise

    paradise
    Expand Collapse
    Elementary Supporter

    Joined:
    Dec 3, 2014
    Messages:
    128
    Likes Received:
    34
    The fix for this GRUB issue(s) is integrated in elementary v0.3.2 (released in middle of december 2015), they promise.

    a re-download from www.elementary.io should definitively resolve any GRUB bug (hopefully)
     
  12. bandabenj

    bandabenj
    Expand Collapse
    New Member

    Joined:
    May 9, 2019
    Messages:
    1
    Likes Received:
    0
    As stated elsewhere, it is not currently possible to ship both legacy and EFI grub at once. As such, you must connect to the internet to install on an EFI computer. Practically all other distributions are going down the other route of making EFI always work and legacy be broken on older machines. Perhaps it's worth noting there are no reports of this happening if installing while connected.
    Nox Vidmate VLC
     
    #12 bandabenj, May 9, 2019
    Last edited: May 10, 2019
  13. amrishhpuri

    amrishhpuri
    Expand Collapse
    New Member

    Joined:
    Nov 9, 2022
    Messages:
    1
    Likes Received:
    0
    Hello everyone, i am very new to Linux. I have the latest version of Elementary OS,I am having the same problem mentioned above: when my computer boots it says "minimal bash line like edit...".

    hellodear.in
    teatv download
     
    #13 amrishhpuri, Nov 9, 2022
    Last edited: Dec 9, 2022

Share This Page

Loading...