たこさんのメモ書き

Linuxの設定/構築のメモを残すのが主体です。
わからないこと、あれこれたくさん。

UbuntuでisoイメージをCDに焼く

2010-12-19 03:02:09 | Ubuntu
手持ちのCD-RWの内容を消去して、isoイメージをそれに焼き付ける話。

GUIで行う場合は、UbuntuにはBrasero(ブラセーロ、火鉢)というシンプルな外観のソフトがあり、比較的簡単に作業ができる。
まず、焼きたいisoイメージをファイルマネージャーNautilusから指定し、右クリックすると、「CDに焼く」というメニューが出るはず。
ただし、うちのUbuntu10.04には、8.04hardyからアップグレードしたせいかどうか、最初からは入っておらず、Synapticパッケージマネージャーで追加インストールした。
この場合、焼きたいファイルを右クリックすると、「Braseroで開く」というメニューが追加される。
目的のファイルを指定してやれば、ドライブにいれたCD-RWの内容を消去するか確かめてくれた上で、焼き付け作業をしてくれる。

CUIで行う場合。
Braseroを入れることを思いつかず、どうやってもファイルマネージャーNautilusからCDを焼くところに行けないので、CUIで試してみた。

GNOME端末から、cdrecordコマンドを使う。
まず、CDドライブを特定する。
$ cdrecord -scanbus
scsibus0:
wodim: Warning: controller returns wrong size for CD capabilities page.
0,0,0 0) 'E-IDE ' 'CD-ROM CR-850E ' '1.11' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
scsibus6:
6,0,0 600) 'HL-DT-ST' 'DVDRAM GSA-H42N ' 'RJ11' Removable CD-ROM
6,1,0 601) *
6,2,0 602) *
6,3,0 603) *
6,4,0 604) *
6,5,0 605) *
6,6,0 606) *
6,7,0 607) *
うちの環境では、外付けのDVDマルチドライブが、scsibus6として認識されており、そのドライブ番号?が6,0,0であることがわかる。

この番号を指定して、cdrecordコマンドで「消去」を命じてやることになる。
その前に、消去する目的のCD-RWをアンマウントしておくことが必要。
$ umount /media/cd
#/media配下の"cd"は、CD-RWの内容(例えば、Puppy4.0)。
多分、/media/**じゃなく/dev/cd-romの方をアンマウントすると、CDドライブそのものがアンマウントされて使えなくなると思う。
CDドライブにマウントされているCDをアンマウントする必要がある。

cdrecordで内容を消去。
$ cdrecord -v blank=fast dev=6,0,0
TOC Type: 1 = CD-ROM
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
scsidev: '6,0,0'
scsibus: 6 target: 0 lun: 0
WARNING: the deprecated pseudo SCSI syntax found as device specification.
Support for that may cease in the future versions of wodim. For now,
the device will be mapped to a block device file where possible.
Run "wodim --devices" for details.
Linux sg driver version: 3.5.27
Wodim version: 1.1.10
SCSI buffer size: 64512
Device type : Removable CD-ROM
Version : 0
Version : 0
Response Format: 2
Capabilities :
Vendor_info : 'HL-DT-ST'
Identification : 'DVDRAM GSA-H42N '
Revision : 'RJ11'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x000A (CD-RW)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x001A (DVD+RW)
Profile: 0x001B (DVD+R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x0010 (DVD-ROM)
Profile: 0x0009 (CD-R)
Profile: 0x000A (CD-RW) (current)
Profile: 0x0008 (CD-ROM) (current)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1053696 = 1029 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
Drive DMA Speed: 8533 kB/s 48x CD 6x DVD
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 6
Reference speed: 2
Is not unrestricted
Is erasable
ATIP start of lead in: -11078 (97:34/22)
ATIP start of lead out: 359849 (79:59/74)
1T speed low: 0 (reserved val 0) 1T speed high: 4
2T speed low: 0 (reserved val 5) 2T speed high: 0 (reserved val 12)
power mult factor: 3 5
recommended erase/write power: 3
A1 values: 02 3A B0
A2 values: 5C C6 26
Disk type: Phase change
Manuf. index: 11
Manufacturer: Mitsubishi Chemical Corporation
Speed set to 706 KB/s
Starting to write CD/DVD at speed 4.0 in real BLANK mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Performing OPC...
Blanking PMA, TOC, pregap
Blanking time: 48.036s

48.036秒で消去しました。ということだと思う。
CDを焼くのはBraseroを使ったので、コマンドは確認せず。





最新の画像もっと見る