I would like to create a ISO file for testing optical drives with the method mentioned here. I want to create an ISO file filled with random data, so I can burn it to a CD, read it back and compare with the original ISO. I think the command bellow will do what I want.
dd if=/dev/urandom of=cd-rom_test.iso bs=2048 count=333000
However, I am unsure of a few things.
First of all what should the block size be? Do ISO images include the header and error correction data that is on a CD? Should the block size be 2048 (without header and error correction) or 2352 (with header and error correction)?
Secondly, a few sites I have come across have sync
in the conv
option (example here). Which as far as I can see fills the header and error correction information with 0s, which surely isn't right.