*BSD News Article 33066


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!spool.mu.edu!bloom-beacon.mit.edu!ai-lab!life.ai.mit.edu!mycroft
From: mycroft@duality.gnu.ai.mit.edu (Charles M. Hannum)
Newsgroups: comp.os.386bsd.questions
Subject: Re: Bypassing boot options screen in FreeBSD
Date: 23 Jul 1994 01:24:39 GMT
Organization: MIT Artificial Intelligence Lab
Lines: 27
Message-ID: <MYCROFT.94Jul22212439@duality.gnu.ai.mit.edu>
References: <30eoi0$45k@venus.mcs.com> <30fi2l$978@pdq.coe.montana.edu>
	<30gmv9$fs1@csugrad.cs.vt.edu> <30jqtm$133@keltia.frmug.fr.net>
	<vanepp.774804569@sfu.ca>
NNTP-Posting-Host: duality.ai.mit.edu
In-reply-to: vanepp@fraser.sfu.ca's message of 21 Jul 94 15:29:29 GMT


In article <vanepp.774804569@sfu.ca> vanepp@fraser.sfu.ca (Peter Van
Epp) writes:

	   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 */

I put this change in the NetBSD/i386 boot block on September 7, 1993.
It works in almost all cases, except where a machine has both SCSI and
IDE/ESDI/ST506, and you want to boot off something other than drive
C:.

The NetBSD boot block also contains various bug fixes and
simplifications, and works with 16k/2k file systems (which some people
prefer).

--
- Charles Hannum
  NetBSD group
  Working ports: i386, hp300, amiga, sun4c, mac68k, pc532, da30.
  In progress: sun3, pmax, vax, sun4m.