LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   kernel: Device not ready. Make sure there is a disc in the drive (https://www.linuxquestions.org/questions/linux-general-1/kernel-device-not-ready-make-sure-there-is-a-disc-in-the-drive-106303/)

zednrita 10-20-2003 10:54 AM

kernel: Device not ready. Make sure there is a disc in the drive
 
Am running RH 9.0. I'm seeing a zillion of these messages in the /var/log/messages file.

If I run dsmesg, then that's all I see:

"kernel: Device not ready. Make sure there is a disc in the drive"

I've bounced the box several times now for general maintenance reasons but the message persists.

Any suggestions for isolating the cause would be greatly appreciated.

Thank you in advance,

michaelk 10-20-2003 12:11 PM

Need some additional info. Can you tell what device the message is refering to?

Also post your fstab. Verify your not trying to mount a removable device that is empty during boot. Any device like CD, floppy or zip drives should use the noauto option.

zednrita 10-20-2003 12:39 PM

That's just it: I can't tell which device it's talking about.

Here's my /etc/fstab:
/dev/hdb1 /backups ext3 defaults 2 1
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0

BTW: I added the first line when I installed a second harddrive. I don't happen to know if the message was appearing prior to that.

Thanks,

michaelk 10-20-2003 01:09 PM

Look at the output of dmesg. Prior to the device not ready message does it reference any device?

Does your second drive function correctly?

zednrita 10-20-2003 07:17 PM

dmesg just repeats the same error message for 265 lines. There is no mention of a drive. If I issue the following:

[root@dude etc]# dmesg | sort -u

... it returns:

c in the drive.
Device not ready. Make sure there is a disc in the drive.
[root@dude etc]#

... you can see that's all that's in there.

BTW: The second drive is working perfectly. I have no "real" problems. Am just concerned about the error/warning message.

zednrita 10-21-2003 08:13 AM

I removed the reference to the second drive from fstab and rebooted.

The error/warning message persists.

However, immediately after re-boot I re-issued dmesg. Here's the relevent excerpt (lines numbers added for clarity):
...
134 Uniform CD-ROM driver Revision: 3.12
135 SCSI subsystem driver Revision: 1.00
136 scsi0 : SCSI host adapter emulation for IDE ATAPI devices
137 Vendor: YAMAHA Model: CRW8824E Rev: 1.00
138 Type: CD-ROM ANSI SCSI revision: 02
139 parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
140 parport_pc: Via 686A parallel port: io=0x378
141 Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
142 sr0: scsi3-mmc drive: 24x/16x writer cd/rw xa/form2 cdda tray
143 Device not ready. Make sure there is a disc in the drive.
...
162 lp0: console ready
163 Device not ready. Make sure there is a disc in the drive.
164 cdrom: This disc doesn't have any tracks I recognize!
165 Device not ready. Make sure there is a disc in the drive.
166 Device not ready. Make sure there is a disc in the drive.
167 Device not ready. Make sure there is a disc in the drive.
...

So is it complaining about one of the two CDROM drives? They both appear in Hardware Browser and I can successfully mount/read CDs in either drive.

hatimad 10-24-2003 03:18 PM

This error is because of the CDROM, i have exactly same problem and I am also looking for solution

BTW does your CD RW works properly?

zednrita 10-28-2003 07:42 AM

No the CDW does not work. It reads CDs just fine -- just can't burn them.

Using xcdroast, here's the log:
...
Calling: /usr/lib/xcdroast-0.98/bin/xcdrwrap CDRECORD dev=0,0,0 gracetime=2 fs=4096k
-v -useinfo speed=4 -dao -eject -pad -data "/tmp/track-01.img" ...

scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.24
cdrecord: Warning: using inofficial libscg transport code version (schily - Red
Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J.
Schilling').
pregap1: -1
TOC Type: 1 = CD-ROM
Using libscg version 'schily-0.7'
atapi: 1
Device type : Removable CD-ROM
Version : 0
Response Format: 1
Vendor_info : 'YAMAHA '
Identifikation : 'CRW8824E '
Revision : '1.00'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R driver (mmc_cdr).
Driver flags : MMC SWABAUDIO
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R96R
Drive buf size : 3172848 = 3098 KB
FIFO size : 4194304 = 4096 KB
Track 01: data 0 MB padsize: 440 KB
Total size: 0 MB (00:04.00) = 300 sectors
Lout start: 1 MB (00:06/00) = 300 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 4
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11849 (97:24/01)
ATIP start of lead out: 359848 (79:59/73)
Disk type: Long strategy type (Cyanine, AZO or similar)
Manuf. index: 25
Manufacturer: Taiyo Yuden Company Limited
Blocks total: 359848 Blocks current: 359848 Blocks remaining: 359548
Starting to write CD/DVD at speed 4 in real SAO mode for single session.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Sending CUE sheet...
Writing pregap for track 1 at -150
Starting new track at sector: 0

Track 01: writing 440 KB of pad data.
Track 01: Total bytes read/written: 163840/614400 (300 sectors).
Writing time: 10.350s
Average write speed 15.5x.
Fixating...
Fixating time: 64.150s
cdrecord: fifo had 3 puts and 3 gets.
cdrecord: fifo was 0 times empty and 0 times full, min fill was 100%.
%.


All times are GMT -5. The time now is 06:31 PM.