Return to BSD News archive
Newsgroups: comp.os.386bsd.questions Path: sserve!newshost.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usenet.ins.cwru.edu!news.uakron.edu!news.csuohio.edu!stever From: stever@csuohio.edu (Steve Ratliff) Subject: Re: [FreeBSD-1.0] boot from wd1?! Message-ID: <1993Nov11.192031.10056@news.csuohio.edu> Sender: news@news.csuohio.edu (USENET News System) Organization: Cleveland State University X-Newsreader: Tin 1.1 PL5 References: <CGC2yu.Cz1@hermes.hrz.uni-bielefeld.de> Date: Thu, 11 Nov 1993 19:20:31 GMT Lines: 92 Lars Koeller (uphya001@odie.uni-bielefeld.de) wrote: : -- : : Hello! : : I want to boot from my second ESDI disk FreeBSD-1.0. To solve the problem, : I install the bteasy1.4 boot manager on my disks, and everything seems to : work, except that the bootblock on the second drive tries to boot from : wd0. To boot from the second drive I have to enter at the boot prompt: : : wd(1,a)/386bsd : : Thats O.K, and all works fine (with root at wd1a). : : Now my question; how can I modify the bootsector sources to boot from wd1 : automatically? I try to change all 80 (ID for wd0) to 81, but after loading : the kernel correct from wd1 it changes to wd0 (fsck) where I've installed : a small FreeBSD system to fix problems and for installing. : : Who can help me? Thanks : Lars : : ------------------------------------------------------------------------------ : : Lars Koeller E-Mail: uphya001@odie.Uni-Bielefeld.de : Universitaet Bielefeld (Germany) uphya001@dave.HRZ.Uni-Bielefeld.de : Fakultaet fuer Physik / D0-231 Phone: +49 521-106-5375 : Universitaetsstr. 25 Fax: +49 521-106-6002 : 33615 Bielefeld Telex: 932 362 : As this question comes up about every three or four weeks, I think it is appropriate for me to repost the following patch from Charles Hannum. You will need a boot manager program that allows booting from a second drive. After recompiling the boot blocks you will need to install them by doing. disklabel -r wd1 >protofile disklabel -r -R wd1 protofile /usr/mdec/wdboot /usr/mdec/bootwd From news.csuohio.edu!news.uakron.edu!usenet.ins.cwru.edu!howland.reston.ans.net!spool.mu.edu!olivea!grapevine.lcs.mit.edu!ai-lab!life.ai.mit.edu!mycroft Sat Aug 28 00:56:02 1993 Path: news.csuohio.edu!news.uakron.edu!usenet.ins.cwru.edu!howland.reston.ans.net!spool.mu.edu!olivea!grapevine.lcs.mit.edu!ai-lab!life.ai.mit.edu!mycroft From: mycroft@trinity.gnu.ai.mit.edu (Charles Hannum) Newsgroups: comp.os.386bsd.misc Subject: Re: Will this work (two IDE drives, DOS and *BSD)? Date: 27 Aug 1993 18:17:13 GMT Organization: MIT Artificial Intelligence Lab Lines: 36 Distribution: world Message-ID: <MYCROFT.93Aug27141713@trinity.gnu.ai.mit.edu> References: <1993Aug24.015342.14669@news.csuohio.edu> <1993Aug24.024314.15697@news.csuohio.edu> <BRAD.93Aug26091051@stemwinder.FCR.COM> NNTP-Posting-Host: trinity.gnu.ai.mit.edu In-reply-to: brad@FCR.COM's message of 26 Aug 93 09:10:51 In article <BRAD.93Aug26091051@stemwinder.FCR.COM> brad@FCR.COM (Brad Parker) writes: 4. when I boot from the second IDE drive, the boot tracks ask me (yea!) what drive/file to boot from. I enter "wd(1,a)/netbsd". Works like a champ. (but, it would be nice if one could configure a default boot disk/file) You might try the following patch to the boot code. It will fail on some systems with both IDE/ESDI disks and SCSI disks. -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<----- *** boot.c.~1~ Mon Aug 2 10:52:00 1993 --- boot.c Fri Aug 27 11:14:17 1993 *************** *** 85,91 **** * As a default set it to the first partition of the first * * floppy or hard drive * \***************************************************************/ ! part = unit = 0; maj = (drive&0x80 ? 0 : 2); /* a good first bet */ name = names[currname++]; --- 85,92 ---- * As a default set it to the first partition of the first * * floppy or hard drive * \***************************************************************/ ! part = 0; ! unit = drive&0x7f; maj = (drive&0x80 ? 0 : 2); /* a good first bet */ name = names[currname++]; -----8<-----snip-----8<-----snip-----8<-----snip-----8<-----snip-----8<-----