Comment 40 for bug 476625

Revision history for this message
Jérôme De Greef (jdegreef) wrote : Re: [Bug 476625] Re: Grub2 affected when os-prober incorrectly identifies Windows and Recovery partitions

I'd reopen this one as it's obviously not fixed.
If I have time, I'll try to implement a solution using hives and BCD... if I
have time... I'm actually not in charge of os-prober but it seems that no
one care about fixing this for once and for all. This bug is more than one
year old now...

2010/11/23 delance <email address hidden>

> I installed os-prober 1.40 and now I get:
>
> delance@delance-desktop:~$ sudo os-prober
> [sudo] password for delance:
> /dev/sda1:Windows Vista (loader):Windows:chain
> /dev/sda2:Windows Vista (loader):Windows1:chain
>
> So sda2 is not seen as a recovery partition, which is better.
> But sda1 is not yet seen as a recovery partition.
> I see a fix is released. What should I do ? Raise a new bug or reopen this
> one ?
>
> --
> Grub2 affected when os-prober incorrectly identifies Windows and Recovery
> partitions
> https://bugs.launchpad.net/bugs/476625
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “grub2” package in Ubuntu: Invalid
> Status in “os-prober” package in Ubuntu: Fix Released
>
> Bug description:
> Binary package hint: grub
>
> The grub os-prober mis-identifies the Compaq recovery partition as Windows
> XP and the Windows XP partition as "ubuntu linux". Choosing Windows XP from
> the grub boot menu runs the Compaq recovery program - a BAD idea. Choosing
> ubuntu linux on the other hand launches Windows XP correctly (or at least it
> did before today's update!). Substantiating information below:
>
> Grub was updated 6Nov 10:30AM but that doesn't change the behavior from
> before the update.
>
> <<< Output from fdisk -l with added comment identifying partition usage >>>
>
> Device Boot Start End Blocks Id System
> /dev/sda1 1 617 4664488+ b W95 FAT32
> Compaq recovery partition
> /dev/sda2 * 618 5372 35947800 7 HPFS/NTFS
> Windows XP
> /dev/sda3 5373 7269 14341320 83 Linux
> Ubuntu /
> /dev/sda4 7270 20671 101319120 f W95 Ext'd (LBA)
> /dev/sda5 7270 7404 1020568+ 82 Linux swap /
> Solaris /swap
> /dev/sda6 7405 20671 100298488+ 83 Linux
> /home
>
> <<< Partial content of /boot/grub/grub.cfg showing relevant sections >>>
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> menuentry "Windows NT/2000/XP (on /dev/sda1)" {
> insmod fat
> set root=(hd0,1)
> search --no-floppy --fs-uuid --set 4452-51a8
> drivemap -s (hd0) ${root}
> chainloader +1
> }
> menuentry "ubuntu Linux (on /dev/sda2)" {
> insmod ntfs
> set root=(hd0,2)
> search --no-floppy --fs-uuid --set 3c78b47778b4318e
> drivemap -s (hd0) ${root}
> chainloader +1
> }
> ### END /etc/grub.d/30_os-prober ###
>
> <<< Partial list of grub.cfg generated by grub before today's update >>>
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> menuentry "Windows NT/2000/XP (on /dev/sda1)" {
> insmod fat
> set root=(hd0,1)
> search --no-floppy --fs-uuid --set 4452-51a8
> drivemap -s (hd0) ${root}
> chainloader +1
> }
> menuentry "ubuntu Linux (on /dev/sda2)" {
> insmod ntfs
> set root=(hd0,2)
> search --no-floppy --fs-uuid --set 3c78b47778b4318e
> drivemap -s (hd0) ${root}
> chainloader +1
> }
> ### END /etc/grub.d/30_os-prober ###
>
> ProblemType: Bug
> Architecture: i386
> Date: Fri Nov 6 10:45:25 2009
> DistroRelease: Ubuntu 9.10
> InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
> NonfreeKernelModules: nvidia
> Package: grub (not installed)
> ProcEnviron:
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
> SourcePackage: grub
> Uname: Linux 2.6.31-14-generic i686
> XsessionErrors:
> (gnome-settings-daemon:1705): GLib-CRITICAL **: g_propagate_error:
> assertion `src != NULL' failed
> (gnome-settings-daemon:1705): GLib-CRITICAL **: g_propagate_error:
> assertion `src != NULL' failed
> (polkit-gnome-authentication-agent-1:1752): GLib-CRITICAL **:
> g_once_init_leave: assertion `initialization_value != 0' failed
> (nautilus:1737): Eel-CRITICAL **: eel_preferences_get_boolean: assertion
> `preferences_is_initialized ()' failed
> (gnome-appearance-properties:1832): Gdk-CRITICAL **: gdk_display_sync:
> assertion `GDK_IS_DISPLAY (display)' failed
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/476625/+subscribe
>