From owner-freebsd-hackers Thu Apr 20 23:10:28 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id XAA29148 for hackers-outgoing; Thu, 20 Apr 1995 23:10:28 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id XAA29116 for ; Thu, 20 Apr 1995 23:10:11 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id PAA10914; Fri, 21 Apr 1995 15:59:59 +1000 Date: Fri, 21 Apr 1995 15:59:59 +1000 From: Bruce Evans Message-Id: <199504210559.PAA10914@godzilla.zeta.org.au> To: hackers@FreeBSD.org, julian@ref.tfs.com Subject: Re: Returned mail: Re: Booting from second hard drive (SCSI) problems (Again!!) Sender: hackers-owner@FreeBSD.org Precedence: bulk >This has come up enough for me to change the bootblocks a bit.. >here is the change I suggest: >> from: >> >> loadstart: >> /***************************************************************\ >> * As a default set it to the first partition of the first * >> * floppy or hard drive * >> \***************************************************************/ >> part = unit = 0; >> >> to: >loadstart: > /***************************************************************\ > * As a default set it to the first partition of the boot * > * floppy or hard drive * > \***************************************************************/ > part = 0; > unit = drive & 0x7f; Erm, this change has been in the tree since revision 1.30 in January. >#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 ? >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. Bruce