*BSD News Article 47807


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!zombie.ncsc.mil!news.mathworks.com!fu-berlin.de!news.belwue.de!News.Uni-Marburg.DE!news.th-darmstadt.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Hard Code boot of secondary disk
Date: 24 Jul 1995 12:20:49 +0200
Organization: Private U**x site, Dresden.
Lines: 20
Message-ID: <3uvs61$ani@bonnie.tcd-dresden.de>
References: <3uputn$16d@abel.cc.sunysb.edu>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Michael Vernick <vernick@cs.sunysb.edu> wrote:
>I want to hard code my system to look for the kernel on a secondary
>disk (hd(1,a)/kernel), i.e. not the disk where the Master Boot Record 
>exists.  It mentions something in the install doc, but there are no details.

I think there's a hook in the boot code that can be conditionally
comiled in:

	cd /sys/i386/boot/biosboot
	<examine the files and look which -D option you need>
	vi Makefile # <add the -DSOMETHING option>
	make
	make install
	disklabel -B [sw]d0 # whatever is appropriate
	reboot
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)