Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Nov 1995 16:26:34 +0100 (MET)
From:      "Georg-W. Koltermann" <gwk@racer.dkrz.de>
To:        d_burr@ix.netcom.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Questions -- using IDE with SCSI, and how to add more swap space?
Message-ID:  <199511031526.QAA28177@racer.dkrz.de>
In-Reply-To: <Pine.BSF.3.91.951103075058.3860B-100000@ncc-1701-d.starfleet.gov> (message from Donald Burr on Fri, 3 Nov 1995 08:04:18 -0800 (PST))

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Fri, 3 Nov 1995 08:04:18 -0800 (PST)
> From: Donald Burr <d_burr@ix.netcom.com>
> X-Sender: d_burr@ncc-1701-d.starfleet.gov
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> Sender: owner-questions@freebsd.org
> Precedence: bulk
>
> ...
> Now, my problem is this: I heard that you can have both IDE and SCSI in 
> the same system, but if you do, the computer will *ALWAYS* boot from the 
> IDE.  This is not what I want, since this would complicate things.  
> BUT... maybe the system only tries booting from the PRIMARY IDE, and 
> leaves the secondary (if it's even there) alone.  I don't know.

No problem--in principle  :-)

I have just the same configuration.  The IDE drive gets drive code
0x80 by the BIOS and is thus considered the boot drive.  The SCSI
drive gets drive code 0x81 by Adaptec's SCSI BIOS.

When you install FreeBSD it asks you if it should install some
software in the primary boot block which lets you select by function
keys which partition you want to boot.  I don't recall the exact
wording of this question.  If you reply 'yes', it will place that boot
selector in both the boot block of the IDE drive and the SCSI drive.

When you boot, the IDE boot sector gets loaded first.  It'll give you
a menu choice listing all slices of the IDE drive for boot, or the
second (SCSI) hard disk.  You can select the second disk by hitting
F5.  Now the boot sector of the SCSI disk gets loaded and presents you
a new menu listing all slices of the SCSI disk.  Just select the one
you want and it loads the secondary loader, the one which issues the
'Boot:' prompt.

To boot from the SCSI disk you need to give it a file name of
'hd(1,a)/kernel' instead of 'sd(1,a)/kernel'.  You can probably make
this the default by hacking the boot code in
/usr/src/sys/i386/boot/biosboot/boot.c and reinstalling the boot
block.  [After taking a brief look at the code it seems to me like
you'd only need to #define BOOT_HD and recompile boot.c.  I haven't
tried, however.]

Georg-W. Koltermann, gwk@cray.com

P.S.: Please don't post to more than one list at a time.  Many people
      subscribe to several groups, and they don't like reading the
      same report again and again.  Thnx.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511031526.QAA28177>