Panic on boot. How do I get a kernel dump.

Kris Kennaway kris at obsecurity.org
Fri Apr 27 01:43:20 UTC 2007


On Thu, Apr 26, 2007 at 06:37:42PM -0700, Steve Kargl wrote:
> 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"  

I don't think this has existed for many years (it was removed during
GEOM development).

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20070427/77f81947/attachment.pgp


More information about the freebsd-current mailing list