LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-22-2006, 09:48 AM   #1
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Rep: Reputation: 15
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
 
Old 04-22-2006, 10:09 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,067
Blog Entries: 4

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
What's the full message? It may be something critical and better not ignored.
 
Old 04-22-2006, 11:32 AM   #3
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Original Poster
Rep: Reputation: 15
The most annoying message is:

Code:
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x84 { DriveStatusError BadCRC }
It seems really useless: the hdd and the ide cables are fine. It appears quite often... grrr.

/kloss

Last edited by kloss; 04-22-2006 at 11:35 AM.
 
Old 04-22-2006, 11:36 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625

Rep: Reputation: 101Reputation: 101
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).
 
Old 04-22-2006, 12:21 PM   #5
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, Slackware, Slax, Knoppix, SysrescueCD
Posts: 1,328

Rep: Reputation: 51
Quote:
Originally Posted by kloss
The most annoying message is:

Code:
hdb: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hdb: dma_intr: error=0x84 { DriveStatusError BadCRC }
It seems really useless: the hdd and the ide cables are fine. It appears quite often... grrr.

/kloss
Like btmiller said, this one could be quite serious. And probably is. If I ran into that one myself (and I actually HAVE, come to think of it!), I'd be backing up my harddrive data pronto, and looking for a replacement drive. Try running a low level diagnostic tool from your harddisk vendor and you may find that your drive is not in as good a shape as you're thinking. If you can access the S.M.A.R.T. data from your drive, it will probably bear equally bad news. Check out http://smartmontools.sourceforge.net/ for a S.M.A.R.T. data monitoring utility.

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:
It appears quite often... grrr.
Is "grrr" a reference to the noise your harddisk makes when this error occurs???!!!
 
Old 04-22-2006, 01:30 PM   #6
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by btmiller
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.
fsck did not help, but I backed up all files on hda I think I will stick with my hard drive. If the drive is still alive in -say- 3 months, I will reasonably suppose that these warnings are not relevant.

Quote:
Originally Posted by btmiller
FWIW, I don't think the normal Linux syslogd can filter via regex but some more advanced syslogds, e.g. syslog-ng, can.
Right! I have apt-installed syslog-ng and tweaked the config file; so far I have not seen the message. Thanks for this advice!

Quote:
Originally Posted by haertig
Check out http://smartmontools.sourceforge.net/ for a S.M.A.R.T. data monitoring utility.
Smartmontools detects a lot of DMA errors... There is something strange: when a lot of errors are outputted, my system disables DMA on hda (and not hdb), I don't know why.

Quote:
Originally Posted by haertig
Is "grrr" a reference to the noise your harddisk makes when this error occurs???!!!
That's me when I'm grumbling indistinctly

/kloss

Last edited by kloss; 04-22-2006 at 01:41 PM.
 
Old 04-22-2006, 01:47 PM   #7
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 33
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".
 
Old 04-22-2006, 02:58 PM   #8
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, Slackware, Slax, Knoppix, SysrescueCD
Posts: 1,328

Rep: Reputation: 51
Quote:
Originally Posted by kloss
If the drive is still alive in -say- 3 months, I will reasonably suppose that these warnings are not relevant.
Whatever, ...it's your data. In the meantime, while you're waiting for it to catch on fire as positive proof of problems , I would recommend very frequent backups of any important stuff left on this harddrive.
 
Old 04-22-2006, 03:14 PM   #9
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
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 }
	  hda: set_multmode: error=0x04 { DriveStatusError }
 
Old 04-22-2006, 03:45 PM   #10
kloss
Member
 
Registered: Nov 2004
Location: France & Germany
Distribution: (Pure) Debian Etch & Sid
Posts: 116

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by primo
Test with another distribution (live-CD) to see whether it's the configuration
With knoppix, DMA is disabled on hda and hdb.
With slax (= non debian-based), DMA is disabled on hda. I have the errors described above with hdb.

Quote:
Originally Posted by primo
Post the output of "hdparm -v".
Code:
bratwurst:~# hdparm -i /dev/hda

/dev/hda:

 Model=Maxtor 6Y080L0, FwRev=YAR41BW0, SerialNo=Y2NQC7DE
 Config={ Fixed }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=57
 BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=160086528
 IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 udma6 
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: (null): 

 * signifies the current active mode
Code:
bratwurst:~# hdparm -i /dev/hdb

/dev/hdb:

 Model=IC35L080AVVA07-0, FwRev=VA4OA52A, SerialNo=VNC402A4CZ89LA
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
 BuffType=DualPortCache, BuffSize=1863kB, MaxMultSect=16, MultSect=off
 CurCHS=4047/16/255, CurSects=16511760, LBA=yes, LBAsects=160836480
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4 
 DMA modes:  mdma0 mdma1 mdma2 
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 
 AdvancedPM=yes: disabled (255) WriteCache=enabled
 Drive conforms to: ATA/ATAPI-5 T13 1321D revision 1: 

 * signifies the current active mode
Quote:
Originally Posted by haertig
while you're waiting for it to catch on fire as positive proof of problems , I would recommend very frequent backups of any important stuff left on this harddrive.
In fact the hard drive is already a backup drive... I think it is unlikely that both the original data (eg my laptop is stolen) and the backup data (eg the hdd burns) are lost at the same time.

Quote:
Originally Posted by gilead
Have a look in your kernel config, etc.
Thanks for the tip, but the errors look different: set_multmode vs dma_intr.

/kloss
 
Old 04-22-2006, 05:10 PM   #11
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
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?
 
Old 04-23-2006, 12:51 PM   #12
G4T4EVA
LQ Newbie
 
Registered: Apr 2006
Location: UK
Distribution: SuSE 10.
Posts: 17

Rep: Reputation: 0
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
 
Old 04-23-2006, 01:02 PM   #13
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
Quote:
Originally Posted by G4T4EVA
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???
hi there... welcome to LQ!!! these links will help you:

Quote:
In computer science, the kernel is the core piece of most operating systems. It is a piece of software responsible for hardware and software components to communicate.
http://en.wikipedia.org/wiki/Kernel_...ter_science%29


Quote:
The Linux kernel is a Unix-like operating system kernel that was begun by Linus Torvalds in 1991 and subsequently developed with the assistance of developers worldwide.
http://en.wikipedia.org/wiki/Linux_kernel


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...

Last edited by win32sux; 04-23-2006 at 01:07 PM.
 
Old 04-23-2006, 02:06 PM   #14
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,021

Rep: Reputation: 125Reputation: 125
Quote:
Originally Posted by kloss
the errors look different: set_multmode vs dma_intr.
Sorry about that - I used too short a search string while I was grepping the kernel sources...
 
Old 04-23-2006, 02:33 PM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 3,665

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


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Let me get rid of that annoying message at the top of the page StevenK LinuxQuestions.org Member Intro 1 03-04-2006 12:59 PM
How do I get rid of that annoying disco music? purelithium Mandriva 4 11-09-2005 06:55 PM
annoying cron job on find, how to get rid of it feetyouwell Linux - Software 2 06-27-2005 08:44 PM
Getting rid of annoying beeps in console? sharpie Slackware 8 03-11-2004 12:48 AM
How do I get rid of that annoying ping in Gnome 1.2? CragStar Linux - General 2 12-22-2000 09:18 AM


All times are GMT -5. The time now is 07:36 PM.

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
Open Source Consulting | Domain Registration