Partition Mode (img p)

Use the Partition mode to activate (make bootable), add, or delete a partition on the workstation.

You can activate, add, or delete a partition using either ZENworks Imaging Engine menu or the bash prompt.

To use the Partition mode using the ZENworks Imaging Engine menu:

  1. Enter img to display the ZENworks Imaging Engine menu, then click Partitioning.

  2. Click Modify Partitions, then click an option.

    • Active: Select a partition that you want to activate (make bootable), then click Active.

    • Add: Opens the Create New Partition window. Click a partition type, partition size, and cluster size, then click OK.

    • Delete: Select a partition, then click Delete.

    See the table below for more information.

To use the Partition mode using the bash prompt:

  1. From the bash prompt, enter:

    img poperation

    where operation is one of the following:

    Operation Specifies to

    pcpNumber type [size] [cluster=clusterSize]

    Create a new partition, where:

    • pNumber is the number of the partition slot (as displayed by img dump) in which to create the partition
    • type is a keyword, FAT12, FAT16, FAT32, NTFS, or Extended, or a numerical value for the partition type, for example 0x0C (hexadecimal) or 11 (decimal)

      If you are creating an extended partition, you can create a logical drive inside of the extended partition. See the next table for an example.

    • size is a valid size for the partition type in MB

      If you omit this parameter, the largest valid size for the partition type is used, given the available unpartitioned space on the drive.

    • clusterSize is the cluster size for an NTFS partition. This parameter is not valid for any other partition type.

      Don't use this parameter unless you have a specific reason to do so. It must be a power of 2 (2, 4, 8, 16, ...128). If you omit this parameter, the imaging engine uses a reasonable cluster size for the NTFS partition size.

    The new partition is recognizable by other operating systems, but must be formatted or have a base image restored to it before you can store files in it.

    pdpNumber

    Delete the partition from slot number pNumber. Use img dump to get the slot number.

    papNumber

    Activate (make bootable) the partition in slot number pNumber. Use img dump to get the slot number.

    Example Explanation

    img pc1 fat16

    Creates a FAT16 partition in slot 1 using all the available unpartitioned space on the drive.

    img pc5 fat32 5671

    Creates a FAT32 partition in slot 5 using 5,671 MB on the drive.

    img pd3

    Deletes the partition from slot 3.

    img pa5

    Activates (makes bootable) the partition in slot 5. (Assumes a partition exists in that slot.)

    img pc2 extended 2500

    img pc2 NTFS 2000 cluster=1

    img pc2 fat16 500

    Creates an extended partition with a 2000 NTFS logical drive and a 500 MB FAT16 logical drive.