Get rid off an annoying kernel message
Hello,
When you get a message from a program foo (say: WARNING from FOO: blah blah blah!) in a tty, how can you get rid of it? I know it is possible to change syslog.conf to redirect some messages (ie all critical ones, all cron-related ones, etc.), but how can you drop THE message which bothers you? I would like to tell my box: all messages like "*blah*" => /dev/null, that is, using a regexp to filter the system messages. They are sometimes very annoying! When I am working in a vt I hate being always disturbed by the same stupid warning... Thanks for your help /kloss |
What's the full message? It may be something critical and better not ignored.
|
The most annoying message is:
Code:
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error } /kloss |
Actually, that is a rather serious warning message. It looks like there is a problem with hdb (1st IDE slave). Even if the drive appears normal, there could be a problem internally (bad sectors, for example). I'd suggest backing up all your files on that drive, dropping to signle user mode, and running fsck on all hdb's partitions and badblocks on the drive as a whole.
FWIW, I don't think the normal Linux syslogd can filter via regex but some more advanced syslogds, e.g. syslog-ng, can. SuSE actually uses syslog-ng by default and it can be installed on your distro (you can probably apt-get it). |
Quote:
If it's a Seagate drive, they provide something called "SeaTools" that does a lowlevel diagnostic. I'm sure other manufactures provide something similar. Quote:
|
Quote:
Quote:
Quote:
Quote:
/kloss |
Test with another distribution (live-CD) to see whether it's the configuration, maybe hdparm(8) or some obscure BIOS settings. Post the output of "hdparm -v".
|
Quote:
|
Have a look in your kernel config - you may be able to fix this with a kernel recompile. In the docs for IDE setup (/usr/src/linux/drivers/ide/Kconfig) it mentions that you can set IDEDISK_MULTI_MODE to Y if you get either of these errors:
Code:
hda: set_multmode: status=0x51 { DriveReady SeekComplete Error } |
Quote:
With slax (= non debian-based), DMA is disabled on hda. I have the errors described above with hdb. Quote:
Code:
bratwurst:~# hdparm -i /dev/hda Code:
bratwurst:~# hdparm -i /dev/hdb Quote:
Quote:
/kloss |
As said above, you may not want to lose warnings, but as a general point, isn't "dmesg" the tool for determining what gets dropped?
|
Hi everyone :)
I'm kina new here and dont know very much about computers but well I'm just wondering getting of topic - Sorry hehe.. - whats a Kernel??? Thanks |
Quote:
Quote:
Quote:
please try to not veer threads off-topic like this... you should instead start your own thread in the appropriate forum (after having searched to see if your question has already been asked/answered), which in this case is this one: http://www.linuxquestions.org/questi...isplay.php?f=8 good luck... |
Quote:
|
And all of the above suggests that your hdb is not properly responding to direct memory access (DMA) commands. Perhaps there is a BIOS setting you've neglected, or maybe you should just turn off DMA for hdb. (I believe you can do that using hdparam.)
|
All times are GMT -5. The time now is 07:06 AM. |