个人工具

“UbuntuHelp:CdDvdBurning”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第3行: 第3行:
  
 
== Burning CDs, DVDs, and Blu-Ray discs ==
 
== Burning CDs, DVDs, and Blu-Ray discs ==
 +
 +
There are several ways to burn CDs and DVDs. In this tutorial, we will cover the default burning software provided with Ubuntu as well as command line burning. There are also alternative burning programs that you may want to consider such as xcdroast or k3b.
  
 
=== Burning Files to a CD or DVD ===
 
=== Burning Files to a CD or DVD ===
  
# Insert a blank CD or DVD into your drive
+
* Insert a blank CD or DVD into your drive
# Wait for the pop-up and choose Data or Music CD (older versions of Ubuntu may also offer a Photo CD option. This is the same as a Data CD)
+
* Wait for the pop-up and choose Data or Music CD (older versions of Ubuntu may also offer a Photo CD option. This is the same as a Data CD)
 
** To burn a Music CD, see Self:AudioCDCreation
 
** To burn a Music CD, see Self:AudioCDCreation
 
** To burn a Data CD, drag the data over to the window and click '''Burn'''
 
** To burn a Data CD, drag the data over to the window and click '''Burn'''
第34行: 第36行:
  
 
A command called mkisofs can make an .ISO image to be burned or mounted.
 
A command called mkisofs can make an .ISO image to be burned or mounted.
<pre><nowiki>
+
<pre><nowiki>
 
mkisofs -r -J -o cd_image.iso /directory
 
mkisofs -r -J -o cd_image.iso /directory
 
</nowiki></pre>
 
</nowiki></pre>
第43行: 第45行:
 
It's possible to check CD images before burning. The easiest way is to simply double-click on it from the file browser, which will load the image into Archive Manage (file-roller).
 
It's possible to check CD images before burning. The easiest way is to simply double-click on it from the file browser, which will load the image into Archive Manage (file-roller).
  
If you have sudo access, you can also mount the image, and explore its contents
+
If you have sudo access, you can also mount the image, and explore its contents
<pre><nowiki>sudo modprobe loop
+
<pre><nowiki>sudo modprobe loop
 
sudo mount -t iso9660 -o ro,loop=/dev/loop0 cd_image.iso /media/cdrom
 
sudo mount -t iso9660 -o ro,loop=/dev/loop0 cd_image.iso /media/cdrom
 
</nowiki></pre>
 
</nowiki></pre>
Remember to unmount an image after checking:
+
Remember to unmount an image after checking:
<pre><nowiki>
+
<pre><nowiki>
 
sudo umount /media/cdrom
 
sudo umount /media/cdrom
 
</nowiki></pre>
 
</nowiki></pre>
第54行: 第56行:
 
==== Burning a CD on the Command Line with cdrecord ====
 
==== Burning a CD on the Command Line with cdrecord ====
 
cdrecord can burn an ISO(.iso) disk image or other data onto a CD. To burn a data CD (using image prepared earlier):
 
cdrecord can burn an ISO(.iso) disk image or other data onto a CD. To burn a data CD (using image prepared earlier):
<pre><nowiki>
+
<pre><nowiki>
 
cdrecord dev=/dev/cdrom driveropts=burnfree -v -data cd_image.iso
 
cdrecord dev=/dev/cdrom driveropts=burnfree -v -data cd_image.iso
 
</nowiki></pre>
 
</nowiki></pre>
To burn an audio cd from wav files:
+
To burn an audio cd from wav files:
<pre><nowiki>
+
<pre><nowiki>
 
cdrecord dev=/dev/cdrom driveropts=burnfree -v -audio [wav files...]
 
cdrecord dev=/dev/cdrom driveropts=burnfree -v -audio [wav files...]
 
</nowiki></pre>
 
</nowiki></pre>
Replace '''/dev/cdrom''' as needed if this is not your CD-Writer
+
Replace '''/dev/cdrom''' as needed if this is not your CD-Writer
  
'''-v''' (verbose) lets you track the recording progress
+
'''-v''' (verbose) lets you track the recording progress
  
'''driveropts=burnfree''' helps reduce the risk of a buffer under-run (most drives should support this)
+
'''driveropts=burnfree''' helps reduce the risk of a buffer under-run (most drives should support this)
  
  
 
==== Blanking a CD/RW ====
 
==== Blanking a CD/RW ====
 
To reuse a rewritable CD or DVD you first need to 'blank' the disk.  This erases the old data and prepares the disk for new data.
 
To reuse a rewritable CD or DVD you first need to 'blank' the disk.  This erases the old data and prepares the disk for new data.
<pre><nowiki>
+
<pre><nowiki>
 
cdrecord -vv dev=1,0 blank=all
 
cdrecord -vv dev=1,0 blank=all
 
</nowiki></pre>
 
</nowiki></pre>
see http://lists.debian.org/cdwrite/2004/10/msg00031.html
+
see http://lists.debian.org/cdwrite/2004/10/msg00031.html
  
  
第79行: 第81行:
 
Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use 'cdrecord dev=/dev/cdrom'. Even 'cdrecord -scanbus' does not work - so you just don't know, how to address the drive. You can work around this by looking into the boot messages with dmesg, to identify the devicepath to your burner.
 
Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use 'cdrecord dev=/dev/cdrom'. Even 'cdrecord -scanbus' does not work - so you just don't know, how to address the drive. You can work around this by looking into the boot messages with dmesg, to identify the devicepath to your burner.
 
F.e.
 
F.e.
<pre><nowiki>
+
<pre><nowiki>
 
$ dmesg
 
$ dmesg
 
hda: PIONEER DVD RW DVR-108, ATAPI CD/DVD-ROM drive
 
hda: PIONEER DVD RW DVR-108, ATAPI CD/DVD-ROM drive
第86行: 第88行:
 
hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
 
hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache
 
</nowiki></pre>
 
</nowiki></pre>
Ok so we know, it is hda.
+
Ok so we know, it is hda.
Now you can burn on this drive using:
+
Now you can burn on this drive using:
<pre><nowiki>
+
<pre><nowiki>
 
cdrecord dev=ATAPI:/dev/hda -data -v -eject your_data.iso
 
cdrecord dev=ATAPI:/dev/hda -data -v -eject your_data.iso
 
</nowiki></pre>
 
</nowiki></pre>
第106行: 第108行:
  
 
Add additional sessions by using
 
Add additional sessions by using
<pre><nowiki>
+
<pre><nowiki>
 
growisofs -M /dev/dvdwriter additionaldata
 
growisofs -M /dev/dvdwriter additionaldata
 
</nowiki></pre>
 
</nowiki></pre>

2007年5月24日 (四) 09:11的版本


Burning CDs, DVDs, and Blu-Ray discs

There are several ways to burn CDs and DVDs. In this tutorial, we will cover the default burning software provided with Ubuntu as well as command line burning. There are also alternative burning programs that you may want to consider such as xcdroast or k3b.

Burning Files to a CD or DVD

  • Insert a blank CD or DVD into your drive
  • Wait for the pop-up and choose Data or Music CD (older versions of Ubuntu may also offer a Photo CD option. This is the same as a Data CD)
    • To burn a Music CD, see Self:AudioCDCreation
    • To burn a Data CD, drag the data over to the window and click Burn

Burning ISO images

Right click a .iso file and select Open with CD/DVD Creator

Copying Discs and Other Advanced Operations

You can copy CDs and DVDs, as well and blank rewritable emdia and other operations, using GnomeBaker, a traditional dedicated CD burning program.

  • Install the gnomebaker package
  • Click Applications -> Sound and Video -> CD/DVD Writer GnomeBaker
  • Create a new project when prompted.
  • Click Help -> Contents if further help is needed.

Blu-Ray Burning

There are currently no graphical tools that support Blu-Ray disc burning. See (see Burning a DVD or Blu-Ray Disc below) for command line instructions. Blu-Ray support is expected in Open Source graphical tools soon, and NeroLinux3 (a proprietary burning tool) will also include HD DVD and Blu-Ray disc support.

Burning a CD or DVD using Command Line tools

This section details the use of the command line(terminal) to burn either a CD or DVD disk.

Creating an ISO image

A command called mkisofs can make an .ISO image to be burned or mounted.

mkisofs -r -J -o cd_image.iso /directory

The -r and -J ensures long file names work for Unix (using Rock Ridge) and Windows (using Joliet extensions) respectively.

Checking CD Images Before Burning

It's possible to check CD images before burning. The easiest way is to simply double-click on it from the file browser, which will load the image into Archive Manage (file-roller).

If you have sudo access, you can also mount the image, and explore its contents

sudo modprobe loop
sudo mount -t iso9660 -o ro,loop=/dev/loop0 cd_image.iso /media/cdrom

Remember to unmount an image after checking:

sudo umount /media/cdrom

Burning a CD on the Command Line with cdrecord

cdrecord can burn an ISO(.iso) disk image or other data onto a CD. To burn a data CD (using image prepared earlier):

cdrecord dev=/dev/cdrom driveropts=burnfree -v -data cd_image.iso

To burn an audio cd from wav files:

cdrecord dev=/dev/cdrom driveropts=burnfree -v -audio [wav files...]

Replace /dev/cdrom as needed if this is not your CD-Writer

-v (verbose) lets you track the recording progress

driveropts=burnfree helps reduce the risk of a buffer under-run (most drives should support this)


Blanking a CD/RW

To reuse a rewritable CD or DVD you first need to 'blank' the disk. This erases the old data and prepares the disk for new data.

cdrecord -vv dev=1,0 blank=all

see http://lists.debian.org/cdwrite/2004/10/msg00031.html


Using cdrecord on "unsupported" drives

Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use 'cdrecord dev=/dev/cdrom'. Even 'cdrecord -scanbus' does not work - so you just don't know, how to address the drive. You can work around this by looking into the boot messages with dmesg, to identify the devicepath to your burner. F.e.

$ dmesg
hda: PIONEER DVD RW DVR-108, ATAPI CD/DVD-ROM drive
hdb: IDE DVD-ROM 16X, ATAPI CD/DVD-ROM drive
[...]
hda: ATAPI 40X DVD-ROM DVD-R CD-R/RW drive, 2000kB Cache

Ok so we know, it is hda. Now you can burn on this drive using:

cdrecord dev=ATAPI:/dev/hda -data -v -eject your_data.iso

Burning a DVD or Blu-Ray Disc

  • Install the dvd+rw-tools package. See [InstallingSoftware].
  • Use the packages growisofs application to burn a DVD or Blu-Ray disc.
growisofs -Z /dev/scd0 -R -J /some/files
growisofs -speed=2 -dvd-compat -Z /dev/dvdwriter=dvd_image.iso

Add additional sessions by using

growisofs -M /dev/dvdwriter additionaldata

Blanking DVD+RW discs

dvd+rw-format -blank /dev/cdrw