Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 1999 13:13:32 +0930 (CST)
From:      Greg Lewis <glewis@ares.maths.adelaide.edu.au>
To:        Paul Keusemann <pkeusem@visi.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: boot/loader problem -- currdev is not boot disk
Message-ID:  <199907100343.NAA05627@ares.maths.adelaide.edu.au>
In-Reply-To: <19990709093649.A15301@isis.visi.com> from Paul Keusemann at "Jul 9, 1999 09:36:49 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there any way to specify the current drive when starting /boot/loader?

Do you actually want to set the current drive?  From your description it
sounds like root_dev_unit is more along the lines of the variable you want 
to set.  I can't be 100% sure on that, but it might be worth a try.

> I've got a system with one IDE drive and two SCSI controllers, one Adaptec
> 1542 and one Adaptec 2940.  I'm trying to boot off of the first disk
> on the ISA controller which the bios sees first but the boot loader and
> kernel see second, i.e.  when the boot loader starts, it thinks currdev
> is the first disk on the 2940 which does not have a FreeBSD partition on it.
> 
> I can boot manually by setting the current drive after the boot loader is
> running.  What I'm looking for is a way to tell the boot loader that the
> current drive is disk1s1a.  Adding a line to /boot/loader.rc won't work
> because the loader can't even find /boot/loader.rc, I need to set currdev
> in order to read /boot/loader.rc.
> 
> This is what I've got so far:
> 
> 	Booteasy on the ide drive (wd0)
> 	Booteasy on the first drive on the 1542 (sd1)
> 	1:sd(0,a)/boot/loader in /boot.config on sd1
> 
> I can autoboot as far as the disk1s1a prompt from the boot loader.

What is the actual error message you get?

-- 
Greg Lewis 				glewis@trc.adelaide.edu.au
Computing Officer			+61 8 8303 5083
Teletraffic Research Centre


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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