Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. # VIRT_DISK
  2. Driver for mounting RAW disk images in KolibriOS.
  3.  
  4. To demonstrate the operation of the driver, the virtdisk program was written. Program allows you to add, delete and view virtual disks.
  5. ![foto](https://github.com/Doczom/VIRT_DISK/blob/main/utils/scr_1.png)
  6.  
  7. ## List of virtdisk arguments:
  8.  - Delete command:
  9.  
  10.    <CODE> virtdisk -d <DISK_NUMBER> </CODE>
  11.  
  12.  - Information from disk:
  13.  
  14.    <CODE> virtdisk -i <DISK_NUMBER> </CODE>
  15.  
  16.  - Add disk image in file system:
  17.  
  18.    <CODE> virtdisk -a <IMAGE_PATH> -s <SECTOR_SIZE> -t <IMAGE_TYPE> -f <ACCESS_FLAGS> </CODE>
  19.  
  20.  - Input list all virtual disks:
  21.  
  22.    <CODE> virtdisk -l </CODE>
  23.  
  24. ## List flags:
  25.  - <CODE>ro</CODE> - read only access
  26.  - <CODE>rw</CODE> - read-write access
  27.  
  28. ## List disk image types:
  29.  - <CODE>RAW</CODE> - it is used to mount disk images in "raw", "img" and "iso" formats
  30.  
  31. ## Exemples command:
  32.    <CODE> virtdisk -a /sd0/4/kolibri.img -f ro </CODE>
  33.    
  34.    <CODE> virtdisk -d 3 </CODE>
  35.