From owner-freebsd-current@FreeBSD.ORG Fri Apr 27 01:24:19 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 4CD0916A400 for ; Fri, 27 Apr 2007 01:24:19 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.freebsd.org (Postfix) with ESMTP id AED2F13C45E for ; Fri, 27 Apr 2007 01:24:18 +0000 (UTC) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: from ednmsw510.dsto.defence.gov.au (ednmsw510.dsto.defence.gov.au [131.185.68.11]) by digger1.defence.gov.au (8.13.8/8.13.8) with ESMTP id l3R1F2wo013010 for ; Fri, 27 Apr 2007 10:45:02 +0930 (CST) Received: from ednex510.dsto.defence.gov.au (ednex510.dsto.defence.gov.au) by ednmsw510.dsto.defence.gov.au (Clearswift SMTPRS 5.2.5) with ESMTP id for ; Fri, 27 Apr 2007 10:54:11 +0930 Received: from obelix.dsto.defence.gov.au ([203.6.60.208]) by ednex510.dsto.defence.gov.au with Microsoft SMTPSVC(6.0.3790.1830); Fri, 27 Apr 2007 10:54:10 +0930 Received: from obelix.dsto.defence.gov.au (localhost [127.0.0.1]) by obelix.dsto.defence.gov.au (8.13.8/8.13.8) with ESMTP id l3R1O45R008268 for ; Fri, 27 Apr 2007 09:24:04 +0800 (WST) (envelope-from wilkinsa@obelix.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by obelix.dsto.defence.gov.au (8.13.8/8.13.8/Submit) id l3R1O3dn008267 for freebsd-current@freebsd.org; Fri, 27 Apr 2007 09:24:03 +0800 (WST) (envelope-from wilkinsa) Date: Fri, 27 Apr 2007 09:24:02 +0800 From: "Wilkinson, Alex" To: freebsd-current@freebsd.org Message-ID: <20070427012401.GZ2445@obelix.dsto.defence.gov.au> Mail-Followup-To: freebsd-current@freebsd.org References: <20070426204602.GA81382@keltia.freenix.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.14 (2007-02-12) X-OriginalArrivalTime: 27 Apr 2007 01:24:11.0339 (UTC) FILETIME=[C27029B0:01C7886A] X-TM-AS-Product-Ver: SMEX-7.0.0.1526-3.6.1039-15140.000 X-TM-AS-Result: No-1.303200-8.000000-31 Content-Transfer-Encoding: 7bit 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:24:19 -0000 0n Thu, Apr 26, 2007 at 03:35:15PM -0700, Tom Cumming wrote: >>What about using the "panic" command in ddb? :) > > >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 IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914. If you have received this email in error, you are requested to contact the sender and delete the email.