E.6 Partition Mode (img part)

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

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:

E.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 E.6.2, Using the Bash Prompt.

E.6.2 Using the Bash Prompt

  1. From the bash prompt, enter:

    img poperation

    where operation is one of the following:

    Operation

    Action

    pcpNumber type [size] [cluster=clusterSize]

    Creates 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, a partition name, 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 or a percentage

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

      If you give a percentage, include the % symbol; otherwise, the value is considered the size in MB.

    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

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

    pd-all

    Deletes all non-protected partitions.

    papNumber

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

    The following are examples:

    Example

    Explanation

    img pc1 ext2

    Creates the ext2 partition in slot 1 using all of the available unpartitioned space on the drive.

    img pc5 reiser 5671

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

    img pd3

    Deletes the partition from slot 3.

    img pc2 extended 2500

    img pc2 reiser 500

    Creates an extended partition with a 2500 ext2 logical drive and a 500 MB Reiser logical drive.