MkDskCmd


Product Documentation and Knowledge Base - Home 


Charon-VAXCharon-AXPCharon-PDPCharon-SSPCharon-PAR

MkDskCmd

Table of Contents

Back to Table of Contents

General Description

The "MkDskCmd" utility:

  • Creates empty disk images of a given standard or custom disk type or a customand disk size

  • Transfers existing disk images of one type to disk images of another type.

To start the utility open "cmd.exe" in the Start menu and switch to the CHARON x86 utilities directory (typically "C:\Program Files (x86)\CHARON\Utilities_X.X.XXXXX\x86" or "C:\Program Files\CHARON\Utilities_X.X.XXXXX\x86").

 

Creating disk images

The first step is to obtain the disk type of the disk that needs to be created:

...> mkdskcmd -list

This command results in a list of all the supported disk types.

Choose the desired disk type (for example "RZ22"), then use the "mkdskcmd" command to create the virtual disk image as shown below:

...> mkdskcmd -disk rz22 -output rz22.vdisk

A disk container "rz22.vdisk" will be created in the current directory.

A file "rz22.avdisk" will also be created. This file helps CHARON to accurately recognize a specific disk image type. It is recommended to put the ".avdisk" file in the same directory as the created disk image.

It is also possible to create custom disk images using the "-blcount" (blocks count) and "-blsize" (blocks size) switches.

 

For a list of all available parameters use the "–help"switch:

...> mkdskcmd -help

mkdisk for CHARON utility v. 1.14
Copyright: STROMASYS, 2015

Usage:
mkdskcmd [Options]

Options:
-help - to see help screen
-h - to see help screen

-output <full name> - to specify output file name
-o <full name> - to specify output file name

-disk <disk name> - to specify the disk name from Disk table
-d <disk name> - to specify the disk name from Disk table

-blsize <number> - to specify the block size in bytes (custom disk image)
-z <number> - to specify the block size in bytes (custom disk image)

-blcount <number> - to specify number of the blocks (custom disk image)
-c <number> - to specify number of the blocks (custom disk image)

-avtable <full_name> - to specify AVDISK table file
-a <full_name> - to specify AVDISK table file

-t - please see the '-transform' options description
-transform <source_disk_name> <source_disk_params> - to transform the the disk image (change actual size)
<source_disk_name> - the file name of the disk image to be transformed
<source_disk_params> - the name of the disk from the list of available at the Disk table
The source disk size will changed accordingly the reach the specified parameters.
To specify the transform parameters manually, follow the option below:
-transform <source_disk_name> -blsize <number> -blcount <number>

- shrink - parameter which needs to be EXPLICITLY provided, if the disk size is to be decreased
-k - parameter which needs to be EXPLICITLY provided, if the disk size is to be decreased

-list <full_name> - to display AVDISK table
-l <full_name> - to display AVDISK table

-silent - silent mode running
-s - silent mode running

Return value:
0 - for Success
Non zero - in case of failure

Examples:
mkdskcmd -help
mkdskcmd -list
mkdskcmd -avtable \etc\mkdsk.vtable -output "\etc\rk07.vdisk" -disk rk07
mkdskcmd -output \etc\disks\custom.vdisk -blsize 512 -blcount 16384



© Stromasys, 1999-2025  - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described. 
Need fast, reliable migration? We have done it countless times. Talk to an expert