cdrom input/output error
Whenever I copy larger files off of cdrom to hard drive, I get an error:
Code:
$ cp /mnt/cdrom/foo . Code:
# df Code:
hdc: rw=0, want=846756, limit=846748 |
that means that your drive has a problem reading some data off that drive.
if it's important data try dd if=/dev/"cdrom" of=/path/to/cdrom.image if that gives errors to use "readcd" (see manpage of readcd) if you've got the image written down to your disk loop-mount it to a mountpoint: mount -t iso9660 -o ro,loop=/dev/loop0 /path/to/cdrom.image /mountpoint/loopcdrom you should now be able to access /mountpoint/loopcdrom and copy files off there. sl mritch. |
Thanks for the helpful reply. Using 'dd' actually made a difference (either that or my cdrom drive has its good and bad days -- won't know for sure until i try cp vs dd a few more times). I'm a little puzzled though. How's dd different than cp when it comes to copying data off cd? I understand that dd copies the raw image of the cd. How's mounting the cd directly and then copying the contents using cp any different? Why would one succeed and the other fail?
|
dd (and readcd) reads the data "raw" off the drive while cp interacts with the "mounted" filesystem.
such readproblems from cd mostly means a (lightly) damaged cd but could also mean that the hardware has some trouble. you may correct such thing by driving the drive without dma enabled. you can do this with hdparm. read the man page thereof for more info. sl mritch. |
Hi mritch,
I tried dd to copy a 700MB+ file from my DVD drive to my hard disk. It works, but it never copies the whole file, at times it copies 300MB or even only 3MB! I have tried cp, but it generates input/output error. Even copying through the GUI has not worked. My platform is Ubuntu 7.04 on AMD. By the way, there is no problem with the DVD itself, it copies smoothly on Windows systems. It is a gunzip file. Kindly advise, I am puzzled. Thanks. |
All times are GMT -5. The time now is 03:00 PM. |