Date: Thu, 11 Jul 1996 20:35:22 GMT From: James Raynard <fqueries@jraynard.demon.co.uk> To: craigh@bugsoft.com Cc: matt@bdd.net, freebsd-questions@freebsd.org Subject: Re: kernel thinks it's on sd1, when actually sd0? Message-ID: <199607112035.UAA05289@jraynard.demon.co.uk> In-Reply-To: <v02130509ae09a8705c57@[205.213.64.30]> (craigh@bugsoft.com)
next in thread | previous in thread | raw e-mail | index | archive | help
> >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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607112035.UAA05289>