61.2 Using a Hard Disk or Jaz Drive for Disconnected Imaging Operations

When you boot a workstation from a Desktop Management Workstation Imaging device, you can create an image on, or put down an image from, any primary FAT16, FAT32, EXT2, or EXT3 partition on an IDE or SCSI hard drive or Iomega* Jaz drive. You can also use the local ZENworks partition if one is installed. Any target partition must have sufficient space.

When you create an image, the partition where you store the image is itself excluded from the image. When you put down an image, the source partition is not altered.

61.2.1 Creating an Image on a Hard Disk or Jaz Drive

You can create an image on a hard disk or Jaz drive using either the bash prompt or using the ZENworks Imaging Engine menu.

Using the Bash Prompt to Create an Image

  1. Boot the workstation using one of the following methods:

  2. Enter manual from the boot prompt.

  3. At the Linux prompt, enter img dump to view the available partitions.

    Note the number of the FAT partition where you’ll store the new image.

  4. Enter a command of the following format:

    img makel[pNumber] /path/image.zmg [comp=comp_level]
    

    where pNumber is the number of the partition to store the image in, and comp_level is the amount of compression used when creating the image. Specify any number from 0-9. 0 means no compression. 1 is the same as Optimize for Speed. 6 is the same as Balanced and is used by default if you do not specify this parameter. 9 is the same as Optimize for Space. (Optimize for Speed takes the least amount of time but creates the largest image file. Optimize for Space creates the smallest image file but might take a significant amount of time. Balanced is a compromise between compression time and image file size.) Path and image are the path and filename of the new image relative to the partition root.

    To store the image in the local ZENworks partition, do the following:

    1. Mount a folder in the partition using the appropriate commands. For example,

      mkdir /mounts/zenpart

      mount /dev/hda1 /mounts/zenpart/

    2. Store the image in the partition using the appropriate command. For example,

      img makel /mounts/zenpart/img.zmg

    For details on other related img command parameters, see ZENworks Imaging Engine Commands.

Using the ZENworks Imaging Engine Menu to Create an Image

  1. Boot the workstation using one of the following methods:

  2. Enter manual from the boot prompt.

  3. Enter img to display the ZENworks Imaging Engine menu.

  4. (Optional) Click System Information, then click Drive Information to display a list of the partition slots on the workstation.

    For your information, note the number of the FAT partition where you’ll store the new image.

  5. Click Imaging, then click Make Image.

  6. In the Make Image Wizard window, click Local, then click Next.

  7. Browse to and specify the path to the image archive.

  8. Select the partitions that you want to include in the image.

  9. Select a compression option.

    None: No compression is used.

    Speed: Takes the least amount of time to compress but creates the largest compressed image file. This option is used by default when an image is created.

    Balanced: Represents a compromise between compression time and image file size.

    Size: Creates the smallest image file but takes longer to compress.

  10. Click Next.

  11. (Optional) Fill in the fields:

    Author: The name of the person creating this image.

    Computer: The name of the computer being imaged.

    Image Description: A description of the image.

    Comments: Any additional comments about the image.

  12. Click Next.

    Depending on the amount of data on the hard disk, the image might take several minutes to create. If the screen goes blank, just press any key. (Linux enters a screen-saving mode after a few minutes.)

  13. After the image is created, exit from the ZENworks Imaging Engine menu, remove any CD or DVD from the drive, then reboot the workstation.

  14. (Optional) Verify that the image file was created. You might also want to check its size.

61.2.2 Putting Down an Image from a Hard Disk or Jaz Drive

You can put down an image from a hard disk or Jaz drive using either the bash prompt or using the ZENworks Imaging Engine menu.

Using the Bash Prompt to Put Down an Image

  1. Boot the workstation using one of the following methods:

  2. Enter manual from the boot prompt.

  3. (Optional) At the Linux prompt, enter img dump to view the available partitions.

    For your information, note the number of the FAT partition where the source image is stored.

  4. Enter a command of the following format:

    img restorel[pNumber] /path/image.zmg
    

    where pNumber is the number of the partition where the source image is stored, and path and image are the image path and filename relative to the partition root.

    To restore the image from the local ZENworks partition, do the following:

    1. Mount a folder in the partition using the appropriate commands. For example,

      mkdir /mounts/zenpart

      mount /dev/hda1 /mounts/zenpart/

    2. Restore the image in the partition using the appropriate command. For example,

      img restorel /mounts/zenpart/img.zmg

    For details on other related img command parameters, see ZENworks Imaging Engine Commands.

  5. After the imaging is done, remove the imaging device (if applicable) and do the following to boot the workstation with the new image:

    1. At the Linux prompt, type grub.s, then press Enter.

    2. Press Ctrl+Alt+Delete.

      If the workstation doesn’t boot to the new operating system (that is, if the Linux prompt is displayed), enter the grub.s command again and reboot the workstation a second time.

Using the ZENworks Imaging Engine Menu to Put Down an Image

  1. Boot the workstation using one of the following methods:

  2. Enter manual from the boot prompt.

  3. Enter img to display the ZENworks Imaging Engine menu.

  4. (Optional) Click System Information, then click Drive Information to display a list of the partition slots on the workstation.

    For your reference, note the number of the FAT partition where the source image is stored.

  5. Click Imaging, then click Restore Image.

  6. Click Local, then click Next.

  7. Browse to and specify the path to the image archive.

  8. (Optional) Specify a file set.

  9. (Optional) Specify any advanced options, such as sfileset or apartition:ppartition.

    For details on this and other related img command parameters, see Section 64.0, ZENworks Imaging Engine Commands.

  10. Click Next.

    Depending on the size of the image, it might take several minutes to put the image down. Images actually take slightly longer to put down than they do to take. If the screen goes blank, just press any key. (Linux enters a screen-saving mode after a few minutes.)

  11. After the imaging is done, remove the imaging device (if applicable) and do the following to boot the workstation with the new image:

    1. At the Linux prompt, type grub.s, then press Enter.

    2. Press Ctrl+Alt+Delete.

      If the workstation doesn’t boot to the new operating system (that is, if the Linux prompt is displayed), enter the grub.s command again and reboot the workstation a second time.