From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 03:01:28 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 62A461065675 for ; Wed, 1 Jun 2011 03:01:28 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 0D9BB8FC08 for ; Wed, 1 Jun 2011 03:01:27 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p5131M7W008263 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 31 May 2011 20:01:23 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p5131MeI008262; Tue, 31 May 2011 20:01:22 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA08843; Tue, 31 May 11 19:50:16 PDT Date: Tue, 31 May 2011 19:50:11 -0700 From: perryh@pluto.rain.com To: dieterbsd@engineer.com Message-Id: <4de5a8e3.kcNH3s3BI3v0Bcca%perryh@pluto.rain.com> References: <20110531234514.95200@gmx.com> In-Reply-To: <20110531234514.95200@gmx.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Active slice, only for a next boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2011 03:01:28 -0000 "Dieter BSD" wrote: > If you neglected to specify RS-232 console in the requirements, > there is this thing. ??I haven't tried it. > http://www.realweasel.com/ Heard of it, aka the PC Weasel. I've never actually seen one. They have been around for a while; the original -- which they apparently still make -- was ISA. > Somebody probably sells a KVM-over-IP box. Raritan, at least. Probably others also. > > Unfortunately it doesn't have a better way to do this as the > > only input it gets from boot0 or any other MBR boot loader is > > the BIOS drive number in %dl. I'm not sure how else you would > > detect that a non-active slice was booted from when that is > > your only input. > > The NetBSD boot code manages to do it. Dunno how NetBSD does it, but one approach that comes to mind would be for whatever installs boot1 to set one of its bytes to the slice number in which it is installed.