cd

Section: Misc. Reference Manual Pages (pj)
Updated: 3 August 2005
Index Return to Main Contents
 

NAME

Burning CDs  

GENERAL

You can learn the scsi numbers of your cd recorder with this command:

cdrecord -scanbus

You must be root to run that command.  

AUDIO

First, get the audio off the CD into wav files:

for n in `~pjungwir/bin/range 1 32`; do
    cdda2wav -D /dev/cdrom -t $n track$n.wav;
done;

This command assumes you have less than 32 tracks on the CD. As soon as you grab a track, cdda2wav will show you the total number of tracks you need.

Next convert the wav files into cdr files:

for n in `~pjungwir/bin/range 1 32`; do
    sox track$n.wav track$n.cdr;
done;

Finally, burn it to a CD:

cdrecord -v dev=/dev/hdc speed=2 -audio `ls -tr track*.cdr`

or:

cdrecord -v dev=/dev/hdc speed=2 -audio \
$(for n in `~pjungwir/bin/range 1 32`; do echo track$n.cdr; done)

Add the blank=all option if you're using a cdrw disk that already has data.  

DATA

To create a data cd, first create the cd image:

mkisofs -r -o cd_image source_directory

You can use -R instead of -r for RockRidge extensions with different permissions. -J gives you Joliet filenames in addition to the ISO9660 filenames. -l uses 32-character filenames instead of 8.3 filenames.

Burn the cd like this:

cdrecord -v speed=2 dev=/dev/hdc -data cd_image

Again, use blank=all if you're writing to a used cdrw disk.  

RIPPING

To pull an ISO image off a CD, do something like this:

dd if=/dev/cdrom of=image.iso

 

AUTHOR

Written by Paul Jungwirth  

COPYRIGHT

Copyright © 2005 Paul Jungwirth


 

Index

NAME
GENERAL
AUDIO
DATA
RIPPING
AUTHOR
COPYRIGHT

This document was created by man2html, using the manual pages.
Time: 17:54:00 GMT, November 10, 2017