Eu tenho um CD de áudio (gravado há alguns anos) que eu quero copiar (com K3B
ou outro) para flac
. K3B
não conseguiu concluir e percebi que o CD estava danificado.
Consegui recuperar os dados com os argumentos safecopy
e --stage-1-3
. A partir da saída (veja abaixo), parece que os dados foram recuperados corretamente.
No entanto, esperava poder montar o arquivo e tirá-lo de lá. Infelizmente não parece ser o caso:
$ sudo mount -o loop -t iso9660 diskimage /media/cdrom1/
mount: block device /mnt/data/Bureau/diskimage is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg
não mostra resultados muito úteis:
$ dmesg | tail
ISOFS: Unable to identify CD-ROM format.
De fato, parece estar em um formato não reconhecido:
$ file diskimage
diskimage: data
Não é novidade que renomear o arquivo para
.iso
,
.raw
,
.img
ou
.bin
não fez diferença.
Algumas pessoas na Internet recomendam usar ccd2iso
, mas ele também falha ( Unrecognized sector mode (0) at sector 0!
).
Como posso proceder para extrair o áudio desse despejo de dados brutos?
Aqui está a saída de safecopy
. O stage3.badblocks
está vazio.
$ safecopy /dev/sr0 diskimage --stage1
Low level device calls enabled mode: 2
Reported hw blocksize: 4096
CDROM audio - low level access: drive reset, raw read
CDROM low level disk size: 784954128
CDROM low level block size: 2352
Reported low level blocksize: 2352
File size: 784954128
Blocksize: 2352
Fault skip blocksize: 78493296
Resolution: 78493296
Min read attempts: 1
Head moves on read error: 0
Badblocks output: stage1.badblocks
Marker string: BaDbLoCk
Starting block: 0
Source: /dev/sr0
Destination: diskimage
......................................... [40961]
......................................... [82945]
......................................... [124929]
......................................... [166913]
......................................... [208897]
......................................... [250881]
................................[284577](+669325104){X [317950]
}[317950](+78493296)
................[333739](+37135728){X}[367112](+78493296)
Done!
Recovered bad blocks: 0
Unrecoverable bad blocks (bytes): 2 (156986592)
Blocks (bytes) copied: 333739 (784954128)
xavier@marvin:~/Bureau$ safecopy /dev/sr0 diskimage --stage2
Low level device calls enabled mode: 2
Reported hw blocksize: 4096
CDROM audio - low level access: drive reset, raw read
CDROM low level disk size: 784954128
CDROM low level block size: 2352
Reported low level blocksize: 2352
File size: 784954128
Blocksize: 2352
Fault skip blocksize: 301056
Resolution: 2352
Min read attempts: 1
Head moves on read error: 0
Incremental mode file: stage1.badblocks
Incremental mode blocksize: 2352
Badblocks output: stage2.badblocks
Starting block: 0
Source: /dev/sr0
Destination: diskimage
Current destination size: 863447424
........................[309047](+726878544){X [309175]
<<<<<<<}[309048](+2352)
.....[313338](+10090080){X<<<<<<<}[313339](+2352)
..... 8-( 95%
Done!
Recovered bad blocks: 0
Unrecoverable bad blocks (bytes): 2 (4704)
Blocks (bytes) copied: 317950 (747818400)
$ safecopy /dev/sr0 diskimage --stage3
Low level device calls enabled mode: 2
Reported hw blocksize: 4096
CDROM audio - low level access: drive reset, raw read
CDROM low level disk size: 784954128
CDROM low level block size: 2352
Reported low level blocksize: 2352
File size: 784954128
Blocksize: 2352
Fault skip blocksize: 2352
Resolution: 2352
Min read attempts: 4
Head moves on read error: 1
Incremental mode file: stage2.badblocks
Incremental mode blocksize: 2352
Badblocks output: stage3.badblocks
Starting block: 0
Source: /dev/sr0
Destination: diskimage
Current destination size: 863447424
. 8-( 93%
Done!
Recovered bad blocks: 0
Unrecoverable bad blocks (bytes): 0 (0)
Blocks (bytes) copied: 313339 (736973328)