Strange problem with CD-ROM's

Strange problem with CD-ROM's

Post by Peter Mogense » Wed, 02 Jul 2003 07:37:01



Hi,

I've having problems with my new CD-burner (AOpen 2440).

My system is a SOYO K7V Dragon plus with Mandrake 8.2 and a custom
compiled 2.4.19 kernel.

I've used CD-R on linux many times before, so this comes as a bit of a
surprise to me. Everything (burning and all) seemed to work great until
I decided to verify the CD with:

$ md5sum /dev/scd0

.. which produced:
md5sum: /dev/scd0: Input/output error

I tried:
$ cat /dev/scd0 > image.iso
same result.

I moved the disc to my other drive:
$ cat /dev/cdrom > image2.iso
same result, but the two files were not the same size.

Hmm.. looking at the log I see things like:

Jun 30 23:01:43 glaurung kernel:  I/O error: dev 0b:00, sector 1332336
Jun 30 23:12:07 glaurung kernel:  I/O error: dev 0b:00, sector 1332336
...
Jun 30 23:29:15 glaurung kernel: hdd: command error: status=0x51 {
DriveReady SeekComplete Error }
Jun 30 23:29:15 glaurung kernel: hdd: command error: error=0x54
Jun 30 23:29:15 glaurung kernel: end_request: I/O error, dev 16:40
(hdd), sector 1332248
...
Jul  1 00:09:26 glaurung kernel: hdd: timeout waiting for DMA
Jul  1 00:09:26 glaurung kernel: ide_dmaproc: chipset supported
ide_dma_timeout
func only: 14
Jul  1 00:09:50 glaurung kernel: hdd: command error: status=0x51 {
DriveReady Se
ekComplete Error }
Jul  1 00:09:50 glaurung kernel: hdd: command error: error=0x54
Jul  1 00:09:50 glaurung kernel: end_request: I/O error, dev 16:40
(hdd), sector
  1044828
Jul  1 00:10:20 glaurung kernel: hdd: timeout waiting for DMA
Jul  1 00:10:20 glaurung kernel: ide_dmaproc: chipset supported
ide_dma_timeout
func only: 14
Jul  1 00:21:07 glaurung kernel: hdd: command error: status=0x51 {
DriveReady Se
ekComplete Error }
Jul  1 00:21:07 glaurung kernel: hdd: command error: error=0x54
Jul  1 00:21:07 glaurung kernel: end_request: I/O error, dev 16:40
(hdd), sector
  1261448

Hmm... Ok. My first guesses are now:
- CD-image too big.
- bad medias.
- problems with DMA
- too long cables (unlikely since the cables I use came with my SOYO K7V
Dragon+)

I try a different media (first was Fujitsu/Siemens .. now KODAK).
Same result.

I try an old CD which I've burned long ago on a working CD-burner.
Same result.

I do a little googling and get confirmed that these are among the options.

I try a smaller CD-image: Mandrake91-cd1-inst.i586.iso
(the first was a little larger than 650Mb)

Same result.
I find an advice that I should enable CONFIG_IDEDISK_MULTI_MODE=y
... I already have that.

Ok.. I try checking every file individually to find out how bad the
problem is:

$ mount /dev/cdrom mnt1
$ mount -o loop  Mandrake91-cd1-inst.i586.iso mnt2
$ find mnt1 -exec md5sum {} >> sums1 \;
$ find mnt2 -exec md5sum {} >> sums2 \;
$ diff sums2 sums2

  ... They are identical!

What is happening ?!?

DMA?
Kernel?
Other?
... Ideas?

thanx,
Peter

 
 
 

Strange problem with CD-ROM's

Post by mjt » Wed, 02 Jul 2003 11:04:14



> I've having problems with my new CD-burner (AOpen 2440).

.... can you show us how your burned the cd? (command)
.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Michael J. Tobler: motorcyclist, surfer,  #    Black holes result
 skydiver, and author: "Inside Linux",     #   when God divides the  
 "C++ HowTo", "C++ Unleashed"              #     universe by zero

 
 
 

Strange problem with CD-ROM's

Post by Peter Mogense » Wed, 02 Jul 2003 18:20:21




>>I've having problems with my new CD-burner (AOpen 2440).

> .... can you show us how your burned the cd? (command)

Of course... though - as I said. It's the same problems with other CD's

  cdrecord -v speed=8 dev=0,0 Mandrake91-cd1-inst.i586.iso

The drive is 24/10/24 speed and the media is 12x.

Peter

 
 
 

Strange problem with CD-ROM's

Post by mjt » Wed, 02 Jul 2003 19:33:21



> Of course... though - as I said. It's the same problems with other CD's
>   cdrecord -v speed=8 dev=0,0 Mandrake91-cd1-inst.i586.iso
> The drive is 24/10/24 speed and the media is 12x.

.... i NEVER burn beyond 4x - it seems things start to go rwong
with speeds beyond that, esp with lo-end media (CD's). i've also
found that with some burners, oddly enough, other readers dont
always read the CD's. have you tried anothe burner or tried this
burner at 4x speed?
.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Michael J. Tobler: motorcyclist, surfer,  #    Black holes result
 skydiver, and author: "Inside Linux",     #   when God divides the  
 "C++ HowTo", "C++ Unleashed"              #     universe by zero

 
 
 

Strange problem with CD-ROM's

Post by Peter Mogense » Wed, 02 Jul 2003 20:06:37




>>Of course... though - as I said. It's the same problems with other CD's
>>  cdrecord -v speed=8 dev=0,0 Mandrake91-cd1-inst.i586.iso
>>The drive is 24/10/24 speed and the media is 12x.

> .... i NEVER burn beyond 4x - it seems things start to go rwong
> with speeds beyond that, esp with lo-end media (CD's). i've also
> found that with some burners, oddly enough, other readers dont
> always read the CD's. have you tried anothe burner or tried this
> burner at 4x speed?

Yes... as I said. The same problems exists when trying to read other
CD's with both my CD-burner and with my DVD-drive.

I haven't had problems with these medias (Kodak) and other burners at 8x
before, but I haven't tried burning with this new drive at 4x.

However.... As I've said a few times:
I can't do:

cat /dev/cdrom > image.iso

with any discs... not even printet discs. (/dev/cdrom is my DVD-drive)
Well... some discs actually succeds once in a while, but the conclussion
must be that this is not a burning problem. This is some generic problem
with my whole CD-ROM subsystem

Peter

 
 
 

Strange problem with CD-ROM's

Post by Peter Mogense » Thu, 03 Jul 2003 03:09:05


This thread seems to be about the same problem.
It seems it's a combination of missing padding on the CD and a bug in
2.4.x DMA-code.

http://hypermail.idiosynkrasia.net/linux-kernel/archived/2001/week52/...

Now the question is how to best avoid it?
I ahve some printed CD's with the same problem, so I would like to
upgrade to a bug-free kernel if possible.

Peter

 
 
 

Strange problem with CD-ROM's

Post by Peter Mogense » Thu, 03 Jul 2003 03:33:07



> This thread seems to be about the same problem.
> It seems it's a combination of missing padding on the CD and a bug in
> 2.4.x DMA-code.

> http://hypermail.idiosynkrasia.net/linux-kernel/archived/2001/week52/...

On the other hand... this seems to say that it's a problem with region
codes:

http://mplayerhq.hu/pipermail/mplayer-users/2002-May/014344.html

I find these error messages in lots of questions on the net and with
very different answers.

Hmm... not getting any wiser.

Peter

 
 
 

1. Strange CD-ROM Issue (aka CD-ROM Problem)

Ok...this is a fairly strange problem that I don't even know how to
begin fixing.  I have Linux Mandrake 8.0 installed on my Thinkpad
i1400 laptop.  I initially had problem installing off of a CD that a
friend burned for me, but I attributed this to a bad downloaded iso
image and I downloaded the install straight to my hard drive and
installed from the hard drive.  Now, I think that the cd is really not
corrupted and is related to a problem with my cd-rom operating in
Linux.
Now, after working out most of the kinks in my system, I have really
started to use it.  My first problem relating to the CD drive has to
do with a CD that I had filled with my favorite mp3 songs.  In
windows, this cd always played fine in Winamp and the songs worked
great.  However, I noticed that, in Linux, the majority of the songs
get cut off anywhere from 30% to 90% of the way through.  XMMS just
stops playing.  KDE Media player also stops in the same spot.  I
thought that the songs must have been corrupted when they were burned
onto the cd, but, like I said, they work fine in windows off of the
cd. To try to see if it was a corruption problem, I did a diff on one
of the songs that I had on the cd with an identical song on my hard
drive.  The diff encountered an I/O error when it tried to do the
compare.  I then tried copying the song to the hard drive from the cd,
but the copy stalled at about the same % as the song would stop
playing in XMMS and I got a copy error.  If I copy the song in windows
to the hard drive, then go back into linux and do a diff, the two
songs are identical. What could be causing this problem???  I'm
absolutely clueless as to how to proceed.  Any help is much
appreciated.

Note: I have heard that this may be related to supermount.  I have
heard a lot of people complain about it.  The only thing that makes me
believe it's not supermount related is that most people who say
supermount sucks also can't get their cd-rom drives to work.  However,
mine is detected and works.  The songs and some files just get cut off
or encounter read errors.  Could this be a supermount problem or is it
something else?

2. Gigabit Ethernet ?

3. Can't install Yggdrasil summer 94 CD-ROM with SCSI-1 CD-ROM

4. HP LaserJet 6L Setup Problem on Solaris2.7 X86

5. Linux from Nascent CD-ROM won't mount my panasonic cd-rom drive

6. Modeline help Trident 8900C with 2048K

7. Strange problem with TEAC Quad Speed CD-ROM.

8. IPC in Solaris

9. help with cd-rom boot and install, strange problem

10. strange problem with IDE CD-ROM on Solaris 7

11. strange CD-ROM problem

12. Problems running 'runlinux' with MSCDEX CD-ROM

13. Play.c -- music CD's on CD-ROM Compile problem