Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-09-2010, 10:07 AM   #1
LQ Newbie
Registered: Aug 2010
Posts: 4

Rep: Reputation: 0
Where is dmesgoutput stored?


I have enabled usb storage debug prints for the debugging of my driver in kernel of Fedora 8. When I type dmesg and press enter I see many prints on the screen.

There are however lot many prints and I want all those prints from the beginning. However it seems that the older prints are overwritten with newer prints. SO if just redirect the dmesg output to some file, I get only newest prints but older are lost.

Surprisingly /var/log/messages doesn't contain those prints! Also I see there is a file named /var/log/dmesg , but that files never gets updated with the prints I see on the screen.

So, my question is can I get all those dmesg prints right from the beginning in a file somewhere?

Old 09-09-2010, 11:47 AM   #2
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,385

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
The dmesg log is a ring buffer for the kernel in memory. When it's full, the oldest lines are removed. The kernel can then log things before any disks are mounted, when disks are full and so on. You can increase the size of it, or make a script that writes it to file every now and then, with for example this line in cron "dmesg -c >>/var/log/dmesg".

See "man dmesg" for details.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where are my commands stored? ifeatu Linux - Newbie 9 10-06-2008 12:08 PM
What is stored in /home? Vulpus Linux - Newbie 5 06-17-2006 08:23 AM
Where is the PVID stored looseCannon AIX 1 05-09-2006 02:58 PM
Where are routes stored? vusa Linux - Networking 4 04-28-2005 07:50 PM
where are the rpms stored chens_83 Linux - Newbie 5 01-03-2002 03:37 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration