acd(4) and maximum read block size

Ulrich Spoerlein uspoerlein at gmail.com
Sat Apr 22 07:42:30 UTC 2006


Søren, group,

I'm working on some improvements for recoverdisk[1] to handle optical media
better. I found it an invaluable tool for recovering old CD-Rs. It also
helps with newer DVDs, when your drive sucks wrt. error recovery.

recoverdisk tries to read in 1MB, 64kB and SECTORSIZE chunks. This has
the obvious drawback, that it can't really handle audio CDs or mode 2
CDs with a sectorsize of 2352.

While this is easily fixed, the acd(4) driver seems to allow no reads
greater than 128kB *for audio CDs*. While this is also not terrible, it
results in roughly 700 error messages per CD, as all the 1MB (1046640
bytes, more precisely) chunks will fail.

A side note: Accessing audio CDs via atapicam and dd(1) is completely
impossible. Is the SCSI subsystem limited to multiple-of-512-blocksizes?

[1] /usr/src/tools/tools/recoverdisk

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD				Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060422/8c247117/attachment.pgp


More information about the freebsd-current mailing list