From owner-freebsd-questions Thu Jul 11 07:16:27 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id HAA13050 for questions-outgoing; Thu, 11 Jul 1996 07:16:27 -0700 (PDT) Received: from mendota.terracom.net (mendota.terracom.net [205.213.64.2]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id HAA13007 for ; Thu, 11 Jul 1996 07:16:19 -0700 (PDT) Received: from [205.213.64.30] (rightfield.bugsoft.com [205.213.64.30]) by mendota.terracom.net (8.7.1/8.7.1) with SMTP id JAA22345; Thu, 11 Jul 1996 09:18:56 -0500 (CDT) X-Sender: craigh@pop.terracom.net (Unverified) Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Thu, 11 Jul 1996 09:16:05 -0500 To: James Raynard , matt@bdd.net From: craigh@bugsoft.com (Craig A. Heilman) Subject: Re: kernel thinks it's on sd1, when actually sd0? Cc: freebsd-questions@freebsd.org Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk At 19:31 07/09/96, James Raynard wrote: >> 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 Hmmm - I've been trying to figure out a way to do exactly this. I have one IDE drive (all DOS) and one SCSI drive (all FreeBSD) and I'm getting tired of typing "hd(1,a)/kernel" at the booteasy prompt. I tried the steps outlined above but there were several problems. The first problem is I think you forgot to run "make install" after running make (to copy the new boot1 and boot2 files to /usr/mdec/). The second problem is that when I attempt to run the disklabel command exactly as listed above, I get an error message "disklabel: /dev/rwd0c: Undefined error: 0". Should I be specifying a different disk (ie. sd0) in place of wd0? Help!!! Craig P.S. I'm running 2.1R -------------------------------------------------------------------------- * Craig A. Heilman Bugaboo Software * * craigh@bugsoft.com Software Engineering & Consulting * * (608) 274-2003 http://www.bugsoft.com/ * --------------------------------------------------------------------------