public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] CD-ROM I/O error
@ 2002-06-10 10:18 j-nomura
  2002-06-10 15:56 ` Matt_Domsch
  2002-06-11  7:55 ` j-nomura
  0 siblings, 2 replies; 3+ messages in thread
From: j-nomura @ 2002-06-10 10:18 UTC (permalink / raw)
  To: linux-ia64

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 <j-nomura@ce.jp.nec.com, nomura@hpc.bs1.fc.nec.co.jp>
HPC Operating System Group, 1st Computers Software Division,
Computers Software Operations Unit, NEC Solutions.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [Linux-ia64] CD-ROM I/O error
  2002-06-10 10:18 [Linux-ia64] CD-ROM I/O error j-nomura
@ 2002-06-10 15:56 ` Matt_Domsch
  2002-06-11  7:55 ` j-nomura
  1 sibling, 0 replies; 3+ messages in thread
From: Matt_Domsch @ 2002-06-10 15:56 UTC (permalink / raw)
  To: linux-ia64

> 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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Linux-ia64] CD-ROM I/O error
  2002-06-10 10:18 [Linux-ia64] CD-ROM I/O error j-nomura
  2002-06-10 15:56 ` Matt_Domsch
@ 2002-06-11  7:55 ` j-nomura
  1 sibling, 0 replies; 3+ messages in thread
From: j-nomura @ 2002-06-11  7:55 UTC (permalink / raw)
  To: linux-ia64

Hi,

> > 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 <j-nomura@ce.jp.nec.com, nomura@hpc.bs1.fc.nec.co.jp>
HPC Operating System Group, 1st Computers Software Division,
Computers Software Operations Unit, NEC Solutions.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-06-11  7:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-10 10:18 [Linux-ia64] CD-ROM I/O error j-nomura
2002-06-10 15:56 ` Matt_Domsch
2002-06-11  7:55 ` j-nomura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox