Results 1 to 4 of 4

Thread: How can I restore grub-efi to my UEFI boot partition?

  1. #1
    Join Date
    Aug 2013
    Beans
    58

    Question How can I restore grub-efi to my UEFI boot partition?

    I installed Ubuntu 13.10 and then I installed Windows 7, so I lost my grub-efi boot. How can I repair it, so my grub-efi is put in the UEFI boot partition?

    ps: the first Ubuntu installation was done using UEFI boot, so grub-efi was already installed.

  2. #2
    Join Date
    Jul 2011
    Beans
    6

    Re: How can I restore grub-efi to my UEFI boot partition?

    edit your bios to boot /efi/Ubuntu/shimx64.efi. Windows creates an entry automatically which will be at the top of your booting list in bios. If there is no such entry in your bios, then it maybe be that windows has replace the /efi/boot/bootx64.efi which is the default file for bios to boot when in uefi mode. It could also be that you managed to install windows in legacy mode and not efi mode, which is a big pain to fix.

    if you are sure you have correctly installed Ubuntu in efi (files in efi/Ubuntu/*), and windows in efi mode (files in efi/Microsoft/*), then remember to run sudo update-grub when you have edited your bios to boot Ubuntu as default, so that your new windows partition will show up in grub when you boot.

  3. #3
    Join Date
    Jun 2010
    Beans
    62

    Re: How can I restore grub-efi to my UEFI boot partition?

    if you have a live cd then boot with it.. mount the boot partition
    # sudo mkdir /mnt/boot
    # sudo mount /dev/sdXY /mnt/boot

    replace X for the letter and Y for the partition number. use 'sudo blkid' to find this.

    install grub back
    # sudo grub-install --root-directory=/mnt/boot /dev/sdX

    notice there was not a Y at the end of that last line.

  4. #4
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How can I restore grub-efi to my UEFI boot partition?

    Did you convert your Windows 7 DVD to UEFI? The DVD installs in BIOS with MBR partitioning and will just convert drive to MBR. Then you would not be able to boot Ubuntu in UEFI mode. Both Windows & Ubuntu only boot from MBR(msdos) partitions with BIOS.

    If it did convert to BIOS, did it also erase all the Linux partitions? It may have?

    Post this:
    sudo parted -l

    If it did not convert to BIOS/MBR, you should just have Windows & ubuntu entries in UEFI to boot in UEFI mode. Windows would probably be the default but you should just be able to select ubuntu.

    or for more detail on your current configuration, post this using live installer.
    Post the link to the BootInfo report that this creates. Is part of Boot-Repair:
    https://help.ubuntu.com/community/Boot-Info
    Last edited by oldfred; November 24th, 2013 at 06:51 PM.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







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
  •