Subject: Re: writing crashdump
To: Pavel Cahyna <pavel@netbsd.org>
From: Mipam <mipam@ux11.ltcm.net>
List: netbsd-users
Date: 05/23/2006 23:34:30
On Tue, 23 May 2006, Pavel Cahyna wrote:

> On Tue, May 23, 2006 at 07:27:52PM +0200, Mipam wrote:
> > On Tue, 23 May 2006, Pavel Cahyna wrote:
> > 
> > > On Tue, May 23, 2006 at 04:25:42PM +0200, Mipam wrote:
> > > > Hi All,
> > > > 
> > > > I wished to generate a crashdump.
> > > > After rebooting with the kernel that crashes and ending up in db>
> > > > I type: reboot 0x100
> > > > However, i then see that it's unable to write the crashdump and reboots, 
> > > > so i cannot get a crashdump, to make a backtrace later.
> > > > Do i need to specify somewhere to write the crashdump to swap or?
> > > > And how to do this?
> > > 
> > > Please specify more precisely what happens after you typed "reboot 0x100".
> > > "it's unable to write" does not tell much.
> > 
> > Unable to write to dev 1,0 is what the message displays.
> > This is all it mentiones. :-(
> 
> when the kernel starts, it should print something like
> root on sd0a dumps on sd0b
> 
> the "dumps on" part tells what partition it will use to write crash dumps.
> Usually this is the swap partition.
> 
> Please verify that this partition exists and is large enough for the dump
> (larger than the amount of RAM).

dmesg says: "root on wd0a dumps on wd0b".
It says: "total memory = 767 MB".
disklabel wd0 says this:

b: 263088 [offset] swap ............................

Maybe my swap is too small?