Anchor | ||||
---|---|---|---|---|
|
Include Page | ||||
---|---|---|---|---|
|
...
Table of Contents | ||
---|---|---|
|
...
Include Page | ||||
---|---|---|---|---|
|
General Description
The "MkDskCmd
" utility:
...
To start the utility open "cmd.exe
" from Administrator in the Start menu and switch to the CHARON installation folder then the "\Build_XXX\xXX
" child folder where the utility is located.
...
Include Page | ||||
---|---|---|---|---|
|
Creating disk images
The first step is to obtain the disk type of the disk that needs to be created:
...
For a list of all available parameters use the "–help
" switch:
-t - please see the '-transform' options description <source_disk_name> - the file name of the disk image to be transformed The source disk size will changed accordingly the reach the specified parameters. -transform <source_disk_name> -blsize <number> -blcount <number> -shrink - parameter which needs to be EXPLICITLY provided, if the disk size is to be decreased Return value:
0 - for Success
Non zero - in case of failure
Examples: mkdskcmd -helpmkdskcmd -list mkdskcmd -avtable \etc\mkdsk.vtable -output "\etc\rk07.vdisk" -disk rk07 mkdskcmd -output \etc\disks\custom.vdisk -blsize 512 -blcount 16384 mkdskcmd -t
|
The "-avtable
" parameter is used to work with an alternative disk specification database or to point to the standard database ("mkdsk.vtable
") if it is in a location other than the current directory.
The "-blcount
" (blocks count) and "-blsize
" (blocks size) switches are used to create custom disk images.
...
Include Page | ||||
---|---|---|---|---|
|
Div | ||
---|---|---|
|
...
Resizing disk images
The "MkDskCmd
" utility is able to transfer resize (copy) disk images of one type to a disk image of another type.
...
An example of the syntax follows:
...> mkdskcmd -transferresize <source disk file name> <source disk parameters> [-shrink] [-k] |
...
<source disk file name> - the file name of the disk image to be transferredresized
<source disk parameters> - the disk type taken from the list of available disk types displayed by the "
mkdskcmd -list
" command or the disk geometry specification (see below).-shrink
or-k
- used to force the shrink when the target disk size is smaller than the source disk size.
Example:
...> mkdskcmd -transferresize "C:\My Disks\rz22.vdisk" rz25 |
It is also possible to specify the disk parameters manually with "-blcount / -c
" (blocks count) and "-blsize / -z
" (blocks size) switches:
...> mkdskcmd -transferresize <source disk file name> -blsize <number> -blcount <number> |
Example:
...> mkdskcmd -tr "C:\My Disks\custom.vdisk" -z 512 -c 262134 |
...
Warning |
---|
There is a certain delay between the moment when the utility reports that a disk image has been transferred resized and its actual availability to CHARON. This delay can reach up to several minutes in the case of very large disk transfersvery large disk resizes. This is because the host operating system needs time for the actual allocation of the enlarged file on HDD. |
...
Include Page | ||||
---|---|---|---|---|
|