I am working with a developer of NAS4Free (FreeBSD based), and to help diagnose issues, I'm trying to capture the console output generated while booting.
After much searching, I can't find any hints of how to do this. I found that when toggled into scroll mode with Scroll Lock, I can scroll back up, but what I really want to do is take the whole buffer and dump it to a file that I could then post to Pastebin or similar, so he can go through it and find the possibly problematic areas.
Background: NAS4Free is running "embedded" on bare metal, so reconfiguring it to dump boot messages to somewhere else isn't possible.
dmesg has been used, but doesn't list all the specific entries printed during the boot sequence.
sysctl -a has been recommended, and while some of the output is helpful, it still doesn't include all the boot messages.
/var/log/messages does not exist, which could mean the logger isn't started (likely to reduce rewrites to the boot media)
Basically, I just want a way to just grab the contents of the console's buffer and dump it to a text file on disk, instead of having to manually type out everything that might be of interest.