Skip to contentSkip to conversation

CD-ROM I/O error

Linux-ia64 [email protected] 2 participants 3 messages Jun 10, 2002 – Jun 11, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

when I do 'cat /dev/cdrom > disc.iso' on my Itanium box, I/O error happens on CD-ROM.

| hda: cdrom_decode_status: status=0x51 { DriveReady SeekComplete Error }
| hda: cdrom_decode_status: error=0x30
| hda: ATAPI reset complete
| end_request: I/O error, dev 03:00 (hda), sector 1322520
| hda: irq timeout: status=0xd0 { Busy }
| hda: ATAPI reset complete

With the same CD, I/O error does not happen on my Pentium machine.

I'm trying 2.4.17 and 2.4.18. Both results in same error. Has anyone experienced a problem like this?

Best regards.
--
NOMURA, Jun'ichi <[email protected], [email protected]> HPC Operating System Group, 1st Computers Software Division, Computers Software Operations Unit, NEC Solutions.

#1 lore raw
Quoted 2 lines

when I do 'cat /dev/cdrom > disc.iso' on my Itanium box, I/O error happens on CD-ROM.

If you're trying to simply make an ISO with the right number of sectors, you need to use 'isoinfo' to avoid these kinds of end-of-disc problems. Something like (yes I use this quite often):

[mdomsch@humbolt mdomsch]$ more ~/check_cds
#!/bin/sh

CD=0

while [ 1 ]; do
CD=expr $CD + 1
echo "Insert CD #$CD. What shall I name it?"
read CDNAME
SIZE=`isoinfo -d -i /dev/cdrom | grep "Volume size is: " | awk '{print
$4}'`
dd if=/dev/cdrom bs=2k count=$SIZE of=$CDNAME
mount /mnt/cdrom
ls -lR /mnt/cdrom
umount /mnt/cdrom
done

Thanks,
Matt

--
Matt Domsch
Sr. Software Engineer
Dell Linux Solutions www.dell.com/linux
Dell internal Linux lists @ http://insidelists.us.dell.com
Dell public Linux lists @ http://lists.us.dell.com
#1 US Linux Server provider for 2001 and Q1/2002! (IDC May 2002)

#2 lore raw
In reply to [email protected]

Hi,

Quoted 5 lines
Quoted 2 lines

when I do 'cat /dev/cdrom > disc.iso' on my Itanium box, I/O error happens on CD-ROM.

If you're trying to simply make an ISO with the right number of sectors, you need to use 'isoinfo' to avoid these kinds of end-of-disc problems.

Thank you, Matt.
I had to specify the number of blocks to read.

I'm still wondering why this does neither occur on my Pentium box nor for some other CDs..

Best regards.
--
NOMURA, Jun'ichi <[email protected], [email protected]> HPC Operating System Group, 1st Computers Software Division, Computers Software Operations Unit, NEC Solutions.