訂單 (microsoft-windows-setup-diskconfiguration-disk-modifypartitions-modifypartition-order)
Order
指定當排定修改多個分割區時,分割區修改的順序。 即使您只修改一個分割區,也需要此設定。
修改任意數目的資料分割時,針對每個磁片磁碟機,請使用從 1 開始且增加的資料分割順序:1、2、3 等等。
當您新增多個分割區時,若要更輕鬆地追蹤資料分割,您可以針對 Order
和 PartitionID
使用相同的值。 若要這樣做,請為每個分割區新增 ModifyPartition 元件,包括不會修改的資料分割,例如 MSR 和擴充分割區。
值
Order_number |
指定修改資料分割的順序。 Order_number 是整數。 |
有效的組態傳遞
windowsPE
父階層
microsoft-windows-setup- | DiskConfiguration | 磁片 | ModifyPartitions | ModifyPartition | 以
套用至
如需此元件支援的 Windows 版本和架構清單,請參閱 microsoft-windows-setup-。
XML 範例
BIOS-Based具有兩個硬碟的系統
設定的 DiskConfiguration
下列 XML 輸出會顯示具有兩個硬碟之 BIOS 電腦的資料分割修改。 第一個硬碟包含三個分割區,包括已設定的三個修改,其已排序為 1、2 和 3。 第二個硬碟包含已設定單一修改的單一磁碟分割,其已排序為 1。
<DiskConfiguration>
<!-- First hard drive -->
<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>
<!-- System partition -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>Primary</Type>
<Size>300</Size>
</CreatePartition>
<!-- Windows partition -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</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>
<!-- System partition -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>2</PartitionID>
<Label>System</Label>
<Format>NTFS</Format>
<Active>true</Active>
</ModifyPartition>
<!-- Windows partition -->
<ModifyPartition wcm:action="add">
<Order>3</Order>
<PartitionID>3</PartitionID>
<Label>Windows</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<!-- Second hard drive -->
<Disk wcm:action="add">
<DiskID>1</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- Data partition -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- Data partition -->
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>Data</Label>
<Letter>D</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>3</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
使用擴充分割區BIOS-Based系統
設定的 DiskConfiguration
下列 XML 輸出會顯示具有六個分割區之 BIOS 電腦的資料分割修改:三個主要分割區、一個擴充分割區和兩個邏輯分割區。 已設定五個修改,已排序 1、2、3、4 和 5。 擴充分割區不需要修改。
<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 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 partition -->
<ModifyPartition wcm:action="add">
<Order>4</Order>
<PartitionID>4</PartitionID>
<Label>Windows</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>
UEFI-Based具有單一硬碟的系統
設定的 DiskConfiguration
下列 XML 輸出會顯示以 UEFI 為基礎的電腦的資料分割修改。 硬碟包含三個分割區:EFI 系統磁碟分割、Microsoft 保留 (MSR) 磁碟分割,以及主要 Windows 磁碟分割。 已設定兩個修改,已排序 1 和 2。 MSR 擴充分割區不需要修改。
<DiskConfiguration>
<Disk wcm:action="add">
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<!-- EFI system partition (ESP) -->
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>EFI</Type>
<Size>100</Size>
</CreatePartition>
<!-- Microsoft reserved partition (MSR) -->
<CreatePartition wcm:action="add">
<Order>2</Order>
<Type>MSR</Type>
<Size>128</Size>
</CreatePartition>
<!-- Windows partition -->
<CreatePartition wcm:action="add">
<Order>3</Order>
<Type>Primary</Type>
<Extend>true</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<!-- EFI system partition (ESP) -->
<ModifyPartition wcm:action="add">
<Order>1</Order>
<PartitionID>1</PartitionID>
<Label>System</Label>
<Format>FAT32</Format>
</ModifyPartition>
<!-- MSR partition does not need to be modified -->
<!-- Windows partition -->
<ModifyPartition wcm:action="add">
<Order>2</Order>
<PartitionID>3</PartitionID>
<Label>Windows</Label>
<Letter>C</Letter>
<Format>NTFS</Format>
</ModifyPartition>
</ModifyPartitions>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>3</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
如需完整的 XML 範例和建議的資料分割設定,請參閱 如何設定以 UEFI/GPT 為基礎的硬碟磁碟分割 或 如何設定 BIOS/MBR 型硬碟磁碟分割。