Back to Configuration XML format.
<block_device index=IDNUM path=DEVICEPATH enabled="true"/>
Since colinux is not able to directly use your disk drives and other related hardware (your host OS will have locked down the access), colinux allows you to setup "colinux block devices", or cobd's, that provide logical access to your disk partitions with the help of your host operating system.
Before using one of these virtual block devices in colinux, the specific hardware to be used must be indicated in the configuration using this <block_device> element. Each disk partition or image file must be listed separately in its own <block_device> element.
- index - IDNUM is a unique number (in the range of 0 to 7) that will be used as an identifier for the virtual device in your guest linux system corresponding to this block device, e.g. index="0" will become /dev/cobd0.
- path - DEVICEPATH is a valid device path in your host operating system, see Device Paths in Windows for details.
- enabled - Well, it will do what you might expect...
<block_device index="0" path="\DosDevices\c:\coLinux\gentoo-i586-ext3-2g-deluxe" enabled="true"/> <block_device index="1" path="\DosDevices\c:\coLinux\swap_256M" enabled="true"/> <block_device index="2" path="\Device\Cdrom0" enabled="true"/> <block_device index="3" path="\Device\Harddisk1\Partition2" enabled="true"/>
- Device Paths in Windows - details about the DEVICEPATH parameter
- Using Block Devices in Colinux - how to use the devices in your coLinux guest system
- IO Errors With Raw Partition
MassTranslated on Sun Apr 23 17:35:35 UTC 2006
ManuallyAdjusted on 13:45, 8 May 2006 (CEST)