Results 1 to 10 of 12

Thread: unable to boot into win7 efi

Hybrid View

  1. #1
    Join Date
    Oct 2008
    Location
    germany
    Beans
    183
    Distro
    Ubuntu 13.04 Raring Ringtail

    unable to boot into win7 efi

    I have win7 and ubuntu12.10 installed (efi mode both).
    3weeks ago i used bootrepair because grub was only showing ubutu not
    windows, windows i had to start via clickbios (came with the msi motherboard). after using bootrepair i Couldn't boot into windows any more
    if i choosed windows in the clickbios, i ended up in grub there i coul only
    start ubuntu.
    So i installed windows from new (the recovery option with the original
    win cd Didn't work too.
    from time to time i started boot-repair but only for seeing the boot-info.
    yesterday i hitted without intention repair and windows was gone.
    with f11 is showing windows but leading to a grub2 sreen in which only the ubuntu option is working.
    choosing ubuntu in the f11 screen is happening the same. in the grubscreen are also some entries with mac-os (which i never had).
    http://paste.ubuntu.com/1343589/ here is the bootinfo after the desaster.
    how can i get the boot entry back?
    i searched in the net too for information, but being honest i'm a noob so i didn't understand a great part of it.

    when my f11 boot option for windows was working i had the following in boot-repair-info:

    ================================ Mount points: =================================

    Device Mount_Point Type Options

    /dev/sda4 /boot/efi vfat (rw)
    /dev/sda5 / ext4 (rw,errors=remount-ro)
    /dev/sdb1 /home ext4 (rw)
    /dev/sdb2 /storage ext4 (rw)

    in the new boot info this line is gone:
    /dev/sda4 /boot/efi vfat (rw)

    also before gparted showed me sda4 as not mounted. Now sda4 shows as mounted. if i unmount it and reboot it shows again as
    mounted.

    the boot/efi partition seems ok.

    chris@yoyo:~$ find /boot/efi -iname *.efi
    /boot/efi/EFI/ubuntu/grubx64.efi
    /boot/efi/EFI/Microsoft/Boot/bootx64.efi
    /boot/efi/EFI/Microsoft/Boot/memtest.efi
    /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
    /boot/efi/EFI/Microsoft/Boot/bootmgr.efi
    /boot/efi/EFI/Boot/bootx64.efi

    also i had the mac.. entries in grub.
    i hour ago i therewas udate of repair.
    did boot repair with updated version and it made a win 7 entry in grub,
    but choosing it i come to same grub screen.

    even in f11 (clickbios options) my efi-dvd-drive is gone only remaining
    the normal dvd-drive.

    any idea how i can save my install?

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

    Re: unable to boot into win7 efi

    Please update Boot-Repair. There was a bug where it was adding Mac entries to every system. Re-run repairs and post new BootInfo report.

    You also have grub in the MBR. Hope that does not confuse booting.

    Just for my curiosity:
    You did your efi partition end up as sda4 and after the Windows partitions? The UEFI spec says it should be first, but some Windows installs will have the vendor recovery first then the efi partition as sda2. There may be some limits on how far into the drive the UEFI can read the efi partition.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  3. #3
    Join Date
    Oct 2008
    Location
    germany
    Beans
    183
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: unable to boot into win7 efi

    yes my /boot/efi is sda4.
    http://paste.ubuntu.com/1345790/ this is the boot-repair output, did it
    with newwest boot-repair (updated 5 hours ago). for first time bootrepair
    put a windows7 entry into grub, but entry don't work (it's a circle), hitting the entry i'm otherwise back to grub.

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

    Re: unable to boot into win7 efi

    You have a bunch of extra proxy files adding entries. Not sure where they all came from. Do you have a custom.cfg file?

    11_custom_proxy
    12_custom_proxy
    15_custom_proxy
    18_custom_proxy
    20_custom refers to source $prefix/custom.cfg
    Code:
    ### BEGIN /etc/grub.d/12_custom_proxy ###
    menuentry "Windows 7 UEFI" {
    search --file --no-floppy --set=root /efi/Microsoft/Boot/bootmgfw.efi
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }
    ### END /etc/grub.d/12_custom_proxy ###
    The one 12_custom looks like a correct Windows efi entry.

    I would change all the others to not executable, so they are not added to grub.cfg. If you find you need them you can change them back with +x.

    sudo chmod a-x /etc/grub.d/15_custom_proxy
    Same for all the others except 12.

    Does Windows show it is starting to boot? Grub may return if boot file not found.

    You could also copy this into 12_custom_proxy as an alternative just to see if extra add in modules help. Most do not seem to need them. Edited to be your sda4 and your UUID for the efi partition.

    gksudo gedit /etc/grub.d/12_custom

    Code:
    menuentry "Windows 7 UEFI alt" {
      insmod part_gpt
      insmod fat
      insmod search_fs_uuid
      insmod chain
      set root='(hd0,gpt4)'
      search --fs-uuid --no-floppy --set=root F112-DFD6
      chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }
    Last edited by oldfred; November 9th, 2012 at 08:46 PM.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  5. #5
    Join Date
    Oct 2008
    Location
    germany
    Beans
    183
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: unable to boot into win7 efi

    i deleted #15 because it had only macos (which i never had).
    inactivated the rest and copied your code in #12.
    reboot. but happened the same choosing the w7 entry (circle back to grub)
    and a bunch of macos entries.

    my 12-custom-proxy looks like that now:
    ### BEGIN /etc/grub.d/12_custom_proxy ###
    menuentry "Windows 7 UEFI" {
    search --file --no-floppy --set=root /efi/Microsoft/Boot/bootmgfw.efi
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }
    ### END /etc/grub.d/12_custom_proxy ####!/bin/sh
    #THIS IS A GRUB PROXY SCRIPT
    '/etc/grub.d/proxifiedScripts/custom~1' | /etc/grub.d/bin/grubcfg_proxy "-*
    -#text
    +'Windows 7 UEFI'~98359908d36303c968019bfd5c599fa7~
    "
    menuentry "Windows 7 UEFI alt" {
    insmod part_gpt
    insmod fat
    insmod search_fs_uuid
    insmod chain
    set root='(hd0,gpt4)'
    search --fs-uuid --no-floppy --set=root F112-DFD6
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi

    also a 12-custom-proxy~ was created an looks like that:
    #!/bin/sh
    #THIS IS A GRUB PROXY SCRIPT
    '/etc/grub.d/proxifiedScripts/custom~1' | /etc/grub.d/bin/grubcfg_proxy "-*
    -#text
    +'Windows 7 UEFI'~98359908d36303c968019bfd5c599fa7~

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

    Re: unable to boot into win7 efi

    It looks like the proxy scripts are from grub customizer.

    https://answers.launchpad.net/grub-customizer/+faq/1355

    I would turn off 15_ also.

    and just copy this into 40_custom. Make sure you include last } as it looked like it was missing. If you want Windows before the Ubuntu entires, copy 40_custom to 06_custom and then add entries. But the custom files have to have the couple of lines at the top of the file as in 40_custom.

    Code:
    menuentry "Windows 7 UEFI" {
    search --file --no-floppy --set=root /efi/Microsoft/Boot/bootmgfw.efi
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }
    
    menuentry "Windows 7 UEFI alt" {
    insmod part_gpt
    insmod fat
    insmod search_fs_uuid
    insmod chain
    set root='(hd0,gpt4)'
    search --fs-uuid --no-floppy --set=root F112-DFD6
    chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
    }
    If you go directly into UEFI, you should have two entries and be able to directly boot Windows. If that does not work then it is a Windows issue.
    For info on UEFI boot install & repair:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







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
  •