You can use the cdrw command in the media/cdrw package to write file systems for CDs and DVDs in ISO 9660 format with Rock Ridge or Joliet extensions on CD-R,CD-RW, DVD-RW, or DVD+RW media devices.
You can use the cdrw command to perform the following tasks:
Create data CDs and DVDs.
Create audio CDs.
Extract audio data from an audio CD.
Copy CDs and DVDs.
Erase CD-RW media.