This procedure describes how to extract all the tracks from an audio CD into a directory and then copy all of them onto a blank CD.
By default, the cdrw command copies the CD into the /tmp directory. The copying might require up to 700 Mbytes of free space. If there is insufficient space in the /tmp directory for copying the CD, use the -m option to specify an alternate directory.
Insert an audio CD into a CD-RW drive.
Create a directory for the audio files.
$ mkdir /music_dir
Extract the tracks from the audio CD.
$ cdrw -c -m music_dir
An Extracting audio ... message is display for each track.
The CD is ejected when all the tracks are extracted.
Insert a blank CD and press Return.
After the tracks are extracted, the audio CD is ejected. You are prompted to insert a blank CD.
This example shows how to copy one CD to another CD. You must have two CD-RW devices to do this task.
$ cdrw -c -s cdrom0 -d cdrom1