여러 자원중에서 시스템에 부담이 안되는 선에서 CD-ROM 을 한번 빌려써 보자. 갑자기 CD-Writer 가 필요한데, 주변에 없는 경우는 유용하게 사용될 수 있다. 서버에 장착된 시디롬에 기본으로 Write 기능이 들어가 있는 경우가 있다. 아무래도 요새 CD-ROM 과 Writer 기능이 가격적으로 별반 차이가 없다 보니 Writer 기능이 기본으로 들어가는 경우가 대부분이다.
커맨드라인 프로그램으로 cdrecord 를 이용해 쉽고 간단히 시디롬에 기록할 수 있다. cdrecord 는 apt-get 으로 간단히 설치한다.
1. 우선, -scanbus 옵션을 통해 CD-ROM 을 찾아보자!
# cdrecord -scanbus
scsibus1:
1,0,0 100) 'PLDS ' 'DVD+-RW DS-8A4S ' 'JD51' Removable CD-ROM
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *
2. 다행이 CD-ROM 을 찾았다. 그러면 디바이스를 알았으니 디바이스를 지정하고 사용할 iso 파일을 지정만 하면 된다. 아래 옵션은 디바이스로 1,0,0 을 사용하고 기록할 것은 데이터 형태이며 다 완료된 후 CD-ROM 을 뺄 것을 정의한 것이다.
# cdrecord -eject -v dev=1,0,0 -data debian-6.0.0-kfreebsd-amd64-CD-1.iso
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
TOC Type: 1 = CD-ROM
scsidev: '1,0,0'
scsibus: 1 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.9
SCSI buffer size: 64512
Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'PLDS '
Identification : 'DVD+-RW DS-8A4S '
Revision : 'JD51'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
Current: 0x0009 (CD-R)
Profile: 0x002B (DVD+R/DL)
Profile: 0x001B (DVD+R)
Profile: 0x001A (DVD+RW)
Profile: 0x0015 (DVD-R/DL sequential recording)
Profile: 0x0014 (DVD-RW sequential recording)
Profile: 0x0013 (DVD-RW restricted overwrite)
Profile: 0x0012 (DVD-RAM)
Profile: 0x0011 (DVD-R sequential recording)
Profile: 0x0010 (DVD-ROM)
Profile: 0x000A (CD-RW)
Profile: 0x0009 (CD-R) (current)
Profile: 0x0008 (CD-ROM)
Profile: 0x0002 (Removable disk)
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1867008 = 1823 KB
Beginning DMA speed test. Set CDR_NODMATEST environment variable if device
communication breaks or freezes immediately after that.
FIFO size : 12582912 = 12288 KB
Track 01: data 647 MB
Total size: 743 MB (73:42.09) = 331657 sectors
Lout start: 744 MB (73:44/07) = 331657 sectors
Current Secsize: 2048
ATIP info from disk:
Indicated writing power: 5
Is not unrestricted
Is not erasable
Disk sub type: Medium Type A, high Beta category (A+) (3)
ATIP start of lead in: -11634 (97:26/66)
ATIP start of lead out: 359846 (79:59/71)
Disk type: Short strategy type (Phthalocyanine or similar)
Manuf. index: 3
Manufacturer: CMC Magnetics Corporation
Blocks total: 359846 Blocks current: 359846 Blocks remaining: 28189
Forcespeed is OFF.
Speed set to 4234 KB/s
Starting to write CD/DVD at speed 24.0 in real TAO mode for single session.
Last chance to quit, starting real write in 0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
Performing OPC...
Starting new track at sector: 0
Track 01: 647 of 647 MB written (fifo 100%) [buf 99%] 24.8x.
Track 01: Total bytes read/written: 679229440/679229440 (331655 sectors).
Writing time: 267.039s
Average write speed 17.1x.
Min drive buffer fill was 99%
Fixating...
Fixating time: 21.419s
BURN-Free was never needed.
wodim: fifo had 10699 puts and 10699 gets.
wodim: fifo was 0 times empty and 10261 times full, min fill was 96%.
위와 같이 진행 상황을 세부적으로 보여주며, 최종 완료되었음을 알려준다. 내 주변의 서버 자원도 여유가 되면 알차게 한번 사용해 보도록 하자!
댓글 없음:
댓글 쓰기