*BSD News Article 74026


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to boot from 2nd IDE disk
Date: 17 Jul 1996 13:43:41 GMT
Organization: Private BSD site, Dresden
Lines: 34
Message-ID: <4siqmd$3tl@uriah.heep.sax.de>
References: <4si4m9$dcm@newsbf02.news.aol.com>
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.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

ngocquynh@aol.com (Ngocquynh) wrote:

> My Endeavor motherboard supports two IDE interfaces, each of which has
> one IDE disk. I installed FreeBSD on the second disk. Now the question is,
> how do I tell the system to boot from the second disk?

You probably need the boot blocks from FreeBSD-current or FreeBSD-
2.1.5 for this.  That's since there is a ``hole'' in your disk
configuration, so the BIOS numbers them 0x80 and 0x81, while FreeBSD
knows them as wd0 and wd2 (wd1 is reserved for the second disk on the
first controller).

With the new bootblocks, you can say

	Boot: 2:wd(2,a)/kernel

Alternatively, you can build a custom kernel with wd1 on the second
controller.  Simply boot the new boot floppy, enter the above so the
system will boot off the hard disk, and then configure and build a
new kernel.  May sure you've got the IDE configuration as follows

controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr
disk		wd1	at wdc1 drive 0


-- 
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. ;-)