Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Oct 1998 17:23:39 +0200 (CEST)
From:      Andrzej Bialecki <abial@nask.pl>
To:        Karl Pielorz <kpielorz@tdx.co.uk>
Cc:        Chuck Robey <chuckr@mat.net>, freebsd-current@FreeBSD.ORG
Subject:   Re: Latest kernel
Message-ID:  <Pine.BSF.4.02A.9810181706070.12049-100000@korin.warman.org.pl>
In-Reply-To: <36290E93.139108FE@tdx.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 17 Oct 1998, Karl Pielorz wrote:

> In your kernel config, give this a try:
> 
> config          kernel  root on XXX dumps on da0s1b
> 
> Where XXX should already be your root filesystem... BE WARNED - in LINT it
> doesn't recomend this, I don't know how reliable specifiying the dump device
> is here!

There's yet another method I don't recommend :-) but I was once desperate
enough to use it, and it worked... Be warned though - it's ugly and it can
chop your disk in pieces if your finger slips...

Step #1: boot machine with known working kernel, drop it to DDB
(Ctl-Alt-Esc) and see what is the value of _dumpdev (x/wx _dumpdev), and
jot it down. Then exit DDB and shutdown the machine.

Step #2: boot machine with the bad kernel. When it panics, and you're in
DDB, see the value of _dumpdev, and if it's different, set it to the
previous value (w/w _dumpdev 0 1 2 3 ).

Step #3: enter "panic". It should dump core to the location pointed by
_dumpdev. If it doesn't, not all is lost yet - you can directly call
boot(0x104), or if it can't sync disks, boot(0x100). If this fails, the
things are really bad, and only remote GDB can help you to debug the
problem...

Andrzej Bialecki

--------------------   ++-------++  -------------------------------------
 <abial@nask.pl>       ||PicoBSD||   FreeBSD in your pocket? Go and see:
 Research & Academic   |+-------+|       "Small & Embedded FreeBSD"
 Network in Poland     | |TT~~~| |    http://www.freebsd.org/~picobsd/
--------------------   ~-+==---+-+  -------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9810181706070.12049-100000>