Hi,
I'm a bit confused wrt the Apple Partition Map and its records' size + the addresses it points to
For regular 512 byte per sector media there is no problem.
But on CD I seem to encounter different versions and I'm not sure if
1. all variants are OK ?
2. they all work on Apple systems (can't check, but they seem valid images from real life CDs so I must assume so)
3. these variants are documented somewhere (please point me there then)
Situation 1
As you know CD blocks/sectors are 2048 bytes in size.
When I determine the partition addresses based on the Apple partition map on the CD I use the device's bytes-per-block size. So 2048 bytes per block.
The address listed in the map entry points to a 2048 bytes block
The size of the partition is the value times 2048 etc.
This works perfectly on a number of hybrid CDs I have access to. (So ISO9660 + … + HFS)
Situation 2
However, I have now also come across CDs where I must use 512 bytes to make it work.
The address in the map entry points to a 512 byte block, so I must recalculate to a block on the 2K_media. Same for the size.
Is there a flag in the partition map I'm not aware of that signifies the difference ?
I have now done a few tests on a limited test set and what I notice is that in case of situation 1, the partition map entries are 2048 bytes in size and in case of situation 2, the map entries are 512 bytes in size (despite being located on 2K per block media).
This in itself I suppose I could use to determine what is what
But dread if there are mixed versions as well. For instance 512 bytes per map entry yet the addresses pointing to 2048 byte sectors and vica versa.
Let me know your thoughts.
It is entirely possible that the 512 bytes/sector ones are more similar to the "hard disk emulation" of El-Torito, while the Hybrid nes with ISO9660+HFS are "influenced" by the ISO (2048 bytes/block) part.
I confess that once upon a time I actually tried reading (and understanding) the "Apple" or HFS part of the mkisofs commands/options , but I gave up 😯 .
See also (Good ol' book by Paul Crowley)
https://
HFS should be "inherently" 512 bytes/block.
jaclaz
> HFS should be "inherently" 512 bytes/block.
Indeed and it always is on CD as well.
But the Partition Map is not exclusively 512 bytes/block per the real life examples I have here. Commercial discs even, for which I can only assume they work on a Mac.
If this is not documented anywhere I'll look into some detection mechanisms to make the best of things.