How to capture console messages during boot?

David Christensen dpchrist at
Wed Jan 25 05:17:05 UTC 2017

> On Tue, 24 Jan 2017 19:59:01 -0800
> David Christensen <dpchrist at> wrote:
>> I am attempting to build a graphical workstation using:
>> [snip]
>> As I add software and adjust configuration settings, invariably I create
>> or encounter issues.  Some of these generate warnings/ errors on the
>> console when the system boots.  I'd like to capture console messages
>> during boot, so that I can review them and fix things.

On 01/24/17 20:45, Sergei Akhmatdinov wrote:
> 2. Use `dmesg -a`, maybe piped into `less` if you prefer.
>    The -a switch should show you the boot process messages, which are normally
>    suppressed.

Yes, that's what I was looking for.

On 01/24/17 21:07, Michael Sierchio wrote:
 > cat /var/run/dmesg.boot

That is incomplete -- I don't see all of the messages (just kernel, not 

Thanks, everyone, for the help.  :-)


More information about the freebsd-questions mailing list