LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags , , , , ,

Reply
 
Thread Tools
Old 09-10-2004, 07:28 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0
dd: reading `/dev/cdrom': Input/output error


[Log in to get rid of this advertisement]
Hey everyone. I have been trying to make cd images with dd as k3b says that verson 2.0.3 of cdrecord doesnīt support cd cloning.

My problem is that I have tried to make images for 5 different cds. Slackware 10 d1 and d2 and arch linux 0.6 (All were orignally cd imges downloaded form the net) dd gets to right near the end of the cds and then says:

Quote:
bash-2.05b$ dd if=/dev/cdrom of=slackd1.iso
dd: reading `/dev/cdrom': Input/output error
1333456+0 records in
1333456+0 records out
Just to test it I tried burning the image for slackware d1 to a cd-rw and it seemed to boot fine.

I also tried copying two other cds with dd windows xp and one of the disks for need for speed underground. dd made images of these cds without any errors.

I also tried installing nero in windows and it coppied the slackware cds without any errors.

Thanks for you time

Last edited by jimdaworm; 09-10-2004 at 07:30 AM..
jimdaworm is offline     Reply With Quote
Old 09-10-2004, 09:40 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 1,997
Thanked: 30
I have two cd drives and one would frequently give I/O errors while the other didn't when using dd. You might want to check out this link:

http://www.troubleshooters.com/linux/coasterless.htm

It includes a nice script, rawread, that uses the dd command to make dead accurate isos from a cd. You can also check the md5sum of a cd with the rawread script and make sure your generated iso matches the cd md5sum. When I did this, the md5sums of isos generated when I/O errors were encountered never matched the cd md5sum. If no I/O errors were encountered, they always matched.

At any rate, one drive would always screw up with rawread(I/O errors) and one drive was fine. I went into my box and reseated the ide cable to the drive and the I/O errors went away. I came to the conclusion that dd is more touchy than a normal read from the cd drive. Under normal circumstances, a cd drive has a lot or error correction mechanisms and if you get an I/O error, the drive will reread the sector. These mechanisms don't seem to work as well under dd. As a result, dd is much less forgiving of I/O errors. For me, a slight problem with a poorly seated cable went undetected under normal circumstances but was revealed when I used dd.
kilgoretrout is online now     Reply With Quote
Old 09-10-2004, 09:51 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,058
Thanked: 1
Maybe you could try using mkisofs and cdrecord to see if that makes a difference.

Burn directly from disk to disk:
cdrecord -v speed=4 dev=0,0,0 -isosize /dev/cdrom
Where dev=0,0,0 is the recording device and /dev/cdrom is the source cdrom device

or

Create an iso image:
mount /mnt/cdrom
cd /mnt/cdrom
mkisofs -R -J -hide-rr-moved -o /home/newcd.iso .
cd /mnt
umount /mnt/cdrom
homey is offline     Reply With Quote
Old 09-10-2004, 10:56 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 1,997
Thanked: 30
Bootable cds won't be bootable with isos made from mkisofs. You need a sector by sector exact copy for the cd to be bootable. For a bootable cd, the boot info has to appear on very specific sectors of the cd. This info is lost when you use the mkisofs method you describe. All the data will be there but it won't be on the right sectors thus it won't boot. The dd command preserves the sector location of the data.
kilgoretrout is online now     Reply With Quote
Old 09-10-2004, 01:08 PM   #5
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
Hey kilgoretrout thanks for the info I will check my cables (maby buy some new ones). I think I have tried all three drives though. I have two lg(dvd reader and cd writer) and one nec 2510 dvd-rw(which is supposed to be pretty good)

homey I thought about that but for that kilgoretrout has mentioned (I needed them to be bootable) it wouldnīt work

Thanks for your guys help



jimdaworm is offline     Reply With Quote
Old 09-10-2004, 03:30 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 1,997
Thanked: 30
You might want to try one of those cdrom lense cleaning kits too. It might just be a dirty lens.
kilgoretrout is online now     Reply With Quote
Old 09-11-2004, 06:05 AM   #7
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
kilgoretrout Thanks for the tip but my nec 2510 cd/dvd writer is only 2 days old!! I donīt think it should need cleaning.
jimdaworm is offline     Reply With Quote
Old 09-12-2004, 01:13 PM   #8
Ebel
Member
 
Registered: May 2004
Distribution: Slackware 10
Posts: 63
Thanked: 0
Sometimes I have that problem. I just redo dd until it goes of without a hitch.

It's not the best way to do because I'm basically ignoring the problem, but I rarrely dd CDs, so it doesn't really matter much.
Ebel is offline     Reply With Quote
Old 09-13-2004, 04:24 AM   #9
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
Thanks for the pointer Ebel I was wondering if there was some way to maby slow it down... maby if it read slower it wouldnīt get errors.
jimdaworm is offline     Reply With Quote
Old 09-27-2004, 09:42 PM   #10
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Ubuntu, AsteriskNOW 1.5
Posts: 557
Thanked: 1
This sounds very familiar...

Hi, everybody.

I've got the same problem. Whenever I try to do a dd or md5sum on a CD (particularly the Slackware 10 set I bought from edmunds-enterprises.com) it'll get most of the way through and then stop with an input/output error. I've tried doing:

dd if=/dev/hdb of=install1.iso bs=<block size> count=<count> conv=notrunc,noerror

and after spinning the CD for a long time it'll slow down and start scrolling Input/Output errors, all on the same block, until I hit CTRL+C. (/dev/hdb is my cdrw drive.) If I do:

md5sum /dev/hdb

it'll spin for a long time and then slow down, wait, and stop with an Input/Output error.

Anybody got any ideas? I'd appreciate any help you can provide.

--Dane
DaneM is offline     Reply With Quote
Old 09-28-2004, 04:19 AM   #11
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
Hey DaneM sorry I canīt really help, but just to say I got the EXACT same thing. There were some cds that it seemed like I could make images of all day without errors, but others (Like the slackware cds) always got right to the end and then gave errors.
jimdaworm is offline     Reply With Quote
Old 09-28-2004, 07:21 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Hamburg, Germany
Distribution: SuSE 11.0, FreeBSD 6.0, openSolaris
Posts: 2,385
Thanked: 7
You two might try to disable dma tranfer from your drives, perhaps a slower going will prevent the hardware to produce errors <long shot mode off>...

Last edited by JZL240I-U; 09-28-2004 at 07:32 AM..
JZL240I-U is offline     Reply With Quote
Old 09-28-2004, 08:39 AM   #13
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
Hey JZL240I-U I gave it a go, but no difference... somehow I donīt think its speed related, although I have no idea what it is!!
jimdaworm is offline     Reply With Quote
Old 09-28-2004, 08:49 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Hamburg, Germany
Distribution: SuSE 11.0, FreeBSD 6.0, openSolaris
Posts: 2,385
Thanked: 7
Okay, that was just an idea...

Try then http://www.garloff.de/kurt/linux/ddrescue/ and see what that says...

You really should follow kilgoretrout's link http://www.troubleshooters.com/linux/coasterless.htm since it is really instructive...
JZL240I-U is offline     Reply With Quote
Old 09-29-2004, 05:32 AM   #15
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Debian Sid 2.6.26-1-amd64
Posts: 876
Thanked: 0

Original Poster
Hey JZL240I-U I read those things and gave dd_rescue a go. Its pretty much the same as dd. It gets to the end and right near the end it gets errors
jimdaworm is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrom input/output error krystianownz Linux - Hardware 4 12-12-2007 12:19 PM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 06:02 AM
cdrom input/output error HadesThunder Linux - Newbie 4 03-30-2004 05:57 PM
can anyone help, /dev/cdrom:input/output error mount speedyhot Linux - Newbie 3 03-01-2004 03:03 PM
Input/output error when reading from CD-RW drive vrooje Linux - Newbie 2 02-18-2004 12:17 AM


All times are GMT -5. The time now is 09:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration