Issue

Zim fails to write information to ZISD/EBD.

The most common issue is that the hard disk does not have enough free space for ZISD to be written.

This can occur for several different reasons, the most common being;

  • A new hard disk has been installed (all sectors have been preformatted)
  • A hard disk has been erased/wiped (0/1 written to every sector of the disk multiple times)
NOTE: This TID is valid for ZENworks versions prior to 11.3.0. For ZENworks 11.3.0 and newer please review this TID: TID-2014004: An error occurred writing information to ZISD! (ZENworks Imaging) (ZCM 11.3.0 onwards)


Solution


Zim can run a command to make space for ZISD to be written.


WARNING! The following procedure will clear several sectors of the hard disk. Data on the hard disk may be lost. Do NOT perform this procedure in a production environment without first fully testing in a non-production test environment.



The standard zim.cfg file has a ZISD:Write function that contains an error check.

i.e.

Zisd:Write
; Trap ZISD:Write errors
If:Var,_ERROR,NE,"0"
Dialog:Ask,"Error!","An error occurred writing information to ZISD!","_Ok",red
End:

If the variable _ERROR

  • is equal to "0" then the ZISD write was successful
  • is not equal to "0" then the ZISD write was not successful. Zim will display an error message.

It is possible to extend this error check to attempt to create space for ZISD to be written then retry the write before reporting a failure message.


  • Update the zim.cfg file ZISD:Write section: 
    ; Update the information in ZISD
    ZISD:Put,NetBiosName,"%COMPUTERNAME%"
    
    ZISD:Put,VendorDataENGL,"%VendorDataENGLSTRING%"
    ZISD:Write
    
    ; Trap ZISD:Write errors
    If:Var,_ERROR,NE,"0"
    Dialog:Ask,"Error!","An error occurred writing information to ZISD!","_Ok",Red
    End:
     with 
    ; Update the information in ZISD
    ZISD:Put,NetBiosName,"%COMPUTERNAME%"
    
    ZISD:Put,VendorDataENGL,"%VendorDataENGLSTRING%"
    
    Set:ZISDUpdateCount,"1"
    Label:UpdateZISD
    
    ZISD:Write
    
    ; Trap ZISD:Write errors
    If:Var,_ERROR,NE,"0"
    If:Var,ZISDUpdateCount,LT,"3"
    Set:ZISDUpdateCount,math(+, 1)
     File:Run,"dd if=/dev/zero of=/dev/%HDTYPE% bs=512 seek=5 count=3",Silent
    Goto:UpdateZISD
    Else:
    Dialog:Ask,"Error!","An error occurred writing information to ZISD!","_Ok",red
    End:
    End:
  • Make a backup copy of current zim.cfg file on server.

  • Save the updated zim.cfg file to the server.


If a ZISD write error occurs now Zim will make 3 attempts to clear space and check if the ZISD write is successful prior to displaying an error message.


This will work for machines using ZENworks Configuration Management 11.2.x (or earlier) and configured with MBR / BIOS boot process.


NOTE: For ZENworks 11.3.0 and newer please review this TID: TID-2014004: An error occurred writing information to ZISD! (ZENworks Imaging) (ZCM 11.3.0 onwards) 

If you have any problems or questions about the script or steps in this TID  please contact the ENGL support team