Re: Identifying CD drives across reboots
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Organization: HoffmanLabs LLC User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031) _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... Stephen F. Booth wrote: I need to identify the drive in order to determine (and store) the drive's read offset. To preempt your next question: I need to do this to accurately access CDDA in a device-independent manner. :) Consider spinning up the media in the drive and ask for the media ISRC, or whatever media-level identification is present on the particular flavor of CD you're working with. Compare this against the expected and known values in your database, and jump to the right sector. Remember that drives won't get insulted if the application chats using a command subset, but the drives do throw a snit if they don't understand what the application has asked, or don't offer the particular command or feature. Worse, some drives can and do become catatonic when they get confused, and some become solidly confused quite easily. I'd not bother looking for a unique drive serial number or trying to aggregate and synthesize such based on model and vendor. What happens if you're dealing with a tower of identical drives, for instance? The ISRC is probably your best bet here, based on your stated goal. Do you have access to the Red, Yellow and Orange books? These and the T10 and T13 documents are soon to be your friends. (And for anyone just getting their tootsies wet in this area, find and start with the INF-8020/SFF-8020 document. 8020 is long retired and long superseded, but it's one of the few good classic introductions to CD operations around.) Drives also tend to be creative about the parts of and the revisions of T10 and T13 implemented. This email sent to site_archiver@lists.apple.com
participants (1)
-
Stephen Hoffman