3/14/2005

How To Copy An Audio CD

Below is a small script I wrote to make a copy of an audio CD under Linux. Simply place a blank CD in the burner, the CD to copy in your second CD/DVD drive, and run the script. I am sure there are tons of scripts like this out there on the net, but I decided to contribute mine anyways, mainly because I feel it is clean, concise, and the best way to copy an audio CD. You will need to edit the device’s (/dev/hdb, /dev/hdd, etc) to match your computer setup. BTW, only use this script to copy CDs you already legally own… or else the RIAA will throw lawyers at me. Here is the script:


#!/bin/sh
cd /tmp
cdparanoia -w -d /dev/hdd -B
cdrecord -v dev=/dev/hdb speed=40 driveropts=burnfree -pad -audio track*.wav
rm -f track*.wav 
eject hdb
eject hdd

2 Comments

  1. When I want to copy a cd, I just put the cd in the drive and hit copy. It’s that easy. Windows rules!!!

    note: I work for microsoft, so I might be a little biased.

    Comment by Ryan — 3/14/2005 @ 5:11 pm

  2. I can do something similar under Linux but running one command from a terminal is easier than launching a program and clicking a button. Plus, command line is cool 😉

    You sold your soul to Microsoft… it was bound to happen with you in Seattle. I think they put something in the water.

    Comment by Chris — 3/15/2005 @ 9:56 am