kolibrios-gitea/programs/system/virtdisk
Doczom 9ab6258bfe Added new driver for mount raw disk images.
- Added driver virt_disk.sys
 - Added the program "virtdisk" which allows you to add, delete and view virtual disks.

git-svn-id: svn://kolibrios.org@9945 a494cfbc-eb01-0410-851d-a64ba20cac60
2023-10-01 08:47:52 +00:00
..
parser.inc
README.md
shell.inc
Tupfile.lua
virtdisk.asm

VIRT_DISK

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. foto

List of virtdisk arguments:

  • 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

List flags:

  • ro - read only access
  • rw - read-write access

List disk image types:

  • RAW - it is used to mount disk images in "raw", "img" and "iso" formats

Exemples command:

virtdisk -a /sd0/4/kolibri.img -f ro

virtdisk -d 3