Bug 686530 - pbl: detect windows 7 boot partition
Summary: pbl: detect windows 7 boot partition
Status: VERIFIED WONTFIX
: 692047 (view as bug list)
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: Other (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.4
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Steffen Winterfeldt
QA Contact: Torsten Duwe
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-11 06:50 UTC by Jean-Daniel Dodin
Modified: 2012-05-16 08:55 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Daniel Dodin 2011-04-11 06:50:56 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; fr; rv:1.9.2.16) Gecko/20110319 SUSE/3.6.16-0.2.1 Ant.com Toolbar 2.0.1 Firefox/3.0.3, Ant.com Toolbar 1.1

the HP Pavillon Elite HPE serie computer with 1 To Hard drive have a special partionning system that seems to trick GRUB. I can't remember if this was already the case with 11.3.
The first (sda1) partition is a very small one (I don't know why). Windows 7 is on the second one (sda2) and the Recovery partition is the last on sda4.
Grub identify correctly the windows partition when making menu.lst as (hd0,1), but sees it as (hd0,0) at boot time. 
So the default menu can't boot Windows. I couldn't fix this with YaST and had to use vi...

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



fdisk -l

Disque /dev/sda: 1000.2 Go, 1000204886016 octets
255 têtes, 63 secteurs/piste, 121601 cylindres
Unités = cylindres de 16065 * 512 = 8225280 octets
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identifiant de disque : 0xf73db9ba

Périphérique Amorce  Début        Fin      Blocs     Id  Système
/dev/sda1               1          13      102400    7  HPFS/NTFS
La partition 1 ne se termine pas sur une frontière de cylindre.
/dev/sda2              13       39176   314576797    7  HPFS/NTFS
/dev/sda3   *       39176      119949   648806400    f  W95 Etendue (LBA)
/dev/sda4          119949      121602    13274112    7  HPFS/NTFS
/dev/sda5           39176       39437     2089350   82  Linux swap / Solaris
/dev/sda6           39437       42048    20972544   83  Linux
/dev/sda7           42048       44659    20971520   83  Linux
/dev/sda8           44659       51185    52426752   83  Linux
/dev/sda9           51186      113193   498071227   83  Linux
/dev/sda10         113193      119949    54270976   83  Linux

working menu.lst:

# Modified by YaST2. Last modification on dim. avril 10 17:38:35 CEST 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 3
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,6)/boot/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-WDC_WD1001FAES-60Z2A0_WD-WCATR1443583-part7 resume=/dev/disk/by-id/ata-WDC_WD1001FAES-60Z2A0_WD-WCATR1443583-part5 splash=silent quiet showopts vga=0x34c
    initrd /boot/initrd-2.6.37.1-1.2-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.1-1.2
    root (hd0,6)
    kernel /boot/vmlinuz-2.6.37.1-1.2-desktop root=/dev/disk/by-id/ata-WDC_WD1001FAES-60Z2A0_WD-WCATR1443583-part7 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x34c
    initrd /boot/initrd-2.6.37.1-1.2-desktop

###Don't change this comment - YaST2 identifier: Original name: windows 2###
title Windows 7
    rootnoverify (hd0,0)
    chainloader +1

title openSUSE 11.3 usuel
    root (hd0,5)
    kernel /boot/vmlinuz-2.6.34.7-0.7-default root=/dev/disk/by-id/ata-WDC_WD1001FAES-60Z2A0_WD-WCATR1443583-part6 resume=/dev/disk/by-id/ata-WDC_WD1001FAES-60Z2A0_WD-WCATR1443583-part5 splash=silent quiet showopts vga=0x34d
    initrd /boot/initrd-2.6.34.7-0.7-default
Comment 1 Jean-Daniel Dodin 2011-04-11 06:51:46 UTC
may be related to #675427
Comment 2 Jean-Daniel Dodin 2011-04-11 06:56:19 UTC
I don't remember if it's at install time or only from the partitionner afterward, but grub happen to write one menu entry for each windows partition, so there is one that boots, but it's not the normally numbered one. (hd0,0) boot when it should be (hd0,1)
Comment 3 Steffen Winterfeldt 2011-04-11 09:53:20 UTC
Windows 7 comes with a separate boot partition. So sda1 is correct even so
the Windows system is on sda2.
Comment 4 Jean-Daniel Dodin 2011-04-11 14:08:32 UTC
so it's only a Windows gymnic. Thanks, I close as invalid.

Funny that Windows do this when we do not anymore :-)
Comment 5 Steffen Winterfeldt 2011-04-11 14:19:50 UTC
Don't you worry, we'll follow soon enough. :-) uefi practically forces you to
and btrfs support in boot loaders might still take its time.

Anyway, we need to produce a correct boot config, no excuses. I'll reopen. If
you feel better about it, lower severity.
Comment 6 Jean-Daniel Dodin 2011-04-11 15:27:07 UTC
if you want. It's pretty difficult to test installs again and again :-(, but when used from a running distro, grub writes one menu.lst line for each widows partition, so there is of course one that works, you have only to guess which :-)

I'm not sure this is a bug
Comment 7 Steffen Winterfeldt 2011-08-15 12:37:27 UTC
*** Bug 692047 has been marked as a duplicate of this bug. ***
Comment 8 Jean-Daniel Dodin 2012-05-16 08:55:22 UTC
no time to work on this