[Bug 831116] New: grub2's os-prober generates invalid entries for windows
https://bugzilla.novell.com/show_bug.cgi?id=831116 https://bugzilla.novell.com/show_bug.cgi?id=831116#c0 Summary: grub2's os-prober generates invalid entries for windows Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Bootloader AssignedTo: mchang@suse.com ReportedBy: jslaby@suse.com QAContact: jsrain@suse.com CC: arvidjaar@gmail.com Found By: --- Blocker: --- Created an attachment (id=549284) --> (http://bugzilla.novell.com/attachment.cgi?id=549284) generated grub.cfg I've installed a fresh 12.3 on a system with windows 7, but cannot bot windows 7 without editing grub.cfg. os-prober says: /dev/sda1:Windows 7 (loader):Windows:chain /dev/sda2:Windows 7 (loader):Windows1:chain /dev/sda6:Windows Vista (loader):Windows2:chain /etc/grub.d/30_os-prober generates for sda2 this: menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-461ED2B01ED297EF' { insmod ldm insmod ntfs set root='ldm/85ebf49d-6b7f-11e2-a2d2-74e543f09e47/Volume2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0 --hint-efi=hd0 --hint-baremetal=ahci0 --hint='ldm/85ebf49d-6b7f-11e2-a2d2-74e543f09e47/Volume2' 461ED2B01ED297EF else search --no-floppy --fs-uuid --set=root 461ED2B01ED297EF fi chainloader +1 } There is no ldm though, they are all static partitions. If I remove --hint='ldm/85ebf49d-6b7f-11e2-a2d2-74e543f09e47/Volume2' from the search command above, it works (the same if I use the search from the else branch above). If I do not do that I see something like "disk error: cannot read. Press ctrl+alt+delete to reboot". This is with: grub2-2.00-19.19.1.x86_64 Also note that sda1 and sda6 entries are invalid, there is no system. Maybe there is some recovery system, but not vista at all... -- 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=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c1
--- Comment #1 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c2
--- Comment #2 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c3
--- Comment #3 from Jiri Slaby
Could you help to verify grub2 and os-prober in openSUSE:Factory ? Andrey has updated both of them to new versions.
grub2 from base:system works: Found Windows 7 (loader) on /dev/sda2 menuentry 'Windows 7 (loader) (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-461ED2B01ED297EF' { insmod part_msdos insmod ntfs set root='hd0,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' 461ED2B01ED297EF else search --no-floppy --fs-uuid --set=root 461ED2B01ED297EF fi chainloader +1 } (In reply to comment #2)
It is grub-mkconfig_lib::prepare_grub_to_access_device () which generates those ldm entities.
Could you please help to check the command outputs?
grub2-probe --device /dev/sda2 --target=abstraction
OLD GRUB: ldm NEW GRUB: No output there.
grub2-probe --device /dev/sda2 --target=hints_string
OLD GRUB: --hint-bios=hd0 --hint-efi=hd0 --hint-baremetal=ahci0 --hint='ldm/85ebf49d-6b7f-11e2-a2d2-74e543f09e47/Volume2' NEW GRUB: --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 --hint='hd0,msdos2' -- 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=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c4
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c5
--- Comment #5 from Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c6
Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c7
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c8
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c9
Jiri Slaby
Could you test packages from home:arvidjaar:bnc:831116?
Yeah, this works... -- 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=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c10
Jiri Slaby
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c11
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c12
Andrey Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c13
--- Comment #13 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c14
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c15
--- Comment #15 from Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c16
--- Comment #16 from Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=831116
https://bugzilla.novell.com/show_bug.cgi?id=831116#c17
Andrey Borzenkov
participants (1)
-
bugzilla_noreply@novell.com