C.7 Configuring the Destination Disk Structure Before Restoring a WIM Image

ZENworks allows you to configure the disk structure of the destination device on which you want to restore a WIM image. During the restoration of the WIM, the disk of the destination device is automatically partitioned according to the newly configured structure and the image is restored on the new partitions.

You can configure the destination disk structure only if the image is restored in one of the following modes:

To configure the disk structure of the destination device, do the following before restoring a WIM image:

  1. create an XML file with the filename as WIM_image_name-wim.xml with the following content:

    <ZENWORKS>
      <Disk Number="1">
        <Partition Number="1" Type="1" Size="14998" Offset="1" Active="1" FSType="NTFS" Drive="C:"> </Partition>
        <Partition Number="0" Type="2" Size="99378" Offset="14999" Active="0" FSType="NA" Drive=""> </Partition>
       <Partition Number="2" Type="4" Size="24999" Offset="15000" Active="0" FSType="NTFS" Drive="D:"> </Partition>
      </Disk>
      <Disk Number="2">
        <Partition Number="1" Type="1" Size="14998" Offset="1" Active="1" FSType="NTFS" Drive="C:"> </Partition>
        <Partition Number="0" Type="2" Size="99378" Offset="14999" Active="0" FSType="NA" Drive=""> </Partition>
       <Partition Number="2" Type="4" Size="24999" Offset="15000" Active="0" FSType="NTFS" Drive="D:"> </Partition>
      </Disk>
      ...
      </ZENWORKS>
  2. Save the WIM_image_name-wim.xml created in Step 1 in the same location as the WIM image file.

Ensure to follow these guidelines as you work with the XML file:

  • You can specify only the following disk settings:

    • Partition Number - The number of partitions that you can create per hard disk is depended upon number of partitions supported by Windows
    • Type - Valid values are 1, 2, 4, and 8. Use 1 for Primary partition, 2 for Extended partition, 4 for Logical partition, and 8 for Linux Swap partition.
    • Size - Size of the partition. The value must be specified in MB.
    • Offset - The starting position of the partition
    • Active - Valid values are 1 and 0 (zero). 1 indicates that the partition is active and 0 indicates that the partition is not an active partition. A disk can have only one active partition.
    • FSType - File system type. Valid values are NTFS, FAT12, FAT16, and FAT32.
    • Drive - Letter to represent the partition.
  • You must specify the disk settings in the following order:

    Partition Number, Type, Size, Offset, Active, FSType, Drive