Subject: port-i386/36131: It's not possible to boot Vista with mbr_bootsel
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@mail.xtrarom.org>
List: netbsd-bugs
Date: 04/10/2007 13:25:00
>Number:         36131
>Category:       port-i386
>Synopsis:       It's not possible to boot Vista with mbr_bootsel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 10 13:25:00 +0000 2007
>Originator:     Juan RP
>Release:        NetBSD 4.0_BETA2
>Organization:
>Environment:
System: NetBSD mandylion 4.0_BETA2 NetBSD 4.0_BETA2 (Xen0-4) #3: Fri Mar 2 06:22:26 CET 2007 juan@mandylion:/home/juan/build/src-4/obj/sys/arch/i386/compile/Xen0-4 i386
Architecture: i386
Machine: i386
>Description:

	This is my setup:

$ fdisk wd0                                                                    
Disk: /dev/rwd0d
NetBSD disklabel disk geometry:
cylinders: 484521, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 488397168

BIOS disk geometry:
cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 488397168

Partition table:
0: NTFS, OS/2 HPFS, QNX2 or Advanced UNIX (sysid 7)
    start 2048, size 488392704 (238473 MB, Cyls 0/32/33-30401/42/41), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
$ 

$ fdisk wd2 
Disk: /dev/rwd2d
netBSD disklabel disk geometry:
cylinders: 158816, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 160086528

BIOS disk geometry:
cylinders: 1024, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 160086528

Partition table:
0: NetBSD (sysid 169)
    start 63, size 160086465 (78167 MB, Cyls 0-158815), Active
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
$

	If I install mbr_bootsel into wd0, NetBSD can boot but
	not Vista. Note the NTFS Vista partition starts at sector
	2048 and not 63.

	GNU GRUB can boot Vista without any problem, perhaps a
	problem loading the PBR? (unknown size? too big?).

>How-To-Repeat:
>Fix:
	Yes, please.