This will work just fine. Note that cdrom devices usually have a block sizeQuote:>Rather than keep the original raw .iso image around (the initial output of
>mkisofs that I used), can I easily extract it from one of my master cd-r's
>just by doing a 'dd', like:
> # dd if=/dev/scd0 of=image.iso
>then running cdwrite with image.iso as the input file?
of 2k, so add "bs=2k" to be 100% correct (it probably doesn't matter on
Linux, but might on other OSes). If you have a sufficiently fast / dependable
cdrom reader, you can even burn a cdrom directly from the original.
The only gotcha here is that you need to find out how large the image
is (as cdwrite cannot stat the image to find out its size). The tool
isosize does this. Something like
cdwrite --bytes `isosize /dev/scd0` /dev/scd0
should do it (assuming the first SCSI cdrom reader is the source, leaving
out any other required options, etc.)
Paul Slootman
--
Murphy Software, Enschede, The Netherlands | UNIX is easy to use.
http://www.wurtel.demon.nl | Learn the difference.