Date: Fri, 21 Apr 1995 15:59:59 +1000 From: Bruce Evans <bde@zeta.org.au> To: hackers@FreeBSD.org, julian@ref.tfs.com Subject: Re: Returned mail: Re: Booting from second hard drive (SCSI) problems (Again!!) Message-ID: <199504210559.PAA10914@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504210559.PAA10914>