Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I burn an iso image with:

wodim -data  dev=/dev/scd0 in.iso

and then read it back out with:

dd if=/dev/scd0 of=out.iso

The resulting files are not identical, out.iso is 2048 bytes shorter then in.iso. What is going on here and how can I fix it?

Using Ubuntu 10.04 and Wodim 1.1.10

PS: dd always ends with an Input/output error, not just with this CD, but with all of them. I think its just a limitation of dd, but an explanation why it happens and how to avoid it would be welcome as well.

share|improve this question

I've had similar problems when burning my CDs with

cdrecord -v -eject dev=/dev/sr0 foo.iso

but it seems it's enough to change the burning mode from the default TAO (track at once) to DAO (disk at once):

cdrecord -v -eject -dao dev=/dev/sr0 foo.iso

To check if the burned CD is identical you can run md5sum:

md5sum /dev/sr0

'-dao' also takes care of the I/O error.

share|improve this answer

I use the following with Ubuntu 10.4 to read in a CD that I want to copy or mount virtually:

dd if=/dev/sr0 of=mydisc.iso bs=2048 conv=sync,notrunc

The sync and notrunc make sure that the last few bytes get written. see "man dd" for details

Hotei

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .