Bugzilla – Bug 150175
message repeats every 2 seconds : Device not ready. Make sure there is a disc in the drive.
Last modified: 2006-02-17 10:43:10 UTC
in /var/log/messages I get every 2 seconds the same line : Feb 11 16:53:19 linux klogd: Device not ready. Make sure there is a disc in the drive. Feb 11 16:53:21 linux klogd: Device not ready. Make sure there is a disc in the drive. Feb 11 16:53:23 linux klogd: Device not ready. Make sure there is a disc in the drive. Only if put a cd in, it shuts up. This happens only to my scsi CDwriter, not to the ide DVD drive, nor DVDwriter This happend in previous SuSELinux versions before suse 10.0, hoped it would disappear with 10.1
Created attachment 67771 [details] /var/log/messages before inserting up to after removing a cd
Created attachment 67772 [details] output from hwinfo --cdrom
That's haldaemon polling your device. Try '/etc/init.d/haldaemon stop' and see whether the message disappears.
Yes, you're rigth, the message disappears when I stop the haldaemon service.
not a kernel issue, reassigning...
Danny: I think HAL should not pollute the syslog in this way. After all this message is not very useful at all, don't you think?
Not HAL pollute the syslog. This message is at least from the kernel and not from HAL. Btw. we could blacklist the device, but in this case you will not get automounted CDs/DVDs because we will not register media change. @kay any other ideas?
Yeah, fix the kernel not to print this absolute nonsense.
I'll add the Kernel maintainers into CC
I reassign this to kernel. @kay: Btw. should we blacklist the device or ignore this errormessage?
Let's wait if the kernel can be fixed. There could be more like this in the end...
I can easily get rid of the kernel dmesg, but why would you want to poll the drive every two seconds? I thought we wanted our hard drives to be able to suspend from time to time for power reasons?
Remember, it is a cd-writer not a hard disk. Does the kernel think it's a hard drive ?
Actually, there _is_ something askew in the kernel. hal does an drive = ioctl (fd, CDROM_DRIVE_STATUS, CDSL_CURRENT); this _should_ be mapped to sr_device_status in drivers/scsi/sr_ioctl.c, which then calls test_unit_ready(); memset(&cgc, 0, sizeof(struct packet_command)); cgc.cmd[0] = GPCMD_TEST_UNIT_READY; cgc.quiet = 1; cgc.data_direction = DMA_NONE; cgc.timeout = IOCTL_TIMEOUT; return sr_do_ioctl(cd, &cgc); and sr_do_ioctl might output a line like: 'CDROM not ready. Make sure there is a disc in the drive.' The line from above, however, is from scsi_ioctl.c:ioctl_internal_command() which we should reach at all. Jens, care to elaborate what's going on here?
Actually, maybe can Bernd give us a hand here...
The message should just be killed, it's a normal condition. I've committed a patch to do that.