Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Suggested workflow single-file CD archival?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Suggested workflow single-file CD archival?
Authored by: JohnBigBoots on Oct 21, '05 02:19:43PM
I use cdparanoia and cdrdao (from DarwinPorts or Fink) to duplicate my audio CD's. It doesn't offer any compression, but it does make a nearly identical copy.

script cdrdao_read

#!/bin/bash
echo Insert your disk now...
while (( 1 )); do drutil status | egrep -q 'Type: No Media Inserted' && sleep 1 || break; done
device=$(ioreg -c IOCDMedia | egrep 'disk[[:digit:]]+' | cut -d" -f4)
disktool -u "${device}" && \
cdparanoia -fz 1- "$@.aiff" && \
cdrdao read-toc --device IODVDServices/1 --driver generic-mmc --with-cddb --cddb-servers freedb.freedb.org --cddb-directory "${HOME}/.cddb" --datafile "$@.aiff" "$@.toc"
drutil tray eject


Script cdrdao_write

#!/bin/bash
echo Insert your disk now...
while (( 1 )); do drutil status | egrep -q 'Type: No Media Inserted' && sleep 1 || break; done
device=$(ioreg -c IOCDMedia | egrep 'disk[[:digit:]]+' | cut -d" -f4)
disktool -u "${device}" && \
cdrdao write --device IODVDServices/1 --eject "$@"
drutil tray eject

Note: You may need to create ${HOME}/.cddb if it doesn't exist. Only tested on Tiger OS X 10.4.x

[ Reply to This | # ]
Suggested workflow single-file CD archival?
Authored by: JohnBigBoots on Oct 21, '05 02:22:58PM

Crap, the "&&" should be "&& <backslash symbol here>". The backslash got stripped out of the html. Sorry



[ Reply to This | # ]
Suggested workflow single-file CD archival?
Authored by: JohnBigBoots on Oct 21, '05 03:02:02PM

Crappy, crap. I should have given basic instructions for use. At a termnal prompt type "bash ./cdradao_read MyCDName" (without the quotes) to read a CD.

Then type "./cdrdao_write MyCDName.toc" (w/o quotes) to write to a blank CD-R.

Important! In "System Preferences->CD's & DVD's", set "When you insert a Music CD" and "When you insert a blank CD" to "Ignore" in order to prevent other applications, like iTunes, from taking control of the optical drive.

Sorry for the bad instructions. Enjoy, eh?



[ Reply to This | # ]