Skip to content

Instantly share code, notes, and snippets.

@aroman
Created December 27, 2014 23:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aroman/c9c839a990b08e69c4e6 to your computer and use it in GitHub Desktop.
Save aroman/c9c839a990b08e69c4e6 to your computer and use it in GitHub Desktop.
convert image -format format -o outfile
convert image to type format and write the result to outfile.
As with create, the correct filename extension will be added
only if it isn't part of the provided name. Format is one of:
UDRW - UDIF read/write image
UDRO - UDIF read-only image
UDCO - UDIF ADC-compressed image
UDZO - UDIF zlib-compressed image
UDBZ - UDIF bzip2-compressed image (Mac OS X 10.4+ only)
UFBI - UDIF entire image with MD5 checksum
UDRo - UDIF read-only (obsolete format)
UDCo - UDIF compressed (obsolete format)
UDTO - DVD/CD-R master for export
UDxx - UDIF stub image
UDSP - SPARSE (grows with content)
UDSB - SPARSEBUNDLE (grows with content; bundle-backed)
RdWr - NDIF read/write image (deprecated)
Rdxx - NDIF read-only image (Disk Copy 6.3.3 format)
ROCo - NDIF compressed image (deprecated)
Rken - NDIF compressed (obsolete format)
DC42 - Disk Copy 4.2 image
In addition to the compression offered by some formats, the
UDIF and NDIF read-only formats skip unused space in HFS,
ExFAT, and MS-DOS (FAT, FAT32) filesystems. For UDZO,
-imagekey zlib-level=value allows the zlib compression level
to be specified ala gzip(1). The default compression level is
1 (fastest).
Common options: -encryption, -stdinpass, -certificate,
-srcimagekey, -tgtimagekey, -shadow and related,
-puppetstrings, and -plist.
Other options:
-align alignment
The default is 4 (2K).
-pmap add partition map.
When converting a NDIF to a any variety of UDIF,
or when converting an unpartitioned UDIF, the
default is true.
:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment