Robert J. C. Himmelmann wrote:
Greeting,

After making my Gentoo installation unusable by hibernating it and then booting from an installation CD to reinstall GRUB, I am using Ubuntu. It works quite fine except for one nasty little thing: HAL keeps on checking for CD-ROMs. When it does not find any it writes the following error to the logs:

Aug 15 21:04:03 deepthought kernel: [209861.940883] hdc: error code: 0x70 sense_key: 0x03 asc: 0x31 ascq: 0x00

That happens about once a second and swiftly fills the partition by doing so. The first suggested fix is leaving a disk in the drive which I do not think is appropriate. The second taken from http://www.ubuntuforums.org/showthread.php?p=942785 is to tell HAL not to look for any CDs. Obviously all the mounting has to be done by hand after that. Is there any way to tell HAL to not log any not found CDs or syslogd to ignore those messages?

Thanks,
Robert Himmelmann

I solved the problem by putting
alias 'dm'='dmesg | grep -v "error code: 0x70  sense_key"'
into my bashrc and setting the following script as compression command in /etc/logrotate.conf:

#!/bin/bash

cp $1 /tmp/logxx
grep -v  "error code: 0x70  sense_key" > $1
rm /tmp/logxx
gzip /tmp/logxx

This is not the most efficient solution but it should work.

Robert J. C. Himmelmann

Reply via email to