[Bug 1024383] Re: invalid Windows7 EFI entries in GRUB

YannUbuntu yannubuntu at gmail.com
Thu Aug 30 09:17:24 UTC 2012


Another example:
http://ubuntuforums.org/showpost.php?p=12198689&postcount=11

We can see the buggy entry created by os-prober:

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
	insmod part_gpt
	insmod ntfs
	set root='(hd0,gpt3)'
	search --no-floppy --fs-uuid --set=root 8A3A9F1B3A9F02FD
	chainloader +1
}


And the correct entries created by Boot-Repair:

### BEGIN /etc/grub.d/40_custom ###
menuentry "Windows bootmgfw.efi, generated by Boot-Repair" {
search --fs-uuid --no-floppy --set=root 18FE-69D8
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

menuentry "Windows memtest.efi, generated by Boot-Repair" {
search --fs-uuid --no-floppy --set=root 18FE-69D8
chainloader (${root})/EFI/Microsoft/Boot/memtest.efi
}

menuentry "Boot bootx64.efi, generated by Boot-Repair" {
search --fs-uuid --no-floppy --set=root 18FE-69D8
chainloader (${root})/EFI/Boot/bootx64.efi
}

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1024383

Title:
  invalid Windows7 EFI entries in GRUB

Status in os-prober:
  New
Status in “grub2” package in Ubuntu:
  Confirmed
Status in “grub2” package in Debian:
  New

Bug description:
  64bits computer with pre-installed EFI Windows 7.

  Installed Ubuntu 64bits in dual-boot. GRUB (grub-efi) is correctly
  installed and allows to boot Ubuntu, but it does not allow to boot
  Windows.

  Its menu shows 2 INVALID Windows entries. When selecting these
  entries, it displays "Invalid EFI file path" error, and returns to
  GRUB menu.

  ### BEGIN /etc/grub.d/30_os-prober ###
  menuentry "Windows 7 (loader) (on /dev/sda3)" --class windows --class os {
      insmod part_gpt
      insmod ntfs
      set root='(hd0,gpt3)'
      search --no-floppy --fs-uuid --set=root EE00AEA700AE75ED
      chainloader +1
  }
  menuentry "Windows Recovery Environment (loader) (on /dev/sda5)" --class windows --class os {
      insmod part_gpt
      insmod ntfs
      set root='(hd0,gpt5)'
      search --no-floppy --fs-uuid --set=root B2BCAC28BCABE557
      drivemap -s (hd0) ${root}
      chainloader +1
  }
  ### END /etc/grub.d/30_os-prober ###


  
  *********************** WORKAROUND **************************

  either boot Windows from the (EFI) BIOS menu, or add valid Windows entries via Boot-Repair.
  ***************************************************************

  
  (original thread in French: http://forum.ubuntu-fr.org/viewtopic.php?pid=10010231#p10010231 )

To manage notifications about this bug go to:
https://bugs.launchpad.net/os-prober/+bug/1024383/+subscriptions




More information about the foundations-bugs mailing list