*BSD News Article 97837


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.melbpc.org.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!News1.Ottawa.iSTAR.net!news.istar.net!tor.istar!east.istar!rrwood
From: Roy Wood <rrwood@execulink.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Booting from third drive using NT boot manager
Date: Mon, 16 Jun 97 14:55:38 -0500
Organization: Silicon Angst Software
Lines: 28
Distribution: world
Message-ID: <970616144618-rrwood@execulink.com>
Reply-To: rrwood@execulink.com
NNTP-Posting-Host: ppp18.pluto.execulink.com
X-To: jkh@FreeBSD.org
X-Newsreader: rnMac v2.0d17
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42904

I've got a system set up with two EIDE drives and a third SCSI drive.  I've 
installed FreeBSD on the SCSI drive and am using the NT boot "manager" to boot 
up FreeBSD, rather than using bteasy to get there.  To make this work, I had to 
recompile the boot code in /usr/src/sys/i386/boot/bootinit (I think that's 
right) and hard code in a "mov 0x82 %dl" at the start of the boot handler.  
After recompiling, it was easy to just do a "disklabel -B sd0" to install the 
new boot code, copy over boot1 to the DOS C: drive, and then adjust the NT 
BOOT.INI file.

As I said, this works and works nicely, so I'm pretty happy.  I was just 
wondering if there might have been another "better" way to do this.  I know the 
boot code is pretty smart now, and if I'd used bteasy, it would have worked fine 
because bteasy passes in the right BIOS drive number in register DX.  The NT 
boot loader, as far as I understand, doesn't do this, which is why I had to 
hard-code in the reference to BIOS drive 0x82.  Obviously this will break if I 
juggle things so that the SCSI drive is no longer the third drive in the 
system....

Any comments?


Also, why isn't this covered in the FAQ's?  It seems to come up a lot....


-Roy

--
http://www.execulink.com/~rrwood