From owner-freebsd-questions Thu Jul 11 20:15:05 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id UAA24843 for questions-outgoing; Thu, 11 Jul 1996 20:15:05 -0700 (PDT) Received: from relay-2.mail.demon.net (disperse.demon.co.uk [158.152.1.77]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id UAA24835 for ; Thu, 11 Jul 1996 20:15:00 -0700 (PDT) Received: from post.demon.co.uk ([158.152.1.72]) by relay-2.mail.demon.net id aa28233; 12 Jul 96 4:14 +0100 Received: from jraynard.demon.co.uk ([158.152.42.77]) by relay-3.mail.demon.net id aa16702; 11 Jul 96 23:30 +0100 Received: (from fqueries@localhost) by jraynard.demon.co.uk (8.6.12/8.6.12) id UAA05289; Thu, 11 Jul 1996 20:35:22 GMT Date: Thu, 11 Jul 1996 20:35:22 GMT Message-Id: <199607112035.UAA05289@jraynard.demon.co.uk> From: James Raynard To: craigh@bugsoft.com CC: matt@bdd.net, freebsd-questions@freebsd.org In-reply-to: (craigh@bugsoft.com) Subject: Re: kernel thinks it's on sd1, when actually sd0? Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > >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 OK, I snipped this out of a posting I saw on Usenet, but didn't get round to trying it before my SCSI disk expired :-( > 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 As I understand the man page, this should be OK as the disklabel command writes boot1 and boot2 to the bootstrap. (I agree though that it's probably better to have /usr/mdec reflect the reality of what's on the bootstrap). > attempt to run the disklabel command exactly as listed above, I get an > error message "disklabel: /dev/rwd0c: Undefined error: 0". Hmm. According to the code, this message only occurs if disklabel was unable to open the disk as a raw device, or if it could not read the boot area. Presumably you did this as root, and wd0 was not mounted anywhere at the time? > Should I be > specifying a different disk (ie. sd0) in place of wd0? Help!!! IDE drives are detected before SCSI drives by the BIOS, so the bootstrap code has to be on wd0. -- James Raynard, Edinburgh, Scotland james@jraynard.demon.co.uk http://www.freebsd.org/~jraynard/