Skip to content

Instantly share code, notes, and snippets.

@nealian
Created April 19, 2017 23:52
Show Gist options
  • Save nealian/af0f97a63278daa735d7d58f89442163 to your computer and use it in GitHub Desktop.
Save nealian/af0f97a63278daa735d7d58f89442163 to your computer and use it in GitHub Desktop.
A but.sh template for .vmdk files for raw disks
# Disk DescriptorFile
version=1
CID=${vmdk_cid}
parentCID=ffffffff
createType="fullDevice"
# Extent description
RW ${vmdk_sectors} FLAT "${vmdk_dev}" ${vmdk_skip:-0}
# The disk Data Base
#DDB
ddb.virtualHWVersion = "4"
ddb.adapterType="ide"
ddb.geometry.cylinders="16383"
ddb.geometry.heads="16"
ddb.geometry.sectors="63"
ddb.uuid.image="${vmdk_uuid}"
ddb.uuid.parent="00000000-0000-0000-0000-000000000000"
ddb.uuid.modification="${vmdk_mod_uuid}"
ddb.uuid.parentmodification="00000000-0000-0000-0000-000000000000"
ddb.geometry.biosCylinders="1024"
ddb.geometry.biosHeads="255"
ddb.geometry.biosSectors="63"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment