From owner-freebsd-hackers Sun Jan 12 11:32:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1715637B401 for ; Sun, 12 Jan 2003 11:32:37 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C1F343F13 for ; Sun, 12 Jan 2003 11:32:36 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.6/8.12.3) with ESMTP id h0CJWY1e007198; Sun, 12 Jan 2003 12:32:35 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 12 Jan 2003 12:30:33 -0700 (MST) Message-Id: <20030112.123033.27800883.imp@bsdimp.com> To: devans@hclb.demon.co.uk Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: boot2 no longer displays a prompt From: "M. Warner Losh" In-Reply-To: <20030112191930.E499-100000@hclb.demon.co.uk> References: <20030111.143026.40685845.imp@bsdimp.com> <20030112191930.E499-100000@hclb.demon.co.uk> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20030112191930.E499-100000@hclb.demon.co.uk> Dave Evans writes: : : : On Sat, 11 Jan 2003, M. Warner Losh wrote: : : > In message: <1042319907snx@hclb.demon.co.uk> : > devans@hclb.demon.co.uk (Dave Evans) writes: : > : At bootup, boot2 is the program which displays a - sign on the console : > : and if you hit the space bar it comes up with a prompt allowing you to : > : change the drive and partition of the loader program, e.g. : > : ad(0,e)/boot/loader. : > : : > : At least that's how it used to work. Nowadays, judging from my current : > : of October 20, 2002, the - sign is no longer displayed and boot2 goes : > : straight through to the loader. : > : : > : Is this a bug, perhaps fixed, or has the prompt been taken out to make : > : room for UFS2 code? I've looked through the commit logs and there : > : is nothing to indicate the prompt has been taken out. : > : > It appears that we set autoboot to 1. If there is a /boot.config and : > we cannot parse it, we set it to 0. When set to 0 we prompt. : > However, it looks like there might be a bug, or it might be a boot0cfg : > issue: : > : : I put -z in /boot.config as an illegal option, in the hope : that it would disable autoboot. It does, the prompt is now displayed, : but it does not allow you to type anything in. Even a carriage return : has no effect. The result is you cannot boot at all. : : *** warning: do not try this unless you have a way of restoring : boot.config :-( Which makes sense, given the rest of the analysis. You'll need new boot blocks to fix it. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message