img pd-all does not delete all partitions

  • 3987308
  • 18-Aug-2006
  • 30-Apr-2012

Environment

Novell ZENworks Desktop Management 6.5 - ZDM6.5 Imaging
Novell ZENworks Desktop Management 7 - ZDM7 Imaging

Situation

IMG pd-all will delete all known partitions, but for example it will not delete utility partitions used by some hardware vendors.

Resolution

Within the script, prior to the img pd-all command change the partition type of the unwanted partition, this will allow the partition to be deleted.

fdisk /dev/sda << !cmds!
t
1
6
w
!cmds!

This will change the partition type of partition 1 to type 6 (FAT16). From there, img pd-all will work.

Status

Reported to Engineering