Menu

Problem while loading GRUB from BCD

LRMAAX
2015-04-08
2015-04-09
  • LRMAAX

    LRMAAX - 2015-04-08

    It seems that grub2win is successfully installed on my system, it even shows the created BCD entry. But when I choose the "Grub 2 for Windows" option it gives me an error saying that the file \grub2\winloader\grub2.boot is missing or corrupt .

    grub2win is my last option before disassembling my laptop, since Windows 7 has just overwritten my Ubuntu GRUB and I can't neither boot from USB nor access my BIOS. I wouldn't recommend HP laptops to anyone...

    What could I do to solve this problem?

    Contents of upload.log

    Run starts Wednesday April 08, 2015 At 10:08:59

          The OS is Windows 7  64 bit        Boot Style = BCD
          Run Type = refresh configuration
    

    Grub2Win refresh configuration was cancelled Wednesday April 08, 2015 At 10:09:03
    Run duration was 4 Seconds

        ***  Generated by Grub2Win Version 5.2.9 from directory C:\grub2  ***
                          Stamp  2015 - 0304 - 134633
                   ******      End of Grub2Win log       ******
    
                   ******  Start BCD Detail Listing  ******
    

    Windows Boot Manager

    identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
    device partition=\Device\HarddiskVolume2
    path \EFI\ubuntu\grubx64.efi
    description Windows Boot Manager
    locale en-US
    inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
    default {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
    resumeobject {8cee1aa8-89de-11e4-9fdb-9e966acc438b}
    displayorder {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
    {8cee1aa0-89de-11e4-9fdb-9e966acc438b}
    {0e012750-89b5-11e4-a828-806e6f6e6963}
    {515d94ce-89b9-11e4-a465-806e6f6e6963}
    {515d94cf-89b9-11e4-a465-806e6f6e6963}
    {83bb194e-8d4e-11e4-a594-806e6f6e6963}
    {1ae7404e-89e0-11e4-bbc2-806e6f6e6963}
    {8e421f4d-907c-11e4-8b51-806e6f6e6963}
    {db4b8bcf-8d32-11e4-b3cc-806e6f6e6963}
    {540912cc-8d48-11e4-a559-806e6f6e6963}
    {ba2d1e4c-9449-11e4-a078-806e6f6e6963}
    {e5fee14a-94e7-11e4-9f2e-806e6f6e6963}
    {fbdf49ca-9a85-11e4-a207-806e6f6e6963}
    {d04894cc-9c28-11e4-b7be-806e6f6e6963}
    {4405f6aa-9c5b-11e4-a4d8-806e6f6e6963}
    {f346cbab-9c63-11e4-b387-806e6f6e6963}
    {cfcaff4c-9cf7-11e4-a2bc-806e6f6e6963}
    {8cee1ab8-89de-11e4-9fdb-9e966acc438b}
    toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
    timeout 99
    displaybootmenu Yes

    Windows Boot Loader

    identifier {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
    device partition=C:
    path \Windows\system32\winload.efi
    description Windows 7
    locale en-US
    inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
    recoverysequence {8cee1aaa-89de-11e4-9fdb-9e966acc438b}
    recoveryenabled Yes
    osdevice partition=C:
    systemroot \Windows
    resumeobject {8cee1aa8-89de-11e4-9fdb-9e966acc438b}
    nx OptIn

    Firmware Application (101fffff)

    identifier {8cee1aa0-89de-11e4-9fdb-9e966acc438b}
    description USB Drive (UEFI)

    Firmware Application (101fffff)

    identifier {0e012750-89b5-11e4-a828-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {515d94ce-89b9-11e4-a465-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {515d94cf-89b9-11e4-a465-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {83bb194e-8d4e-11e4-a594-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {1ae7404e-89e0-11e4-bbc2-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {8e421f4d-907c-11e4-8b51-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {db4b8bcf-8d32-11e4-b3cc-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {540912cc-8d48-11e4-a559-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {ba2d1e4c-9449-11e4-a078-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {e5fee14a-94e7-11e4-9f2e-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {fbdf49ca-9a85-11e4-a207-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {d04894cc-9c28-11e4-b7be-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {4405f6aa-9c5b-11e4-a4d8-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {f346cbab-9c63-11e4-b387-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Firmware Application (101fffff)

    identifier {cfcaff4c-9cf7-11e4-a2bc-806e6f6e6963}
    description Internal Hard Disk or Solid State Disk

    Real-mode Boot Sector

    identifier {8cee1ab8-89de-11e4-9fdb-9e966acc438b}
    device partition=C:
    path \grub2\winloader\grub2.boot
    description Grub 2 For Windows

                   ******   End BCD Detail Listing   ******
    
                   ******   Start grub.cfg listing   ******
    

    Wednesday April 08, 2015 At 09:59:07

    Generated by Grub2Win Version 5.2.9 from directory C:\grub2

    Stamp 2015 - 0304 - 134633

    The grub menu type is - Character mode - No graphics - English only

    Grub2Win generated 1 menu entry.

    The Grub default boot OS is menu entry 0 - Windows

    The Grub default timeout is 10 seconds

    The Grub locale language is English The locale code is - en

    echo The Windows boot address is $winpart

    set default=0
    set timeout=10
    set pager=1
    set lang=en
    set locale_dir=$prefix/locale
    set icondir=$prefix/themes/icons

    set gfxpayload=text
    set grub2win_parm=character

    start-grub2win-update-paths-section *********

    This is the update_paths function and supporting code needed for the

    Grub ata and usb drivers

    export prefix_device prefix_path prefix_uuid
    regexp -s prefix_device '^\((.*)\)/' "$prefix"
    regexp -s prefix_path '^\(.*\)/(.*)$' "$prefix"
    probe --fs-uuid --set prefix_uuid "$prefix_device"
    
    insmod ls
    insmod help
        insmod sleep
    insmod reboot
    
    function update_paths {
        echo
        echo The partition UUID is $prefix_uuid
        search --fs-uuid --set prefix_device $prefix_uuid
        if [ $? = 0 ] ; then
        prefix="($prefix_device)/grub2"
            echo The prefix path has been refreshed to "     " $prefix
        echo
        return 0
            else 
            echo
            echo
            echo *** Grub did not find a partition with uuid $prefix_uuid ***
        echo *** Function update_paths failed                         ***
        echo
            sleep -v -i 60
        return 1
            fi
        }
    

    end-grub2win-update-paths-section *********

    start-grub2win-driver-ata-section *********

    This loads the Grub ATA support driver

    insmod ata
    echo The Grub ATA support driver has been loaded
    update_paths
    

    end-grub2win-driver-ata-section *********

    start-grub2win-driver-lv-section *********

    This loads the Grub Logical Volume support driver

    insmod lvm
    echo The Grub Logical Volume support driver has been loaded
    

    end-grub2win-driver-lv-section *********

    set menu_color_normal=white/blue
    set menu_color_highlight=black/green

    start-grub2win-auto-menu-section *********

    Menu Item 0 Windows

    Grub will boot this OS by default

    menuentry 'Windows' --class windows --class icon-windows {
    windowsautomatic
    echo Grub is now booting Windows
    echo Boot disk address is $root
    echo The boot mode is Windows Automatic
    sleep -v -i 5
    }

    end-grub2win-auto-menu-section *********

    start-grub2win-windowsautomatic-section *********

    This functions is used to boot Windows In Automatic mode

    The Windows boot partition is found using

    the $winpart variable provided by Grub2Win.

    Additional logic is required for Windows 7 and 8, since the boot partition

    is not necessarily the Windows C: drive.

    Windows sometimes boots from a special "System Reserved" partition.

    This depends on how Windows was initially installed.

    function windowsautomatic {
    if [ -f (hd0,1)/bootmgr ]; then
    set bootcontrol=BCD
    set bootstyle=bootmgr
    set bootpart=(hd0,msdos1)
    else
    set bootcontrol=boot.ini
    set bootstyle=ntldr
    set bootpart=$winpart
    fi
    if [ $bootpart = $winpart ]; then
    echo Windows will boot normally from the
    echo C: partition at address $bootpart
    else
    echo The Windows C: partition is at address $winpart
    echo
    echo Windows will boot from the special
    echo System Reserved partition at address $bootpart
    echo
    sleep -v -i 5
    fi
    set root=$bootpart
    ntldr /$bootstyle
    }

    end-grub2win-windowsautomatic-section ********

    start-grub2win-user-section ********

    end-grub2win-user-section ********

                   ******     End grub.cfg listing   ******
    
     
    • Drummer

      Drummer - 2015-04-09

      Hi Leandro,

      I've looked over your BCD listing. It appears that Ubuntu may have
      altered the Windows boot manager. Note the entry

      path \EFI\ubuntu\grubx64.efi
      description Windows Boot Manager

      This was entry created by the Ubuntu install, not Windows or Grub2Win
      and has taken over control of your boot process.

      You may want to try rebuilding your BCD using this nice tutorial from
      Tim Fisher

      http://pcsupport.about.com/od/fixtheproblem/ht/rebuild-bcd-store-windows.htm

      You will need to boot from your Windows Install DVD to access the
      command line utilities involved.

      Once your BCD is fixed. You should be able to boot Windows and
      re-install Grub2Win. Then install Ubuntu carefully, making sure you tell
      the install not to create a bootloader.

      Hope this helps,

      Dave

      On 4/8/2015 9:14 AM, Leandro Mattioli wrote:

      It seems that grub2win is successfully installed on my system, it even
      shows the created BCD entry. But when I choose the "Grub 2 for
      Windows" option it gives me an error saying that the file
      \grub2\winloader\grub2.boot is missing or corrupt .

      grub2win is my last option before disassembling my laptop, since
      Windows 7 has just overwritten my Ubuntu GRUB and I can't neither boot
      from USB nor access my BIOS. I wouldn't recommend HP laptops to anyone...

      What could I do to solve this problem?

      Contents of upload.log

      Run starts Wednesday April 08, 2015 At 10:08:59

         The  OS  is  Windows  7   64  bit         Boot  Style  =  BCD
         Run  Type  =  refresh  configuration
      

      /Grub2Win refresh configuration was cancelled / Wednesday April 08,
      2015 At 10:09:03
      Run duration was 4 Seconds

       ***   Generated  by  Grub2Win  Version  5.2.9  from  directory  C:\grub2   ***
                         Stamp   2015  -  0304  -  134633
                  ******       End  of  Grub2Win  log        ******
      
                  ******   Start  BCD  Detail  Listing   ******
      
      Windows Boot Manager
      

      identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
      device partition=\Device\HarddiskVolume2
      path \EFI\ubuntu\grubx64.efi
      description Windows Boot Manager
      locale en-US
      inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
      default {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
      resumeobject {8cee1aa8-89de-11e4-9fdb-9e966acc438b}
      displayorder {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
      {8cee1aa0-89de-11e4-9fdb-9e966acc438b}
      {0e012750-89b5-11e4-a828-806e6f6e6963}
      {515d94ce-89b9-11e4-a465-806e6f6e6963}
      {515d94cf-89b9-11e4-a465-806e6f6e6963}
      {83bb194e-8d4e-11e4-a594-806e6f6e6963}
      {1ae7404e-89e0-11e4-bbc2-806e6f6e6963}
      {8e421f4d-907c-11e4-8b51-806e6f6e6963}
      {db4b8bcf-8d32-11e4-b3cc-806e6f6e6963}
      {540912cc-8d48-11e4-a559-806e6f6e6963}
      {ba2d1e4c-9449-11e4-a078-806e6f6e6963}
      {e5fee14a-94e7-11e4-9f2e-806e6f6e6963}
      {fbdf49ca-9a85-11e4-a207-806e6f6e6963}
      {d04894cc-9c28-11e4-b7be-806e6f6e6963}
      {4405f6aa-9c5b-11e4-a4d8-806e6f6e6963}
      {f346cbab-9c63-11e4-b387-806e6f6e6963}
      {cfcaff4c-9cf7-11e4-a2bc-806e6f6e6963}
      {8cee1ab8-89de-11e4-9fdb-9e966acc438b}
      toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
      timeout 99
      displaybootmenu Yes

      Windows Boot Loader
      

      identifier {8cee1aa9-89de-11e4-9fdb-9e966acc438b}
      device partition=C:
      path \Windows\system32\winload.efi
      description Windows 7
      locale en-US
      inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
      recoverysequence {8cee1aaa-89de-11e4-9fdb-9e966acc438b}
      recoveryenabled Yes
      osdevice partition=C:
      systemroot \Windows
      resumeobject {8cee1aa8-89de-11e4-9fdb-9e966acc438b}
      nx OptIn

      Firmware Application (101fffff)
      

      identifier {8cee1aa0-89de-11e4-9fdb-9e966acc438b}
      description USB Drive (UEFI)

      Firmware Application (101fffff)
      

      identifier {0e012750-89b5-11e4-a828-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {515d94ce-89b9-11e4-a465-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {515d94cf-89b9-11e4-a465-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {83bb194e-8d4e-11e4-a594-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {1ae7404e-89e0-11e4-bbc2-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {8e421f4d-907c-11e4-8b51-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {db4b8bcf-8d32-11e4-b3cc-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {540912cc-8d48-11e4-a559-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {ba2d1e4c-9449-11e4-a078-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {e5fee14a-94e7-11e4-9f2e-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {fbdf49ca-9a85-11e4-a207-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {d04894cc-9c28-11e4-b7be-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {4405f6aa-9c5b-11e4-a4d8-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {f346cbab-9c63-11e4-b387-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Firmware Application (101fffff)
      

      identifier {cfcaff4c-9cf7-11e4-a2bc-806e6f6e6963}
      description Internal Hard Disk or Solid State Disk

      Real-mode Boot Sector
      

      identifier {8cee1ab8-89de-11e4-9fdb-9e966acc438b}
      device partition=C:
      path \grub2\winloader\grub2.boot
      description Grub 2 For Windows

                  ******    End  BCD  Detail  Listing    ******
      
                  ******    Start  grub.cfg  listing    ******
      

      Wednesday April 08, 2015 At 09:59:07

      Generated by Grub2Win Version 5.2.9 from directory C:\grub2

      Stamp 2015 - 0304 - 134633

      The grub menu type is - Character mode - No graphics - English only

      Grub2Win generated 1 menu entry.

      The Grub default boot OS is menu entry 0 - Windows

      The Grub default timeout is 10 seconds

      The Grub locale language is English The locale code is - en

      echo The Windows boot address is $winpart

      set default=0
      set timeout=10
      set pager=1
      set lang=en
      set locale_dir=$prefix/locale
      set icondir=$prefix/themes/icons

      set gfxpayload=text
      set grub2win_parm=character

      start-grub2win-update-paths-section ///*////*////*/**

      This is the update_paths function and supporting code needed for the

      Grub ata and usb drivers

      export prefix_device prefix_path prefix_uuid
      regexp -s prefix_device '^((.))/' "$prefix"
      regexp -s prefix_path '^(.
      )/(.*)$' "$prefix"
      probe --fs-uuid --set prefix_uuid "$prefix_device"

      insmod ls
      insmod help
      insmod sleep
      insmod reboot

      function update_paths {
      echo
      echo The partition UUID is $prefix_uuid
      search --fs-uuid --set prefix_device $prefix_uuid
      if [ $? = 0 ] ; then
      prefix="($prefix_device)/grub2"
      echo The prefix path has been refreshed to "" $prefix
      echo
      return 0
      else
      echo
      echo
      echo Grub did not find a partition with uuid $prefix_uuid
      echo Function update_paths failed
      echo
      sleep -v -i 60
      return 1
      fi
      }

      end-grub2win-update-paths-section ///*////*////*/**

      start-grub2win-driver-ata-section ///*////*////*/**

      This loads the Grub ATA support driver

      insmod ata
      echo The Grub ATA support driver has been loaded
      update_paths

      end-grub2win-driver-ata-section ///*////*////*/**

      start-grub2win-driver-lv-section ///*////*////*/**

      This loads the Grub Logical Volume support driver

      insmod lvm
      echo The Grub Logical Volume support driver has been loaded

      end-grub2win-driver-lv-section ///*////*////*/**

      set menu_color_normal=white/blue
      set menu_color_highlight=black/green

      start-grub2win-auto-menu-section ///*////*////*///**

      Menu Item 0 Windows

      *Grub will boot this OS by default *

      menuentry 'Windows' --class windows --class icon-windows {
      windowsautomatic
      echo Grub is now booting Windows
      echo Boot disk address is $root
      echo The boot mode is Windows Automatic
      sleep -v -i 5
      }

      end-grub2win-auto-menu-section ///*////*////*///**

      start-grub2win-windowsautomatic-section
      ///*////*////*/**

      This functions is used to boot Windows In Automatic mode

      The Windows boot partition is found using

      the $winpart variable provided by Grub2Win.

      Additional logic is required for Windows 7 and 8, since the boot
      partition

      is not necessarily the Windows C: drive.

      Windows sometimes boots from a special "System Reserved" partition.

      This depends on how Windows was initially installed.

      function windowsautomatic {
      if [ -f (hd0,1)/bootmgr ]; then
      set bootcontrol=BCD
      set bootstyle=bootmgr
      set bootpart=(hd0,msdos1)
      else
      set bootcontrol=boot.ini
      set bootstyle=ntldr
      set bootpart=$winpart
      fi
      if [ $bootpart = $winpart ]; then
      echo Windows will boot normally from the
      echo C: partition at address $bootpart
      else
      echo The Windows C: partition is at address $winpart
      echo
      echo Windows will boot from the special
      echo System Reserved partition at address $bootpart
      echo
      sleep -v -i 5
      fi
      set root=$bootpart
      ntldr /$bootstyle
      }

      end-grub2win-windowsautomatic-section ///*////*////*/*

      start-grub2win-user-section ///*////*////*/////*

      end-grub2win-user-section ///*////*////*/////*

                  ******      End  grub.cfg  listing    ******
      

      Problem while loading GRUB from BCD
      https://sourceforge.net/p/grub2win/discussion/general/thread/a2bb72a0/?limit=250#38e8


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/grub2win/discussion/general/
      https://sourceforge.net/p/grub2win/discussion/general

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/
      https://sourceforge.net/auth/subscriptions

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.