I don't even think CDs have unique serial numbers by default, do they? I really don't know but I've not heard of such a thing, at least not in a general case. I suppose you could burn a number on the CD somewhere.ithil said:How to get the serial number of a CD on Mac OS X? Is there any
replacement for the function GetvolumeInformation which gives the
serial number on Windows. If not how I can get a unique number that
identifies the CD.
He means a different sort of serial number....ChrisBrightwell said:OS X uses a serial number?
That's news to me, but I've used the Family Pack license since 10.2.
ChrisBrightwell said:OS X uses a serial number?
bousozoku said:You mean something like this that's available from the Info button in Disk Utility?
robbieduncan said:That does not appear to be a CD!
IJ Reilly said:I'm not sure if this is what the OP is after, but many people think that audio CDs have a unique serial number because of the way they are automatically indexed by GraceNote the moment you insert the CD into the computer (assuming you've got a live Internet connection of course). In fact, GraceNote relies on a combination of track number, track length, track order and (I believe) overall length to determine which CD you've inserted.
Krevnik said:For audio CDs, this is true. Although IIRC, HFS+ volumes use a UUID. Now the question here is:
What type of volume are you trying to get an ID for? HFS+, UDF, ISO9660, FAT, NTFS?
UDF doesn't seem to include a UUID, and I would assume ISO9660 would also lack such a UUID. FAT is before GUIDs, so I have a feeling you won't get love there either, and OS X isn't aware of NTFS enough to read a GUID from that. Joliet is an unknown. HFS+ volumes all have UUIDs, from what I can tell, but I haven't done testing to see if it is truly unique between discs, and probably wouldn't be if they are pressed, but could be if they are all burnt.
Now, IIRC, there is an actual UUID that pressed CDs have, and CD-Rs as well. HOWEVER, it isn't in any part of the block data available, but rather in a track that only the drive itself is allowed to read (since LBA 0 is /after/ this track, and addresses are unsigned). Drives can give access to read this, although I don't believe the drive is required to make the disc serial ID accessible. I know of a couple of devices (PS2, for example) which do use this information for anti-copy schemes.