Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!gatech!news.mathworks.com!fu-berlin.de!news.dfn.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!schweikh From: schweikh@itosun.ito.uni-stuttgart.de (Jens Schweikhardt) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: please help me boot to sd0 w/o using hd(1,a)/kernel. Date: 20 Jan 1996 14:25:06 GMT Organization: Comp.Center (RUS), U of Stuttgart, FRG Lines: 41 Message-ID: <4dqu02$1uio@info4.rus.uni-stuttgart.de> References: <4dj0cb$bdp@lori.albany.net> <4dp6tk$4iv@uriah.heep.sax.de> NNTP-Posting-Host: itosun.ito.uni-stuttgart.de In article <4dp6tk$4iv@uriah.heep.sax.de>, J Wunsch <joerg_wunsch@uriah.heep.sax.de> wrote: +buffalo@albany.net (mando) writes: + +> I'm new to freeBSD and have gotten as far as being able to compile a +> new kernel but I can't get it to boot directly to sd0. in the +> Kernel config line I changed wd0 to sd0 now it doesn't try to boot +> wd0 it tries to boot sd1. I would appreciate any help you can give +> me. This operating system looks very promising so far. + + printf("\n>> FreeBSD BOOT @ 0x%x: %d/%d k of memory\n" + "Use hd(1,a)/kernel to boot sd0 when wd0 is also installed.\n" + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + "Usage: [[%s(%d,a)]%s][-abcCdhrsv]\n" + "Use ? for file list or press Enter for defaults\n\nBoot: ", + ouraddr, bootinfo.bi_basemem, bootinfo.bi_extmem, + devs[maj], unit, name); I think the original poster was looking for a solution so that he does NOT have to TYPE hd(1,a)/kernel each time on boot. The solution is not in changing the kernel, but the boot blocks of the floppy or sd0 drive that is being booted from. % cd /sys/i386/boot/biosboot % vi boot.c part = 0; unit = 1; <-- Change unit and major. With my hardware config maj = 1; <-- this boots from hd(1,a). Your numbers may vary. Play around. % make % disklabel -B -b boot1 -s boot2 sd0 # installs the bootstrap code on sd0 use fd0 instead of sd0 when you want to change the code on a boot floppy, so that the kernel is loaded from hd(1,a). Bye, Jens -- SIGSIG -- signature too long (core dumped)