Subject: Re: Strange Apple CD
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 04/30/2001 11:04:07
On Mon, 30 Apr 2001, Patrick Welche wrote:

> 00000200  50 4d 00 00 00 00 00 02  00 00 00 01 00 00 00 02  |PM..............|
> 00000210  4d 52 4b 53 00 00 00 00  00 00 00 00 00 00 00 00  |MRKS............|
> 00000220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> 00000230  41 70 70 6c 65 5f 70 61  72 74 69 74 69 6f 6e 5f  |Apple_partition_|
> 00000240  6d 61 70 00 00 00 00 00  00 00 00 00 00 00 00 00  |map.............|
> 00000250  00 00 00 00 00 00 00 02  00 00 00 13 00 00 00 00  |................|
> 00000260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> *
> 00000400  50 4d 00 00 00 00 00 02  00 00 00 09 00 05 11 05  |PM..............|
> 00000410  54 6f 61 73 74 20 33 2e  35 20 50 50 43 20 48 46  |Toast 3.5 PPC HF|
> 00000420  53 20 42 75 69 6c 64 65  72 00 00 00 00 00 00 00  |S Builder.......|
> 00000430  41 70 70 6c 65 5f 48 46  53 00 00 00 00 00 00 00  |Apple_HFS.......|
> 00000440  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
> 00000450  00 00 00 00 00 05 11 05  00 00 00 13 00 00 00 00  |................|
> 00000460  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
>
> What does it all mean? Is it possible to mount it? (I didn't know there was
> anything other than iso9660 (+various extensions))

This is clearly an Apple HFS cd, not iso9660 at all. The "PM" (for
"Partition Magic"?) identifies the block as a partition table entry,
The "02" in the top row(s) means that there are exactly two entries,
including the Map Header, and the second block describes the type
of the only actual partition, in plain text, and also the the start
and size (in there somewhere: probably 0x09 and 0x051105). This is
_exactly_ the same format found on Apple HFS hard disks, and so
permits this CD to be mounted native on a Mac OS system.

There's no support in the NetBSD kernel for a standard mount, but
you can browse the disk, or copy the files out, with the help of
the sysutils/hfsutils or the sysutils/xhfs packages.

Frederick