I forgot to give the details for my configuration: BUG description: GRUB os-prober script /usr/lib/os-probes/mounted/20microsoft does a poor job detecting Windows partition types Consequence: User is misled into booting the Windows Recovery Environment instead of the Windows OS Worst case: Windows Recovery Environment will corrupt the Linux installation when selected from the GRUB menu
My configuration: Disk is /dev/sda with preinstalled Windows Vista, now also with Ubuntu 10.4 LTS 32 bit in a separate partition: /dev/sda1 is a hidden Windows Recovery Environment partition (type hex 27) /dev/sda2 is the Windows primary boot partition (type hex 07) with a BCD bootmgr menu containing standard entries for Recovery, Memory test and Windows Vista. Automatically resuming from hibernation or starting Vista (no menu is displayed unless I press spacebar - former F8) /dev/sda3 is a DOS extended partition of 27GB containing Ubuntu 10.4 subpartitions: /dev/sda5 is Ubuntu root /dev/sda6 is Ubuntu swap At fault is the script /usr/lib/os-probes/mounted/20microsoft which scans the Windows Boot Config Data (BCD) i a partition looking for (in order) Win 7, Recovery, 2008 Server R2, 2008 Server. Default when none is found is Vista. A Recovery partition will not contain any of the search strings, thereby identifying as the default, Vista. A Win 7 partition will identify correctly as such. Any other partition (Vista, 2008*) will identify as a Recovery partition if the BCD contains a Recovery line, which is the normal case. A better solution is NOT to search for the Windows Recovery Environment, but for Vista instead. The Windows Recovery Environment can be detected (as a default action) by having a BCD file and a partition type hex 12 or hex 27. This is still not optimal behavior, because there is no attempt at detecting neither partition content (installed OS) nor Win bootmgr configutation. A better approach would be to identify as "Windows Boot Manager" and pass control over to bootmgr when selected (relatively easy), or extract all BCD entries as separate lines in the GRUB menu and invoke directly when selected (relatively hard). Nice partition type overview: http://www.win.tue.nl/~aeb/partitions/partition_types-1.html -- GRUB os-prober incorrectly detects Windows partitions https://bugs.launchpad.net/bugs/48068 You received this bug notification because you are a member of Ubuntu Bugs, which is a direct subscriber. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs