特殊:Badtitle/NS100:CdDvd/Burning:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
(未显示同一用户的5个中间版本) | |||
第1行: | 第1行: | ||
{{From|https://help.ubuntu.com/community/CdDvd/Burning}} | {{From|https://help.ubuntu.com/community/CdDvd/Burning}} | ||
{{Languages|UbuntuHelp:CdDvd/Burning}} | {{Languages|UbuntuHelp:CdDvd/Burning}} | ||
Writing data to write-able and re-write-able CDs and DVDs and Blu-Ray media is commonly referred to as "burning". This tutorial covers the default burning software provided with Ubuntu as well as command line burning. There are also alternative burning programs to consider such as xcdroast or k3b. | |||
== Graphical User Interface(GUI) == | |||
=== [[UbuntuHelp:LiveCD|LiveCD]] | This section covers using a GUI for burning. | ||
=== Burning ISO images === | |||
=== Burning Files to | For burning ISO images like the Ubuntu [[UbuntuHelp:LiveCD|LiveCD]] using a GUI, please refer to the [[UbuntuHelp:BurningIsoHowto|BurningIsoHowto]] page. | ||
=== Burning Files to CD or DVD === | |||
<ol><li>Insert a blank CD or DVD into your drive | <ol><li>Insert a blank CD or DVD into your drive | ||
</li><li>Wait for the pop-up and choose Data or Music CD (older versions | </li><li>Wait for the pop-up and choose Data or Music CD (older versions may offer a Photo CD option, and is identical to the Data CD option)</li></ol> | ||
* To burn a Music CD, see [[UbuntuHelp:AudioCDCreation]] | * To burn a Music CD, see [[UbuntuHelp:AudioCDCreation|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''' | ||
=== Copying Discs and Other Advanced Operations === | === Copying Discs and Other Advanced Operations === | ||
You can copy CDs and DVDs, | You can copy CDs and DVDs, erase(blanking) rewritable media and more with [[UbuntuHelp:GnomeBaker|GnomeBaker]], a traditional dedicated CD burning program. | ||
* Install the '''gnomebaker''' package | * Install the '''gnomebaker''' package | ||
* Click '''Applications''' -> '''Sound and Video''' -> '''CD/DVD Writer [[UbuntuHelp:GnomeBaker|GnomeBaker]]''' | * Click '''Applications''' -> '''Sound and Video''' -> '''CD/DVD Writer [[UbuntuHelp:GnomeBaker|GnomeBaker]]''' | ||
第21行: | 第19行: | ||
* Click '''Help''' -> '''Contents''' if further help is needed. | * Click '''Help''' -> '''Contents''' if further help is needed. | ||
=== Blu-Ray Burning === | === Blu-Ray Burning === | ||
There are currently no graphical tools that support Blu-Ray disc burning. See '''Burning a DVD or Blu-Ray Disc''' below for command line instructions. | There are currently no graphical tools that support Blu-Ray disc burning, though GUI support is expected to be available in the future. See '''Burning a DVD or Blu-Ray Disc''' below for command line instructions. | ||
== Command Line (Terminal) == | |||
=== Burning a CD or DVD using Command Line tools === | === 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. | This section details the use of the command line(terminal) to burn either a CD or DVD disk. | ||
第27行: | 第26行: | ||
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> | ||
genisoimage -r -J -o cd_image.iso /directory | |||
</nowiki></pre> | </nowiki></pre> | ||
The '''-r''' and '''-J''' ensures long file names work for Unix (using Rock Ridge) and Windows (using Joliet extensions) respectively. | 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 ===== | ===== 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 | 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 view the image with the Archive Manager. | ||
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> | <pre><nowiki> | ||
第41行: | 第40行: | ||
sudo umount /media/cdrom | sudo umount /media/cdrom | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Burning a CD on the Command Line with wodim === | |||
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): | ||
First see where the CDROM/DVDROM is located. Something like this | |||
<pre><nowiki> | |||
$ wodim --devices | |||
wodim: Overview of accessible drives (1 found) : | |||
------------------------------------------------------------------------- | |||
0 dev='/dev/scd0' rwrw-- : 'LITE-ON' 'DVDRW SOHW-1633S' | |||
------------------------------------------------------------------------- | |||
</nowiki></pre> | |||
After finding the info. from device scanning, take the appropriate target. | |||
This is important if there are more than one device on the system. | |||
In my case /dev/cdrw and /dev/dvdrw both point to /dev/scd0 | |||
<pre><nowiki> | |||
$ ls -l /dev/cdrw | |||
lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/cdrw -> scd0 | |||
</nowiki></pre> | |||
<pre><nowiki> | |||
$ ls -l /dev/dvdrw | |||
lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/dvdrw -> scd0 | |||
</nowiki></pre> | |||
Hence one can use the following notation :- | |||
<pre><nowiki> | <pre><nowiki> | ||
wodim dev=/dev/cdrw -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> | ||
wodim dev=/dev/cdrw -v -audio [wav files...] | |||
</nowiki></pre> | </nowiki></pre> | ||
Replace '''/dev/ | Replace '''/dev/cdrw''' 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 | ||
==== 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> | ||
wodim -vv dev=/dev/cdrw 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 | ||
==== Using | ==== Using wodim on "unsupported" drives ==== | ||
Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use ' | Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use 'wodim dev=/dev/cdrw'. Even 'wodim -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> | ||
第72行: | 第90行: | ||
Now you can burn on this drive using: | Now you can burn on this drive using: | ||
<pre><nowiki> | <pre><nowiki> | ||
wodim dev=ATAPI:/dev/hda -data -v -eject your_data.iso | |||
</nowiki></pre> | </nowiki></pre> | ||
==== Burning a DVD or Blu-Ray Disc ==== | ==== Burning a DVD or Blu-Ray Disc ==== | ||
第78行: | 第96行: | ||
* Use the packages <code><nowiki>growisofs</nowiki></code> application to burn a DVD or Blu-Ray disc. | * Use the packages <code><nowiki>growisofs</nowiki></code> application to burn a DVD or Blu-Ray disc. | ||
<pre><nowiki> | <pre><nowiki> | ||
growisofs -Z /dev/ | growisofs -Z /dev/dvdrw -R -J /some/files | ||
</nowiki></pre> | </nowiki></pre> | ||
<pre><nowiki> | <pre><nowiki> | ||
growisofs -speed=2 -dvd-compat -Z /dev/ | growisofs -speed=2 -dvd-compat -Z /dev/dvdrw=dvd_image.iso | ||
</nowiki></pre> | </nowiki></pre> | ||
Note that -dvd-compat closes the disk in write-once context (DVD+R or DVD-R). | |||
Add additional sessions by using | Add additional sessions by using | ||
<pre><nowiki> | <pre><nowiki> |
2010年5月19日 (三) 21:52的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/CdDvd/Burning }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/af | • {{#if: UbuntuHelp:CdDvd/Burning|Afrikaans| [[::CdDvd/Burning/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ar | • {{#if: UbuntuHelp:CdDvd/Burning|العربية| [[::CdDvd/Burning/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/az | • {{#if: UbuntuHelp:CdDvd/Burning|azərbaycanca| [[::CdDvd/Burning/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/bcc | • {{#if: UbuntuHelp:CdDvd/Burning|جهلسری بلوچی| [[::CdDvd/Burning/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/bg | • {{#if: UbuntuHelp:CdDvd/Burning|български| [[::CdDvd/Burning/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/br | • {{#if: UbuntuHelp:CdDvd/Burning|brezhoneg| [[::CdDvd/Burning/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ca | • {{#if: UbuntuHelp:CdDvd/Burning|català| [[::CdDvd/Burning/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/cs | • {{#if: UbuntuHelp:CdDvd/Burning|čeština| [[::CdDvd/Burning/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/de | • {{#if: UbuntuHelp:CdDvd/Burning|Deutsch| [[::CdDvd/Burning/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/el | • {{#if: UbuntuHelp:CdDvd/Burning|Ελληνικά| [[::CdDvd/Burning/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/es | • {{#if: UbuntuHelp:CdDvd/Burning|español| [[::CdDvd/Burning/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/fa | • {{#if: UbuntuHelp:CdDvd/Burning|فارسی| [[::CdDvd/Burning/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/fi | • {{#if: UbuntuHelp:CdDvd/Burning|suomi| [[::CdDvd/Burning/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/fr | • {{#if: UbuntuHelp:CdDvd/Burning|français| [[::CdDvd/Burning/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/gu | • {{#if: UbuntuHelp:CdDvd/Burning|ગુજરાતી| [[::CdDvd/Burning/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/he | • {{#if: UbuntuHelp:CdDvd/Burning|עברית| [[::CdDvd/Burning/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/hu | • {{#if: UbuntuHelp:CdDvd/Burning|magyar| [[::CdDvd/Burning/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/id | • {{#if: UbuntuHelp:CdDvd/Burning|Bahasa Indonesia| [[::CdDvd/Burning/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/it | • {{#if: UbuntuHelp:CdDvd/Burning|italiano| [[::CdDvd/Burning/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ja | • {{#if: UbuntuHelp:CdDvd/Burning|日本語| [[::CdDvd/Burning/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ko | • {{#if: UbuntuHelp:CdDvd/Burning|한국어| [[::CdDvd/Burning/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ksh | • {{#if: UbuntuHelp:CdDvd/Burning|Ripoarisch| [[::CdDvd/Burning/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/mr | • {{#if: UbuntuHelp:CdDvd/Burning|मराठी| [[::CdDvd/Burning/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ms | • {{#if: UbuntuHelp:CdDvd/Burning|Bahasa Melayu| [[::CdDvd/Burning/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/nl | • {{#if: UbuntuHelp:CdDvd/Burning|Nederlands| [[::CdDvd/Burning/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/no | • {{#if: UbuntuHelp:CdDvd/Burning|norsk| [[::CdDvd/Burning/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/oc | • {{#if: UbuntuHelp:CdDvd/Burning|occitan| [[::CdDvd/Burning/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/pl | • {{#if: UbuntuHelp:CdDvd/Burning|polski| [[::CdDvd/Burning/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/pt | • {{#if: UbuntuHelp:CdDvd/Burning|português| [[::CdDvd/Burning/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ro | • {{#if: UbuntuHelp:CdDvd/Burning|română| [[::CdDvd/Burning/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/ru | • {{#if: UbuntuHelp:CdDvd/Burning|русский| [[::CdDvd/Burning/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/si | • {{#if: UbuntuHelp:CdDvd/Burning|සිංහල| [[::CdDvd/Burning/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/sq | • {{#if: UbuntuHelp:CdDvd/Burning|shqip| [[::CdDvd/Burning/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/sr | • {{#if: UbuntuHelp:CdDvd/Burning|српски / srpski| [[::CdDvd/Burning/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/sv | • {{#if: UbuntuHelp:CdDvd/Burning|svenska| [[::CdDvd/Burning/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/th | • {{#if: UbuntuHelp:CdDvd/Burning|ไทย| [[::CdDvd/Burning/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/tr | • {{#if: UbuntuHelp:CdDvd/Burning|Türkçe| [[::CdDvd/Burning/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/vi | • {{#if: UbuntuHelp:CdDvd/Burning|Tiếng Việt| [[::CdDvd/Burning/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/yue | • {{#if: UbuntuHelp:CdDvd/Burning|粵語| [[::CdDvd/Burning/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/zh | • {{#if: UbuntuHelp:CdDvd/Burning|中文| [[::CdDvd/Burning/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/zh-hans | • {{#if: UbuntuHelp:CdDvd/Burning|中文(简体)| [[::CdDvd/Burning/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:CdDvd/Burning | UbuntuHelp:CdDvd/Burning | {{#if: | :}}CdDvd/Burning}}/zh-hant | • {{#if: UbuntuHelp:CdDvd/Burning|中文(繁體)| [[::CdDvd/Burning/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:CdDvd/Burning|:CdDvd/Burning|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :CdDvd/Burning/zh | | {{#ifexist: CdDvd/Burning/zh | | {{#ifeq: {{#titleparts:CdDvd/Burning|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:CdDvd/Burning|1|-1|}} | zh | | }}
Writing data to write-able and re-write-able CDs and DVDs and Blu-Ray media is commonly referred to as "burning". This tutorial covers the default burning software provided with Ubuntu as well as command line burning. There are also alternative burning programs to consider such as xcdroast or k3b.
Graphical User Interface(GUI)
This section covers using a GUI for burning.
Burning ISO images
For burning ISO images like the Ubuntu LiveCD using a GUI, please refer to the BurningIsoHowto page.
Burning Files to 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 may offer a Photo CD option, and is identical to the Data CD option)
- To burn a Music CD, see AudioCDCreation
- To burn a Data CD, drag the data over to the window and click Burn
Copying Discs and Other Advanced Operations
You can copy CDs and DVDs, erase(blanking) rewritable media and more with 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, though GUI support is expected to be available in the future. See Burning a DVD or Blu-Ray Disc below for command line instructions.
Command Line (Terminal)
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.
genisoimage -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 view the image with the Archive Manager. 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 wodim
cdrecord can burn an ISO(.iso) disk image or other data onto a CD. To burn a data CD (using image prepared earlier): First see where the CDROM/DVDROM is located. Something like this
$ wodim --devices wodim: Overview of accessible drives (1 found) : ------------------------------------------------------------------------- 0 dev='/dev/scd0' rwrw-- : 'LITE-ON' 'DVDRW SOHW-1633S' -------------------------------------------------------------------------
After finding the info. from device scanning, take the appropriate target. This is important if there are more than one device on the system. In my case /dev/cdrw and /dev/dvdrw both point to /dev/scd0
$ ls -l /dev/cdrw lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/cdrw -> scd0
$ ls -l /dev/dvdrw lrwxrwxrwx 1 root root 4 2009-01-26 21:56 /dev/dvdrw -> scd0
Hence one can use the following notation :-
wodim dev=/dev/cdrw -v -data cd_image.iso
To burn an audio cd from wav files:
wodim dev=/dev/cdrw -v -audio [wav files...]
Replace /dev/cdrw as needed if this is not your CD-Writer -v (verbose) lets you track the recording progress
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.
wodim -vv dev=/dev/cdrw blank=all
see http://lists.debian.org/cdwrite/2004/10/msg00031.html
Using wodim on "unsupported" drives
Sometimes Ubuntu fails to detect and configure your Burner. This results in "no media found" if you use 'wodim dev=/dev/cdrw'. Even 'wodim -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:
wodim 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/dvdrw -R -J /some/files
growisofs -speed=2 -dvd-compat -Z /dev/dvdrw=dvd_image.iso
Note that -dvd-compat closes the disk in write-once context (DVD+R or DVD-R). Add additional sessions by using
growisofs -M /dev/dvdwriter additionaldata
Blanking DVD+RW discs
dvd+rw-format -blank /dev/cdrw