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.

Article:TECH110649  |  Created: 2009-01-02  |  Updated: 2013-09-10  |  Article URL http://www.symantec.com/docs/TECH110649
Article Type
Technical Solution


Environment

Issue





 


Cause



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


Solution



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. 



Legacy ID



2009040208515160


Article URL http://www.symantec.com/docs/TECH110649


Terms of use for this information are found in Legal Notices