boredzo / apmtool Goto Github PK
View Code? Open in Web Editor NEWApple Partition Map helper tool
Apple Partition Map helper tool
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.)
populate partition-number file-path
overwrites the contents of some partition with the contents of some file (if the partition's size is greater than or equal to the length of that file).
In particular, you could use this to create a partition map with pdisk
, with full control over the extents of the partitions, and then fill the contents of each partition more easily than with dd.
It should be possible to say “unwrap partitioned-image.img” and get a bare-volume image for every HFS volume in it. (Maybe also every ProDOS, A/UX, etc. volume.)
Possible options:
The output directory path defaults to the input image's path plus a .out suffix (e.g., images/input.img → images/input.img.out). Files in the output directory are created with names like “partition-number, partition-type—volume-or-partition-name.img”.
(Disambiguation is important because multiple partitions may have the same volume name.)
Given one or more raw disk images, create a new partition map containing those partitions in order.
For source images that contain bare volumes, the bare volume will be added as a new (probably Apple_HFS) partition. For source images that contain partitions, those partitions will be added in the same order as in the source.
Options include:
--partition-map-format=im5/im4
: IM4 partition maps will reject any partitions that aren't of type Apple_Driver (added to the DDB but not the partition map) or Apple_HFS (added to the partition map as 'TFS1'
).--driver=…
: Specify a driver to include in the new partition map. Default is auto
: if any source images contain a driver, don't add any new drivers; otherwise, add the default driver. default
adds a yet-to-be-chosen driver from the old days (likely from some version of Apple HD SC Setup). none
adds no driver partition, like pdisk
. A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.