katasuka wrote:
im curious if this script will copy a cd to an iso fully.
for instance, if i have lets say a linux livecd thats bootable, could this script copy it to an iso and when i burn the iso, have the exact same cd as the original bootable and all?
Short answer: probably
The whole script looks like it's built around this one command, which does the actual ripping:
dd if=$DEV of=$fISO bs=32k
and, by default, will copy the entire contents of the CD......However, without the proper block size and count, it may not always be a totally accurate read......
This is a variation of a script called
rawread, found on Steve Litt's "Coasterless CD Burning" page, under the section titled
Accurately Reading a CD.....This section gives an overview of what is actually taking place, and shows how to accurately read the CD and have the checksum of the iso image agree with the checksum of the CD each time.......
Most of jbsnake's script is for error-checking and gathering user feedback, if needed, which is the bulk of any well-written program, whether it is a shell script or a C program.....
