Driver for mounting RAW disk images in KolibriOS.
To demonstrate the operation of the driver, the virtdisk program was written. Program allows you to add, delete and view virtual disks.

-
Delete command:
virtdisk -d <DISK_NUMBER> -
Information from disk:
virtdisk -i <DISK_NUMBER> -
Add disk image in file system:
virtdisk -a <IMAGE_PATH> -s <SECTOR_SIZE> -t <IMAGE_TYPE> -f <ACCESS_FLAGS> -
Input list all virtual disks:
virtdisk -l
ro- read only accessrw- read-write access
RAW- it is used to mount disk images in "raw", "img" and "iso" formats
virtdisk -a /sd0/4/kolibri.img -f ro
virtdisk -d 3