wit MIX SOURCE... --dest|--DEST outfile where SOURCE = infile [QUALIFIER]... where QUALIFIER = 'select' part_type | 'as' [part_table '.'] [part_type] | 'ignore' ruleset | 'header' | 'region'
Options | |||
---|---|---|---|
Option | Param | Description | |
-t | --test | Run in test mode, modify nothing. >>> USE THIS OPTION IF UNSURE! <<< |
|
-d | --dest | path | Define a destination path (directory or file). The destination path is scanned for escape sequences (see option --esc) to allow generic paths. |
-D | --DEST | path | Like --dest, but create the directory path automatically. |
-E | --esc | char | Define an alternative escape character for destination files. The default is '%'. For Windows (CYGWIN) it is a good choice to set |
-o | --overwrite | Overwrite already existing files without warning. | |
--auto-split | Enable auto split modus: Split only if necessary and determine the split size automatically. THIS OPTION IS EXPERIMENTAL. In future versions it becomes the default. |
||
--no-split | Disable output file splitting. This is the default, but in future versions, the new option --auto-split becomes the default. | ||
-z | --split | Enable output file splitting. The default split size is 4 GB. | |
-Z | --split-size | sz | Enable output file splitting and define a split size. The parameter 'sz' is a floating point number followed by an optional unit factor (one of 'cb' [=1] or 'kmgtpe' [base=1000] or 'KMGTPE' [base=1024]). The default unit is 'G' (GiB). |
--disc-size | size | Define a minimal (virtual) ISO disc size. | |
--prealloc | [=mode] | This option enables or disables the disc space preallocation. If enabled the tools try to allocate disc space for the new files before writing the data. This reduces the fragmentation but also disables the sparse effect for preallocated areas.
The optional parameter decides the preallocation mode:
Mode |
|
--trunc | Truncate PLAIN ISO and WBFS images after creating or copying to the minimal needed size with respect to the block size. | ||
--chunk-mode | mode | Defines an operation mode for --chunk-size and --max-chunks. Allowed keywords are
|
|
--chunk-size | sz | Define the minimal chunk size if creating a CISO or WIA file (for WIA details see option --compression}). The default is to calculate the chunk size from the input file size and find a good value by using a minimal value of 1 MiB for »--chunk-mode ISO« and
The parameter 'sz' is a floating point number followed by an optional unit factor (one of 'cb' [=1] or 'kmgtpe' [base=1000] or 'KMGTPE' [base=1024]). The default unit is 'M' (MiB). If the number is prefixed with a
If the input file size is not known (e.g. reading from pipe), its size is assumed as
|
|
--max-chunks | n | Define the maximal number of chunks if creating a CISO file. The default value is 8192 for »--chunk-mode ISO« and 32760 (maximal value) for all other modes. If this value is set than the automatic calculation of --chunk-size will be modified too.
|
|
--compression | mode | Select one compression method, level and chunk size for new WIA files. The syntax for mode is:
All three parts are optional. All default values may be changed in the future. |
|
--mem | size | This option defines a memory usage limit for compressing files (in MiB if no other unit is entered). When compressing a file with method
If this option is not set or the value is 0, then the environment |
|
--align-part | size | The beginning of each partition is set to an offset that is a multiple of the align size. Size must be a power of 2 and at least 32 KiB (=default). If option --overlay is set only the first partition is aligned. | |
-W | --wdf | [=param] | Set the image output file type to WDF (Wii Disc Format). The output format is either WDFv1 or WDFv2 (default). It depends of the input file format and of the aligning. --wdf=param is a short cut for »--wdf --align-wdf=param«. |
--wdf1 | [=param] | Set image output file type to WDF and force version 1. --wdf1=param is a short cut for »--wdf1 --align-wdf=param«. | |
--wdf2 | [=param] | Set image output file type to WDF and force version 2. --wdf2=param is a short cut for »--wdf2 --align-wdf=param«. | |
--align-wdf | [align][,minhole] | Parameter
The optional parameter |
|
-I | --iso | Set image output file type to PLAIN ISO. | |
-C | --ciso | Set image output file type to CISO (Compact ISO, same as WBI). | |
-B | --wbfs | Set image output file type to WBFS (Wii Backup File System, default). | |
--id | id | Define an ID for the disc header. The default is 'WIT000'. | |
--name | name | Define a disc title for the disc header. The default is a generic title based on all sources. | |
--region | region | This patching option defines the region of the disc. The region is one of |
|
--overlay | Most partitions have holes (unused areas) in the data section. If combining multiple partitions into one disc it is possible to overlay the partitions so that the data of one partition resides in the hole of other partitions. This option enables this feature. It also limits the number of input partitions to 12, because the calculation is rated as O(2N). 12 partitions can be combined in 479 millions permutations and all are tested with a back tracking algorithm to find the best one. |
To copy 2 or more DATA partitions together just type:
»wit MIX image1 image2 image3 --dest result.iso«
The output format can be selected by option or filename. See »Writing an image« for details.
To view what command
Use the option --id the set the disc id. The default id is
Use the option --region the set the disc region. The default region is generated from the ID. See »Qualifier region« for additional information.
Snytax: select mode or: psel mode
If the parameter list should start with a minus sign (
A later
»wit MIX image1 select ,-upd image2 --dest outimage.iso«
This command mix all non UPDATE partitions of image1
and the DATA partition of image2.
The leading comma of the select parameter prevents the detection as an option.
The output is written to the PLAIN ISO file outimage.iso.
Snytax: as ptab. or: as ptype or: as ptab.ptype
Without the qualifier
»wit mix image1 select udpate as data --dest outimage.ciso«
This command will get the UPDATE partition of image1
and stores it as DATA partition.
The output is written to the CISO file outimage.ciso.
Snytax: ignore ruleset
When copying in scrubbing mode the system checks which sectors are used by
a file. Each system and real file of the FST (
This means that the partition becomes invalid, because the content of some files is not copied. If such file is accessed the Wii will halt immediately, because the verification of the checksum calculation fails.
The advantage is to reduce the size of the image without a need to fake sign the partition. Use this qualifier in combination with option --overlay to create tricky combinations of partitions. It may help to reduce the size of the output image dramatically.
»wit mix image1 ignore "@ignorefile" --dest outimage.wdf«
Copy the DATA partition of image1 to the WDF file outimage.wdf
and read file ignorefile for ignore rules.
Use the command »wit dump image1 --show usage --ignore-files ruleset« to test the scrubbing result of the ignore qualifier.
Snytax: header
If set the disc header (first 256 bytes of the dics) are copyied from the related source image to the destination image. The automatic creation of ID and disc title is disabled. The patching options --id and --name can still override the ID and/or the disc title.
Snytax: region
If set the region info (32 bytes at disc offset 0x4e000) are copyied from the related source image to the destination image. The automatic creation of the region info is disabled. The patching option --region can still override the region.
When mixing partitions, the source partitions are stored one behind the other and the total size of the output image becomes very large and exceeds sometimes the maximum allowed size.
The idea:
Use the hole of one partition to store data of the other partitions.
Option
There are two overlay alogithm implemented:
There are
To view the effect of the
With verbose level (--verbose)
0 == OK : all done without errors. WARNING : a filename without '/' or '.' was used. SYNTAX ERROR : at least one syntax error in command line found. SEMANTIC : error in number of selected partitions. READ ERROR : error while reading a file. WRITE ERROR : error while writing a file. CANT CREATE : Can't create output file. (WBFS output is not supported) INTERNAL ERROR : Internal verification test failed.