[Bug 775610] New: grub2-efi incorrect win7 menu stanza
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c0
Summary: grub2-efi incorrect win7 menu stanza
Classification: openSUSE
Product: openSUSE 12.2
Version: RC 2
Platform: x86-64
OS/Version: openSUSE 12.2
Status: NEW
Severity: Major
Priority: P5 - None
Component: Bootloader
AssignedTo: jsrain@suse.com
ReportedBy: dana@wellen.us
QAContact: jsrain@suse.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML,
like Gecko) Chrome/21.0.1180.75 Safari/537.1
Installed RC2 onto a duel boot system with existing win7 efi install.
I have the openSUSE 12.2RC2 booting fine with grub2-efi install but the win7
entry is unbootable. The efi partition
is at the end partition which I think is causing the problem.
Model: ATA WDC WD5000AAKS-0 (scsi)Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 32.3kB 500GB 500GB ntfs Microsoft basic data
2 500GB 500GB 209MB fat32 boot
The stanza created automatically by the 30_os-prober in /etc/grub.d creates
this which points to the first partition (ntfs)
and appears to be a mbr boot config.
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os
$menuentry_id_option 'osprober-chain-746C89606C891E4C' {
insmod part_gpt
insmod ntfs
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1
--hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 746C89606C891E4C
else
search --no-floppy --fs-uuid --set=root 746C89606C891E4C
fi
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
The uuids are for the ntfs partition not the gpt partition and the chainloader
command is should be:
chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
grub2-probe --target=fs_uuid /boot/efi/EFI/Microsoft/Boot/bootmgr.efi
3185-A28F
grub2-probe --target=fs_uuid /windows/C/
746C89606C891E4C
As seen the uuid being used is the one for the ntfs but should be the uuid for
the efi partition. And
what I think is casuing the problem is that it isn't on the first partition.
I can fix the issue by adding a custom menu item in the /etc/gub.d/40_custom
using please_try_again's guide but
the automatic generation produces a extra menu item.
Reproducible: Always
Steps to Reproduce:
1.run grub2-efi-mkconfig
2.
3.
Actual Results:
Mbr stanza instead of efi stanza
Expected Results:
correct stanza for efi booting
--- Comment #1 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c2
--- Comment #2 from Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c3
Andrey Borzenkov
The uuids are for the ntfs partition not the gpt partition and the chainloader command is should be:
chainloader (${root})/efi/Microsoft/Boot/bootmgfw.efi
As of today os-prober does not support native UEFI bootloader information. In your case it means that Windows partition has legacy /bootmgr/boot/bcd file with content that looks valid. It is not clear where bug is. UEFI systems may support fallback to legacy boot, so your Windows installation may actually be legacy, not UEFI. Could you show output of "efibootmgr -v" and "fdisk -l"? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c4
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c5
--- Comment #5 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c6
--- Comment #6 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c7
Per Kofod
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c8
--- Comment #8 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c9
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c10
--- Comment #10 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c11
--- Comment #11 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c12
Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c13
--- Comment #13 from Andrey Borzenkov
I'll add a note to this on my experience with 12.3 RC2.
I installed 12.3 RC2 on a Win8 box. Windows 8 is on "/dev/sda" and opensuse is on "/dev/sdb".
Everything was okay, except that there was no grub2-efi menu item to boot Windows.
It looks as if os-prober was only probing the one disk where opensuse is installed, and ignoring the other disk.
I later mounted the efi partition from the Windows disk:
mkdir /mnt/efi mount /dev/sda1 /mnt/efi
and then I ran "grub2-mkconfig" to update the grub-efi configuration. That added the needed entry to boot Windows.
Please open separate bug report; unmount /dev/sda1, run os-prober manually and attach /var/log/messages. Also output of "parted -l". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c14
--- Comment #14 from Neil Rickert
https://bugzilla.novell.com/show_bug.cgi?id=775610
https://bugzilla.novell.com/show_bug.cgi?id=775610#c15
Michael Chang
participants (1)
-
bugzilla_noreply@novell.com