A Ghost image has been registered in OSIM R12. When we deploy the Ghost image in a PXE machine, the C drive is not automatically converted to NTFS.
But according to the following sysprep file, it should be converted automatically:
C:\Program Files\Unicenter DSM\Server\SDBS\var\managedpc\images\<ghostimagename>\<ghostimagename>\$oem$\cmdlines.txt:
"cmd.exe /c convert c: /fs:ntfs < c:\sysprep\$OEM$\conv-ans.txt"
Client Automation OSIM feature in Windows environment
"cmd.exe /c convert c: /fs:ntfs" is a command which converts the C drive to NTFS.
This command is located in file cmdlines.txt which is copied on PXE machine in directory c:\sysprep\$oem$.
Sysprep executes the commands in this file during the Mini-Setup Portion of Sysprep.
See following Microsoft web page for more information about this file:
The file c:\sysprep\$OEM$\conv-ans.txt is copied from C:\Program Files\Unicenter DSM\Server\SDBS\var\managedpc\images\<ghostimagename>\<ghostimagename>\$oem$ to PXE machine in c:\sysprep\$oem$ and contains 2 lines:
This file is used to answer automatically to the 2 questions asked by command: "cmd.exe /c convert c: /fs:ntfs" which are
Convert cannot run because the volume is in use by another process. Convert may run if this volume is dismounted first. ALL OPENED HANDLES TO THIS VOLUME WOULD THEN BE INVALID. Would you like to force a dismount on this volume? <Y/N>
Convert cannot gain exclusive access to the drive letter drive, so it cannot convert it now. Would you like to schedule it to be converted the next time the system restarts? <Y/N>
To first question we should answer No and second question Yes. Thus the conversion to NTFS of drive C is automatically executed at next reboot.
But if the C drive has a label name (which can be defined during format), an additional first question is asked:
Enter current volume label for Drive X:
So in this case, answer N in file conv-ans.txt is for the label name, Y for question about force dismount and nd there is no answer for the last question. But as we answer yes for force dismount, an error occurs (system could not dismount the drive C) and convert command exits with an error. The conversion is not done.
The solution is to add a new line in file C:\Program Files\Unicenter
There is a second case of problem. If the Windows OS of the Ghost image is not English, the answers to questions may not be Y/N but others letters.
For example in German the answers are J/N, In French O/N, in Spanish S/N etc...
So we have to edit the file conv-ans.txt and replace the answers by the corrects one.
Edit file C:\Program Files\Unicenter DSM\Server\SDBS\var\managedpc\images\<ghostimagename>\<ghostimagename>\$oem$\conv-ans.txt and put the correct answers depending on Ghost image windows language and if the drive C has a label name defined or not
Here is an array with the contents of file conv-ans.txt in different cases:
Ghost Windows OS Language
Drive C has a Label name
Drive C has no label name