LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

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

Rep: Reputation: 0
Where is dmesgoutput stored?


Hi,

I have enabled usb storage debug prints for the debugging of my driver in kernel 2.6.24.4 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?

Regards,
Abhijit
 
Old 09-09-2010, 10:47 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,115

Rep: Reputation: 218Reputation: 218Reputation: 218
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.
 
  


Reply

Tags
dmesg


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 11:08 AM
What is stored in /home? Vulpus Linux - Newbie 5 06-17-2006 07:23 AM
Where is the PVID stored looseCannon AIX 1 05-09-2006 01:58 PM
Where are routes stored? vusa Linux - Networking 4 04-28-2005 06:50 PM
where are the rpms stored chens_83 Linux - Newbie 5 01-03-2002 02:37 AM


All times are GMT -5. The time now is 04:12 AM.

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