Why installation of a Ghost image on a PXE machine overwrites the disk partition definition

Document ID : KB000027522
Last Modified Date : 14/02/2018
Show Technical Document Details

Symptoms: 

A Ghost image for a Windows XP SP2 with a hard drive of 12 GB has been registered in OSIM R11.

We would like to deploy the Ghost image to a new PXE machine which should have 2 partitions NTFS:

  • First partition NTFS with a size of 12 GB.

  • Second partition NTFS with the rest of hard drive size

We define the partition definition in the file ...\CA\DSM\Server\SDBS\var\managedpc\camenu\<ghostimage>.par like this:

[512..2097151]

Size    Unit    Type            Id
----------------------------------------
12288 mb Start FAT32
100% Logical NTFS

But when we deploy the ghost image to the PXE machine, only one partition NTFS is created with a size of full hard drive size.

 

Environment:                                          

CA Client Automation - All Versions

 

Cause: 

Incorrect OSIM configuration parameter and ghost command

 

Resolution:

In order to create the disk partition defined in .par file and load the Ghost image on the first partition do this:

  • Make sure that parameter CreateNewPartitions is set to YES In OS Installation Parameter of PXE machine in DSM Explorer. Otherwise the .par file will be ignored.

    And

  • Edit the file  .... CA\DSM\Server\SDBS\var\managedpc\camenu\<ghostimage>.bat and replace the line
    s:\ghost -clone,mode=load,src=s:\%GhostImage%,dst=1 -sure -RB -FDSZ

    by this line

    s:\ghost -clone,mode=pload,src=s:\%GhostImage%:1,dst=1:1 -sure -RB -FDSZ

    pload means: load a partition (instead all disk)
    src=s:\%GhostImage%:1 means: first partition of ghost image
    dst=1:1 means: destination is the first partition of first hard drive.

Thus Ghost will load the first partition of Ghost image to the first partition of hard drive.

 

Additional Information:

The second partition of hard drive is not automatically formatted. If you want to format it automatically add a line in file    ....
       ....\CA\DSM\Server\SDBS\var\managedpc\images\<ghostimagename>\<ghostimagename>\$oem$\cmdlines.txt:

[Commands]
"cmd.exe /c convert c: /fs:ntfs < c:\sysprep\$OEM$\conv-ans.txt"
"cmd.exe /c echo y | format d: /fs:ntfs"
"cmd.exe /c c:\sysprep\$OEM$\custom.cmd"

The command "cmd.exe /c echo y | format d: /fs:ntfs" will format the drive D in NTFS.
Remark: If the Windows OS language is not English, you may have to change the letter used to answer the confirmation question.
examples:
French: "cmd.exe /c echo o | format d: /fs:ntfs"
German: "cmd.exe /c echo j | format d: /fs:ntfs"
Spanish: "cmd.exe /c echo s | format d: /fs:ntfs"