Extending a Partition XML Example (Standard 8 Module Reference)
7/8/2014
Review an XML example of how to configure the DiskConfiguration setting in the Embedded Core module in the Windows Embedded 8 Standard (Standard 8) module catalog.
UEFI-Based System with One Hard Drive
The following XML example for the DiskConfiguration setting shows partition modifications for a BIOS-based computer with six partitions: three primary partitions, an extended partition, and two logical partitions. There are five modifications configured, ordered 1, 2, 3, 4, and 5. The extended partition does not require modification.
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Recovery partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>3000</Size>
</CreatePartition>
<!-- Utility2 partition -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Size>250</Size>
</CreatePartition>
<!-- System partition -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>Primary</Type>
<Size>100</Size>
</CreatePartition>
<!-- Extended partition -->
<CreatePartition wcm:action="add">
<Order>4</Order>
<Type>Extended</Type>
<Extend>true</Extend>
</CreatePartition>
<!-- Windows Embedded partition -->
<CreatePartition wcm:action="add">
<Order>5</Order>
<Type>Logical</Type>
<Size>15000</Size>
</CreatePartition>
<!-- Logical2 partition -->
<CreatePartition wcm:action="add">
<Order>6</Order>
<Type>Logical</Type>
<Size>100</Size>
<!-- Note: To create a logical partition that fills
the rest of the extended partition, create the
data partition with an initial size of 100 MB.
This will be changed in the ModifyPartition section. -->
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- Recovery partition -->
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>Recovery</Label>
<Format>NTFS</Format>
<TypeID>0x27</TypeID>
</ModifyPartition>
<!-- Utility2 partition -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Label>Utility2</Label>
<Letter>U</Letter>
<Format>NTFS</Format>
</ModifyPartition>
<!-- System partition -->
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>3</PartitionID>
<Label>System</Label>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition>
<!-- Extended partition:
This partition does not need receive a partition number,
nor does it need to be modified. -->
<!-- Windows Embedded partition -->
<ModifyPartition wcm:action="add">
<Order>4</Order>
<PartitionID>4</PartitionID>
<Label>Windows Embedded</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
<!-- Logical2 partition -->
<ModifyPartition wcm:action="add">
<Order>5</Order>
<PartitionID>5</PartitionID>
<Label>Logical2</Label>
<Letter>L</Letter>
<Format>NTFS</Format>
<Extend>true</Extend>
<!-- Note: When modifying a logical partition, setting
"ModifyPartition|Extend=true" instructs the partition to
fill the remainder of the extended partition.
This overrides the "CreatePartition|Size" value. -->
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>4</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
See Also
Reference
Setup
Order
Type
Size
Extend
Size
Label
Format
TypeID
Letter
Active
DiskID
PartitionID