Difference between revisions of "DVD Burning"

From ArchWiki
Jump to: navigation, search
m (Permission denied)
(No longer required with systemd-logind and 70-uaccess.rules)
(30 intermediate revisions by 16 users not shown)
Line 1: Line 1:
[[Category:Utilities (English)]]
+
[[Category:Optical]]
[[Category:HOWTOs (English)]]
+
[[es:DVD Burning]]
<!-- {{i18n|DVD Writing}} -->
+
 
{{Article summary start}}
 
{{Article summary start}}
 
{{Article summary text|An overview of DVD writing tools and methods.}}
 
{{Article summary text|An overview of DVD writing tools and methods.}}
Line 7: Line 6:
 
{{Article summary wiki|DVD Playing}}
 
{{Article summary wiki|DVD Playing}}
 
{{Article summary wiki|DVD Ripping}}
 
{{Article summary wiki|DVD Ripping}}
{{Article summary wiki|DVD Writing}}
+
{{Article summary wiki|DVD Burning}}
 
{{Article summary heading|Related articles}}
 
{{Article summary heading|Related articles}}
 
{{Article summary wiki|CD Burning Tips}}
 
{{Article summary wiki|CD Burning Tips}}
 +
{{Article summary wiki|Video2dvdiso}}
 
{{Article summary end}}
 
{{Article summary end}}
  
Line 17: Line 17:
  
 
==Required packages==
 
==Required packages==
# You still need the standard CD writing tools known as {{Package AUR|cdrtools}} (which can be replaced by {{Package Official|cdrkit}}, if desired).
+
# You still need the standard CD writing tools known as {{Pkg|cdrtools}} (which can be replaced by {{Pkg|cdrkit}}, if desired).
# You also need the new DVD writing tools known as [http://www.archlinux.org/packages/extra/i686/dvd+rw-tools/ <tt>dvd+rw-tools</tt>], found in the [extra] repository.
+
# You also need the new DVD writing tools known as {{Pkg|dvd+rw-tools}} found in the [[Official Repositories|official repositories]].
  
{{Note|Do not install the package known as {{Package Official|dvdrtools}}. It conflicts with {{Package AUR|cdrtools}}, and [http://www.archlinux.org/packages/extra/i686/dvd+rw-tools/ <tt>dvd+rw-tools</tt>] is the superior DVD writing package.}}
+
{{Note|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.}}
  
{{Tip|If you wish to use a graphical front-end, install {{Package Official|k3b}} or {{Package Official|brasero}} and you need to read no further.}}
+
{{Note|1={{Pkg|cdrtools}} provides all the functionality of {{Pkg|dvd+rw-tools}}, as growisofs depends on mkisofs. Also the development of 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.}}
  
 
==Procedure==
 
==Procedure==
This HOWTO will use the command {{Codeline|growisofs}} from the [http://www.archlinux.org/packages/extra/i686/dvd+rw-tools/ <tt>dvd+rw-tools</tt>] package. If you've ever written CDs from the command line before, you'll know the process of first creating an iso9660 file ({{Codeline|mkisofs}}), and then burning it to CD ({{Codeline|cdrecord}}). {{Codeline|growisofs}} merges these steps, so you don't need extra storage space for the ISO file anymore. Another advantage is that multisession writing has been simplified.
+
This HOWTO 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.
  
 
===Overview===
 
===Overview===
Line 31: Line 33:
 
  $ growisofs -Z /dev/cdrw -r -J /path/to/files
 
  $ growisofs -Z /dev/cdrw -r -J /path/to/files
  
where {{Filename|/dev/cdrw}} is your DVD writer device.
+
where {{ic|/dev/cdrw}} is your DVD writer device.
  
To '''continue''' a DVD (write an additional session) you use:
+
To '''continue''' a DVD (write an additional session), you use:
 
  $ growisofs -M /dev/cdrw -r -J /path/to/files
 
  $ growisofs -M /dev/cdrw -r -J /path/to/files
  
To burn an ISO '''image''' to disc use:
+
To burn an ISO '''image''' to disc, use:
  $ growisofs -Z /dev/cdrw=/path/to/iso
+
  $ growisofs -dvd-compat -Z /dev/cdrw=/path/to/iso
  
; {{Codeline|-Z}}: start at the beginning of the DVD using the following device
+
To create a video DVD, use the following (NOTE: rather than using {{ic|/dev/srN}} directly, consider {{ic|/dev/dvdN}} or even just plain {{ic|/dev/dvd}}):
; {{Codeline|-M}}: start after the last session on the disc using the following device
+
$ growisofs -Z /dev/sr0 -dvd-video /path/to/video
; {{Codeline|-r}}: [[Wikipedia:Rock Ridge|Rock Ridge]] support with sane permission settings (recommended, extended UNIX info)
+
; {{Codeline|-J}}: [[Wikipedia:Joliet (file system)|Joliet]] support (recommended, extended info for Windows NT and Windows 95)
+
  
{{Note|{{Codeline|-r}} will choose different permissions than the real ones; to use the exact permissions use {{Codeline|-R}} instead. See the man page of {{Codeline|mkisofs}} for more information.}}
+
; {{ic|-Z}}: start at the beginning of the DVD using the following device
 +
; {{ic|-M}}: start after the last session on the disc using the following device
 +
; {{ic|-r}}: [[Wikipedia:Rock Ridge|Rock Ridge]] support with sane permission settings (recommended, extended Unix info)
 +
; {{ic|-J}}: [[Wikipedia:Joliet (file system)|Joliet]] support (recommended, extended info for Windows NT and Windows 95)
  
{{Tip|1=If you want to copy an existing DVD, one way that works is to make an ISO using {{Codeline|readcd}}:
+
{{Note|{{ic|-r}} will choose different permissions than the real ones; to use the exact permissions use {{ic|-R}} instead. See the man page of {{ic|mkisofs}} for more information.}}
 +
 
 +
{{Tip|1=If you want to copy an existing DVD, one way that works is to make an ISO using {{ic|readcd}}:
 
  $ readcd -v dev=/dev/cdrw -f image.iso
 
  $ readcd -v dev=/dev/cdrw -f image.iso
  
as per [[CD Burning Tips]], then use the {{Codeline|growisofs}} example above to burn the ISO to a new blank disc.}}
+
as per [[CD Burning Tips]], then use the {{ic|growisofs}} example above to burn the ISO to a new blank disc.}}
  
 
===Example===
 
===Example===
Line 58: Line 63:
 
  $ growisofs -Z /dev/cdrw -v -l -dry-run -iso-level 3 -R -J -speed=2 -joliet-long -graft-points /files/=/path/to/files/
 
  $ growisofs -Z /dev/cdrw -v -l -dry-run -iso-level 3 -R -J -speed=2 -joliet-long -graft-points /files/=/path/to/files/
  
; {{Codeline|-Z}}: as seen above, this starts a new DVD; to continue a multisession DVD, use {{Codeline|-M}}
+
; {{ic|-Z}}: as seen above, this starts a new DVD; to continue a multisession DVD, use {{ic|-M}}
; {{Codeline|-v}}: increase verbosity level (more output)
+
; {{ic|-v}}: increase verbosity level (more output)
; {{Codeline|-l}}: breaks DOS compatibility but allows for longer filenames
+
; {{ic|-l}}: breaks DOS compatibility but allows for longer filenames
; {{Codeline|-dry-run}}: simulate writing (remove this flag if you are sure that everything is set up correctly)
+
; {{ic|-dry-run}}: simulate writing (remove this flag if you are sure that everything is set up correctly)
; {{Codeline|-iso-level 3}}: defines how strict you want to adhere to the iso9660 standard ({{Codeline|-iso-level 1}} is very strict while {{Codeline|-iso-level 4}} is very loose)
+
; {{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)
; {{Codeline|-R}}: see above
+
; {{ic|-R}}: see above
; {{Codeline|-J}}: see above
+
; {{ic|-J}}: see above
; {{Codeline|1=-speed=2}}: start burning at 2X speed
+
; {{ic|1=-speed=2}}: start burning at 2X speed
; {{Codeline|-joliet-long}}: allows longer Joliet file names
+
; {{ic|-joliet-long}}: allows longer Joliet file names
  
 
The final part needs more explanation:
 
The final part needs more explanation:
 
  -graft-points /files/=/path/to/files/
 
  -graft-points /files/=/path/to/files/
  
This specifies that files will be stored in the subdirectory {{Filename|/files}} rather than the DVD root. See the {{Codeline|mkisofs}} manual for details.
+
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|{{Codeline|growisofs}} is basically just a front-end to {{Codeline|mkisofs}}. That means that any option for {{Codeline|mkisofs}} also works with {{Codeline|growisofs}}. See the {{Codeline|mkisofs}} man page 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==
 
==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 {{Codeline|dvd+rw-format}} like this:
+
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:
 
  $ dvd+rw-format /dev/cdrw
 
  $ dvd+rw-format /dev/cdrw
  
where {{Filename|/dev/cdrw}} is your DVD writer device.
+
where {{ic|/dev/cdrw}} is your DVD writer device.
 
+
==Troubleshooting==
+
 
+
===Permission denied===
+
 
+
If you encounter the a permission error, ensure you are a member of the [[Groups|group]] "optical":
+
# usermod -aG optical username
+
 
+
after which you will have to logoff and -on.
+
 
+
{{Note|{{Codeline|growisofs}} will not run via sudo.}}
+

Revision as of 14:48, 4 March 2013

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

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.

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

Required packages

  1. You still need the standard CD writing tools known as cdrtools (which can be replaced by cdrkit, if desired).
  2. You also need the new DVD writing tools known as dvd+rw-tools found in the official repositories.
Note: Do not install the package known as dvdrtools. It conflicts with cdrtools, and dvd+rw-tools is the superior DVD writing package.
Note: cdrtools provides all the functionality of dvd+rw-tools, as growisofs depends on mkisofs. Also the development of dvd+rw-tools seems to be stalled for the past 5 years (the last release was in 2008)
Tip: If you wish to use a graphical front-end, install k3b or brasero, and you need to read no further.

Procedure

This HOWTO will use the command growisofs from the 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 (mkisofs), and then burning it to CD (cdrecord). 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.

Overview

Essentially, writing a new DVD follows this procedure:

$ growisofs -Z /dev/cdrw -r -J /path/to/files

where /dev/cdrw is your DVD writer device.

To continue a DVD (write an additional session), you use:

$ growisofs -M /dev/cdrw -r -J /path/to/files

To burn an ISO image to disc, use:

$ growisofs -dvd-compat -Z /dev/cdrw=/path/to/iso

To create a video DVD, use the following (NOTE: rather than using /dev/srN directly, consider /dev/dvdN or even just plain /dev/dvd):

$ growisofs -Z /dev/sr0 -dvd-video /path/to/video
-Z
start at the beginning of the DVD using the following device
-M
start after the last session on the disc using the following device
-r
Rock Ridge support with sane permission settings (recommended, extended Unix info)
-J
Joliet support (recommended, extended info for Windows NT and Windows 95)
Note: -r will choose different permissions than the real ones; to use the exact permissions use -R instead. See the man page of mkisofs for more information.
Tip: If you want to copy an existing DVD, one way that works is to make an ISO using readcd:
$ readcd -v dev=/dev/cdrw -f image.iso
as per CD Burning Tips, then use the growisofs example above to burn the ISO to a new blank disc.

Example

Although the above might suffice for you, some users require extra settings to successfully write DVDs.

A simple DVD writing template:

$ growisofs -Z /dev/cdrw -v -l -dry-run -iso-level 3 -R -J -speed=2 -joliet-long -graft-points /files/=/path/to/files/
-Z
as seen above, this starts a new DVD; to continue a multisession DVD, use -M
-v
increase verbosity level (more output)
-l
breaks DOS compatibility but allows for longer filenames
-dry-run
simulate writing (remove this flag if you are sure that everything is set up correctly)
-iso-level 3
defines how strict you want to adhere to the iso9660 standard (-iso-level 1 is very strict while -iso-level 4 is very loose)
-R
see above
-J
see above
-speed=2
start burning at 2X speed
-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 /files rather than the DVD root. See the mkisofs manual for details.

Note: growisofs is basically just a front-end to mkisofs. That means that any option for mkisofs also works with growisofs. See the 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 dvd+rw-format like this:

$ dvd+rw-format /dev/cdrw

where /dev/cdrw is your DVD writer device.