*BSD News Article 34891


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!news.adelaide.edu.au!gateway.dircsa.org.au!cleese.apana.org.au!apanix.apana.org.au!miff
From: miff@apanix.apana.org.au (Michael Smith)
Newsgroups: comp.os.386bsd.questions
Subject: [FreeBSD] Booting frm sd0 as default?
Date: 24 Aug 94 16:31:00 GMT
Organization: Apanix Public Access Unix, +61 8 373 5485 (5 lines)
Lines: 39
Message-ID: <miff.777745860@apanix.apana.org.au>
NNTP-Posting-Host: seldon.apanix.apana.org.au
Keywords: booting FreeBSD

Gotta be a FAQ 8) (but I can't find it there 8( )

I have 2 disks : one wd-style, with DOS alone.  One sd-style, with 
FreeBSD.

I have boot-easy to boot the second disk for me, that's fine.
 
I can type hd(1,a)/386bsd and boot from the second disk just dandy, but
I'm not always there, and it doesn't take very long for most
machines to count from 240,000 to zero these days.

I've tried changing

	part = unit = 0;
	maj = (drive&0x80 ? 0 : 2);

in /sys/i386/boot/boot.c to 

	part = 0;
	unit = 1;
	maj = 1;

but then horrible things happen... the segment of the prompt that looked
like [[[wd(0,a) now looks like [[[f(0,a.
This doesn't make a lot of sense to me - devs[maj] should be "hd" for
maj == 1.

Who wrote it? who can I hit? 8)

Seriously - if anyone (and I can only assume that someone must) has done
this before, I'd love to hear about it.

Thanks.

--
# mike smith : miff@apanix.apana.org.au - Silicon grease monkey        #
# "The question 'why are the fundamental laws of nature mathematical'  #
# then invites the trivial response 'because we define as fundamental  #
# those laws which are mathematical'". Paul Davies, _The_Mind_of_God_. #