From owner-freebsd-questions Thu Jan 13 3:27:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from eve.framatome.fr (eve.framatome.fr [195.101.50.66]) by hub.freebsd.org (Postfix) with ESMTP id 037AA152C7 for ; Thu, 13 Jan 2000 03:27:47 -0800 (PST) (envelope-from ubc@paris.framatome.fr) Received: from localhost (ubc@localhost) by eve.framatome.fr (8.9.3/8.9.3) with ESMTP id MAA70929; Thu, 13 Jan 2000 12:27:38 +0100 (CET) (envelope-from ubc@eve.framatome.fr) Date: Thu, 13 Jan 2000 12:27:38 +0100 (CET) From: Claude Buisson To: Niall Brady Cc: freebsd-questions@freebsd.org Subject: Re: Booting a hard disk kernel from a floppy bootloader... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 12 Jan 2000, Niall Brady wrote: > Hi All, > > I've being having some problems preparing a boot floppy which will allow > me to boot the hard disk kernel, by booting off the floppy. > > (using FreeBSD 3.2-Release on a Gateway P150 16MB ram, 2.5GB IDE disk, 2 > CDs, 1 floppy, vt320 off cuaa0, PNP modem; > everything else is working perfectly, ppp, apm, printers, sound etc.) > > At the moment, I've tried the following configuration (list of relevant > files and their contents from floppy/boot [contents are mirrored on hard > disk in /boot ] > {note: executables are the same as on the standard install floppy} > > > /boot.config > ------------ > -P > > > /boot/loader.rc > --------------- > set currdev=disk1s2a > load /kernel > load -t userconfig_script /boot/kernel.config > autoboot 5 > > > /boot/kernel.config > ------------------- > pnp 1 0 os enable irq0 3 drq0 0 port0 0x2f8 > pnp 2 0 os enable port0 0x220 irq0 5 drq0 1 drq1 5 > pnp 2 1 os enable port0 0x200 > > > At the moment what happens is... (sorry, don't know how to capture exact > text from boot process...) > > > > boot: -P > keyboard found > > | > FreeBSD blahdeblah > Loader blahblah jkh@cathair > > Cannot find /kernel; press [ENTER] to boot immediately, > or any other key for prompt. > > > > So normally, if the floppy is left alone, it will find /kernel on the hard > drive eventually, but won't load the kernel.config script, which means > that the modem and sound card won't be configured. > > > However, at this point, if I go to the loader prompt, it shows up as... > > disk1s2a> > > (as I put into loader.rc in the "set currdev=" command) > > Then, at this point, if I execute the following commands... > > load /kernel > load -t userconfig_script /boot/kernel.config > boot > > All goes grand... everything loads as planned; only thing is I need to be > at the console to do this. > > I can't fully understand the order in which things are happening... it > seems as if loader is on disk1s2a, but for whatever reason kind find > /kernel, and bombs out of loader.rc > > Perhaps I'm missing something in boot.config? > > Any advice or help at all would be very much appreciated! > I boot from a floppy to my second SCSI disk, with: 1:da(1,a)/boot/loader in boot.config (on the floppy) At home I use the same schme to boot from the third IDE disk That is the floppy is just used to load /boot/loader from the hard disk. > -- > Niall > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > Claude Buisson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message