Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: unable to boot into win7 efi

  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
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    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.
    UEFI boot install & repair info - Regularly Updated :
    https://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
    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
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    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.
    UEFI boot install & repair info - Regularly Updated :
    https://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
    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
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    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.
    UEFI boot install & repair info - Regularly Updated :
    https://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
    Oct 2008
    Location
    germany
    Beans
    183
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: unable to boot into win7 efi

    yes iused one time grub-customizer. idelted '15, because containing only macos.

    the last } wasn't missing, only in the post. excuse me.

    i don't understand, i have no file with #40 in my grub.d folder and no #6.
    should i create one?

    chris@yoyo:/etc/grub.d$ ls
    00_header 12_custom_proxy 17_uefi-firmware proxifiedScripts
    05_debian_theme 12_custom_proxy~ 18_custom_proxy README
    10_linux 14_linux_xen 20_custom
    11_custom_proxy 16_os-prober bin
    Last edited by pulpo69; November 9th, 2012 at 10:31 PM. Reason: typo

  8. #8
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: unable to boot into win7 efi

    I do not have an UEFI install but have all of these.

    Code:
    fred@fred-Precise:/media/Quantal/etc/grub.d$ ls -l
    total 72
    -rwxr-xr-x 1 root root  7541 Oct 14 12:36 00_header
    -rwxr-xr-x 1 root root  5488 Oct  4 04:30 05_debian_theme
    -rwxr-xr-x 1 root root 10891 Oct 14 12:36 10_linux
    -rwxr-xr-x 1 root root 10258 Oct 14 12:36 20_linux_xen
    -rwxr-xr-x 1 root root  1688 Oct 11 09:10 20_memtest86+
    -rwxr-xr-x 1 root root 10976 Oct 14 12:36 30_os-prober
    -rwxr-xr-x 1 root root  1426 Oct 14 12:36 30_uefi-firmware
    -rwxr-xr-x 1 root root   214 Oct 14 12:36 40_custom
    -rwxr-xr-x 1 root root   216 Oct 14 12:36 41_custom
    -rw-r--r-- 1 root root   483 Oct 14 12:36 README
    You can create a 40_custom, but it needs these lines first.

    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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

    Re: unable to boot into win7 efi

    hi oldfred,
    did the following: run boot-repair again (uefi option). this created a custoM-40, in this i pasted your code. but grub is now showing only my ubuntu entry, no windows.
    http://paste.ubuntu.com/1350274/

    never i had such troubles with ubuntu/windows. in all my former installs it worked. it seems that the efi thing is a real troublemaker.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: unable to boot into win7 efi

    Post your 40_custom.
    Does it have the few lines at the beginning and is it set as executeable?

    sudo chmod a+x /etc/grub.d/40_custom
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 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
  •