Re: EWF with compressed NTFS on CompactFlash



Hi,

I perform the shutdown using the API "ExitWindowsEx (EWX_SHUTDOWN |
EWX_FORCE | EWX_POWEROFF)", but in many situations the power-off is not
performed as I use an AT power supply.
Just before this command I run the "ewmgr -commit" using a Shell command in
a VB6 application.
I tried this solution to be p&p with the previous XPe distributions, without
the EWF protection, that use only one partition on the CF (I made a patch to
add the EWF driver and related registry setting at runtime).
I use a -commit just before the shutdown because I noticed that after the
commit the CF become unprotected. Is there a way to be sure that the commit
has completed the write operation and than perform a safe shutdown? I need
to preserve changed registry data an some application related files like a
DB and a log.
In the future I think the best solution is to use two different partitions,
but I need to find the best on for the released products.

Thanks

"KM" <konstmor@xxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:uYnQKElEHHA.4208@xxxxxxxxxxxxxxxxxxxxxxx
Paolo ,

How exactly do you perform the shutdown?

Also, it is not a good practice to commit the entire EWF overlay on CF
frequently. You may end up with some corrupted blocks and data on the
flash.
If doing the commit is only for purpose of your app saving its data, you
may rather want to think about using EWF file only commit (to many
limitations on the file size and location though) or, the best for your
system scenario, to move to use FBWF component from FP2007 instead of EWF.
With FBWF you will be able to protect the entire system but still have
certain files unprotected. This way you wouldn't be needing to commit
changes in the entire overlay and touch registry hives.

--
=========
Regards,
KM


"Paolo Dematteis" <pdematteis@xxxxxxxxxxxxxxxx> wrote in message
news:uX6v6ChEHHA.1224@xxxxxxxxxxxxxxxxxxxxxxx
Hi, all
do anyone have some experience using EWF (XPe SP2) on CompactFlash with a
compressed NTFS file system?
I tried this solution:
- 256 MB PQI industrial CF
- compressed NTFS file system
- XPe SP2 image with RAM/REG EWF enabled
- a custom shell (my application)
- "ewfmgr -commit" before the shutdown each time the user exit the
program correctly (to save all the pending data)
Normally this works fine, but in some case I experienced a registry
corruption causing a blue screen on next boot.
Any idea?
Thanks.
---------------------------------------------------------------------------------------------------------------
Paolo Dematteis - DELTA VISIONE S.r.l.
Via Spegazzini, 4
10010 - Bairo (TO) - ITALY
Tel: +39.0124.501858
Fax: +39.0124.501857
e-mail: pdematteis@xxxxxxxxxxxxxxxx
web: www.deltavisione.com
---------------------------------------------------------------------------------------------------------------
Ai sensi del D.Lgs 196/2003, si precisa che le informazioni contenute in
questo
messaggio e negli eventuali allegati sono riservate e per uso esclusivo
del destinatario.
Persone diverse dallo stesso non possono copiare o distribuire il
messaggio a terzi.
Chiunque riceva questo messaggio per errore, è pregato di distruggerlo e
di informare
immediatamente info@xxxxxxxxxxxxxxxx





.



Relevant Pages

  • Re: Difference in EWF and FBWF commit
    ... I did some more tests to verify the difference in EWF and FBWF commits, ... I entered commit command in both the ... I have even tested for ATX switch, it does not perform graceful shutdown, it ...
    (microsoft.public.windowsxp.embedded)
  • Re: Difference in EWF and FBWF commit
    ... I think the -live command works with the combination of -commitanddisable ... At least you will be able to "move" the actual commit to the time you issue it vs the shutdown time. ... I did some more tests to verify the difference in EWF and FBWF commits, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Difference in EWF and FBWF commit
    ... You want to avoid PC reboots and be able to commit changes live with a write filter installed. ... With EWF we've typically done that by moving all the persistency required data to an unprotected partition and making sure all the ... At least you will be able to "move" the actual commit to the time you issue it vs the shutdown time. ...
    (microsoft.public.windowsxp.embedded)
  • Re: CF, EWF, file read errors after commit
    ... You should always wait for some timeout after you do commit on EWF. ... sure the commit happens the time you initiated it, not at shutdown. ... provide me with a tool to mark their CFs as fixed disks. ...
    (microsoft.public.windowsxp.embedded)
  • Re: EWF with compressed NTFS on CompactFlash
    ... it is not a good practice to commit the entire EWF overlay on CF frequently. ... do anyone have some experience using EWF on CompactFlash with a compressed NTFS file system? ...
    (microsoft.public.windowsxp.embedded)