Extend (Standard 8 Module Reference)

7/8/2014

Review the applicable Embedded Core modules and any examples for the Extend setting in Windows Embedded 8 Standard (Standard 8).

This setting specifies whether to extend the system partition on which you are installing Windows Embedded 8 Standard (Standard 8), create a new extended partition, or extend an existing logical partition.

Set to true to extend the partition to fill the remaining space on the disk; otherwise, set to false.

You can extend an existing partition or create a new partition, but you cannot do both.

Modules

The following table shows the modules that you can apply this setting to. In Image Configuration Editor (ICE), you can follow the corresponding path to set this setting for a module.

Module

Path

Setting Description

Deployment

Products/Embedded Core/Deployment/ExtendOSPartition/Extend

Specifies whether to extend the NTFS file system partition on which you are installing Standard 8.

This setting or Size is required if you installed Standard 8 by using a sector-based imaging solution and now plan to extend the partition.

JJ963007.note(en-us,WinEmbedded.81).gifNote:
If this setting and Size are both set, the system logs an error and stops installation.

This setting is valid only for NTFS file system partitions.

Setup

Products/Embedded Core/Setup/DiskConfiguration/Disk/CreatePartitions/CreatePartition/Extend

Specifies whether to extend a new primary partition to fill the remainder of the hard disk.

Setup

Products/Embedded Core/Setup/DiskConfiguration/Disk/ModifyPartitions/ModifyPartition/Extend

Specifies whether to extend an existing logical partition to fill the remainder of the disk.

JJ963007.note(en-us,WinEmbedded.81).gifNote:
You cannot extend Extensible firmware interface (EFI)-partition types.

XML Example

The following XML examples show how to configure Extend.

Extend the NTFS File System Partition

The following example shows how to extend a partition to fill the remaining space on the disk on which you are installing Standard 8.

<ExtendOSPartition>
    <Extend>true</Extend>
</ExtendOSPartition>

Create Extended Partition

The following XML example for the DiskConfiguration setting shows how to create two partitions on a hard drive on a BIOS/MBR-based system.

<DiskConfiguration>
    <Disk wcm:action="add">
        <DiskID>0</DiskID> 
        <WillWipeDisk>true</WillWipeDisk> 
        <CreatePartitions>

            <!-- System partition -->
            <CreatePartition wcm:action="add">
                <Order>1</Order> 
                <Type>Primary</Type> 
                <Size>300</Size> 
            </CreatePartition>

            <!-- Windows Embedded partition -->
            <CreatePartition wcm:action="add">
                <Order>2</Order> 
                <Type>Primary</Type> 
                <Extend>true</Extend> 
            </CreatePartition>
        </CreatePartitions>
    </Disk>
    <WillShowUI>OnError</WillShowUI> 
</DiskConfiguration>

For full XML examples, see Disk Configuration XML Example and System with Two Hard Drives XML Example.For additional full XML examples and recommended partition configurations, see How to Configure UEFI/GPT-Based Hard Disk Partitions, or How to Configure BIOS/MBR-Based Hard Disk Partitions.

Modify a Partition to Fill the Remainder of the Drive

The following XML example shows how to modify an existing hard drive partition structure. In this example, the third partition is extended to fill the remainder of the drive.

<DiskConfiguration>
   <WillShowUI>OnError</WillShowUI>
   <Disk>
      <DiskID>0</DiskID>
      <WillWipeDisk>false</WillWipeDisk>

      <ModifyPartitions>

         <!-- Modify the existing Windows Embedded partition -->
         <ModifyPartition>
            <Order>1</Order>
            <PartitionID>3</PartitionID>
            <Format>NTFS</Format>
            <Extend>true</Extend>
            <Label>Windows Embedded</Label>
            <Letter>C</Letter>
         </ModifyPartition>
      </ModifyPartitions>
   </Disk>
</DiskConfiguration>

Modify a Logical Partition to Fill the Remainder of an Extended Partition

The following XML example shows how to modify a partition for a BIOS-based computer with two logical partitions. This XML example includes the creation of an extended partition that is set to extend to the end of the hard disk. The second logical partition, labeled Logical2, is set to extend to the end of the extended partition. The following illustration shows these partitions.

Extended BIOS partition

<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>

      <!-- Utility 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>

      <!-- Data partition -->
      <CreatePartition wcm:action="add">
        <Order>6</Order> 
        <Type>Logical2</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.
                     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> 
        <Letter>R</Letter> 
        <Format>NTFS</Format> 
        <TypeID>0x27</TypeID>
      </ModifyPartition>

      <!-- Utility partition -->
      <ModifyPartition wcm:action="add">
        <Order>2</Order> 
        <PartitionID>2</PartitionID> 
        <Label>Utility</Label> 
        <Letter>U</Letter> 
        <Format>NTFS</Format> 
        <TypeID>0x27</TypeID>
      </ModifyPartition>

      <!-- System partition -->
      <ModifyPartition wcm:action="add">
        <Order>3</Order> 
        <PartitionID>3</PartitionID> 
        <Label>System</Label>
        <Letter>S</Letter> 
        <Format>NTFS</Format> 
        <Active>true</Active> 
      </ModifyPartition>

      <!-- Extended partition:
           This partition does not need 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>

      <!-- Data partition -->
      <ModifyPartition wcm:action="add">
        <Order>5</Order> 
        <PartitionID>5</PartitionID> 
        <Label>Data</Label> 
        <Letter>D</Letter> 
        <Format>NTFS</Format> 
        <Extend>true</Extend>
          <!-- Note: When modifying a logical partition, setting
                     "ModifyPartition|Extend=true" sets 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

Concepts

Embedded Core Settings