From owner-freebsd-current@FreeBSD.ORG Fri Apr 27 01:38:50 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 260F916A403 for ; Fri, 27 Apr 2007 01:38:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 086EA13C448 for ; Fri, 27 Apr 2007 01:38:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.1/8.13.8) with ESMTP id l3R1bgco051961 for ; Thu, 26 Apr 2007 18:37:42 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.1/8.13.8/Submit) id l3R1bgMw051960 for freebsd-current@freebsd.org; Thu, 26 Apr 2007 18:37:42 -0700 (PDT) (envelope-from sgk) Date: Thu, 26 Apr 2007 18:37:42 -0700 From: Steve Kargl To: freebsd-current@freebsd.org Message-ID: <20070427013742.GA51877@troutmask.apl.washington.edu> References: <20070426204602.GA81382@keltia.freenix.fr> <20070427012401.GZ2445@obelix.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070427012401.GZ2445@obelix.dsto.defence.gov.au> User-Agent: Mutt/1.4.2.2i Subject: Re: Panic on boot. How do I get a kernel dump. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2007 01:38:50 -0000 On Fri, Apr 27, 2007 at 09:24:02AM +0800, Wilkinson, Alex wrote: > 0n Thu, Apr 26, 2007 at 03:35:15PM -0700, Tom Cumming wrote: > >>The problem is not getting it to panic, the problem is getting it to save >>core after the panic. I can find no way to configure the dump device before >>I boot, only after the OS is up. This means a panic during boot will not >>dump core because the dump device is not configured. > > Boot off of a good kernel and: > > # boot -s > # fsck -p > # mount /var > # savecore /kernel.broken /var/crash > > -aW > Re-read the text that you quoted. Tom doesn't have dumpdev set, so there is no core for savecore to retrieve. ISTR, that one could set dumpdev in the loader. At the loader prompt, do set dumpdev="/dev/ad0s2b" -- Steve