Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23

Thread: Grub won't load after update to / reinstall of 14.04

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

    Re: Grub won't load after update to / reinstall of 14.04

    I am running out of ideas.

    Can you boot with Supergrub. It bypasses the installed and just boots, not sure how well with UEFI versions. It did find all my BIOS installs.
    http://www.supergrubdisk.org/
    http://www.supergrubdisk.org/wiki/Main_Page

    Or from Boot-Repair advanced mode uninstall/purge grub and totally reinstall grub-efi.
    If you can boot with Supergrub you can do the same uninstall/purge & reinstall from inside your install.

    And it may need the purge and possibly some other manual deletion of grub files or folders. It may be some conflict between left over old version that did not totally get overwritten with new version.

    All my notes are for grub-pc, I think you an just use grub-efi in place of grub-pc in these instructions if you do boot into your system.

    # purge old and reinstall new to sda
    sudo apt-get purge grub grub-pc grub-common
    sudo mv /boot/grub /boot/grub_backup
    sudo mkdir /boot/grub
    sudo apt-get install grub-pc grub-common
    sudo grub-install --recheck /dev/sda
    sudo update-grub
    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.

  2. #12
    Join Date
    May 2014
    Beans
    12
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub won't load after update to / reinstall of 14.04

    OK, I'll try supergrub. In the meantime, I added some more diagnostics to my last post. I noticed a linux mint entry in the efi directory; I wonder if that's causing trouble as you hinted at.

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

    Re: Grub won't load after update to / reinstall of 14.04

    I think the Windows sub-directories are all the various languages it supports. Windows needs bootmgfw.efi and BCD.

    Ubuntu uses grubx64.efi or shimx64.efi and grub.cfg.

    Some copy grub or shim to the Boot directory to replace bootx64.efi and then boot hard drive not other entries instead of UEFI shell.
    https://help.ubuntu.com/community/UE...ing#UEFI_Shell
    EFI/boot/bootx64.efi.efi" ---> Brings up 'EFI shell environment' with command prompt.

    Another lenovo solution copy grubx64.efi to bootx64.efi & boot hard drive not anyother entry
    http://ubuntuforums.org/showthread.p...0#post12884470

    Out of curiosity what is in the grub.cfg files? If not using Mint you can just delete that folder in the efi partition. But I doubt if that is the issue. I might fully backup efi partition before making any changes.
    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.

  4. #14
    Join Date
    May 2014
    Beans
    12
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub won't load after update to / reinstall of 14.04

    Code:
    ubuntu@ubuntu:/mnt/boot/efi/EFI/ubuntu$ cat grub.cfg
    search.fs_uuid 0aa66c1e-127c-44cc-9c2e-9609f94742cb root hd0,gpt6 
    set prefix=($root)'/boot/grub'
    configfile $prefix/grub.cfg

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

    Re: Grub won't load after update to / reinstall of 14.04

    Am I looking at the correct pastebin for you? This UUID does not match?
    /dev/sda6 4acd1e08-8d71-424c-8a98-353007d892e7 ext4
    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.

  6. #16
    Join Date
    May 2014
    Beans
    12
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub won't load after update to / reinstall of 14.04

    OK, I see that in my first paste. In my second paste (also in my original post, but the link was wrong--I just fixed it), there are no instances of that UID, and sda6 is listed as

    Code:
    /dev/sda6        0aa66c1e-127c-44cc-9c2e-9609f94742cb   ext4
    In my latest http://paste.ubuntu.com/7381784/ it has the same UID for sda6, but also has 2 mentions of it on lines 233,235 which is the source of sda2/grub/grub.cfg.

    While reinstalling 14.04, I did expand sda6 and shrink sda7, hence it got a new UID and grub seems to be looking for the old ID and throwing the 'no such device' error.

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

    Re: Grub won't load after update to / reinstall of 14.04

    Usually changing partition sizes does not change UUID, but deleting & recreating them will.
    Change grub.cfg to have correct UUIDs.
    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.

  8. #18
    Join Date
    May 2014
    Beans
    12
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub won't load after update to / reinstall of 14.04

    I tried installing supergrubdisk to a usb stick, but it won't boot: I can see the device in the boot menu when I press F12, but it just goes to grub rescue. The usb stick seems to work fine otherwise. I'm gonna try making it again using a friend's windows pc later on today.

    I corrected the UUID's in /sda2/grub/grub.cfg, but it still goes to grub rescue with the 'no such device: 4acd1e...' error. I searched the efi directory for "4acd1e..." :
    Code:
    ubuntu@ubuntu:/mnt/boot/efi/EFI$ grep -r "4acd1e" ./*
    Binary file ./Boot/bootx64.efi matches
    I wonder if the problem lies in this binary file. I'm gonna look into what you suggested: replacing bootx64.efi with grubx64.efi.

    I tried this, but it didn't work: http://askubuntu.com/questions/53578...er/57380#57380

    I tried reinstalling again, but that didn't help. I noticed that it changed the UUIDs again, and I did not change any partitions this time.

    Ran boot-repair after that: http://paste2.org/d3Ea0cV5 . Still finishes with an error.
    Last edited by tobanw; May 3rd, 2014 at 05:21 PM.

  9. #19
    Join Date
    May 2014
    Beans
    12
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Grub won't load after update to / reinstall of 14.04

    I got it! In /dev/sda2/EFI, I copied the contents of the 'ubuntu' directory into the 'Boot' directory as outlined here: http://ubuntuforums.org/showthread.p...0#post12884470. Then I deleted bootx64.efi and renamed grubx64.efi as bootx64.efi. System booted up into grub. Thanks so much oldfred!

    Should I run "dpkg-reconfigure grub-efi-amd64" to configure it properly for the next update? Or boot-repair? I worry that I'll have boot problems when I next update.
    Last edited by tobanw; May 3rd, 2014 at 06:38 PM.

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

    Re: Grub won't load after update to / reinstall of 14.04

    Glad you figured out something that worked. You might want to add that to grub bug report as a valid work around.
    All this has been just suggestions on my part, as I really did not know.

    Does this work with grub-efi or grub-efi-amd64?

    these are the grub-pc commands
    #To see what drive grub2 uses see this line - grub-pc/install_devices:
    sudo debconf-show grub-pc

    This shows boot partition on my BIOS install:
    sudo grub-probe -t device /boot/grub
    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.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this 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
  •