Restoring base image to non-empty partition may cause Segmentation Fault

  • 7005876
  • 30-Apr-2010
  • 30-Apr-2012

Environment

Novell ZENworks 10 Configuration Management Imaging
Novell ZENworks 7 Desktop Management Support Pack 1 - ZDM7 SP1
Novell ZENworks 7 Desktop Management on Linux Support Pack 1 - ZDML7 SP1
Novell ZENworks 7.3 Linux Management - ZLM7.3

Situation

* Restoring a base (i.e., not an add-on) image to a partition using the a1:p1 form of the restore command (ap=partition:partition A mapping between a partition in the image archive (a-partition) and a target physical partition on the local machine (p-partition). Use this parameter to selectively restore a specific part of the image to a specific local partition.)
See " F.4 Restore Mode" in "F.0 ZENworks Imaging Engine Commands" in the ZCM 10 Documentation
See " 64.4 Restore Mode (img restore)" in " 64.0 ZENworks Imaging Engine Commands" in the ZDM7 Documentation
See "30.1 Imaging Devices" in "30.0 Using Preboot Services" in the ZLM 7.3 Documentation

* Partition already contains data

* Restore terminates with "Segmentation Fault"

Resolution

Base images should not be restored to non-empty partitions - either create an add-on image, or clear the partition before restoring, for example:
img -pd1 #delete partition 1
img -pc1 -type NTFS #create partition 1, NTFS formatted
img -pa1 #set partition 1 active
img -rp 'ImageName' -ap=a1:p1

Additional Information

Base images are only designed to be placed into empty partitions, and errors can occur when deleting a file that's already present on the disk and replacing it with the copy from the base image.