Fala pessoal..tudo certo?
Bom seguinte..pra gravar cd/dvd no Linux, eu utilizo o mkisofs para gerar a imagem e o cdrecord para queimar a mídia.
Bom...sempre segui o mesmo procedimento só que, da última vez que fui gravar um DVD, algo estranho aconteceu e, a partir daí, se repetiu incessantemente.
O comando que sempre utilizo para criar a imagem é o seguinte:
Código :root@bastion:~# mkisofs -J -joliet-long -l -r -V "Volume" -o arquivo.iso /pasta/iso/imagem/
Após feita a criação a imagem, realizei um teste para ver se ficou exatamente como eu queria:
Código :root@bastion:~# mount -t iso9660 -o loop /arquivo.iso /mnt/tmp
Até aí tudo tranquilo.
Navegando pelo manual do cdrecord eu achei como simular uma gravação e utilizei o seguinte comando:
Código :root@bastion:~# cdrecord -v -dummy -dev=ATAPI:0,0,0 arquivo.iso
Como minha gravadora é IDE, foi preciso emular o SCSI nela.
Bem aparentemente tudo dentro dos conformes. Mas quando eu tentei gravar o DVD, ai não deu certo.
O comando que utilizei foi:
Código :root@bastion:~# cdrecord -v -dev=ATAPI:0,0,0 arquivo.iso
O relatório da gravação foi esse:
Código :cdrecord: No write mode specified. cdrecord: Asuming -sao mode. cdrecord: If your drive does not accept -sao, try -tao. cdrecord: Future versions of cdrecord may have different drive dependent defaults. Cdrecord-ProDVD-Clone 2.01.01a23 (i686-pc-linux-gnu) Copyright (C) 1995-2006 Jörg Schilling cdrecord: Warning: Running on Linux-2.6.21.5-smp cdrecord: There are unsettled issues with Linux-2.5 and newer. cdrecord: If you have unexpected problems, please try Linux-2.4 or Solaris. TOC Type: 1 = CD-ROM scsidev: 'ATAPI:0,0,0' devname: 'ATAPI' scsibus: 0 target: 0 lun: 0 Warning: dev=ATA: is preferred over dev=ATAPI:. Warning: Using ATA Packet interface. Warning: The related Linux kernel interface code seems to be unmaintained. Warning: There is absolutely NO DMA, operations thus are slow. Using libscg version 'schily-0.9'. SCSI buffer size: 64512 atapi: 1 Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities : Vendor_info : 'HL-DT-ST' Identifikation : 'DVD-RAM GSA-H20N' Revision : '1.00' Device seems to be: Generic mmc2 DVD-R/DVD-RW/DVD-RAM. Current: DVD-R sequential recording Profile: DVD-RAM Profile: DVD+R/DL Profile: DVD+R Profile: DVD+RW Profile: DVD-R/DL layer jump recording Profile: DVD-R/DL sequential recording Profile: DVD-RW sequential overwrite Profile: DVD-RW restricted overwrite Profile: DVD-R sequential recording (current) Profile: DVD-ROM Profile: CD-RW Profile: CD-R Profile: CD-ROM Profile: Removable Disk Using generic SCSI-3/mmc-2 DVD-R/DVD-RW/DVD-RAM driver (mmc_dvd). Driver flags : DVD MMC-3 SWABAUDIO BURNFREE Supported modes: PACKET SAO LAYER_JUMP Drive buf size : 1409024 = 1376 KB Drive pbuf size: 134217728 = 131072 KB FIFO size : 33554432 = 32768 KB Track 01: data 4192 MB Total size: 4192 MB = 2146813 sectors Current Secsize: 2048 WARNING: Phys disk size 2298496 differs from rzone size 2297888! Prerecorded disk? WARNING: Phys start: 196608 Phys end 2495103 Blocks total: 2297888 Blocks current: 2297888 Blocks remaining: 151075 Starting to write CD/DVD at speed 8 in real SAO mode for single session. Last chance to quit, starting real write 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. BURN-Free is ON. Turning BURN-Free off Starting new track at sector: 0 Track 01: 4192 of 4192 MB written (fifo 100%) [buf 90%] 8.5x. Track 01: Total bytes read/written: 4396673024/4396673024 (2146813 sectors). Writing time: 486.295s Average write speed 6.5x. Min drive buffer fill was 47% Fixating... Fixating time: 5.516s cdrecord: fifo had 69253 puts and 69253 gets. cdrecord: fifo was 0 times empty and 15866 times full, min fill was 86%.
Bom...aí vem o pior.
Fui montar o drive e o resultado foi o seguinte:
Código :root@bastion:~# mount -t iso9660 /dev/hdc /mnt/dvd/ mount: block device /dev/hdc is write-protected, mounting read-only mount: wrong fs type, bad option, bad superblock on /dev/hdc, missing codepage or other error In some cases useful info is found in syslog - try dmesg | tail or so
Como não deu certo, pedi para que encontrasse o sistema de arquivos automaticamente, e resultou nisso:
Código :root@bastion:~# mount -t auto /dev/hdc /mnt/dvd/ mount: block device /dev/hdc is write-protected, mounting read-only mount: No buffer space available
Como visto pela resposta do mount o drive não pôde ser montado.
Aí tentei de tudo para encontrar o motivo do erro que, aparentemente, se refere a buffer mas não obtive sucesso.
É bom lembrar que estou usando o Slackware 12.0 com o kernel 2.6 com módulo SCSI e que, esse problema só aconteceu depois que eu simulei uma gravação, coisa que eu não sei se afetou ou não.
Se vocês souberem o por que disso e/ou como resolver, eu agradeço.
abracos