Subject: Re: PR/13174 i386-FAQ booting 2nd disk from NT's boot menu
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 09/10/2006 16:50:03
The following reply was made to PR port-i386/13174; it has been noted by GNATS.

From: David Laight <david@l8s.co.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: PR/13174 i386-FAQ booting 2nd disk from NT's boot menu
Date: Sun, 10 Sep 2006 17:46:00 +0100

 The following should work, but I don't have anything to test it on!
 
 1) Copy the NetBSD partition boot code (probably only the first 512 byes
    are needed) to a file.  Either by reading the (typically) rwd0a
    partition or from /usr/mdec/bootxx_ffsv1 (or equiv).
 
    eg $ dd if=/usr/mdec/bootxx_ffsv1 of=boot_image count=1
 
 2) Overwrite the start with code to setup %dl before jumping over space
    reserved for the FAT volume info:
 
    eg $ disk=1
    eg $ printf '\xb2\x8'$disk'\xeb\x3a' | dd conv=notrunc of=boot_image
 
 3) Arrange to get the modified file into your windows filesystem for the
    windows boot manager to load.
 
 It is also possible to use the NetBSD bootselector to load your windows
 install by pressing '1' and press 'F2' to load the mbr of the 2nd disk
 and hence the NetBSD kernel (possibly via the bootmenu code).
 Although it is worth checking that there is code at the start of your
 windows partition before overwriting the mbr.
 
 	David
 
 -- 
 David Laight: david@l8s.co.uk