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

The Partition mode can be used in two ways:

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

    For more information, see the table in Section 64.6.2, Using the Bash Prompt.

64.6.2 Using the Bash Prompt

To use the Partition mode from the bash prompt:

  1. From the bash prompt, enter:

    img poperation

    where operation is one of the following:

    Operation

    Description

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

    The following are examples:

    Example

    Explanation

    img pc1 fat16

    Creates a FAT16 partition in slot 1 using all of 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. (This assumes that 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 MB NTFS logical drive and a 500 MB FAT16 logical drive.

    img pc1 NTFS 40%

    img pc2 NTFS 60%

    Creates an extended partition using 40% of the available NTFS logical drive space and another partition using 60% (the remaining). This can be useful with scripted imaging.