{{Accuracy|This page is marked for possible improvement of content|Talk:Optical_Disc_Drive#How_to_contribute_as_upstream_developer_.3F}}

+

From [[Wikipedia:Optical disc drive|Wikipedia]]

−

From [[wikipedia:Optical disc drive|wikipedia]]

:''In computing, an optical disc drive (ODD) is a disk drive that uses laser light or electromagnetic waves within or near the visible light spectrum as part of the process of reading or writing data to or from optical discs. Some drives can only read from discs, but recent drives are commonly both readers and recorders, also called burners or writers. Compact discs, DVDs, and Blu-ray discs are common types of optical media which can be read and recorded by such drives. Optical drive is the generic name; drives are usually described as "CD" "DVD", or "Blu-ray", followed by "drive", "writer", etc.''

:''In computing, an optical disc drive (ODD) is a disk drive that uses laser light or electromagnetic waves within or near the visible light spectrum as part of the process of reading or writing data to or from optical discs. Some drives can only read from discs, but recent drives are commonly both readers and recorders, also called burners or writers. Compact discs, DVDs, and Blu-ray discs are common types of optical media which can be read and recorded by such drives. Optical drive is the generic name; drives are usually described as "CD" "DVD", or "Blu-ray", followed by "drive", "writer", etc.''

Line 24:

Line 23:

=== Install burning utilities ===

=== Install burning utilities ===

−

If you want to use programs with graphical user interface, then follow

+

If you want to use programs with graphical user interface, then follow [[#Burning_CD.2FDVD.2FBD_with_a_GUI|this link to the list of GUI programs]].

−

[[Optical_Disc_Drive#Burning_CD.2FDVD_with_a_GUI|this link to the list of GUI programs]].

The programs listed here are the back ends which are used by most free GUI programs for CD, DVD, and BD. They are command line oriented. GUI users might get to them when it comes to troubleshooting or to scripting of burn activities.

The programs listed here are the back ends which are used by most free GUI programs for CD, DVD, and BD. They are command line oriented. GUI users might get to them when it comes to troubleshooting or to scripting of burn activities.

Line 58:

Line 56:

{{Note|

{{Note|

−

The installed files of packages {{Pkg|cdrkit}} and {{Pkg|cdrtools}} are in conflict.

+

* The installed files of packages {{Pkg|cdrkit}} and {{Pkg|cdrtools}} are in conflict. Install only one of them.

−

If you want to install cdrtools, make sure that you build a package using [[makepkg]] and install with pacman. Pacman wrappers may resolve to cdrkit instead.

+

* If you want to install cdrtools, make sure that you build a package using [[makepkg]] and install with [[pacman]]. Pacman wrappers may resolve to cdrkit instead.

}}

}}

=== Making an ISO image from existing files on hard disk ===

=== Making an ISO image from existing files on hard disk ===

−

The most simple way to create an ISO image by help of genisoimage is to copy the needed files to one folder ./for_iso and to do:

+

The most simple way to create an ISO image by help of ''genisoimage'' is to copy the needed files to one folder {{ic|./for_iso}} and to do:

$ genisoimage -V "ARCHIVE_2013_07_27" -J -r -o isoimage.iso ./for_iso

$ genisoimage -V "ARCHIVE_2013_07_27" -J -r -o isoimage.iso ./for_iso

Line 79:

Line 77:

$ genisoimage -V "BACKUP_2013_07_27" -J -r -o backup_2013_07_27.iso \

$ genisoimage -V "BACKUP_2013_07_27" -J -r -o backup_2013_07_27.iso \

-graft-points \

-graft-points \

−

/photos=/home/me/photos \

+

/photos=/home/user/photos \

−

/mail=/home/me/mail \

+

/mail=/home/user/mail \

−

/photos/holidays=/home/me/holidays/photos

+

/photos/holidays=/home/user/holidays/photos

−

;-graft-points: Enables the recognition of "pathspecs" which consist of a target address in the ISO filesystem (e.g. "/photos") and a source address on hard disk (e.g. "/home/me/photos"). Both are separated by a {{ic|1= =}} character.

+

;-graft-points: Enables the recognition of ''pathspecs'' which consist of a target address in the ISO filesystem (e.g. ''/photos'') and a source address on hard disk (e.g. ''/home/user/photos''). Both are separated by a {{ic|1= =}} character.

−

So this example puts disk directory /home/me/photos into ISO as directory /photos, disk directory /home/me/mail into ISO as /mail, and /home/me/holidays/photos into ISO as /photos/holidays.

+

So this example puts the disk directory {{ic|/home/user/photos}}, {{ic|/home/user/mail}} and {{ic|/home/user/holidays/photos}}, respectively in the ISO image as {{ic|/photos}}, {{ic|/mail}} and {{ic|/photos/holidays}}.

−

Programs {{ic|mkisofs}} and {{ic|xorrisofs}} accept the same options. For sincere backups consider to use {{ic|xorrisofs}} with option {{ic|--for_backup}}, which records eventual ACLs and stores an MD5 checksum for each data file.

+

Programs {{ic|mkisofs}} and {{ic|xorrisofs}} accept the same options. For secure backups consider to use {{ic|xorrisofs}} with option {{ic|--for_backup}}, which records eventual ACLs and stores an MD5 checksum for each data file.

See the manuals of the ISO 9660 programs for more info about their options:

See the manuals of the ISO 9660 programs for more info about their options:

Do not forget to unmount the image when your inspection of the image is done:

+

+

# umount /cdrom

+

+

See also [[Mounting images as user]] for mounting without root privileges.

+

+

=== Converting img/ccd to an ISO image ===

+

+

To convert an {{ic|img}}/{{ic|ccd}} image, you can use {{Pkg|ccd2iso}}:

+

+

$ ccd2iso ~/image.img ~/image.iso

=== Learning the name of your optical drive ===

=== Learning the name of your optical drive ===

−

For the remainder of this section the name of your recording device is assumed to be {{ic|/dev/cdrw}}.

+

For the remainder of this section the name of your recording device is assumed to be {{ic|/dev/sr0}}.

Check this by

Check this by

−

$ wodim dev=/dev/cdrw -checkdrive

+

$ wodim dev=/dev/sr0 -checkdrive

which should report "Vendor_info" and "Identification" of the drive.

which should report "Vendor_info" and "Identification" of the drive.

−

The next guess could be {{ic|/dev/sr0}}.

−

If no drive is found, check whether any {{ic|/dev/sr*}} exist and whether they offer rw-permission to you or your group.

+

If no drive is found, check whether any {{ic|/dev/sr*}} exist and whether they offer read/write permission ({{ic|wr-}}) to you or your group.

If no {{ic|/dev/sr*}} exists then try

If no {{ic|/dev/sr*}} exists then try

−

{{ic|1= $ modprobe sr_mod}}

+

# modprobe sr_mod

=== Reading an ISO image from a CD, DVD, or BD ===

=== Reading an ISO image from a CD, DVD, or BD ===

Line 116:

Line 135:

Use program {{ic|isosize}} out of package {{Pkg|util-linux}} to obtain the image size

Use program {{ic|isosize}} out of package {{Pkg|util-linux}} to obtain the image size

−

$ blocks=$(expr $(isosize /dev/cdrw) / 2048)

+

$ blocks=$(expr $(isosize /dev/sr0) / 2048)

Have a look whether the obtained number of blocks is plausible

Have a look whether the obtained number of blocks is plausible

Line 124:

Line 143:

}}

}}

−

Then copy the determined amount of data from medium to hard disk

+

Then copy the determined amount of data from medium to hard disk :

−

$ dd if=/dev/cdrw of=isoimage.iso bs=2048 count=$blocks

+

$ dd if=/dev/sr0 of=isoimage.iso bs=2048 count=$blocks

−

Omit {{ic|1= count=$blocks}} if you did not determine the size. You will probably get more data than needed. The resulting file will nevertheless be mountable. It should still fit onto a medium of the same type as the medium from which the

+

Omit {{ic|1= count=$blocks}} if you did not determine the size. You will probably get more data than needed. The resulting file will nevertheless be mountable. It should still fit onto a medium of the same type as the medium from which the image was copied.

−

image was copied.

If the original medium was bootable, then the copy will be a bootable image. You may use it as pseudo CD for a virtual machine or burn it onto optical media which should then become bootable.

If the original medium was bootable, then the copy will be a bootable image. You may use it as pseudo CD for a virtual machine or burn it onto optical media which should then become bootable.

−

=== Erasing CD-RW ===

+

=== Erasing CD-RW and DVD-RW ===

+

+

Used CD-RW media need to be erased before you can write over the previously recorded data. This is done by

+

+

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

+

+

Unformatted DVD-RW media need the same treatment before re-use. But fast blanking deprives them of the capability for multi-session and recording of streams of unpredicted length. So one should apply

+

+

$ dvd+rw-format -blank=full /dev/sr0

+

+

{{ic|1= dvd+rw-format}} is part of package {{Pkg|dvd+rw-tools}}. Alternative commands are

+

$ cdrecord -v dev=/dev/sr0 blank=all

+

$ cdrskin -v dev=/dev/sr0 blank=all

+

$ xorriso -outdev /dev/sr0 -blank as_needed

+

+

Formatted DVD-RW media can be overwritten without such erasure. So consider to apply once in their life time

−

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

+

$ dvd+rw-format -force /dev/sr0

−

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

+

Alternative commands are

+

$ cdrskin -v dev=/dev/sr0 blank=format_overwrite

+

$ xorriso -outdev /dev/sr0 -format as_needed

−

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 other media are either write-once (CD-R, DVD-R, DVD+R, BD-R) or are overwritable without the need for erasing (DVD-RAM, DVD+RW, BD-RE).

−

;all: blank the entire disk

+

=== Burning an ISO image to CD, DVD, or BD ===

−

;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 a readily prepared ISO image file {{ic|isoimage.iso}} onto an optical medium, run for CD:

−

To burn an ISO image run:

+

$ wodim -v -sao dev=/dev/sr0 isoimage.iso

−

$ cdrecord -v dev=/dev/sr0 isoimage.iso

+

and for DVD or BD:

−

=== Verify the burnt ISO image ===

+

$ growisofs -dvd-compat -Z /dev/sr0=isoimage.iso

−

You can verify the integrity of the burnt CD to make sure it contains no errors. Always eject the CD and reinsert it before verifying.

+

The programs {{ic|cdrecord}}, {{ic|cdrskin}}, and {{ic|xorrecord}} may be used on all kinds of media with the options shown with {{ic|wodim}}.

+

+

{{Note|

+

* Make sure that the medium is not mounted when you begin to write to it. Mounting may happen automatically if the medium contains a readable filesystem. In best case it will prevent the burn programs from using the burner device. In worst case there will be misburns because read operations disturbed the drive.

+

So if in doubt, do:

+

# umount /dev/sr0

+

* {{ic|growisofs}} has a small bug with blank BD-R media. It issues an error message after the burning is complete. Programs like {{ic|k3b}} then believe the whole burn run failed.

+

To prevent this, either

+

** format the blank BD-R by {{ic|dvd+rw-format /dev/sr0}} before submitting it to growisofs

+

** or use growisofs option {{ic|1= -use-the-force-luke=spare:none}}

+

}}

+

+

=== Verifying the burnt ISO image ===

+

+

You can verify the integrity of the burnt medium to make sure it contains no errors. Always eject the medium and reinsert it before verifying. The kernel will learn about the new content only by that reinsertion.

First calculate the md5sum of the original ISO image:

First calculate the md5sum of the original ISO image:

Line 168:

Line 208:

}}

}}

−

If the CD was burnt in DAO (Disc At Once) mode by passing the -dao option to cdrecord you can calculate the md5sum of the burnt CD as follows:

+

Next calculate the md5sum of the ISO filesystem on the medium.

+

Although some media types deliver exactly the same amount of data as have been submitted to the burn program, many others append trailing garbage when being read. So you should restrict reading to the size of the ISO image file.

−

{{hc|$ md5sum /dev/sr0|

+

$ blocks=$(expr $(du -b isoimage.iso | awk '{print $1}') / 2048)

−

e5643e18e05f5646046bb2e4236986d8 /dev/sr0

−

}}

−

If the CD was burnt in TAO (Track At Once) mode it can be verified with dd and md5sum. You need to know the number of sectors to check. You can calculate this by dividing the size of the ISO file by 2048, but for your convenience this is included in the output of cdrecord:

Then check if this matches the md5sum of the burnt image, replacing "count" with the number of sectors:

−

−

{{hc|<nowiki>$ dd if=/dev/sr0 bs=2048 count=43992 | md5sum</nowiki>|

43992+0 records in

43992+0 records in

43992+0 records out

43992+0 records out

Line 187:

Line 220:

}}

}}

−

=== Burning an audio CD ===

+

Both runs should yield the same MD5 sum (here: {{ic|e5643e18e05f5646046bb2e4236986d8}}). If they do not, you will propbably also get an i/o error message from the {{ic|dd}} run. {{ic|dmesg}} might then tell about SCSI errors and block numbers, if you are interested.

−

Create your audio tracks and store them as uncompressed, 16-bit stereo WAV files. To convert MP3 to WAV, ensure {{Pkg|lame}} is installed, {{ic|cd}} to the directoy with your MP3 files, and run:

+

=== ISO 9660 and Burning On-The-Fly ===

−

$ for i in *.mp3; do lame --decode "$i" "$(basename "$i" .mp3)".wav; done

+

It is not necessary to store an emerging ISO filesystem on hard disk before writing it to optical media. Only very old CD drives at very old computers could suffer misburns due to empty drive buffer.

−

In case you get an error when trying to burn WAV files converted with lame try decoding with {{Pkg|mpg123}}:

+

If you omit option {{ic|-o}} from {{ic|genisoimage}} then it writes the ISO image to standard output. This can be piped into the standard input of burn programs.

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.

+

Option {{ic|-waiti}} is not really needed here. It prevents {{ic|wodim}} from writing to the medium before {{ic|genisoimage}} starts its output. This would allow {{ic|genisoimage}} to read the medium without disturbing an already started burn run. See next section about multi-session.

−

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

+

On DVD and BD you may let{{ic|growisofs}} operate {{ic|genisoimage}} for you and burn its output on-the-fly

−

In case you detect errors or empty tracks like:

+

$ export MKISOFS="genisoimage"

+

$ growisofs -Z /dev/sr0 -V "ARCHIVE_2013_07_27" -r -J ./for_iso

−

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

+

=== Multi-session ===

−

try another decoder (e.g. mpg123) or try using cdrecord from the {{Pkg|cdrtools}} package.

+

ISO 9660 multi-session means that a medium with readable filesystem is still writable at its first unused block address, and that a new ISO directory tree gets written to this unused part.

+

The new tree is accompanied by the content blocks of newly added or overwritten data files. The blocks of data files, which shall stay as in the old ISO tree, will not be written again.

+

+

Linux and many other operating systems will mount the directory tree in the last session on the medium. This youngest tree will normally show the files of the older sessions, too.

−

Note that {{Pkg|cdrkit}} also contains a cdrecord command but it is just a softlink to ''wodim''.

+

==== Multi-session by wodim ====

−

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

−

To test the new audio CD, use [[MPlayer]]:

+

CD-R and CD-RW stay writable (aka "appendable") if wodim option {{ic|-multi}} was used

−

$ mplayer cdda://

+

$ wodim -v -multi dev=/dev/sr0 isoimage.iso

−

=== Burning a bin/cue ===

+

Then the medium can be inquired for the parameters of the next session

−

To burn a bin/cue image run:

+

$ m=$(wodim dev=/dev/sr0 -msinfo)

−

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

+

By help of these parameters and of the readable medium in the drive you can produce the add-on ISO session

+

$ genisoimage -M /dev/sr0 -C "$m" \

+

-V "ARCHIVE_2013_07_28" -J -r -o session2.iso ./more_for_iso

−

==== TOC/CUE/BIN for mixed-mode disks ====

+

Finally append the session to the medium and keep it appendable again

−

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:

Programs {{ic|cdrskin}} and {{ic|xorrecord}} do this too with DVD-R, DVD+R, BD-R and unformatted DVD-RW. Program {{ic|cdrecord}} does multi-session with at least DVD-R and DVD-RW. They all do with CD-R and CD-RW, of course.

−

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

+

Most re-usable media types do not record a session history that would be recognizable for a mounting kernel. But with ISO 9660 it is possible to achieve the multi-session effect even on those media.

−

$ toc2cue IMAGE.toc IMAGE.cue

+

{{ic|growisofs}} and {{ic|xorriso}} can do this and hide most of the complexity.

−

=== Making an ISO image from existing files on hard disk ===

+

==== Multi-session by growisofs ====

−

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

+

{{ic|growisofs}} forwards most of its program arguments to a program that is compatible to {{ic|mkisofs}}. See above examples of {{ic|genisoimage}}.

+

It bans option {{ic|-o}} and deprecates option {{ic|-C}}.

+

By default it uses the installed program named "mkisofs". You may let it choose one of the others by setting environment variable {{ic|MKISOFS}}

−

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

+

$ export MKISOFS="genisoimage"

+

$ export MKISOFS="xorrisofs"

−

=== Mounting an ISO image ===

+

The wish to begin with a new ISO filesystem on the optical medium is expressed by option {{ic|-Z}}

−

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

+

$ growisofs -Z /dev/sr0 -V "ARCHIVE_2013_07_27" -r -J ./for_iso

−

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

+

The wish to append more files as new session to an existing ISO filesystem is expressed by option {{ic|-M}}

−

You have to first load the loop module:

+

$ growisofs -M /dev/sr0 -V "ARCHIVE_2013_07_28" -r -J ./more_for_iso

−

# modprobe loop

+

For details see the [http://linux.die.net/man/1/growisofs growisofs manual] and the manuals of {{ic|genisoimage}}, {{ic|mkisofs}}, {{ic|xorrisofs}}.

−

See also [[Mounting images as user]] for doing this without root privileges.

+

==== Multi-session by xorriso ====

−

=== Converting to an ISO image ===

+

{{ic|xorriso}} learns the wish to begin with a new ISO filesystem from the blank state of the medium. So it is appropriate to blank it if it contains data. The command {{ic|-blank as_needed}} applies to all kinds of re-usable media and even to ISO images in data files on hard disk. It does not cause error if applied to a blank write-once medium.

−

To convert an {{ic|img}}/{{ic|ccd}} image, you can use {{Pkg|ccd2iso}}:

+

$ xorriso -outdev /dev/sr0 -blank as_needed \

+

-volid "ARCHIVE_2013_07_27" -joliet on -add ./for_iso --

−

$ ccd2iso ~/image.img ~/image.iso

+

On non-blank writable media xorriso appends the newly given disk files if command {{ic|-dev}} is used rather than {{ic|-outdev}}. Of course, no command {{ic|-blank}} should be given here

−

== DVD burning ==

+

$ xorriso -dev /dev/sr0 \

−

{{Merge|#CD burning|This section is candidate to be merged with [[#CD burning]] soon.|Talk:Optical_Disc_Drive#How_to_contribute_as_upstream_developer_.3F}}

+

-volid "ARCHIVE_2013_07_28" -joliet on -add ./more_for_iso --

−

Writing (or "burning") DVDs requires a different approach than burning CDs. DVDs offer much higher capacities, and the standard CD writing tools will not suffice.

+

For details see the [http://www.gnu.org/software/xorriso/man_1_xorriso.html manual page] and especially its [http://www.gnu.org/software/xorriso/man_1_xorriso.html#EXAMPLES examples]

−

This guide covers a narrow scope for now: writing data onto DVDs using the command line.

+

=== BD Defect Management ===

−

=== Required packages ===

+

BD-RE and formatted BD-R media are normally written with enabled Defect Management. This feature reads the written blocks while they are still stored in the drive buffer. In case of poor read quality the blocks get written again or redirected to the ''Spare Area'' where the data get stored in replacement blocks.

−

# You still need the standard CD writing tools known as {{Pkg|cdrtools}} (which can be replaced by {{Pkg|cdrkit}}, if desired).

+

This checkreading reduces write speed to at most half of the nominal speed of drive and BD medium. Sometimes it is even worse. Heavy use of the Spare Area causes long delays during read operations. So Defect Management is not always desirable.

−

# You also need the new DVD writing tools known as {{Pkg|dvd+rw-tools}} found in the [[Official Repositories|official repositories]].

−

{{Note|1= <br>

+

{{ic|cdrecord}} does not format BD-R. It has no means to prevent Defect Management on BD-RE media, though.

−

* Do not install the package known as {{Pkg|dvdrtools}}. It conflicts with {{Pkg|cdrtools}}, and {{Pkg|dvd+rw-tools}} is the superior DVD writing package.

−

* {{Pkg|cdrtools}} provides all the functionality of {{Pkg|dvd+rw-tools}}, as growisofs depends on mkisofs. Also the development of {{ic|dvd+rw-tools}} seems to be stalled for the past 5 years (the last release was in [http://fy.chalmers.se/~appro/linux/DVD+RW/tools/?M=D 2008])}}

−

{{Tip|If you wish to use a graphical front-end, install {{Pkg|k3b}} or {{Pkg|brasero}}, and you need to read no further.}}

+

{{ic|growisofs}} formats BD-R by default. This can be prevented by option {{ic|1= -use-the-force-luke=spare:none}}. It has no means to prevent Defect Management on BD-RE media, though.

This guide will use the command {{ic|growisofs}} from the {{Pkg|dvd+rw-tools}} package. If you have ever written CDs from the command line before, you will know the process of first creating an iso9660 file ({{ic|mkisofs}}), and then burning it to CD ({{ic|cdrecord}}). {{ic|growisofs}} merges these steps, so you do not need extra storage space for the ISO file anymore. Another advantage is that multisession writing has been simplified.

+

=== Burning an audio CD ===

−

{{Note|

+

Create your audio tracks and store them as uncompressed, 16-bit stereo WAV files. To convert MP3 to WAV, ensure {{Pkg|lame}} is installed, {{ic|cd}} to the directoy with your MP3 files, and run:

−

{{ic|growisofs}} has a small bug with blank BD-R media. It issues an error message after the burning is complete. Programs like {{ic|k3b}} then believe the whole burn run failed.

−

To prevent this, either

−

* format the blank BD-R by {{ic|dvd+rw-format /dev/cdrw}} before submitting it to growisofs

−

* or use growisofs option {{ic|1= -use-the-force-luke=spare:none}}

−

}}

−

==== Overview ====

+

$ for i in *.mp3; do lame --decode "$i" "$(basename "$i" .mp3)".wav; done

−

Essentially, writing a '''new''' DVD follows this procedure:

+

In case you get an error when trying to burn WAV files converted with lame try decoding with {{Pkg|mpg123}}:

; {{ic|-Z}}: as seen above, this starts a new DVD; to continue a multisession DVD, use {{ic|-M}}

−

; {{ic|-v}}: increase verbosity level (more output)

−

; {{ic|-l}}: breaks DOS compatibility but allows for longer filenames

−

; {{ic|-dry-run}}: simulate writing (remove this flag if you are sure that everything is set up correctly)

−

; {{ic|-iso-level 3}}: defines how strict you want to adhere to the iso9660 standard ({{ic|-iso-level 1}} is very strict while {{ic|-iso-level 4}} is very loose)

−

; {{ic|-R}}: see above

−

; {{ic|-J}}: see above

−

; {{ic|1=-speed=2}}: start burning at 2X speed

−

; {{ic|-joliet-long}}: allows longer Joliet file names

−

−

The final part needs more explanation:

−

−

-graft-points /files/=/path/to/files/

−

−

This specifies that files will be stored in the subdirectory {{ic|/files}} rather than the DVD root. See the {{ic|mkisofs}} manual for details.

−

−

{{Note|{{ic|growisofs}} is basically just a front-end to {{ic|mkisofs}}. That means that any option for {{ic|mkisofs}} also works with {{ic|growisofs}}. See the {{ic|mkisofs}} man page for details.}}

−

−

=== Re-writable DVDs ===

−

The process for burning re-writable discs is almost the same as for normal DVDs. However, keep in mind that virgin DVD+RW media needs to be initially formatted ("blanked") prior to usage. Blanking can be done using the program {{ic|dvd+rw-format}} like this:

+

=== Burn backend problems ===

−

$ dvd+rw-format /dev/cdrw

+

If you experience problems, you may ask for advise at mailing list [mailto:cdwrite@other.debian.org cdwrite@other.debian.org] . Or ask for advise at the support mail addresses if some are listed near the end of the program's man page.

You will possibly get asked to obtain the newest release or development version of the affected program and to make test runs. But the answer might as well be, that your drive dislikes the particular medium.

* {{App|[[Wikipedia:Brasero (software)|Brasero]]|Disc burning application for the GNOME desktop that is designed to be as simple as possible. Part of {{Grp|gnome-extra}}|http://projects.gnome.org/brasero/|{{Pkg|brasero}}}}

+

* {{App|[[Wikipedia:Brasero (software)|Brasero]]|Disc burning application for the GNOME desktop that is designed to be as simple as possible. Part of {{Grp|gnome-extra}}.|http://projects.gnome.org/brasero/|{{Pkg|brasero}}}}

* {{App|Xfburn|Simple frontend to the libburnia libraries with support for CD/DVD(-RW), ISO images and BurnFree|http://goodies.xfce.org/projects/applications/xfburn|{{Pkg|xfburn}}}}

+

* {{App|Xfburn|Simple frontend to the libburnia libraries with support for CD/DVD(-RW), ISO images and BurnFree.|http://goodies.xfce.org/projects/applications/xfburn|{{Pkg|xfburn}}}}

−

=== Nero Linux ===

+

==== 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...

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...

Some updates ago the sg module was not auto loaded any more and Nero needs it.}}

+

Some updates ago the {{ic|sg}} module was not auto loaded any more and Nero needs it.}}

== DVD playing ==

== DVD playing ==

[[Wikipedia:DVD|DVD]], also known as Digital Versatile Disc or Digital Video Disc, is an optical disc storage media format used for video and data storage.

[[Wikipedia:DVD|DVD]], also known as Digital Versatile Disc or Digital Video Disc, is an optical disc storage media format used for video and data storage.

−

−

=== Requirements===

If you wish to play encrypted DVDs, you must install the libdvd* packages:

If you wish to play encrypted DVDs, you must install the libdvd* packages:

−

* {{Pkg|libdvdread}}

* {{Pkg|libdvdread}}

* {{Pkg|libdvdcss}}

* {{Pkg|libdvdcss}}

* {{Pkg|libdvdnav}}

* {{Pkg|libdvdnav}}

−

Additionally, you must install player software. Popular DVD players are [[MPlayer]], [[Wikipedia:Xine|xine]] and [[Wikipedia:VLC|VLC]].

+

Additionally, you must install player software. Popular DVD players are [[MPlayer]], [[Wikipedia:Xine|xine]] and [[VLC]]. See the [[List_of_Applications/Multimedia#Video_players|video players]] list and the specific instructions for [[MPlayer#DVD playing|MPlayer]].

−

{{Tip|Users may need to belong to the {{ic|optical}} [[Users and Groups|group]] to be able to access the DVD drive. To add {{ic|USERNAME}} to the {{ic|optical}} group, run the following:

{{Tip|Users may need to belong to the {{ic|optical}} [[Users and Groups|group]] to be able to access the DVD drive. To add {{ic|USERNAME}} to the {{ic|optical}} group, run the following:

# gpasswd -a USERNAME optical

# gpasswd -a USERNAME optical

Do not forget to log the user out and back in for the changes to take effect. You can see your user's current groups with {{ic|groups}} command.}}

Do not forget to log the user out and back in for the changes to take effect. You can see your user's current groups with {{ic|groups}} command.}}

[[MPlayer]] is efficient and supports a wide variety of media formats (i.e. almost everything). To play a DVD with MPlayer:

−

−

$ mplayer dvd://N

−

−

...where {{ic|N}} is the desired chapter number. Start at 1 and work up if unsure.

−

−

Mplayer checks {{ic|/dev/dvd}} by default. Tell it to use {{ic|/dev/sr0}} with the {{ic|dvd-device}} option at the command line, or the {{ic|dvd-device}} variable in {{ic|~/.mplayer/config}}.

−

−

To play a DVD image file:

−

−

$ mplayer -dvd-device movie.iso dvd://N

−

−

To enable the DVD menu use (NOTE: you use arrow keys to navigate and the {{Keypress|Enter}} key to choose):

−

−

$ mplayer dvdnav://

−

−

To enable mouse support in DVD menus use:

−

−

$ mplayer -mouse-movements dvdnav://

−

−

To find the audio language, start MPlayer with the {{ic|-v}} switch to output audio IDs. An audio track is selected with {{ic|-aid <audio_id>}}. Set a default audio language by editing {{ic|~/.mplayer/config}} and adding the line {{ic|1=alang=en}} for English.

−

−

With MPlayer, the DVD could be set to a low volume. To increase the maximum volume to 400%, use {{ic|1=softvol=yes}} and {{ic|1=softvol-max=400}}. The startup volume defaults to 100% of software volume and the global mixer levels will remain untouched. Using the 9 and 0 keys, volume can be adjusted between 0 and 400 percent.

−

−

alang=en

−

softvol=yes

−

softvol-max=400

−

−

[http://www.mplayerhq.hu/ MPlayer home page]

−

−

==== VLC ====

−

−

{{Pkg|vlc}} is a portable, capable, open source media player written in Qt ([http://www.videolan.org/vlc VLC home page]).

−

−

===== Default in GNOME =====

−

−

Copy the system desktop file to the local one (local .desktop files supersede the global ones):

Some utilities perform both tasks, whilst others focus on one aspect or the other.

+

Some utilities perform both tasks, whilst others focus on one aspect or the other:

−

=== dvdbackup ===

+

* {{App|dvd-vr|Tool which easily converts VRO files extracted from a [[Wikipedia:DVD-VR|DVD-VR]] and splits them in regular VOB files.|http://www.pixelbeat.org/programs/dvd-vr/|{{AUR|dvd-vr}}}}

−

+

* {{App|[[dvdbackup]]|Tool for pure data extraction which does not transcode. It is useful for creating ''exact'' copies of encrypted DVDs in conjunction with '''libdvdcss''' or for decrypting video for other utilities unable to read encrypted DVDs.|http://dvdbackup.sourceforge.net/|{{Pkg|dvdbackup}}}}

−

[[dvdbackup]] is used simply for data extraction, and does not transcode. This tool is useful for creating ''exact'' copies of encrypted DVDs in conjunction with {{Pkg|libdvdcss}} or for decrypting video for other utilities unable to read encrypted DVDs.

+

* {{App|[[FFmpeg]]|Complete and free Internet live audio and video broadcasting solution for Linux/Unix, capable to do a direct rip in any format (audio/video) from a DVD-Video ISO image, just select the input as the ISO image and proceed with the desired options. It also allows to downmixing, shrinking, spliting, selecting streams among other features.|http://ffmpeg.org/|See [[FFmpeg#Package_installation|article]]}}

+

* {{App|HandBrake|Multithreaded video transcoder, which offers both a graphical and command-line interface with many preset configurations.|http://handbrake.fr/|{{Pkg|handbrake}}}}

+

* {{App|Hybrid|Multi platform Qt based frontend for a bunch of other tools which can convert nearly every input to x264/Xvid/VP8 + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.|http://www.selur.de/|{{AUR|hybrid-encoder}}}}

+

* {{App|[[MEncoder]]|Free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs. Wrapper programs like {{AUR|h264enc}} and {{AUR|undvd}} can provide an assistive interface. Many [[MEncoder#GUI frontends|front-ends]] are available.|http://www.mplayerhq.hu/|{{Pkg|mencoder}}}}

+

* {{App|Transcode|Video/DVD ripper and encoder for the terminal/console.|http://tcforge.berlios.de/|{{Pkg|transcode}}}}

=== dvd::rip ===

=== dvd::rip ===

Line 500:

Line 451:

Ripping a DVD is often a simple matter of selecting the preferred codec(s), selecting the desired titles, then clicking the "Rip" button.

Ripping a DVD is often a simple matter of selecting the preferred codec(s), selecting the desired titles, then clicking the "Rip" button.

−

−

=== FFmpeg ===

−

−

[[FFmpeg]] is capable to do a direct rip in any format (audio/video) from a DVD-Video .iso image, just select the input as the *.iso image and proceed with the desired options. It also allows to downmixing, shrinking, spliting, selecting streams among other features.

−

−

=== HandBrake ===

−

−

HandBrake is a multithreaded video transcoder, which offers both a graphical and command-line interface with many preset configurations. The package is available in the [[official repositories]]: {{Pkg|handbrake}}.

−

−

=== MEncoder ===

−

−

[[MEncoder]] is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs. Wrapper programs like {{AUR|h264enc}} and {{AUR|undvd}} can provide an assistive interface.

−

−

=== Hybrid ===

−

−

Hybrid is a multi platform (Linux/Mac OS X/Windows) Qt based frontend for a bunch of other tools which can convert nearly every input to x264/Xvid/VP8 + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.

:''The DVD-VR standard defines a logical format for video recording on DVD-R, DVD-RW, and DVD-RAM style media, including the dual layer versions of these media. As opposed to media recorded with the DVD+VR recording standard, the resulting media are not DVD-Video compliant, and will not play back in some DVD-Video players. Most DVD video recorders in the market that support DVD-R, DVD-RW, or DVD-RAM media will allow recording to these media in DVD-VR mode, as well as in a DVD-Video compliant mode. It is possible to use the DVD-VR format with DVD+R and DVD+RW media, but no examples are known other than some PC based recording utilities.''

−

−

.VRO files extracted from a DVD-VR can be easily converted and splitted in regular .VOB files using the [http://www.pixelbeat.org/programs/dvd-vr/ DVD-VR] program.

−

−

Install {{AUR|dvd-vr}} from the [[AUR]].

== Troubleshooting ==

== Troubleshooting ==

Line 558:

Line 480:

* Re-generate the profiles with {{ic|locale-gen}}:

* Re-generate the profiles with {{ic|locale-gen}}:

{{hc|# locale-gen|

{{hc|# locale-gen|

−

Generating locales...

+

Generating locales...

−

en_US.UTF-8... done

+

en_US.UTF-8... done

−

en_US.ISO-8859-1... done

+

en_US.ISO-8859-1... done

−

pt_BR.UTF-8... done

+

pt_BR.UTF-8... done

−

pt_BR.ISO-8859-1... done

+

pt_BR.ISO-8859-1... done

−

Generation complete.

+

Generation complete.

}}

}}

Line 571:

Line 493:

Brasero uses {{Pkg|gvfs}} to manage CD/DVD burning devices.

Brasero uses {{Pkg|gvfs}} to manage CD/DVD burning devices.

+

+

You also need to run {{ic|dbus-launch}} prior to running Brasero and then run Brasero using {{ic|dbus-launch}}:

+

+

$ dbus-launch

+

$ dbus-launch brasero

=== Brasero fails to normalize audio CD ===

=== Brasero fails to normalize audio CD ===

Line 580:

Line 507:

=== VLC: Error "... could not open the disc /dev/dvd" ===

=== VLC: Error "... could not open the disc /dev/dvd" ===

−

If you get the error, "'''vlc dvdread could not open the disc "/dev/dvd"'''" it may be because there is no device node {{ic|/dev/dvd}} on your system. Udev no longer creates {{ic|/dev/dvd}} and instead uses {{ic|/dev/sr0}}. To fix this edit the VLC configuration file ({{ic|~/.config/vlc/vlcrc}}):

+

If you get the error, "vlc dvdread could not open the disc "/dev/dvd"" it may be because there is no device node {{ic|/dev/dvd}} on your system. Udev no longer creates {{ic|/dev/dvd}} and instead uses {{ic|/dev/sr0}}. To fix this edit the VLC configuration file ({{ic|~/.config/vlc/vlcrc}}):

−

{{bc|1=# DVD device (string)

+

# DVD device (string)

−

dvd=/dev/sr0}}

+

dvd=/dev/sr0

−

===DVD drive is noisy===

+

=== DVD drive is noisy ===

If playing DVD videos causes the system to be very loud, it may be because the disk is spinning faster than it needs to. To temporarily change the speed of the drive, as root, run:

If playing DVD videos causes the system to be very loud, it may be because the disk is spinning faster than it needs to. To temporarily change the speed of the drive, as root, run:

If playback does not work and you have a new computer (new DVD-Drive) the reason might be that the [[Wikipedia:DVD region code|region code]] is not set. You can read and set the region code with {{AUR|regionset}} from the [[Arch User Repository]].

+

If playback does not work and you have a new computer (new DVD-Drive) the reason might be that the [[Wikipedia:DVD region code|region code]] is not set. You can read and set the region code with {{AUR|regionset}} from the [[AUR]].

=== None of the above programs are able to rip/encode a DVD to my hard disk! ===

=== None of the above programs are able to rip/encode a DVD to my hard disk! ===

Make sure the region of your DVD-reader is set correctly, otherwise you will get loads of unexplainable CSS-related errors. Use {{AUR|regionset}} to do so.

Make sure the region of your DVD-reader is set correctly, otherwise you will get loads of unexplainable CSS-related errors. Use {{AUR|regionset}} to do so.

+

+

=== GUI program log indicates problems with backend program ===

+

+

If you use a GUI program and experience problems which the program's log blames on some backend program, then try to reproduce the problem by the logged backend program arguments.

+

Whether you succeed with reproducing or not, you may report the logged lines and your own findings to the places mentioned in [[#Burn_Backend_Problems|section Burn Backend Problems]].

+

+

==== Special case: medium error / write error ====

+

+

Here are some typical messages about the drive disliking the medium. This can only be solved by using a different drive or a different medium. A different program will hardly help.

In computing, an optical disc drive (ODD) is a disk drive that uses laser light or electromagnetic waves within or near the visible light spectrum as part of the process of reading or writing data to or from optical discs. Some drives can only read from discs, but recent drives are commonly both readers and recorders, also called burners or writers. Compact discs, DVDs, and Blu-ray discs are common types of optical media which can be read and recorded by such drives. Optical drive is the generic name; drives are usually described as "CD" "DVD", or "Blu-ray", followed by "drive", "writer", etc.

Burning

The burning process of optical disc drives consists of creating or obtaining an image and writing it to an optical medium. The image may in principle be any data file. If you want to mount the resulting medium, then it is usually an ISO 9660 filesystem image file. Audio and multi-media CDs are often burned from a BIN file, under control of a TOC file or a CUE file which tell the desired track layout.

Install burning utilities

The programs listed here are the back ends which are used by most free GUI programs for CD, DVD, and BD. They are command line oriented. GUI users might get to them when it comes to troubleshooting or to scripting of burn activities.

You need at least one program for creation of filesystem images and one program that is able to burn data onto your desired media type.

Enables the recognition of pathspecs which consist of a target address in the ISO filesystem (e.g. /photos) and a source address on hard disk (e.g. /home/user/photos). Both are separated by a = character.

So this example puts the disk directory /home/user/photos, /home/user/mail and /home/user/holidays/photos, respectively in the ISO image as /photos, /mail and /photos/holidays.

Programs mkisofs and xorrisofs accept the same options. For secure backups consider to use xorrisofs with option --for_backup, which records eventual ACLs and stores an MD5 checksum for each data file.

Converting img/ccd to an ISO image

Learning the name of your optical drive

For the remainder of this section the name of your recording device is assumed to be /dev/sr0.

Check this by

$ wodim dev=/dev/sr0 -checkdrive

which should report "Vendor_info" and "Identification" of the drive.

If no drive is found, check whether any /dev/sr* exist and whether they offer read/write permission (wr-) to you or your group.
If no /dev/sr* exists then try

# modprobe sr_mod

Reading an ISO image from a CD, DVD, or BD

You should determine the size of the ISO filesystem before copying it to hard disk. Most media types deliver more data than was written to them with the most recent burn run.

Use program isosize out of package util-linux to obtain the image size

$ blocks=$(expr $(isosize /dev/sr0) / 2048)

Have a look whether the obtained number of blocks is plausible

$ echo "That would be $(expr $blocks / 512) MB"

That would be 589 MB

Then copy the determined amount of data from medium to hard disk :

$ dd if=/dev/sr0 of=isoimage.iso bs=2048 count=$blocks

Omit count=$blocks if you did not determine the size. You will probably get more data than needed. The resulting file will nevertheless be mountable. It should still fit onto a medium of the same type as the medium from which the image was copied.

If the original medium was bootable, then the copy will be a bootable image. You may use it as pseudo CD for a virtual machine or burn it onto optical media which should then become bootable.

Erasing CD-RW and DVD-RW

Used CD-RW media need to be erased before you can write over the previously recorded data. This is done by

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

Unformatted DVD-RW media need the same treatment before re-use. But fast blanking deprives them of the capability for multi-session and recording of streams of unpredicted length. So one should apply

$ dvd+rw-format -blank=full /dev/sr0

dvd+rw-format is part of package dvd+rw-tools. Alternative commands are

All other media are either write-once (CD-R, DVD-R, DVD+R, BD-R) or are overwritable without the need for erasing (DVD-RAM, DVD+RW, BD-RE).

Burning an ISO image to CD, DVD, or BD

To burn a readily prepared ISO image file isoimage.iso onto an optical medium, run for CD:

$ wodim -v -sao dev=/dev/sr0 isoimage.iso

and for DVD or BD:

$ growisofs -dvd-compat -Z /dev/sr0=isoimage.iso

The programs cdrecord, cdrskin, and xorrecord may be used on all kinds of media with the options shown with wodim.

Note:

Make sure that the medium is not mounted when you begin to write to it. Mounting may happen automatically if the medium contains a readable filesystem. In best case it will prevent the burn programs from using the burner device. In worst case there will be misburns because read operations disturbed the drive.

So if in doubt, do:

# umount /dev/sr0

growisofs has a small bug with blank BD-R media. It issues an error message after the burning is complete. Programs like k3b then believe the whole burn run failed.

To prevent this, either

format the blank BD-R by dvd+rw-format /dev/sr0 before submitting it to growisofs

or use growisofs option -use-the-force-luke=spare:none

Verifying the burnt ISO image

You can verify the integrity of the burnt medium to make sure it contains no errors. Always eject the medium and reinsert it before verifying. The kernel will learn about the new content only by that reinsertion.

First calculate the md5sum of the original ISO image:

$ md5sum isoimage.iso

e5643e18e05f5646046bb2e4236986d8 isoimage.iso

Next calculate the md5sum of the ISO filesystem on the medium.
Although some media types deliver exactly the same amount of data as have been submitted to the burn program, many others append trailing garbage when being read. So you should restrict reading to the size of the ISO image file.

Both runs should yield the same MD5 sum (here: e5643e18e05f5646046bb2e4236986d8). If they do not, you will propbably also get an i/o error message from the dd run. dmesg might then tell about SCSI errors and block numbers, if you are interested.

ISO 9660 and Burning On-The-Fly

It is not necessary to store an emerging ISO filesystem on hard disk before writing it to optical media. Only very old CD drives at very old computers could suffer misburns due to empty drive buffer.

If you omit option -o from genisoimage then it writes the ISO image to standard output. This can be piped into the standard input of burn programs.

Option -waiti is not really needed here. It prevents wodim from writing to the medium before genisoimage starts its output. This would allow genisoimage to read the medium without disturbing an already started burn run. See next section about multi-session.

On DVD and BD you may letgrowisofs operate genisoimage for you and burn its output on-the-fly

Multi-session

ISO 9660 multi-session means that a medium with readable filesystem is still writable at its first unused block address, and that a new ISO directory tree gets written to this unused part.
The new tree is accompanied by the content blocks of newly added or overwritten data files. The blocks of data files, which shall stay as in the old ISO tree, will not be written again.

Linux and many other operating systems will mount the directory tree in the last session on the medium. This youngest tree will normally show the files of the older sessions, too.

Multi-session by wodim

CD-R and CD-RW stay writable (aka "appendable") if wodim option -multi was used

$ wodim -v -multi dev=/dev/sr0 isoimage.iso

Then the medium can be inquired for the parameters of the next session

$ m=$(wodim dev=/dev/sr0 -msinfo)

By help of these parameters and of the readable medium in the drive you can produce the add-on ISO session

Programs cdrskin and xorrecord do this too with DVD-R, DVD+R, BD-R and unformatted DVD-RW. Program cdrecord does multi-session with at least DVD-R and DVD-RW. They all do with CD-R and CD-RW, of course.

Most re-usable media types do not record a session history that would be recognizable for a mounting kernel. But with ISO 9660 it is possible to achieve the multi-session effect even on those media.

growisofs and xorriso can do this and hide most of the complexity.

Multi-session by growisofs

growisofs forwards most of its program arguments to a program that is compatible to mkisofs. See above examples of genisoimage.
It bans option -o and deprecates option -C.
By default it uses the installed program named "mkisofs". You may let it choose one of the others by setting environment variable MKISOFS

$ export MKISOFS="genisoimage"
$ export MKISOFS="xorrisofs"

The wish to begin with a new ISO filesystem on the optical medium is expressed by option -Z

$ growisofs -Z /dev/sr0 -V "ARCHIVE_2013_07_27" -r -J ./for_iso

The wish to append more files as new session to an existing ISO filesystem is expressed by option -M

$ growisofs -M /dev/sr0 -V "ARCHIVE_2013_07_28" -r -J ./more_for_iso

For details see the growisofs manual and the manuals of genisoimage, mkisofs, xorrisofs.

Multi-session by xorriso

xorriso learns the wish to begin with a new ISO filesystem from the blank state of the medium. So it is appropriate to blank it if it contains data. The command -blank as_needed applies to all kinds of re-usable media and even to ISO images in data files on hard disk. It does not cause error if applied to a blank write-once medium.

BD Defect Management

BD-RE and formatted BD-R media are normally written with enabled Defect Management. This feature reads the written blocks while they are still stored in the drive buffer. In case of poor read quality the blocks get written again or redirected to the Spare Area where the data get stored in replacement blocks.

This checkreading reduces write speed to at most half of the nominal speed of drive and BD medium. Sometimes it is even worse. Heavy use of the Spare Area causes long delays during read operations. So Defect Management is not always desirable.

cdrecord does not format BD-R. It has no means to prevent Defect Management on BD-RE media, though.

growisofs formats BD-R by default. This can be prevented by option -use-the-force-luke=spare:none. It has no means to prevent Defect Management on BD-RE media, though.

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 simulate burning the wav files as an audio CD:

$ wodim -dummy -v -pad speed=1 dev=/dev/sr0 -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.
If anything worked you can remove the dummy flag to really burn the CD

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

$ toc2cue IMAGE.toc IMAGE.cue

Burn backend problems

If you experience problems, you may ask for advise at mailing list cdwrite@other.debian.org . Or ask for advise at the support mail addresses if some are listed near the end of the program's man page.

Tell the command lines you tried, the medium type (e.g. CD-R, DVD+RW, ...), and the symptoms of failure (program messages, disappointed user expectation, ...).
You will possibly get asked to obtain the newest release or development version of the affected program and to make test runs. But the answer might as well be, that your drive dislikes the particular medium.

Burning CD/DVD/BD with a GUI

Template:Wikipedia
There are several applications available to burn CDs in a graphical environment.

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...

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

dvdbackup — Tool for pure data extraction which does not transcode. It is useful for creating exact copies of encrypted DVDs in conjunction with libdvdcss or for decrypting video for other utilities unable to read encrypted DVDs.

FFmpeg — Complete and free Internet live audio and video broadcasting solution for Linux/Unix, capable to do a direct rip in any format (audio/video) from a DVD-Video ISO image, just select the input as the ISO image and proceed with the desired options. It also allows to downmixing, shrinking, spliting, selecting streams among other features.

Hybrid — Multi platform Qt based frontend for a bunch of other tools which can convert nearly every input to x264/Xvid/VP8 + ac3/ogg/mp3/aac/flac inside an mp4/m2ts/mkv/webm/mov/avi container, a Blu-ray or an AVCHD structure.

MEncoder — Free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs. Wrapper programs like h264encAUR and undvdAUR can provide an assistive interface. Many front-ends are available.

Ripping a DVD is often a simple matter of selecting the preferred codec(s), selecting the desired titles, then clicking the "Rip" button.

Troubleshooting

K3b locale error

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.

Brasero fails to find blank discs

You also need to run dbus-launch prior to running Brasero and then run Brasero using dbus-launch:

$ dbus-launch
$ dbus-launch brasero

Brasero fails to normalize audio CD

If you try to burn it may stop at the first step called Normalization.

As a workaround you can disable the normalization plugin using the Edit > Plugins menu

VLC: Error "... could not open the disc /dev/dvd"

If you get the error, "vlc dvdread could not open the disc "/dev/dvd"" it may be because there is no device node /dev/dvd on your system. Udev no longer creates /dev/dvd and instead uses /dev/sr0. To fix this edit the VLC configuration file (~/.config/vlc/vlcrc):

# DVD device (string)
dvd=/dev/sr0

DVD drive is noisy

If playing DVD videos causes the system to be very loud, it may be because the disk is spinning faster than it needs to. To temporarily change the speed of the drive, as root, run:

# eject -x 12 /dev/dvd

Sometimes:

# hdparm -E12 /dev/dvd

Any speed that is supported by the drive can be used, or 0 for the maximum speed.

Playback does not work with new computer (new DVD-Drive)

If playback does not work and you have a new computer (new DVD-Drive) the reason might be that the region code is not set. You can read and set the region code with regionsetAUR from the AUR.

None of the above programs are able to rip/encode a DVD to my hard disk!

Make sure the region of your DVD-reader is set correctly, otherwise you will get loads of unexplainable CSS-related errors. Use regionsetAUR to do so.

GUI program log indicates problems with backend program

If you use a GUI program and experience problems which the program's log blames on some backend program, then try to reproduce the problem by the logged backend program arguments.
Whether you succeed with reproducing or not, you may report the logged lines and your own findings to the places mentioned in section Burn Backend Problems.

Special case: medium error / write error

Here are some typical messages about the drive disliking the medium. This can only be solved by using a different drive or a different medium. A different program will hardly help.