From owner-freebsd-stable@FreeBSD.ORG Wed Jan 10 23:25:50 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AF16D16A40F for ; Wed, 10 Jan 2007 23:25:50 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id 6FDC713C455 for ; Wed, 10 Jan 2007 23:25:50 +0000 (UTC) (envelope-from torfinn.ingolfsen@broadpark.no) Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0JBO00GNPEEXOIE0@osl1smout1.broadpark.no> for freebsd-stable@freebsd.org; Thu, 11 Jan 2007 00:25:45 +0100 (CET) Received: from kg-work.kg4.no ([80.203.66.169]) by osl1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with SMTP id <0JBO00519EEXGM10@osl1sminn1.broadpark.no> for freebsd-stable@freebsd.org; Thu, 11 Jan 2007 00:25:45 +0100 (CET) Date: Thu, 11 Jan 2007 00:25:44 +0100 From: Torfinn Ingolfsen X-Face: "t9w2,-X@O^I`jVW\sonI3.,36KBLZE*AL[y9lL[PyFD*r_S:dIL9c[8Y>V42R0"!"yb_zN,f#%.[PYYNq; m"_0v; ~rUM2Yy!zmkh)3&U|u!=T(zyv,MHJv"nDH>OJ`t(@mil461d_B'Uo|'nMwlKe0Mv=kvV?Nh@>Hb<3s_z2jYgZhPb@?Wi^x1a~Hplz1.zH In-reply-to: <20070110202600.4C20D45041@ptavv.es.net> To: freebsd-stable@freebsd.org Message-id: <20070111002544.9cfc6e14.torfinn.ingolfsen@broadpark.no> MIME-version: 1.0 X-Mailer: Sylpheed 2.3.0 (GTK+ 2.10.7; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT References: <184b087c0701101154x4bf948e7k8f00d4f9e7e2a8d6@mail.gmail.com> <20070110202600.4C20D45041@ptavv.es.net> Subject: Re: booting question X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2007 23:25:50 -0000 On Wed, 10 Jan 2007 12:26:00 -0800 Kevin Oberman wrote: > This may or may not work depending on modules loaded (note that unload > will unload all modules already loaded by the loader, not just the > kernel) and whether any modules are loaded later in the boot > process. While I have not check in quite a while, at one time this > would result in modules still being loaded from /boot/kernel and > these might not be compatible with the old kernel. FWIW, I had to boot a machine with the install CD (6.2-RC2, cd1) the other day, because FreeBSD's boot manager was hosed, erm, overwritten by Linux (which I had installed on another partition. Not my fault that the Linux installation program didn't ask me hwere to put grub, oh well) What I wanted was to use boot0cfg to write FreeBSD's boot manager back onto the MBR, but since I didn't have a rescue CD, I had to boot the machine with CD1, and then make it get everything from the hard drive and boot from there. I knew that may FreeBSD installation was on disk0, slice 1. What I did was the following (IIRC): 1) boot from CD1 2) select command line from boot menu 3) unload 4) set currdev=disk0s1 5) load kernel 6) boot (actually, I think I used boot -a, but I don't know if that is necessary) HTH -- Regards, Torfinn Ingolfsen