LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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

Reply
 
Search this Thread
Old 09-10-2004, 06:28 AM   #1
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Rep: Reputation: 30
dd: reading `/dev/cdrom': Input/output error


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 06:30 AM.
 
Old 09-10-2004, 08:40 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
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.
 
1 members found this post helpful.
Old 09-10-2004, 08:51 AM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
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
 
Old 09-10-2004, 09:56 AM   #4
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
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.
 
Old 09-10-2004, 12:08 PM   #5
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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



 
Old 09-10-2004, 02:30 PM   #6
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,310

Rep: Reputation: 139Reputation: 139
You might want to try one of those cdrom lense cleaning kits too. It might just be a dirty lens.
 
Old 09-11-2004, 05:05 AM   #7
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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.
 
Old 09-12-2004, 12:13 PM   #8
Ebel
Member
 
Registered: May 2004
Distribution: Slackware 10
Posts: 63

Rep: Reputation: 15
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.
 
Old 09-13-2004, 03:24 AM   #9
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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.
 
Old 09-27-2004, 08:42 PM   #10
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 727

Rep: Reputation: 75
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
 
Old 09-28-2004, 03:19 AM   #11
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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.
 
Old 09-28-2004, 06:21 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Rep: Reputation: Disabled
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 06:32 AM.
 
Old 09-28-2004, 07:39 AM   #13
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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!!
 
Old 09-28-2004, 07:49 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Rep: Reputation: Disabled
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...
 
Old 09-29-2004, 04:32 AM   #15
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 888

Original Poster
Rep: Reputation: 30
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
 
  


Reply

Tags
burning, cd, dd, howto, image, iso


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:19 AM
cp - error reading /mnt/cdrom/mpegav/avseq01.dat input/output error manishsingh4u Linux - General 2 10-17-2005 05:02 AM
cdrom input/output error HadesThunder Linux - Newbie 4 03-30-2004 04:57 PM
can anyone help, /dev/cdrom:input/output error mount speedyhot Linux - Newbie 3 03-01-2004 02:03 PM
Input/output error when reading from CD-RW drive vrooje Linux - Newbie 2 02-17-2004 11:17 PM


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

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration