*BSD News Article 29980


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uknet!festival!edcogsci!richard
From: richard@cogsci.ed.ac.uk (Richard Tobin)
Subject: Re: I'm tired of typing hd(1,a)/386bsd everytime I boot!  [FreeBSD]
Message-ID: <Cox1v7.K4p@cogsci.ed.ac.uk>
Organization: HCRC, University of Edinburgh
References: <mldCowtM2.1Br@netcom.com>
Date: Wed, 27 Apr 1994 11:42:41 GMT
Lines: 30

In article <mldCowtM2.1Br@netcom.com> mld@netcom.com (Matthew Deter) writes:
>
>I tire of this.  (been doing it for a few weeks now!)  How do I
>rewrite the bootblock so that it *defaults* to the SCSI drive?  Do I
>use "disklabel?"  Must I be in single user mode?

Edit /sys/i386/boot/boot.c so that it defaults to the right device:

 #if 0
        maj = (drive&0x80 ? 0 : 2);             /* a good first bet */
 #else
        if(drive&0x80)          /* Use hd(1,a) - the scsi disk (RMT) */
        {
            maj = 1;
            unit = 1;
        }
        else
            maj = 2;            /* Floppy */
 #endif

Do a make and make install in /sys/i386/boot.  Then use disklabel
to install the new boot blocks (it would be nice if there was an
option to disklabel to install the new boot block without re-writing
the partition table, but there doesn't seem to be).

-- Richard
-- 
Richard Tobin, HCRC, Edinburgh University                 R.Tobin@ed.ac.uk

"Your monkey has got it right, sir."  - HHGTTG