From owner-freebsd-questions Tue Jul 9 18:25:42 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA23331 for questions-outgoing; Tue, 9 Jul 1996 18:25:42 -0700 (PDT) Received: from relay-4.mail.demon.net (relay-4.mail.demon.net [158.152.1.108]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id SAA23325 for ; Tue, 9 Jul 1996 18:25:40 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-4.mail.demon.net id ab19255; 10 Jul 96 1:24 GMT Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa14192; 10 Jul 96 1:44 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id AAA04004; Wed, 10 Jul 1996 00:31:48 GMT Date: Wed, 10 Jul 1996 00:31:48 GMT Message-Id: <199607100031.AAA04004@jraynard.demon.co.uk> From: James Raynard To: matt@bdd.net CC: freebsd-questions@freebsd.org In-reply-to: (message from Matthew Stein on Tue, 9 Jul 1996 11:36:22 -0400 (EDT)) Subject: Re: kernel thinks it's on sd1, when actually sd0? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > After reinstalling FreeBSD (2.1.0-R, 2.1-Stable-snap, 2.2-Current-snap) > the kernel boot sequence determines it's on sd1, and proceeds to try and > mount root there. Hmm. The install program's reasoning appears to be "this is the second disk, and it's a SCSI disk, so it must be... the second SCSI disk!" > I have no sd1, and the system properly finds the drive during the boot > sequence as sd0. I can make the system boot properly by either using the > "hd(1,a)/kernel" option at init, or the "-r" option at init. Yep, this is how to boot FreeBSD off a SCSI disk when there's also an IDE disk around... > When I boot with hd(1,a)/kernel, the init lines indicates that I'm not > booting from sd0, not sd1, as it would default. This doesn't seem to be > an option during my kernel build, so what might be wrong? The answer is in the bootblocks on the IDE drive that specify which drive to boot from. If you get bored typing hd(1,a)/kernel every time you boot, here's how to change them so it happens automatically:- # cd /sys/i386/boot/biosboot # vi boot.c part = 0; unit = 1; maj = 1; # make # disklabel -B -b boot1 -s boot2 wd0 -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/