From owner-freebsd-hackers Fri Apr 21 01:43:20 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id BAA03629 for hackers-outgoing; Fri, 21 Apr 1995 01:43:20 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id BAA03623 for ; Fri, 21 Apr 1995 01:43:18 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.8/8.6.6) id BAA18126; Fri, 21 Apr 1995 01:42:57 -0700 From: Julian Elischer Message-Id: <199504210842.BAA18126@ref.tfs.com> Subject: Re: Returned mail: Re: Booting from second hard drive (SCSI) problems (Again!!) To: bde@zeta.org.au (Bruce Evans) Date: Fri, 21 Apr 1995 01:42:56 -0700 (PDT) Cc: hackers@FreeBSD.org In-Reply-To: <199504210559.PAA10914@godzilla.zeta.org.au> from "Bruce Evans" at Apr 21, 95 03:59:59 pm Content-Type: text Content-Length: 1055 Sender: hackers-owner@FreeBSD.org Precedence: bulk > > >This has come up enough for me to change the bootblocks a bit.. > > > unit = drive & 0x7f; > > Erm, this change has been in the tree since revision 1.30 in January. yes, I know THIS bit has, but the NEXT bit is the change > > >#ifdef BOOT_HD > > maj = (drive&0x80 ? 0 : 1); /* a good first bet */ > >#else > > maj = (drive&0x80 ? 0 : 2); /* a good first bet */ > >#endif > > Shouldn't this be > > >#ifdef BOOT_HD > > maj = (drive&0x80 ? 1 : 2); /* a bad first bet */ > >#else > > maj = (drive&0x80 ? 0 : 2); /* another bad first bet */ > >#endif > > ? NO, I had it correct.. major 0 if off a floppy and major 1 if not.. major 1 is a 'pseudo' mojor which is later changed to 2 or 4 depending on whether it's scsi > > >define BOOT_HD to make it default to hd(1,a)/kernel > > I think the original version defaults to hd(something,a) for booting from > floppies and wd(something, a) for booting from hard disks. no it does what I wanted.. julian