[KLUG Members] Re: CD Burning, a Question or Two -- don't use standard MO (CD-RW, DVD-RW/+RW)
Bryan J. Smith
members@kalamazoolinux.org
Fri, 20 Dec 2002 17:10:02 -0500 (EST)
Quoting Bruce Smith <bruce@armintl.com>:
> find /mnt/cdrom -type f -exec dd if={} of=/dev/null \;
Not always. That will only tell you if a CRC error occurred. Sometimes
incorrect data is written.
> I've heard of people runing md5sum's on /dev/cdrom, but I've never got
> it to work since the md5sum seems to change from the disk image to the
> device file after it's burned. (the once or twice I tried it)
That's because "raw CD" format != ISO9660 Yellow Book (aka .iso images).
Fortunately, Linux _does_ automatically converts from raw CD to ISO format when
you dd. So the correct way to get an MD5 to compare to an ISO image is then:
dd if=/dev/cdrom | md5sum -
Of course, that's only good for comparing to CD images.
If I'm using a CD-RW, DVD-RW or DVD+RW in "packet write" mode, I'm merely using
it like another disk, and randomly writing to it. So I don't have an image file
to compare it too.
> Yup. On the mount command (with no fstab entry), you don't even
> need to specify the filesystem type of "auto".
Auto is assumed on the command-line.
--
Bryan J. Smith, E.I. (BSECE) Contact Info: http://thebs.org
[ http://thebs.org/files/resume/BryanJonSmith_certifications.pdf ]
------------------------------------------------------------------
* A lecture on software piracy from Bill Gates is like a lecture *
* on adultry from the owner of a brothel of other people's wives *