You need to automate the restore of an image from a CD/DVD but find that the CD-Rom drive letter is not consistent in Windows PE and this prevents you from automating the restore of an image from CD/DVD.
search cancel

You need to automate the restore of an image from a CD/DVD but find that the CD-Rom drive letter is not consistent in Windows PE and this prevents you from automating the restore of an image from CD/DVD.

book

Article ID: 151777

calendar_today

Updated On:

Products

Ghost Solution Suite

Issue/Introduction



 

Cause

Windows PE drive letter assignment to storage devices may not be consistent.

Resolution

The following are examples of "if statements" that could be Incorporated into your Ghost batch file from the Ghost Boot Wizard:

1.  In the Ghost Boot Wizard, at the screen titled "Symantec Ghost Boot Wizard - Review", click the "Start Editing" button and replace the contents of start.bat with the following:

x:
cd \ghost
rem --- This will create primary OS drive configuration ---
ghost32.exe /setosdrives /blind >> x:\ghost\startlog.txt

if exist c:\ghost\image.gho x:\ghost\ghost32.exe -clone,mode=restore,src=c:\ghost\image.gho,dst=1
if exist d:\ghost\image.gho x:\ghost\ghost32.exe -clone,mode=restore,src=d:\ghost\image.gho,dst=1
if exist e:\ghost\image.gho x:\ghost\ghost32.exe -clone,mode=restore,src=e:\ghost\image.gho,dst=1
if exist f:\ghost\image.gho x:\ghost\ghost32.exe -clone,mode=restore,src=f:\ghost\image.gho,dst=1

2. Click the Stop Editing button.

3. Click Next to complete the package creation.

Note: You may need to include additional lines in the script for associated drive letters depending upon the number of hard drives or partitions and devices attached to the machine.