Difference between revisions of "CD Burning"

From ArchWiki
Jump to: navigation, search
m (moved CD Burning Tips to CD Burning: more generic title)
(clean-up)
Line 1: Line 1:
 
[[Category:Utilities (English)]]
 
[[Category:Utilities (English)]]
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
{{i18n_links_start}}
+
{{i18n|CD Burning}}
{{i18n_entry|English|CD Burning Tips}}
+
{{Article summary start}}
{{i18n_entry|Italiano|CD Burning Tips (Italiano)}}
+
{{Article summary text|This document outlines various methods of burning CDs.}}
{{i18n_entry|简体中文|CD Burning Tips (简体中文)}}
+
{{Article summary heading|Related}}
{{i18n_links_end}}
+
{{Article summary wiki|DVD Writing}}
 +
{{Article summary end}}
  
This document outlines various methods of burning CDs.
+
== Command-line CD-burning ==
 +
===Install CD-burning utilities===
 +
From http://www.cdrkit.org/:
  
== Commandline CD-burning ==
+
:''<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.
===Install cd-burning utilities===
 
  
 +
The {{Package Official|cdrkit}} package is available in [extra]:
 
  # pacman -S cdrkit
 
  # pacman -S cdrkit
  
And if you intend to use <tt>cdrdao</tt> (for writing cue/bin files to cd)
+
If you intend to use {{Package Official|cdrdao}} (for writing {{Filename|cue}}/{{Filename|bin}} files to CD)
 
  # pacman -S cdrdao
 
  # pacman -S cdrdao
  
{{Note| If you face any issues with Cdrkit(fork of cdrtools), It is recommended to install ''cdrtools'' from [[AUR]]. {{Package AUR|cdrtools}} is being actively developed and supports CD, DVD and BluRay burning along with complete CDRWIN cue/bin support. cdrtools does not depend on cdrdao   /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 cdrdao.}}
  
 
===Setting permissions===
 
===Setting permissions===
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:
+
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
 
  # gpasswd -a <username> optical
Then don't forget to log out and log in again.
+
 
 +
Log out and back in for the changes to take effect.
  
 
===Modifying the CD-RW===
 
===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, <code>wodim</code> will give you an error message.   
+
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.   
 +
 
 
===Erasing CD-RW===
 
===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:
+
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
 
  $ 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:
 
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
+
;all: blank the entire disk
;disc : blank the entire disk
+
;disc: blank the entire disk
;disk:blank the entire disk
+
;disk: blank the entire disk
;fast:minimally blank the entire disk (PMA, TOC, pregap)
+
;fast: minimally blank the entire disk (PMA, TOC, pregap)
;minimal:minimally blank the entire disk (PMA, TOC, pregap)
+
;minimal: minimally blank the entire disk (PMA, TOC, pregap)
;track:blank a track
+
;track: blank a track
;unreserve:unreserve a track
+
;unreserve: unreserve a track
;trtail:blank a track tail
+
;trtail: blank a track tail
;unclose:unclose last session
+
;unclose: unclose last session
;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===
1. Create your audio tracks and store them as uncompressed, 16-bit stereo .wav files.
+
# Create your audio tracks and store them as uncompressed, 16-bit stereo {{Filename|wav}} files.
 
+
# 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.
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.
+
# Use the following command to burn the wav files as an audio CD:
 
 
3. Use the following command to burn the wav files as an audio CD:
 
 
  $ wodim -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav
 
  $ wodim -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav
  
 
===Burning a bin/cue===
 
===Burning a bin/cue===
 
 
To burn a bin/cue image run:
 
To burn a bin/cue image run:
 
  $ 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
 
or even simpler:
 
or even simpler:
 
  $ cat /dev/cdrw > isoimage.iso
 
  $ cat /dev/cdrw > isoimage.iso
  
Or use readcd program, also in the cdrkit package
+
Or use the {{Codeline|readcd}} program, also in the <tt>cdrkit</tt> package
 
  $ readcd -v dev=/dev/cdrw -f isoimage.iso
 
  $ readcd -v dev=/dev/cdrw -f isoimage.iso
  
If the original cd was bootable it will be a bootable image.
+
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
+
====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
 
  $ 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)
+
 
 +
Some software only likes CUE/BIN pair, you can make a CUE sheet with {{Codeline|toc2cue}} (part of <tt>cdrdao</tt>):
 
  $ 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 harddisk===
 
+
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 a
 
 
  $ 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 88: Line 91:
 
  # modprobe loop
 
  # modprobe loop
  
===Converting to iso-image===
+
===Converting to iso image===
 
+
To convert an {{Filename|img}}/{{Filename|ccd}} image, you can use {{Codeline|ccd2iso}}:  
To convert a .img / ccd image, you can use ccd2iso :
 
 
 
  # pacman -S ccd2iso
 
  # pacman -S ccd2iso
+
  $ ccd2iso ~/image.img ~/image.iso
  $ ccd2iso /home/archman/image.img /home/archman/image.iso
 
  
 
== Burning CDs with a GUI ==
 
== 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.
 
There are several applications available to burn CDs in a graphical environment. The use of these programs are self-explanatory.
 +
 
===Nero Linux===
 
===Nero Linux===
Just the same Nero on windows. [http://www.nero.com/eng/support-linux3.html Official link]|[http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]
+
Just the same as Nero on Windows.  
 +
 
 +
* [http://www.nero.com/eng/support-linux3.html Official link]
 +
* [http://aur.archlinux.org/packages.php?do_Details=1&ID=2153 AUR package]
  
It's not free and the UI is not as good as the windows version. Also, 3.0.0 beta can't burn bootable cd from files correctly.
+
It's not free and the UI is not as good as the Windows version. Also, 3.0.0 beta can't burn bootable CDs from files correctly.
  
If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means k3b and all other free GUIs), nero would be your only choice.
+
If you happen to have a DVD-burner unsupported by <tt>dvd+rw-tools</tt> (which also means K3b and all other free GUIs), Nero would be your only choice.
  
===K3B===
+
===K3b===
According to [http://www.k3b.org http://www.k3b.org], k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3B uses the [[wikipedia:Qt (toolkit)|QT]] toolkit.
+
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.
* Install k3b with pacman.
 
  
 +
The {{Package Official|k3b}} package is available in [extra]:
 
  # pacman -S k3b
 
  # pacman -S k3b
  
* Run <code>k3bsetup</code>,
+
Run {{Codeline|k3bsetup}} to set up your preferences, permissions, etc.; run {{Codeline|k3b}} to execute the main program.
* Here you can set up your preferences about permissions etc.
 
* Run <code>k3b</code> to run the main program.
 
  
 
====About Locale====
 
====About Locale====

Revision as of 04:26, 4 February 2010

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end

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 Template:Package Official package is available in [extra]:

# pacman -S cdrkit

If you intend to use Template:Package Official (for writing Template:Filename/Template:Filename files to CD)

# pacman -S cdrdao
Note: If you face any issues with cdrkit, it is recommended to install Template:Package AUR from the AUR (cdrkit is a fork of cdrtools). cdrtools is being actively developed and supports CD, DVD and BluRay burning along with complete CDRWIN Template:Filename/Template:Filename support. cdrtools does not depend on cdrdao.

Setting permissions

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.

Modifying the CD-RW

For the remainder of this section the name of your recording device is assumed to be Template:Filename. 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.

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 Template:Filename files.
  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 Template:Filename, Template:Filename, Template:Filename, etc.
  3. Use the following command to burn the wav files as an audio CD:
$ wodim -v -pad speed=1 dev=/dev/cdrw -dao -swab *.wav

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 Template:Codeline 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 Template:Codeline (part of cdrdao):

$ toc2cue IMAGE.toc IMAGE.cue

Making an iso image from existing files on harddisk

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 iso image

To convert an Template:Filename/Template:Filename image, you can use Template:Codeline:

# 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

Just the same as Nero on Windows.

It's not free and the UI is not as good as the Windows version. Also, 3.0.0 beta can't burn bootable CDs from files correctly.

If you happen to have a DVD-burner unsupported by dvd+rw-tools (which also means K3b and all other free GUIs), Nero would be your only choice.

K3b

According to [http://k3b.plainblack.com/, k3b is "The CD/DVD Kreator for Linux - optimized for KDE". K3b uses the Qt toolkit.

The Template:Package Official package is available in [extra]:

# pacman -S k3b

Run Template:Codeline to set up your preferences, permissions, etc.; run Template:Codeline to execute the main program.

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 filenames) 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.
# nano /etc/locale.gen
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

K3B says that there's 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 optical (remember to re-login after this)
# gpasswd -a <user> optical
  • Set permissions to devices
# chmod 777 /dev/dvd*
# chmod 777 /dev/cd*
  • Make sure HAL is running, because recent k3b is HAL-based. Kindly reported by arnuld@ #archlinux.
# /etc/rc.d/hal status
# /etc/rc.d/hal start

Or perhaps consider adding a hal entry in your /etc/rc.conf so that it automatically loads upon boot.

Other causes, steps, look on the current guide (;

Gnomebaker

Gnomebaker is a solution to CD burning if you are using Gnome. Gnomebaker is no longer maintained upstream as the author of the program has indicated. Consider using Brasero instead.

  • Install gnomebaker with pacman.
# pacman -S gnomebaker
  • Run gnomebaker to run the main program.

Brasero

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

  • Install brasero with pacman.
# pacman -S brasero
  • Run brasero to run the main program.

Graveman

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

  • Install graveman with pacman.
# pacman -S graveman
  • 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

Bashburn

Alternatively theres also Bashburn in AUR as a semi-gui solution. BashBurn is the new name for the cd burning shell script Magma. It's 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 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 Is currently under heavy development.

It can be found in the Extra Repository.

  • Install Xfburn with pacman.
# pacman -S xfburn

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.

Troubleshooting

PATA and SATA problems around 2.6.20/2.6.21

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 isn't.

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.

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.

# gedit /etc/mkinitcpio.conf

Find the line:

MODULES="ata_generic ata_piix"

and change it to (insert piix in the front)

MODULES="piix ata_generic ata_piix"

Then, find the line:

HOOKS="base udev autodetect pata scsi sata usbinput keymap filesystems"

and change that to: (replace pata with ide)

HOOKS="base udev autodetect ide scsi sata usbinput keymap filesystems"

Use mkinitcpio to rebuild the kernel as described in it's own wiki page, and reboot. In brief:

# mkinitcpio -g /boot/kernel26.img