Why two boots to get stateless EWF enabled on CF?

  • Thread starter Thread starter Mark K Vallevand
  • Start date Start date
M

Mark K Vallevand

When I initialize a new CF with an existing XPe image, it takes two boots to
get the stateless EWF enabled. I know it is expected. But, why does it
happen? Would it happen if we initialized a new CF with a bit-by-bit copy
of an existing CF? Is there a way to eliminate the manual first reboot?

Just curious.
 
Hi Mark,
Just curious.

I'm curious too but I could not find enough free time to look deeper into
this.
It might be related to DiskId number that is different when you initialize
MBR. Then ghost will help you.
Or AFAIK you can use diskpart and specify same DiskId number for all CF MBR
records.
If problem is dependent on disk serial number then disk byte copy will not
help you.

Regards,
Slobodan
 
Well, simply re-formatting the partition isn't enough to cause two boots for
EWF. EWF remains enabled. However, if you user diskpart to clean the CF,
and then use disk manager to write a signature, partition, and format, then
two boots are required to enable EWF. My guess is that it is the signature
that stateless EWF is looking at. The registry has a volume id in the EWF
parameters. Its a GUID, and doesn't appear anywhere else in the registry.
Could this be the signature? I can't see anything in the boot records that
looks like that GUID. There are serial numbers in the partitions, but I'm
not sure where a signature would be.
 
You are right that simple partition reformatting is not enough.

VolumeGuid and volume letter are locked to diskid and partition position on
that disk.
For some info read my article there are few mentions of this:
http://msdn.microsoft.com/embedded/community/tips/xp/rtpartin/default.aspx

If you change diskid then PnP will have to create completely new entries in
registry and EWF will not be locked to them during the first boot.
But even if you use same disk id for all your disks, there is still
possibility that EWF will depend on other registry entries that are specific
for each disk hardware serial number.

I hope that this make any sense to you.

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Back
Top