R.A. Epigonos et al.

[linux] wodimでコマンドラインからcdRWの消去とisoファイルの書き込み

GUIを使うと不安定という話を聞いたので、コマンドラインからwodim(旧cdrecocd)を使ってcdrwの消去とisoをcdrwに書き込む作業を行う。

まずは使えるデバイスを確認。/dev/hdcが使えるとわかる。CDRWの内容消去。5秒のカウントダウンの後に消去開始。一般ユーザで試してみるもOperation not permittedといわれる。後から確認したけど、どうやら消去はできているかもしれない。

$ wodim --devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
 0  dev='/dev/hdc'      rwrw-- : 'HL-DT-ST' 'RW/DVD GCC-4240N'
-------------------------------------------------------------------------
$ wodim dev=/dev/hdc blank=all
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4240N'
Revision       : 'C102'
Device seems to be: Generic mmc2 DVD-ROM.
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
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.

rootになって消去してみるとうまくいく。fastオプションはそのとおり早い。640MBのディスクで1分未満。書き込まれたデータ自身の消去は行わずtocだけの消去。allは完全消去。時間がかかる。640MBのディスクで30分くらい。(fastもallも一般ユーザでできました。たぶんアクセス権持ってるからだと思うけど。)

$ su -
Password:
# wodim dev=/dev/hdc blank=fast
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4240N'
Revision       : 'C102'
Device seems to be: Generic mmc2 DVD-ROM.
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
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.
x32debian:~# wodim dev=/dev/hdc blank=all
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4240N'
Revision       : 'C102'
Device seems to be: Generic mmc2 DVD-ROM.
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
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.

isoファイルをCDに書き込む。-saoはsession at onceモード。-saoがなければtao、track at onceモードにされる。(この部分も一般ユーザで可能)

# wodim -sao dev=/dev/hdc systemrescuecd-x86-1.5.8.iso
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4240N'
Revision       : 'C102'
Device seems to be: Generic mmc2 DVD-ROM.
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
Speed set to 706 KB/s
Starting to write CD/DVD at speed   4.0 in real SAO mode for single session.
Last chance to quit, starting real write in    0 seconds. Operation starts.
Track 01: Total bytes read/written: 272936960/272936960 (133270 sectors).

たとえば、sao、taoを指定しなかった場合の結果が以下。書き込み前にいろいろ言われる。

# wodim dev=/dev/hdc systemrescuecd-x86-1.5.8.iso
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'HL-DT-ST'
Identification : 'RW/DVD GCC-4240N'
Revision       : 'C102'
Device seems to be: Generic mmc2 DVD-ROM.
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
Speed set to 706 KB/s
Starting to write CD/DVD at speed   4.0 in real TAO mode for single session.
Last chance to quit, starting real write in    0 seconds. Operation starts.
Track 01: Total bytes read/written: 272936960/272936960 (133270 sectors).

リファレンス

  1. md5sum linux - Google 検索
  2. Manpage of MD5SUM

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2009-06-21T05:23:58+09:00
  2. Modified: 2009-06-21T05:23:58+09:00
  3. Generated: 2024-12-16T23:09:10+09:00