To capture a crash dump, edit
<filename>/etc/rc.conf
</filename> and set
<literal>dumpdev
</literal> to point to either the swap partition or
<literal>AUTO
</literal>. This will cause the
<citerefentry><refentrytitle>rc
</refentrytitle><manvolnum>8
</manvolnum></citerefentry> scripts to use the
<citerefentry><refentrytitle>dumpon
</refentrytitle><manvolnum>8
</manvolnum></citerefentry> command to enable crash dumps. This command can also be run manually. After a panic, the crash dump can be recovered using
<citerefentry><refentrytitle>savecore
</refentrytitle><manvolnum>8
</manvolnum></citerefentry>; if
<literal>dumpdev
</literal> is set in
<filename>/etc/rc.conf
</filename>, the
<citerefentry><refentrytitle>rc
</refentrytitle><manvolnum>8
</manvolnum></citerefentry> scripts will run
<citerefentry><refentrytitle>savecore
</refentrytitle><manvolnum>8
</manvolnum></citerefentry> automatically and put the crash dump in
<filename>/var/crash
</filename>.