RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Windows XP


  • 1. How do I install a printer driver with XPe?
    We would like to install a print driver for a Star SP312 to our XP embedded WYSE terminal but the installation fails. How do we go about installing printer drivers with XP embedded? Thanks! -- Eric Townsend Spokane Public Libraries IT Specialist
  • 2. PRB: Evaluation copy displayed on XPE desktop
    My XPE desktop displays "Evaluation copy. build2600.xpsp1.020828-1920()" in the lower right corner. Have I installed an evaluation copy of Microsoft Windows Embedded Studio using the product key for the full version that was purchased? Can I correct this short of finding the correct copy of the installation for the product key? -- John
  • 3. EWF and compact flash
    Hello, I am interested in finding out if it is worth adding EWF to my configuration. I have a CF and it is programmed nonremovable, so I am able to partition it. My embedded system will have a camera connected to it and CF's role will be to store many images. Since the CF has a finite amount of writes associated with it, I thought it might be worthwhile to reduce the writes by adding EWF for the OS only. So I would have 2 volumes, 1 for the OS (EWF protected) and one for the image storage (not protected). But if the amount of writes from the OS are small compared to all the writes from the camera, it may not even be worth the trouble to add the EWF. My question here is, is there alot of writing taking place by the OS. The final product will have someone starting and stopping a camera program but that should be about it. If it is worth adding EWF, then will I be able to have 2 partitions - 1 protected and 1 not protected. Thanks Dee

RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Cato Svellingen » Fri, 10 Sep 2004 15:42:46 GMT


I am using Slobodans RAM-EWF component ,

I got CF on second IDE with RAM-EWf and this is works fine when running CF
only, and I am protecting arc path rdisk(0) = CF:

Then I insert a HDD on IDE one, and start this first (BIOS boot order.)
(then the HDD has ARC rdisk 0  )The boot.ini on the HDD has the option to
boot from CF, and so I do. (still ARC rdisk is 0 for HDD and CF rdisk number
changes to 1

Then the CF EWF will now protect the HDD since this is given rdisk 0 path.

How can I make CF always protect itself only, even if the rdisk number
changes ?
Can i fix the rdisk number ?? so it does not change even if new disk is
inserted ?



Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby KM » Fri, 10 Sep 2004 16:09:05 GMT


Well.. I think you answered you own question. EWF protects partitions (volumes) and uses ARC paths to specify the protected
If you change hardware so that volumes are getting different ARC paths, you change EWF protected targets.

You will need to play with [HKLM\SYSTEM\CurrentControlSet\Services\ewf\Parameters\Protected\Volume0] reg.entries at run time (or

You may want to read this article:  http://www.**--****.com/ 

        KM, BSquare Corp.

Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Gter Wirth » Fri, 10 Sep 2004 16:13:41 GMT


I think you have to change






where rdisk(X) is:

rdisk(0) = primary master

rdisk(1) = primary slave

rdisk(2) = secondary master

rdisk(3) = secondary slave



"Cato Svellingen" < XXXX@XXXXX.COM > schrieb im Newsbeitrag


Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Slobodan Brcin (eMVP) » Fri, 10 Sep 2004 18:57:10 GMT

Hi Cato,

Regarding this topic you have very limited options right now.
How do you accomplish that your OS is located on C:?

Anyhow you can write small application that will be called during the fba which should change reg entry mentioned by others.
Or we can wait and see what MS is cooking in SP2 on this subject.

Best regards,

Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Cato Svellingen » Fri, 10 Sep 2004 19:35:46 GMT


the OS seems to automatically be located at C:\, no matter if i choose to
boot HDD or CF. (maybe this is the case since the first time I booted the CF
was booted from BIOS, i.e. not via the HDD boot.ini option)

When booting CF, (c:\ OS),  I rearrange the HDD partitions drive letters
around using HKLM\System\MountedDevices\\DosDevices.

Also, when running booting HDD (c:\ OS), I rearrange the CF partitions drive
letters around using HKLM\System\MountedDevices\\DosDevices.

I understand the registry entry for EWF ARC protection, but can i change
this every single time I boot, depending on CF rdisk number allocated by
BIOS ???


which should change reg entry mentioned by others.


Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Slobodan Brcin (eMVP) » Fri, 10 Sep 2004 20:12:34 GMT

Hi Cato,

If you are desperate enough to do this then you can.

Write driver (I would not call it that way but still it is a some kind of driver), only DriverEntry function is needed without any
PnP stuff, etc.
Open registry key, change value, close registry key, return unsuccessful number from DriverEntry.

In TD preinstall your "driver" so it is started before EWF driver is loaded. This is easy just set StartGroup to one that is loaded
before disk drivers for instance.

So there is no hard thing to do only question is if you need this.

Best regards,

Re: RAM-EWF on CF (IDE2) when inserting HDD on IDE1 but still boot from CF

Postby Slobodan Brcin (eMVP) » Fri, 10 Sep 2004 20:33:54 GMT

orry one more thing. You will have to read current boot partition ARC path.

Best regards,

"Slobodan Brcin (eMVP)" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ...

Similar Threads:

1.EWF for CF and disabling RAM overlay

I am working on getting EWF to work using a RAM overlay.  I don't want
to create an EWF partition on an IDE drive though.

I have followed the instructions from the newsgroups, the EWF for CF
component on XPEfiles and in "Windows XP Embedded Advanced."

The overlay is working, but, I have significnat customization to be
done after FBA has completed.

Is there a way to allow EWF to be disabled using this method and then
re-enabled to commit changes?  The book says no but I have seen it done


2.CF and HDD with EWF protection

Hello all,

I have a speculative question about a future project that I am being
lumbered with.
We are intending to build a XPe OS image for a 2 Gb CF card. I have
done this before so this should not be a problem.
However, they also want to put an 80Gb SATA drive into the unit with
all the applications and multimedia files on.
Is there a way to create a EWF partition on the CF to protect both the
CF and the SATA drive as well?
I assume there must be but as I haven't done this before and was just
wondering if it is possible before the project starts and I have to
make it work!!
As I say, this is just a "what if" question at the moment so there is
no urgency to it.
Thanks for any help anyone can offer.


3.Disable EWF operation hang in RAM Reg mode of Removable CF.

I built a XPe runtime with RAM Reg mode EWF,then run FBA on a SanDisk 
Removable CF(on secondary master IDE channel).
When FBA is completed, I know EWF is disabled as default properly by running 
"ewfmgr c:"
I enable EWF normally too after installing my software.

However,I can't disable it by "ewfmgr c: -commitanddisable" as some 
documents said,
so did the command "ewfmgr c: -disable"
All of two commands hang after printing the first line.
All I can do is restarting my machine.and EWF is still enabled .
When I come to the command "ewfmgr c: -commitanddisable -live", it is OK to 
disable EWF and commit data.

Is it normal in this case?
I wonder if it is only the "ewfmgr c: -commitanddisable -live" that is valid 
in SP2 RAM Reg mode EWF with removable CF.

I am confused about RAM Reg mode EWF notwithstanding I search so much 
resource by google.
My XPe configuration is a reduced one buided with SP2.
I think I have added enouch dependency and customization for EWF.

Moreover, It is stange that EWF didn't work when I copy the post-FBA image 
from one CF card to the other CFs.
The other CFs image report the following error when running "ewfmgr c:":
  "Error getting protect volume configuration information with errror 1"
I just install CFs in the same IDE channel.
Now I only deploy my pre-FBA image to all devices.
It is a painful experience.

Any helps will be greatly appreciated.

I have added the following extra registry entry:
I verified the following components in my project:
    Background Disk defragmentation Disable
    Class Installer: storage volumes
    volume shadow copy service
    Pnp (user mode)
    Removable storage service
"Enhanced Write Filter" component is modified as "Microsoft Windows XP 
embedded help"

The following message is reported just after FBA finished:
Protected Volume Configuation
Type: RAM(REG)
State: Disabled
Boot Command: NO_CMD
 param1      0
 param2      0
Volume ID: 20 46 21 46 00 7E 00 00 00 00 00 00 00 00 00 00
Device Name: "\Device\Harddisk0\DP(1)0-0+1"
Max levels: 1
Clump size: 512
current levels:1

4.CF Ram Reg EWF "Incorrect function"

Maybe a solution for some, more than a question.

My configuration:
- Primary IDE
-- Master: harddisk (temporary)
-- Slave: CD-ROM drive (temporary)
- Secondary IDE:
-- Master: CF (set to non-removable)
- Floppy: drive connected (temporary), no disk present.

The final configuration will only have the CF; no HD, CD or floppy.
There's no support for Floppy or CD-ROM in the XPe target.

I let FBA run on harddisk, made the registry changes as per the docs,
rebooted: "ewfmgr c:" showed a working RAM REG EWF.

Then I copied everything from HD to CF, disconnected the HD, and rebooted
from CF.  "ewfmgr C:" now said "Incorrect function".

I rebooted once more to be sure, checked the registry settings (all still
OK), but it still said "Incorrect function".

Then I disconnected the CD-ROM and floppy drives and tried once more: EWF
was now working.

There was a CD in the drive, but there's no CD-ROM support in the target,
nor floppy disk support, yet somehow one of these still interfered with
I suspect it's the CD, and that the problem will disappear if it is
connected after the CF in the PM-PS-SM-SS sequence (as secondary slave for

For this target I only need the CF, but I can imagine that it would cause
problems iif I had needed the CD-ROM too: the hardware only allows me to
connect drives to the primary channel, and the CF is fixed as secondary
master (on the mainboard).

5.CF and RAM EWF

When using EWF with Ram Overlay, is there any advantage going with
"Industrial" grade CF over standard grade?  Besides the extended temp, the
only additional item I saw was wear leveling which shouldn't be an issue
with RAM EWF correct?


6. EWF RAM overlay on CF failed

7. CF EWF RAM reg with Cloning

8. RAM EWF on CF hit and miss

Return to Windows XP


Who is online

Users browsing this forum: No registered users and 17 guest