Jump to content

WINPE & Ghost32


Shadowpp

Recommended Posts

After searching the forums I see that people are sucessfully using the above combination to drop an image to a hard drive.

I am having trouble. I am asking for help. :)

I have created a WINPE cd and I can boot to it no problem.

My startnet.cmd:

@echo off
factory -winpe

copy warning.exe r:\

r:\warning.exe

cls

Echo Please Remove the CD and cycle power on the computer....

Warning.exe (Compiled Wise Script):

Get Registry Key HARDWARE\DESCRIPTION\System\CentralProcessor\0 place in Variable SPEED

If SPEED Less Than "1000" then

  Set Variable CONTINUE to

  Beep 2000 milliseconds at 500 Hz

  Custom Dialog "ATTENTION!"

  If CONTINUE Equals (Ignore Case) "YES" then

     Execute Ghost32.exe -clone,mode=restore,src=NT.gho,dst=1 -sure (Wait)

  End

End

Exit Installation

All works great until Ghost launches and I get an error message:

The destination disk cannot be locked (643)

Please advise. And thanks.

Link to comment
Share on other sites


After further examination it seems that the drive is locked open due to a pagefile which is in use by WINPE. I am guessing that this is created becuase I am not using the /inram switch as the pc only has 64MB of RAM.

Anyone have any ideas?

Thanks again

Link to comment
Share on other sites

Have a look at your txtsetup.sif, here I see this:

RequiredMemory = 67108864

Pagefile = 115,250
loaderprompt="I.R.A.S Loading...." <--Custom prog name

maybe try playing with these, just make sure you save good backup. But you already knew that. ;)

//EDIT//

Irrelevant see below...

Edited by likuidkewl
Link to comment
Share on other sites

I seem to have no problems unless the Image I am installing is on the same partition, then it says the drive is locked. But as long as the image is on the dvd or another partition you are fine, atleast for me.

Link to comment
Share on other sites

I haven't been able to get it to drop on the same partition because the some system files get locked on boot up (usually in the system32 dir) as well as the paging file...

try putting the pagin file on another HDD and see what you come up with...

Link to comment
Share on other sites

The pagefile gets created by Factory.exe. You can disable the pagefile creation by setting

[winpe]

pagefilesize=0

in the winbom.ini file that lives on the root of your CD. Note: Bad things may happen in low memory situations when we can't create a pagefile, so you'll need to test & make sure all is well.

If you have another place to put the pagefile you can force the placement using the pagefilepath key (also under [winpe]), as in

pagefilepath=x:\mypagefile.sys

hth.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...