From owner-freebsd-questions Sun Feb 24 19:52:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 8839637B405 for ; Sun, 24 Feb 2002 19:52:16 -0800 (PST) Received: from hades.hell.gr (patr364-a01.otenet.gr [195.167.109.33]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g1P3pdqO007770; Mon, 25 Feb 2002 05:51:54 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g1P3pYE31548; Mon, 25 Feb 2002 05:51:34 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Mon, 25 Feb 2002 05:51:33 +0200 From: Giorgos Keramidas To: Jacob Rhoden Cc: freebsd-questions@freebsd.org Subject: Re: retrieving kernel file from memory Message-ID: <20020225035133.GC27425@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-02-23 19:07, Jacob Rhoden wrote: > Hi, > > I know this is really stupid but . . . > > I recompiled my kernel twice, then thought it might be a nice idea to have > a copy of the old kernel in case the system didn't boot properly. Is there > a (simpleish) way to get a copy of the current kernel in memory back on > disk? > > I do remember thinking at the time, i should copy my kernel, and thinking, > no, why would I want to do that? hehe doh! Although not an answer to your question, check the output of this command: % sysctl kern.bootfile You might find it amazingly useful :) Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message