*BSD News Article 43355


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!newsrelay.iastate.edu!news.iastate.edu!soclab.soc.iastate.edu!flipk
From: flipk@iastate.edu (Phil Knaack)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to make wd1 default boot drive???
Date: 12 Mar 95 06:03:35 GMT
Organization: Iowa State University, Ames, Iowa
Lines: 27
Message-ID: <flipk.794988215@soclab.soc.iastate.edu>
References: <3jsrsq$h0e@acmey.gatech.edu>
NNTP-Posting-Host: soclab.soc.iastate.edu

In <3jsrsq$h0e@acmey.gatech.edu> 
	ccastco@prism.gatech.edu (Costas Malamas) writes:

>	part = unit = 0;
>	maj = (drive&0x80 ? 0 : 2);		/* a good first bet */
>	name = names[currname++];

I think you want to change the maj, instead. It is checking to see
if it should boot from a hard disk or a floppy (major number 0 or 2).
As for which is 0 and which is 2, I don't remember. For now I have
modified my boot blocks in this same manner, except that I have 
written the boot blocks to a floppy that I pop in when I want it to
boot to bsd (i.e., most all of the time). ;)

I don't remember exactly but I think the unit number corresponds to the
partition number in the disklabel, i.e., wd0a or wd0e or wd1a, so changing
unit to 1 as in your modifications are probably trying to make it boot
from your swap partition on wd1b .. I don't actually think that works. :)

Anyway, good luck.

Cheers,
Phil
-- 
Phil Knaack						   flipk@iastate.edu
Database Programmer, NCREMP	Student Development Group  flipk@cs.iastate.edu
Regional Extension Office	Project Vincent, ISU	   flipk@vorpal.com