/var/log/dmesg empty

Kernels & Hardware, configuring network, installing services

/var/log/dmesg empty

Postby xendistar » 2018-12-30 19:20

If I look in my /var/log/dmesg.log it is empty (it actually says in the log nothing has been logged yet) how\where do I check that logging to dmesg is switched on please.

I am running Debian testing if that makes a difference?
xendistar
 
Posts: 108
Joined: 2010-12-29 17:52

Re: /var/log/dmesg empty

Postby cronoik » 2018-12-30 20:59

Are you just looking for kernel messages from the current boot or also from previous boots? You can get the kernel messages from the current boot with:
Code: Select all
journalctl -k

or
Code: Select all
dmesg

For kernel messages of previous boots you have to enable persistent logging. Just set in /etc/systemd/journald.conf the value of Storage to "persistent" and debian will persist the log messages in /var/log/journal. You can view them with journalctl.
Have a nice day!
cronoik
 
Posts: 308
Joined: 2015-05-20 21:17

Re: /var/log/dmesg empty

Postby xendistar » 2018-12-30 21:16

Thanks, I have uncommented (it was hashed out) and changed storage to persistent so let see what it produces, if I am not seeing what I want I will pop back.

Thanks
xendistar
 
Posts: 108
Joined: 2010-12-29 17:52


Return to System configuration

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable