* Michael Heldebrant <hmike@portalofevil.com> [2004:01:27:15:25:08-0600] scribed: > On Tue, 2004-01-27 at 15:06, Michael D Schleif wrote: > > OK, it can be nice to have devices _know_ when they are ready to be used > > ;> > > > > However, enough is enough: > > > > Jan 27 10:02:09 bragi kernel: sr1: CDROM not ready. Make sure there is a disc in the drive. > > Jan 27 10:02:40 bragi last message repeated 31 times > > Jan 27 10:03:41 bragi last message repeated 61 times > > Jan 27 10:04:42 bragi last message repeated 61 times > > > > I know what /dev/sr1 is, and I often play audio CD's in that drive. > > Sometimes, that drive is empty, and that is the way it should be. > > > > How can I figure out what process is pummeling syslog with this useless > > information? > > > > What do you think? > > Install the lsof package if you don't have it. > > Try: lsof /dev/sr1 > > Tt should give you a clue as to what is opening the device, you may have > to run it as lsof -r /dev/sr1 over a minute or more if the process only > opens /dev/sr1 every now and then. It looks to be something checking > once a minute (61 log messages over 61 minutes) Are you running > something like nautilus? Thank you. # lsof /dev/sr1 COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME kscd 1336 mds 10r BLK 11,1 163217 /dev/scd1 I got confused, because nothing really said `sr1'. Even ~/.kde/share/config/kscdrc specifies: /dev/cdrom. # ls -l /dev/sr1 lrwxrwxrwx 1 root root 4 May 25 2002 /dev/sr1 -> scd1 # ls -l /dev/scd1 brw-rw---- 1 root cdrom 11, 1 Nov 30 2000 /dev/scd1 # ls -l /dev/cdrom lrwxrwxrwx 1 root root 6 Nov 15 18:29 /dev/cdrom -> ./scd1 kscd was sitting in the System Tray, and when I closed it, syslog bombardment also went away ;< I am still confused why the logs and console streaming insisted that the culprit was on /dev/sr1 . . . -- Best Regards, mds mds resource 877.596.8237 - Dare to fix things before they break . . . - Our capacity for understanding is inversely proportional to how much we think we know. The more I know, the more I know I don't know . . . --
Attachment:
signature.asc
Description: Digital signature