From owner-freebsd-current Fri Nov 6 23:51:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA06388 for freebsd-current-outgoing; Fri, 6 Nov 1998 23:51:06 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles131.castles.com [208.214.165.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA06382 for ; Fri, 6 Nov 1998 23:51:01 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id XAA00452; Fri, 6 Nov 1998 23:50:17 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811070750.XAA00452@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: "George W. Dinolt" cc: freebsd-current@FreeBSD.ORG Subject: Re: Boot Loader question In-reply-to: Your message of "Fri, 06 Nov 1998 21:06:36 PST." <3643D55C.DE98C1E7@lmco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Nov 1998 23:50:16 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have a question about the new bootloader. I have been using the > loader successfully including preloading .ko files and "load -t > userconfig_script..." commands with great success. The process seems to > work very well. The problem is that I boot several different versions of > FreeBSD and like to use a "floppy" to start the boot process off. > Different floppies point to different disks or diskpartitions. Currently > I have configured a floppy using > disklabel -B /dev/fd0 > and a boot.config file which contains, for example, the command > 3:da(0,a)boot/loader > When I boot from the floppy, this causes the loader on my 3rd scsi disk > to run. This all works great. Ok. Have you considered something like this: set choice=1 echo "1 - FreeBSD 2.2" echo "2 - FreeBSD-current" read -t 10 -p "Select >>" choice set currdev=disk${choice}s1a: source /boot/boot.conf2 in the default boot.conf, and then the 'real' boot instructions in /boot/boot.conf2? > I would like to be able to use the boot1 and boot2 from /boot on the > floppy. This does not seem to work. When I try the command > disklabel -B -b /boot/boot1 -s /boot/boot2 /dev/fd0 > and then boot off the floppy I get an error and the system hangs in the > first boot phase. I can, of course, just ignore the problem for the > time being, but if/when the new files replace the current ones in > /usr/mdec, there could be problems. Firstly, the new files won't be replacing the old ones in /usr/mdec; the directory will be going away. However, to help you we need to know *what* the error is. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message