Difference between revisions of "CD Burning"

From ArchWiki
Jump to: navigation, search
m (remove contractions)
(Xfburn)
(27 intermediate revisions by 14 users not shown)
Line 1: Line 1:
[[Category:Utilities (English)]]
+
[[Category:Optical]]
{{i18n|CD Burning}}
+
[[it:CD Burning]]
 +
[[zh-CN:CD Burning]]
 
{{Article summary start}}
 
{{Article summary start}}
 
{{Article summary text|This document outlines various methods of burning CDs.}}
 
{{Article summary text|This document outlines various methods of burning CDs.}}
Line 6: Line 7:
 
{{Article summary wiki|DVD Burning}}
 
{{Article summary wiki|DVD Burning}}
 
{{Article summary end}}
 
{{Article summary end}}
 
 
== Command-line CD-burning ==  
 
== Command-line CD-burning ==  
 
===Install CD-burning utilities===
 
===Install CD-burning utilities===
 
From http://www.cdrkit.org/:
 
From http://www.cdrkit.org/:
  
:''<tt>cdrkit</tt> is a suite of programs for recording CDs and DVDs, blanking CD-RW media, creating ISO-9660 filesystem images, extracting audio CD data, and more. The programs included in the <tt>cdrkit</tt> package were originally derived from several sources, most notably <tt>mkisofs</tt> by Eric Youngdale and others, <tt>cdda2wav</tt> by Heiko Eissfeldt, and <tt>cdrecord</tt> by Jörg Schilling. However, <tt>cdrkit</tt> is not affiliated with any of these authors; it is now an independent project.
+
:''{{Ic|cdrkit}} is a suite of programs for recording CDs and DVDs, blanking CD-RW media, creating ISO-9660 filesystem images, extracting audio CD data, and more. The programs included in the {{Ic|cdrkit}} package were originally derived from several sources, most notably {{Ic|mkisofs}} by Eric Youngdale and others, {{Ic|cdda2wav}} by Heiko Eissfeldt, and {{Ic|cdrecord}} by Jörg Schilling. However, {{Ic|cdrkit}} is not affiliated with any of these authors; it is now an independent project.
 
+
The {{Package Official|cdrkit}} package is available in [extra]:
+
# pacman -S cdrkit
+
 
+
If you intend to use {{Package Official|cdrdao}} (for writing {{Filename|cue}}/{{Filename|bin}} files to CD)
+
# pacman -S cdrdao
+
  
{{Note|If you face any issues with <tt>cdrkit</tt>, it is recommended to install {{Package AUR|cdrtools}} from the [[AUR]] (<tt>cdrkit</tt> is a fork of <tt>cdrtools</tt>). <tt>cdrtools</tt> is being actively developed and supports CD, DVD and BluRay burning along with complete CDRWIN {{Filename|cue}}/{{Filename|bin}} support. <tt>cdrtools</tt> does not depend on <tt>cdrdao</tt>.}}
+
The {{pkg|cdrkit}} package is available in the [[Official Repositories|official repositories]].
  
{{Note|Make sure that you build a package using makepkg and install with pacman. Pacman wrappers may resolve to cdrkit instead.}}
+
If you intend to use {{pkg|cdrdao}} (for writing {{ic|cue}}/{{ic|bin}} files to CD), install that package instead.
  
===Setting permissions===
+
{{Note|If you face any issues with {{Ic|cdrkit}}, it is recommended to install {{pkg|cdrtools}} from the community repository ({{Ic|cdrkit}} is a fork of {{Ic|cdrtools}}). {{Ic|cdrtools}} is being actively developed and supports CD, DVD and Blu-ray burning along with complete CDRWIN {{ic|cue}}/{{ic|bin}} support. {{Ic|cdrtools}} does not depend on {{Ic|cdrdao}}. For more information, see [http://cdrecord.berlios.de/private/linux-dist.html this page] from the cdrtools site.}}
Users that should be able to use CD/DVD burning devices must have permissions to access the devices. If you are using [[udev]] (which is default in Arch Linux kernels), you only need to add the user(s) to the optical [[group]]:
+
# gpasswd -a <username> optical
+
  
Log out and back in for the changes to take effect.
+
{{Note|Make sure that you build a package using [[makepkg]] and install with pacman. Pacman wrappers may resolve to cdrkit instead.}}
  
 
===Modifying the CD-RW===
 
===Modifying the CD-RW===
For the remainder of this section the name of your recording device is assumed to be {{Filename|/dev/cdrw}}. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, <tt>wodim</tt> will give you an error message.
+
For the remainder of this section the name of your recording device is assumed to be {{ic|/dev/cdrw}}. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, {{Ic|wodim}} will give you an error message.
  
 
You can try to let wodim locate your burning device with this command:
 
You can try to let wodim locate your burning device with this command:
Line 52: Line 44:
 
;session: blank last session
 
;session: blank last session
  
===Burning an iso image===
+
===Burning an ISO image===
To burn an iso-image run:
+
To burn an ISO image run:
 
  $ wodim -v dev=/dev/cdrw isoimage.iso
 
  $ wodim -v dev=/dev/cdrw isoimage.iso
  
 
===Burning an audio CD===
 
===Burning an audio CD===
# Create your audio tracks and store them as uncompressed, 16-bit stereo {{Filename|wav}} files.
+
1. Create your audio tracks and store them as uncompressed, 16-bit stereo WAV files.
$ '''Tip:''' to convert mp3 to wav ensure LAME is installed, cd to the directoy with your MP3 files and run:
+
{{Tip|To convert MP3 to WAV, ensure {{pkg|lame}} is installed, {{ic|cd}} to the directoy with your MP3 files, and run:
$ for i in *.mp3; do lame --decode "$i" "`basename "$i" .mp3`".wav; done
+
{{bc|
# Name the audio files in a manner that will cause them to be listed in the desired track order when listed alphabetically, such as {{Filename|01.wav}}, {{Filename|02.wav}}, {{Filename|03.wav}}, etc.
+
$ for i in *.mp3; do lame --decode "$i" "`basename "$i" .mp3`".wav; done
# Use the following command to burn the wav files as an audio CD:
+
}}
  $ wodim -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav
+
'''Note:''' In case you get an error when trying to burn WAV files converted with lame try decoding with {{pkg|mpg123}}:
To test the new audio cd, use mplayer:
+
{{bc|
 +
$ for i in *.mp3; do mpg123 --rate 44100 --stereo --buffer 3072 --resync -w `basename $i .mp3`.wav $i; done
 +
}}
 +
}}
 +
 
 +
2. Name the audio files in a manner that will cause them to be listed in the desired track order when listed alphabetically, such as {{ic|01.wav}}, {{ic|02.wav}}, {{ic|03.wav}}, etc.
 +
 
 +
3. Use the following command to simulate burning the wav files as an audio CD:
 +
  $ wodim -dummy -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav
 +
In case you detect errors or empty tracks like
 +
Track 01: audio    0 MB (00:00.00) no preemp pad
 +
try another decoder (e.g. mpg123) or try using cdrecord from the {{pkg|cdrtools}} package.
 +
Note that {{pkg|cdrkit}} also contains a cdrecord command but it is just a softlink to wodim.
 +
 
 +
4. If anything worked you can remove the dummy flag to really burn the CD
 +
 
 +
To test the new audio CD, use [[MPlayer]]:
 
  $ mplayer cdda://
 
  $ mplayer cdda://
  
Line 70: Line 78:
 
  $ cdrdao write --device /dev/cdrw image.cue
 
  $ cdrdao write --device /dev/cdrw image.cue
  
===Making an iso image from an existing CD===
+
===Making an ISO image from an existing CD===
 
To copy an existing CD just type:
 
To copy an existing CD just type:
 
  $ dd if=/dev/cdrw of=/home/user/isoimage.iso
 
  $ dd if=/dev/cdrw of=/home/user/isoimage.iso
Line 76: Line 84:
 
  $ cat /dev/cdrw > isoimage.iso
 
  $ cat /dev/cdrw > isoimage.iso
  
Or use the {{Codeline|readcd}} program, also in the <tt>cdrkit</tt> package
+
Or use the {{Ic|readcd}} program, also in the {{Ic|cdrkit}} package
 
  $ readcd -v dev=/dev/cdrw -f isoimage.iso
 
  $ readcd -v dev=/dev/cdrw -f isoimage.iso
  
Line 85: Line 93:
 
  $ cdrdao read-cd --read-raw --datafile IMAGE.bin --driver generic-mmc:0x20000 --device /dev/cdrom IMAGE.toc
 
  $ cdrdao read-cd --read-raw --datafile IMAGE.bin --driver generic-mmc:0x20000 --device /dev/cdrom IMAGE.toc
  
Some software only likes CUE/BIN pair, you can make a CUE sheet with {{Codeline|toc2cue}} (part of <tt>cdrdao</tt>):
+
Some software only likes CUE/BIN pair, you can make a CUE sheet with {{Ic|toc2cue}} (part of {{Ic|cdrdao}}):
 
  $ toc2cue IMAGE.toc IMAGE.cue
 
  $ toc2cue IMAGE.toc IMAGE.cue
  
===Making an iso image from existing files on harddisk===
+
===Making an ISO image from existing files on hard disk===
 
To make an iso image just copy the needed files to one folder, then do:
 
To make an iso image just copy the needed files to one folder, then do:
 
  $ mkisofs -V volume_name -J -r -o isoimage.iso ~/folder
 
  $ mkisofs -V volume_name -J -r -o isoimage.iso ~/folder
  
===Mounting an iso image===
+
===Mounting an ISO image===
To test if the iso image is proper, you can mount it (as root):
+
To test if the ISO image is proper, you can mount it (as root):
 
  # mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom
 
  # mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom
  
Line 99: Line 107:
 
  # modprobe loop
 
  # modprobe loop
  
===Converting to iso image===
+
===Converting to an ISO image===
To convert an {{Filename|img}}/{{Filename|ccd}} image, you can use {{Codeline|ccd2iso}}:  
+
To convert an {{ic|img}}/{{ic|ccd}} image, you can use {{Ic|ccd2iso}}:  
 
  # pacman -S ccd2iso
 
  # pacman -S ccd2iso
 
  $ ccd2iso ~/image.img ~/image.iso
 
  $ ccd2iso ~/image.img ~/image.iso
Line 108: Line 116:
  
 
===Nero Linux===
 
===Nero Linux===
NERO LINUX is Commercial burning suite from makers of nero for windows - Nero AG. the biggest advantage of nero linux is its interface which similar to window version. Hence, users migrating from windows might find it easy to operate. The Linux version now includes Nero Express, a wizard which takes users through the process of burning CDs and DVDs step-by-step, which users will be familiar with from the Windows version. Also new in version 4 is Blu-ray Disc defect management, integration of Isolinux for creating bootable media and support for Musepack and AIFF audio formats...
+
NERO LINUX is a commercial burning suite from makers of Nero for windows - Nero AG. the biggest advantage of nero linux is its interface which similar to window version. Hence, users migrating from windows might find it easy to operate. The Linux version now includes Nero Express, a wizard which takes users through the process of burning CDs and DVDs step-by-step, which users will be familiar with from the Windows version. Also new in version 4 is Blu-ray Disc defect management, integration of Isolinux for creating bootable media and support for Musepack and AIFF audio formats...
  
 
* [http://www.nero.com/enu/linux4.html Nero Linux 4]
 
* [http://www.nero.com/enu/linux4.html Nero Linux 4]
* [http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]
+
* {{AUR|nerolinux}} [[Arch User Repository|AUR]] package
  
 
+
====Features====
====Features:====
+
 
* Easy, wizard-style user interface for guided burning with Nero Linux Express 4
 
* Easy, wizard-style user interface for guided burning with Nero Linux Express 4
 
* Full Blu-ray Burning Support
 
* Full Blu-ray Burning Support
* Supports Burning of Audio CD (CD-DA),ISO 9660 (Joliet support),CD-Text,ISOLINUX Bootable ,Multisession Discs,DVD-Video and miniDVD,DVD double layer support.
+
* Supports Burning of Audio CD (CD-DA), ISO 9660 (Joliet support), CD-Text, ISOLINUX Bootable, Multi-session Discs, DVD-Video and miniDVD, DVD double layer support.
 
* Advanced burning with Nero Burning ROM and command line client  
 
* Advanced burning with Nero Burning ROM and command line client  
 
  
 
====License:====
 
====License:====
 
Nero Linux 4 retails at £17.99 with a free trial version also available.
 
Nero Linux 4 retails at £17.99 with a free trial version also available.
  
===K3b===
+
====Note:====
According to [http://k3b.plainblack.com/, k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3b uses the [[Wikipedia:Qt (toolkit)|Qt]] toolkit.
+
For Nero Linux you need
  
The {{Package Official|k3b}} package is available in [extra]:
+
MODULES=( sg )
# pacman -S k3b
+
  
Run {{Codeline|k3bsetup}} to set up your preferences, permissions, etc.; run {{Codeline|k3b}} to execute the main program.
+
in rc.conf. Some updates ago the sg module wasn't auto loaded any more and Nero needs it.
  
====About Locale====
+
===K3b===
When running K3B, if the following message appears
+
According to [http://k3b.plainblack.com/], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3b uses the [[Wikipedia:Qt (toolkit)|Qt]] toolkit.
  
System locale charset is ANSI_X3.4-1968
+
The {{pkg|k3b}} package is available in the official repositories.
Your system's locale charset (i.e. the charset used to encode filenames) is
+
  # pacman -S k3b
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.
+
Most likely the locale is not set at all. An invalid setting will result in
+
problems when creating data projects.Solution: To properly set the locale
+
charset make sure the LC_* environment variables are set. Normally the distribution
+
  setup tools take care of this.
+
  
It means that your locale is not set well.
+
Run {{Ic|k3bsetup}} to set up your preferences, permissions, etc.; run {{Ic|k3b}} to execute the main program.
 
+
To fix it,
+
* Remove <code>/etc/locale.gen</code>
+
# rm /etc/locale.gen
+
* Re-install <code>glibc</code>
+
# pacman -S glibc
+
* Edit <code>/etc/locale.gen</code>, uncommenting all lines lines that corresponds to your language AND the <code>en_US</code> options, for compatibility.
+
# nano /etc/locale.gen
+
 
+
en_US.UTF-8 UTF-8
+
en_US ISO-8859-1
+
 
+
* Re-generate the profiles with <code>locale-gen</code>
+
# locale-gen
+
 
+
Generating locales...
+
en_US.UTF-8... done
+
en_US.ISO-8859-1... done
+
pt_BR.UTF-8... done
+
pt_BR.ISO-8859-1... done
+
Generation complete.
+
 
+
More info [http://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]
+
 
+
==== K3B says that there are no Burning Devices ====
+
A common cause of this is the current user have no privileges for that.
+
You can try to:
+
* Add the user to the group <code>optical</code> (remember to re-login after this)
+
# gpasswd -a <user> optical
+
* Set permissions to devices (can also be done with 'k3bsetup')
+
# chmod 777 /dev/dvd*
+
# chmod 777 /dev/cd*
+
* Make sure dbus is running:
+
# /etc/rc.d/dbus start
+
You should add a dbus entry in your <code>/etc/rc.conf</code> so that it automatically loads upon boot.
+
  
 
===Brasero===
 
===Brasero===
 +
Brasero is another solution to CD burning if you are using [[GNOME]].
  
Brasero is another solution to CD burning if you are using [[Gnome]].
+
* Install {{pkg|brasero}} with [[pacman]].
  
* Install brasero with pacman.
+
* Run {{ic|brasero}} to run the main program.
# pacman -S brasero
+
 
+
* Run <code>brasero</code> to run the main program.
+
 
+
====Brasero fails to find blank discs====
+
 
+
Brasero uses gvfs to manage CD/DVD burning devices.
+
 
+
* Install gvfs with pacman.
+
# pacman -S gvfs
+
 
+
* Edit your .xinitrc by adding "dbus-launch" before your window manager name, eg.:
+
# exec dbus-launch openbox-session
+
 
+
* You do not need to edit .xinitrc if you are using login manager like [[GDM]] or [[KDM]]
+
  
 
===Graveman===
 
===Graveman===
 
Graveman is a simple and almost dependency-free application for burning CDs.
 
Graveman is a simple and almost dependency-free application for burning CDs.
  
* Graveman is not packed for arch but you can install it from the [[AUR]]: [http://aur.archlinux.org/packages.php?ID=43499].
+
* {{AUR|graveman}} is available in the [[Arch User Repository|AUR]].
  
* Run <code>graveman</code> as a regular user to create the configuration file in ~/.config/graveman/graveman.conf (if you run graveman as root first, the permissions for this file will be wrong).
+
* Run {{ic|graveman}} as a regular user to create the configuration file in {{ic|~/.config/graveman/graveman.conf}} (if you run graveman as root first, the permissions for this file will be wrong).
 
* Now, in graveman, go to menu File > Preferences... > Devices and add your CD burners (If necessary, run graveman as root).  Devices may already be set up correctly.
 
* Now, in graveman, go to menu File > Preferences... > Devices and add your CD burners (If necessary, run graveman as root).  Devices may already be set up correctly.
* Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc
+
* Note that you may have to manually add your own device in Graveman's preferences and point it at {{ic|/dev/cdrom}} instead of {{ic|/dev/hdc}}
* If graveman's autodetection points to '''1,0,0''' or something like that, and you get the "Currently:  no media" error you may point it to '''/dev/sr0''' or '''/dev/cdrom''' as noted above
+
* If graveman's automatic detection points to '''1,0,0''' or something like that, and you get the "Currently:  no media" error you may point it to {{ic|/dev/sr0}} or {{ic|/dev/cdrom}} as noted above
  
 
===Bashburn===
 
===Bashburn===
 +
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in [[Official Repositories|official repositories]] as a semi-GUI solution. BashBurn is the new name for the CD burning shell script Magma. It is not the best looking CD-burning application out there, but it does what you want it to do.
  
Alternatively theres also [http://bashburn.sourceforge.net/ Bashburn] in Extra Repository as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It is not the best looking CD-burning application out there, but it does what you want it to do.
+
* Install {{pkg|bashburn}} with [[pacman]].
 
+
* Install Bashburn with pacman.
+
# pacman -S bashburn
+
  
 
===Xfburn===
 
===Xfburn===
 +
Xfburn is a simple CD/DVD burning tool from the [http://www.xfce.org/projects Xfce project], and is based on libburnia libraries. It can blank CD-RWs, burn and create ISO images, as well as burn personal compositions of data to either CD or DVD.
  
[http://www.xfce.org/projects/xfburn/ Xfburn] is a simple CD/DVD burning tool based on libburnia libraries. It can blank CD-RWs, burn and create iso images, as well as burn personal compositions of data to either CD or DVD.  
+
It can be found in the [[Official Repositories|official repositories]].
  
It can be found in the Extra Repository.
+
* Install {{pkg|xfburn}} with [[pacman]].
 
+
* Install Xfburn with pacman.
+
# pacman -S xfburn
+
  
 
===Recorder===
 
===Recorder===
[http://code.google.com/p/recorder/ Recorder] is a graphical frontend of cdrkit/cdrtools, cdrdao, mkisofs and growisofs. It aims to be simple and easy to use, free of large configurations and useless options, following the KISS principle and offering a disc burning of quality, nothing more.
+
{{Warning| there is a critical bug in Recorder where it tries to remove files in your $HOME: see https://bugs.archlinux.org/task/31673 It is also no longer supported upstream.}}
  
* Install from the AUR: [http://aur.archlinux.org/packages.php?ID=16501 Recorder package].
+
[http://code.google.com/p/recorder/ Recorder] is a graphical front-end of cdrkit/cdrtools, cdrdao, mkisofs and growisofs. It aims to be simple and easy to use, free of large configurations and useless options, following the KISS principle and offering a disc burning of quality, nothing more.
  
* Discussion thread: [http://bbs.archlinux.org/viewtopic.php?id=47253 Recorder - A simple GTK+ disc burner]
+
* Install {{aur|recorder}} from the [[AUR]]
 +
* Discussion thread: [https://bbs.archlinux.org/viewtopic.php?id=47253 Recorder - A simple GTK+ disc burner]
  
 
==Troubleshooting==
 
==Troubleshooting==
  
===PATA and SATA problems around 2.6.20/2.6.21===
+
====About Locale====
 +
When running K3B, if the following message appears
  
For some kernels on some machines, CD burning works very unreliably. This is not fully diagnosed but appears to be related to DMA and having SATA Hard Drives and older IDE CD/DVD Burners and is possibly more prevalent on PIIX Motherboards. On newer kernels there is a new driver whereby the CD/DVD Burner behaves as if it is a SCSI drive, even though it is not.  
+
System locale charset is ANSI_X3.4-1968
 +
Your system's locale charset (i.e. the charset used to encode file names) is  
 +
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.
 +
Most likely the locale is not set at all. An invalid setting will result in
 +
problems when creating data projects.Solution: To properly set the locale
 +
charset make sure the LC_* environment variables are set. Normally the distribution
 +
setup tools take care of this.
  
The symptom for this problem is an almost total refusal to burn anything at all. It 'seems' to work fine, but if you verify the burn it invariably fails. If this is happening to you and you have an IDE burner try this fix.
+
It means that your locale is not set well.
  
You will need to install mkinitcpio as described here, [[Configuring mkinitcpio]] so you can rebuild the kernel. You now need to reconfigure your /etc/mkinitcpio.conf file to reuse the old IDE drivers.
+
To fix it,
  # gedit /etc/mkinitcpio.conf
+
* Remove {{ic|/etc/locale.gen}}
 +
# rm /etc/locale.gen
 +
* Re-install {{ic|glibc}}
 +
  # pacman -S glibc
 +
* Edit {{ic|/etc/locale.gen}}, uncommenting all lines lines that corresponds to your language AND the {{ic|en_US}} options, for compatibility.
 +
en_US.UTF-8 UTF-8
 +
en_US ISO-8859-1
  
Find the line:
+
* Re-generate the profiles with {{ic|locale-gen}}
  MODULES="ata_generic ata_piix"
+
  # locale-gen
  
and change it to (insert piix in the front)
+
Generating locales...
  MODULES="piix ata_generic ata_piix"
+
en_US.UTF-8... done
 +
en_US.ISO-8859-1... done
 +
pt_BR.UTF-8... done
 +
pt_BR.ISO-8859-1... done
 +
  Generation complete.
  
Then, find the line:
+
More info [https://bbs.archlinux.org/viewtopic.php?pid=251512%29; here]
HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"
+
  
and change that to: (replace pata with ide)
+
====Brasero fails to find blank discs====
HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"
+
Brasero uses gvfs to manage CD/DVD burning devices.
  
Use mkinitcpio to rebuild the kernel as described in its own wiki page, and reboot. In brief:
+
* Install {{pkg|gvfs}} with [[pacman]].
# mkinitcpio -g /boot/kernel26.img
+

Revision as of 02:18, 12 November 2012

Summary help replacing me
This document outlines various methods of burning CDs.
Related
DVD Burning

Command-line CD-burning

Install CD-burning utilities

From http://www.cdrkit.org/:

cdrkit is a suite of programs for recording CDs and DVDs, blanking CD-RW media, creating ISO-9660 filesystem images, extracting audio CD data, and more. The programs included in the cdrkit package were originally derived from several sources, most notably mkisofs by Eric Youngdale and others, cdda2wav by Heiko Eissfeldt, and cdrecord by Jörg Schilling. However, cdrkit is not affiliated with any of these authors; it is now an independent project.

The cdrkit package is available in the official repositories.

If you intend to use cdrdao (for writing cue/bin files to CD), install that package instead.

Note: If you face any issues with cdrkit, it is recommended to install cdrtools from the community repository (cdrkit is a fork of cdrtools). cdrtools is being actively developed and supports CD, DVD and Blu-ray burning along with complete CDRWIN cue/bin support. cdrtools does not depend on cdrdao. For more information, see this page from the cdrtools site.
Note: Make sure that you build a package using makepkg and install with pacman. Pacman wrappers may resolve to cdrkit instead.

Modifying the CD-RW

For the remainder of this section the name of your recording device is assumed to be /dev/cdrw. If that is not the case, modify the commands accordingly. In order to write to the CD it needs to be unmounted. If it is not, wodim will give you an error message.

You can try to let wodim locate your burning device with this command:

 $ wodim -checkdrive

Erasing CD-RW

CD-RW media usually need to be erased before you can write new data on it. To blank CD-RW medium use this command:

$ wodim -v dev=/dev/cdrw -blank=fast

As you might have guessed, this blanks your medium really fast, but you can also use some other options, just replace the word fast with one of the following:

all
blank the entire disk
disc
blank the entire disk
disk
blank the entire disk
fast
minimally blank the entire disk (PMA, TOC, pregap)
minimal
minimally blank the entire disk (PMA, TOC, pregap)
track
blank a track
unreserve
unreserve a track
trtail
blank a track tail
unclose
unclose last session
session
blank last session

Burning an ISO image

To burn an ISO image run:

$ wodim -v dev=/dev/cdrw isoimage.iso

Burning an audio CD

1. Create your audio tracks and store them as uncompressed, 16-bit stereo WAV files.

Tip: To convert MP3 to WAV, ensure lame is installed, cd to the directoy with your MP3 files, and run:
$ for i in *.mp3; do lame --decode "$i" "`basename "$i" .mp3`".wav; done

Note: In case you get an error when trying to burn WAV files converted with lame try decoding with mpg123:

$ for i in *.mp3; do mpg123 --rate 44100 --stereo --buffer 3072 --resync -w `basename $i .mp3`.wav $i; done

2. Name the audio files in a manner that will cause them to be listed in the desired track order when listed alphabetically, such as 01.wav, 02.wav, 03.wav, etc.

3. Use the following command to simulate burning the wav files as an audio CD:

$ wodim -dummy -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav

In case you detect errors or empty tracks like

Track 01: audio    0 MB (00:00.00) no preemp pad

try another decoder (e.g. mpg123) or try using cdrecord from the cdrtools package. Note that cdrkit also contains a cdrecord command but it is just a softlink to wodim.

4. If anything worked you can remove the dummy flag to really burn the CD

To test the new audio CD, use MPlayer:

$ mplayer cdda://

Burning a bin/cue

To burn a bin/cue image run:

$ cdrdao write --device /dev/cdrw image.cue

Making an ISO image from an existing CD

To copy an existing CD just type:

$ dd if=/dev/cdrw of=/home/user/isoimage.iso

or even simpler:

$ cat /dev/cdrw > isoimage.iso

Or use the readcd program, also in the cdrkit package

$ readcd -v dev=/dev/cdrw -f isoimage.iso

If the original CD was bootable it will be a bootable image.

TOC/CUE/BIN for mixed-mode disks

ISO images only store a single data track. If you want to create an image of a mixed-mode disk (data track with multiple audio tracks) then you need to make a TOC/BIN pair:

$ cdrdao read-cd --read-raw --datafile IMAGE.bin --driver generic-mmc:0x20000 --device /dev/cdrom IMAGE.toc

Some software only likes CUE/BIN pair, you can make a CUE sheet with toc2cue (part of cdrdao):

$ toc2cue IMAGE.toc IMAGE.cue

Making an ISO image from existing files on hard disk

To make an iso image just copy the needed files to one folder, then do:

$ mkisofs -V volume_name -J -r -o isoimage.iso ~/folder

Mounting an ISO image

To test if the ISO image is proper, you can mount it (as root):

# mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom

You have to first load the loop module:

# modprobe loop

Converting to an ISO image

To convert an img/ccd image, you can use ccd2iso:

# pacman -S ccd2iso
$ ccd2iso ~/image.img ~/image.iso

Burning CDs with a GUI

There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.

Nero Linux

NERO LINUX is a commercial burning suite from makers of Nero for windows - Nero AG. the biggest advantage of nero linux is its interface which similar to window version. Hence, users migrating from windows might find it easy to operate. The Linux version now includes Nero Express, a wizard which takes users through the process of burning CDs and DVDs step-by-step, which users will be familiar with from the Windows version. Also new in version 4 is Blu-ray Disc defect management, integration of Isolinux for creating bootable media and support for Musepack and AIFF audio formats...

Features

  • Easy, wizard-style user interface for guided burning with Nero Linux Express 4
  • Full Blu-ray Burning Support
  • Supports Burning of Audio CD (CD-DA), ISO 9660 (Joliet support), CD-Text, ISOLINUX Bootable, Multi-session Discs, DVD-Video and miniDVD, DVD double layer support.
  • Advanced burning with Nero Burning ROM and command line client

License:

Nero Linux 4 retails at £17.99 with a free trial version also available.

Note:

For Nero Linux you need

MODULES=( sg )

in rc.conf. Some updates ago the sg module wasn't auto loaded any more and Nero needs it.

K3b

According to [1], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3b uses the Qt toolkit.

The k3b package is available in the official repositories.

# pacman -S k3b

Run k3bsetup to set up your preferences, permissions, etc.; run k3b to execute the main program.

Brasero

Brasero is another solution to CD burning if you are using GNOME.

  • Run brasero to run the main program.

Graveman

Graveman is a simple and almost dependency-free application for burning CDs.

  • Run graveman as a regular user to create the configuration file in ~/.config/graveman/graveman.conf (if you run graveman as root first, the permissions for this file will be wrong).
  • Now, in graveman, go to menu File > Preferences... > Devices and add your CD burners (If necessary, run graveman as root). Devices may already be set up correctly.
  • Note that you may have to manually add your own device in Graveman's preferences and point it at /dev/cdrom instead of /dev/hdc
  • If graveman's automatic detection points to 1,0,0 or something like that, and you get the "Currently: no media" error you may point it to /dev/sr0 or /dev/cdrom as noted above

Bashburn

Alternatively theres also Bashburn in official repositories as a semi-GUI solution. BashBurn is the new name for the CD burning shell script Magma. It is not the best looking CD-burning application out there, but it does what you want it to do.

Xfburn

Xfburn is a simple CD/DVD burning tool from the Xfce project, and is based on libburnia libraries. It can blank CD-RWs, burn and create ISO images, as well as burn personal compositions of data to either CD or DVD.

It can be found in the official repositories.

Recorder

Warning: there is a critical bug in Recorder where it tries to remove files in your $HOME: see https://bugs.archlinux.org/task/31673 It is also no longer supported upstream.

Recorder is a graphical front-end of cdrkit/cdrtools, cdrdao, mkisofs and growisofs. It aims to be simple and easy to use, free of large configurations and useless options, following the KISS principle and offering a disc burning of quality, nothing more.

Troubleshooting

About Locale

When running K3B, if the following message appears

System locale charset is ANSI_X3.4-1968
Your system's locale charset (i.e. the charset used to encode file names) is 
set to ANSI_X3.4-1968. It is highly unlikely that this has been done intentionally.
Most likely the locale is not set at all. An invalid setting will result in
problems when creating data projects.Solution: To properly set the locale 
charset make sure the LC_* environment variables are set. Normally the distribution 
setup tools take care of this.

It means that your locale is not set well.

To fix it,

  • Remove /etc/locale.gen
# rm /etc/locale.gen
  • Re-install glibc
# pacman -S glibc
  • Edit /etc/locale.gen, uncommenting all lines lines that corresponds to your language AND the en_US options, for compatibility.
en_US.UTF-8 UTF-8
en_US ISO-8859-1
  • Re-generate the profiles with locale-gen
# locale-gen
Generating locales...
en_US.UTF-8... done
en_US.ISO-8859-1... done
pt_BR.UTF-8... done
pt_BR.ISO-8859-1... done
Generation complete.

More info here

Brasero fails to find blank discs

Brasero uses gvfs to manage CD/DVD burning devices.