*BSD News Article 33234


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!howland.reston.ans.net!europa.eng.gtefsd.com!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!news.bc.net!newsserver.sfu.ca!sfu.ca!vanepp
From: vanepp@fraser.sfu.ca (Peter Van Epp)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Bypassing boot options screen in FreeBSD
Date: 21 Jul 94 15:29:29 GMT
Organization: Simon Fraser University
Lines: 43
Message-ID: <vanepp.774804569@sfu.ca>
References: <30eoi0$45k@venus.mcs.com> <30fi2l$978@pdq.coe.montana.edu> <30gmv9$fs1@csugrad.cs.vt.edu> <30jqtm$133@keltia.frmug.fr.net>
NNTP-Posting-Host: fraser.sfu.ca

roberto@keltia.frmug.fr.net (Ollivier Robert) writes:

>In article <30gmv9$fs1@csugrad.cs.vt.edu>, Jeff Aitken <jaitken@vt.edu> wrote:
>> Nate Williams (nate@bsd.coe.montana.edu) wrote:
>> directory on ftp.cdrom.com (not os-bs, the other one)  It allows me to
>> boot off of the second one just fine, but the default kernel to boot is
>> wd(0,a), when I want it to be wd(1,a).  Is there a way to change this so
>> I don't have to type wd(1,a) every time?

>Recompile the boot blocks and reinstall the label on wd0.

>/sys/i386/boot/boot.c
>------------------------------------------------------------
>loadstart:
>	/***************************************************************\
>	* As a default set it to the first partition of the first	*
>	* floppy or hard drive						*
>	\***************************************************************/
>	part = unit = 0;                    <<<<<<<<<<<<<<<<<<<<<<<<< put a 1 here
>	maj = (drive&0x80 ? 0 : 2);		/* a good first bet */
>	name = names[currname++];
>------------------------------------------------------------
>-- 
>Ollivier ROBERT                                           roberto@hsc.fr.net
>Hervé Schauer Consultants                Ollivier.Robert@keltia.frmug.fr.net
>PERL / MIME / PGP 2.6ui         FreeBSD keltia 1.1.5(RELEASE) RELEASE#0 i386

	Better yet:

>	* floppy or hard drive						*

>	\***************************************************************/
	unit = drive & 0x7f;	/* select the drive we booted from */
	part = 0;                    
>	maj = (drive&0x80 ? 0 : 2);		/* a good first bet */

	This change uses the unit number of the drive that you booted from 
as the unit number (for drive 0 "drive" is 0x80, and for drive 1 "drive" is 
0x81). Works for me and makes one set of boot blocks work for either case ...

Peter Van Epp / Operations and Technical Support 
Simon Fraser University, Burnaby, B.C. Canada