Date: Wed, 10 Jul 1996 00:31:48 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: matt@bdd.net Cc: freebsd-questions@freebsd.org Subject: Re: kernel thinks it's on sd1, when actually sd0? Message-ID: <199607100031.AAA04004@jraynard.demon.co.uk> In-Reply-To: <Pine.BSI.3.94.960709111356.6077A-100000@bdd.net> (message from Matthew Stein on Tue, 9 Jul 1996 11:36:22 -0400 (EDT))
next in thread | previous in thread | raw e-mail | index | archive | help
> 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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607100031.AAA04004>