Subject: Re: booting from sd0 instead of wd0?
To: William O Ferry <WOFerry+@cmu.edu>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-i386
Date: 01/29/1997 19:16:56
On Wed, 29 Jan 1997 20:38:39 -0500 (EST) 
 William O Ferry <WOFerry+@CMU.EDU> wrote:

 > Excerpts from internet.computing.netbsd.port-i386: 29-Jan-97 booting
 > from sd0 instead of.. by Jukka Marin@pyy.jmp.fi 
 > > Finally installed a usable SCSI disk.. how do I make the system boot off
 > > sd0a instead of wd0a if both disks have valid bootblocks?  I have an NCR
 > > SCSI card which is supported by BIOS.
 > 
 >     I changed the following two lines in the file:
 > 
 > /usr/src/sys/arch/i386/boot/boot.c
 > 
 >     The main part is changing the major number from 0 to 1.  This refers
 > to the declaration in boot/disk.c
 > char *devs[] = {"wd", "hd", "fd", "", "sd", 0};
 > so that rather than defaulting to 0 (wd), it chooses 1 (hd).

Another fairly easy way to do with, without having to modify any
source code is to simply tell the BIOS that no IDE disks are installled.
It will then happily load the boot program from the SCSI disk.  Since
NetBSD communicates with the IDE directly, it will work as before.

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                               Home: 408.866.1912
NAS: M/S 258-6                                          Work: 415.604.0935
Moffett Field, CA 94035                                Pager: 415.428.6939