MSFN Forum: WinPE + Diskpart + Ghost - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

WinPE + Diskpart + Ghost loosing my nerves Rate Topic: -----

#1 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

  Posted 24 August 2005 - 11:47 AM

Hello.

We are using WinPE 2005 and Ghost 8.0 for imaging.

The functionality is as followed.

1.Booting WinPE
2.Starting factory + registering dll
3.VBScripts will started to gathering information
4.after that diskpart destroys the existing partition
5.diskpart create a new primary partition
6.Format partition with ntfs
7.Ghost will started to copy image to created partition
8.Writing sysprep-information

This works fine, but on some computers after ghost image is beeing restored, no access to data on partition is given. It looks like before step 7. If i´ve created an directory, for example, this directory existing after ghost also.
Just if I boot the computer, the data on the partition become visible and then I can write on it. But why only on some computers this accures?

It looks like the mapping table of the partition will not written or refreshed. Can I do it manual?

Thanks for help in advance

kRUSty


#2 User is offline   mats 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 10-May 05

Posted 25 August 2005 - 12:48 AM

Hi kRUSty

I think you are doing some extra steps here.

you shouldn't need to create the new partion or format it since this already is in the ghost image.

Your way isn't bad in any way it's just that you can save time by skipping it.

have you tried to run diskpart between steps 7 and 8 and assign a letter to the new partition?

I wrote a system that does the same as yours but with pqideploy insted of ghost. thee i had to assign a letter to the newly imaged drive before i could access it again. This has worked on about 30000 installations so far

#3 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

Posted 25 August 2005 - 02:10 AM

Hey, Mats.

Yes, the letter will assigned after every installation with ghost. I´ve forgotten to write that.

The thing, that makes me crazy is, that it works on many computers, but on this two not. I´ve tried on two equal computers (siemens) with 100% equal hardware (same model). On one of comuter it works on another not.

Greets
kRUSty.

#4 User is offline   mats 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 10-May 05

Posted 25 August 2005 - 04:43 AM

This is really strange

Exactly witch fujitsu are you using? We got some diffrent ones and it could be intresting to see if we got the same modell

#5 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

Posted 25 August 2005 - 05:18 AM

its an Scenic E620

Greets.
kRUSty

#6 User is offline   ChrisBaksa 

  • Member
  • PipPip
  • Group: Members
  • Posts: 230
  • Joined: 05-March 04

Posted 25 August 2005 - 07:19 AM

kRUSty, on Aug 24 2005, 11:47 AM, said:

Hello.

We are using WinPE 2005 and Ghost 8.0 for imaging.

The functionality is as followed.

1.Booting WinPE
2.Starting factory + registering dll
3.VBScripts will started to gathering information
4.after that diskpart destroys the existing partition
5.diskpart create a new primary partition
6.Format partition with ntfs
7.Ghost will started to copy image to created partition
8.Writing sysprep-information

This works fine, but on some computers after ghost image is beeing restored, no access to data on partition is given. It looks like before step 7. If i´ve created an directory, for example, this directory existing after ghost also.
Just if I boot the computer, the data on the partition become visible and then I can write on it. But why only on some computers this accures?

It looks like the mapping table of the partition will not written or refreshed. Can I do it manual?

Thanks for help in advance

kRUSty
<{POST_SNAPBACK}>



No need to create a new partiton. Ghost will do that for you as you lay down the new image. Make sure you use the Partition switches on the command line. Not Drive letter.

Chris

#7 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

Posted 25 August 2005 - 07:34 AM

Hey, Chris.

Don´t know what you mean.
I restore the partition with followed options:
-clone,mode=prestore,src=Z:\E-Client\20008\images\G-Img.gho:1,dst=1:1 -fni -sure -quiet -auto -buffersize=32 -pwd="123" -fx

and as destination I have to give a partition to ghost where the image should be created. So I have to create image before.

???

Greetings,
kRUSty

#8 User is offline   mats 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 10-May 05

Posted 26 August 2005 - 12:45 AM

ah that could be it.

Have you tried to clone the entire disk instead of a partition? You should clone the entire disk to get the bootsector and mbr correct.

I Checked with my people and we got E620 working in our enviroment without problems

#9 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

Posted 26 August 2005 - 01:49 AM

Hey, Mats.
with which switch can I do that?
The parameters of ghost is a product of programmer before me.

Greetings,
kRUSty

#10 User is offline   mats 

  • Member
  • PipPip
  • Group: Members
  • Posts: 206
  • Joined: 10-May 05

Posted 26 August 2005 - 02:19 AM

Hi Krusty

I dont know with ghost since we use pqideploy instead but i think you must take a new ghost of your sorce machine and take the whole disk.

I found this on the net on how to restore an entire disk

ghost.exe -clone,mode=load,src=Z:\E-Client\20008\images\G-Img.gho,dst=1 -sure

#11 User is offline   kRUSty 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 26-July 05

Posted 01 September 2005 - 08:38 AM

Hello.

We´ve founded the reason.
It was the Image. After creating a new image-file the access to harddisk was able.
But we can not say what the failure exactly caused it.

Thanks to all for help!

Greetz.
kRUSty

#12 User is offline   secowu 

  • Junior
  • Pip
  • Group: Members
  • Posts: 59
  • Joined: 01-October 04

Posted 10 February 2006 - 09:47 PM

Hi,could support new sata hdd?

i mean:

WinPE + Diskpart + Ghost

this sys could run under a new machine which hdd is new?

#13 User is offline   dkreifus 

  • dkreifus
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 30-March 04

Posted 29 March 2006 - 08:46 AM

I realize this is an older thread....but does the order of the switches after ghost32.exe matter?

This is my script:

:ghost
ECHO.
ECHO.
ECHO Please select Hard Drive
Echo A)SATA
Echo B)IDE
ECHO --=====--
ECHO C)Go back to begining

choice /c:ABC /N 

if errorlevel 3 GOTO menu
if errorlevel 2 set ide =-auto -fx
if errorlevel 1 set ide =-auto -fx -fni


net use S: \\%server%\currentimage * /USER:%domain%\%username%
ECHO.
ECHO.
ECHO You will now be imaging a computer. Any data on that computer will be destroyed. When you are ready,
PAUSE
ghost32.exe -clone,mode=restore,src=S:\CSIimage.gho,dst=1 -sure -quiet %ide%
GOTO exit


Should the -fni be moved up?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy