Seite 1 von 1

Preallocated disks from scratch

Verfasst: 20.12.2005, 02:57
von continuum
Create a preallocated disk from scratch ...



Download sysinternals contig.exe and run this cmd:



echo # Disk DescriptorFile > 1gb.vmdk
echo version=1 >> 1gb.vmdk
echo CID=e2c019c7 >> 1gb.vmdk
echo parentCID=ffffffff >> 1gb.vmdk
echo createType="monolithicFlat" >> 1gb.vmdk
echo. >> 1gb.vmdk
echo # Extent description >> 1gb.vmdk
echo RW 2097152 FLAT "1gb-flat.vmdk" 0 >> 1gb.vmdk
echo. >> 1gb.vmdk
echo # The Disk Data Base >> 1gb.vmdk
echo #DDB >> 1gb.vmdk
echo. >> 1gb.vmdk
echo ddb.virtualHWVersion = "4" >> 1gb.vmdk
echo ddb.geometry.cylinders = "2080" >> 1gb.vmdk
echo ddb.geometry.heads = "16" >> 1gb.vmdk
echo ddb.geometry.sectors = "63" >> 1gb.vmdk
echo ddb.adapterType = "ide" >> 1gb.vmdk

Contig.exe -v -n 1gb-flat.vmdk 1073741824


The disk is created contiguous and the command creates the disk much faster than VMwares builtin tool.

Ulli