I recently had some trouble with a wireless card, and an online forum suggested searching dmesg
with grep firmware
. That helped, I was able to find the problem immediately! However, the previous hour was spent looking at dmesg
and I couldn't identify anything relevant due to the overwhelming quantity of information!
How does on know what to grep for in dmesg?
Sure, this was a hardware issue but I myself would never have thought to grep for the string "firmware". For someone not intimately familiar with the output of dmesg
, how might I make some educated guesses about what to grep for?
Best Answer
Something like this would be useful:
For example, if looking for your video card, you could try:
Or:
The
C 3
flag will print 3 lines before and after the matched string, just to give you some context on what the results are. But as @tohecz said, there are thousands of possibilities.All depends on what you are looking for... sound, wifi, usb, serial, reader....
If you expect a usb key to appear in there, you can try grepping for
/dev/sd
.Just found this page, that contains sound advice on how to grep stuff in there: