boredzo / apmtool

Apple Partition Map helper tool
0 stars 0 forks source link

New command: wrap #1

Open boredzo opened 7 months ago

boredzo commented 7 months ago

This command would take one or more bare volumes (or other data files, such as drivers) and wrap them in an Apple Partition Map.

Options:

A single argument is taken to be an Apple_HFS partition. (Can we auto-detect other volume types such as ProDOS and switch the partition type accordingly?) Other arguments are parsed as follows:

A size-spec not sufficient for the partition contents assigned to that partition is an error.

Any partition type other than Apple_HFS, in a partition map of type IM4, is an error. (For IM4 partition maps, it must be translated to the partition type of 'TFS1'; no other types were defined for that format as far as I know.)