*BSD News Article 57386


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!blackbush.xlink.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to change defaults of the boot floppy?
Date: 19 Dec 1995 22:59:32 GMT
Organization: Private BSD site, Dresden
Lines: 22
Message-ID: <4b7g4k$6bu@uriah.heep.sax.de>
References: <4a92vu$2lq2@info4.rus.uni-stuttgart.de>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.3

schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt) writes:

> I still use the boot floppy to boot a kernel from my
> second SCSI hard disk. So I have to enter 'hd(1,a)/kernel'
> at the boot prompt each time I boot, which is somewhat annoying.
> I'd like to change the default of fd(0,a)/kernel to the above.
> is this possible, maybe by frobbing some bytes on the boot floppy?
> Just tell me an offset and what to write there.

I can't tell you an offset... but you've got the source!

cd /sys/i386/boot/biosboot
vi boot.c			# tweak the defaults
make
disklabel -B -b obj/boot1 -s obj/boot2 fd0

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)