Results 1 to 9 of 9

Thread: Bypass EWF ?

  1. #1
    Newbie Zorro_X's Avatar
    Join Date
    Aug 2007
    Location
    France
    Posts
    32

    Question Bypass EWF ?

    Hello,
    I'm using EWF to protect CF disk. That works quite well ! But for debuggin purposes and persistent data of my embedded application, I need to bypass EWF to write 1 or 2 files (debug log & persistent data files).
    I wonder if there is a way to do it using windows API. Some kind of "ewf commit and disable" command without doing a nasty "system" call ?
    I'm using C++ (so using the C API).

    In another hand, I know that you usually do partitionning of the CF and don't protect the partition where you want to write. I can do that, but it will be more interesting for me if i can bypass EWF.

    Thank you in advance for your answers,
    Zorro_><
    My Project : Z-CarCockpit, also on Facebook

  2. #2
    FLAC SFiorito's Avatar
    Join Date
    May 2004
    Posts
    1,364
    well, you can use EwfCommitFile in the EWF API but it only works on files that don't change in size. You can also search the OS forums for an old thread of mine where I describe creating a fixed size virtual disk that you can then write any number of files into. Since the virtual disk is fixed size you can then commit it and maintain state.

    Otherwise you can use FBWF File Based Write Filter, but I haven't gotten around to write a tutorial for that.

  3. #3
    Newbie Zorro_X's Avatar
    Join Date
    Aug 2007
    Location
    France
    Posts
    32
    Thank you, i'll investigate those ways.
    Zorro_><
    My Project : Z-CarCockpit, also on Facebook

  4. #4
    Maximum Bitrate tn6478's Avatar
    Join Date
    Jun 2006
    Location
    Houston, TX
    Posts
    791
    Quote Originally Posted by SFiorito View Post
    well, you can use EwfCommitFile in the EWF API but it only works on files that don't change in size. You can also search the OS forums for an old thread of mine where I describe creating a fixed size virtual disk that you can then write any number of files into. Since the virtual disk is fixed size you can then commit it and maintain state.

    Otherwise you can use FBWF File Based Write Filter, but I haven't gotten around to write a tutorial for that.
    How do you excute those files to mount and unmount at shutdown and startup. Also if the files change the partition get screw?

  5. #5
    Low Bitrate erie's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    89
    how about this?
    http://msdn2.microsoft.com/en-us/library/ms912855.aspx

    I dont know C but I think this might be helpfull.
    06 Galaxy Gray Si #0308
    CarPc Progress -
    10%---------50%---------100%
    -[XXXXXXXXXXXXXXXXXXXXXX]-

  6. #6
    Low Bitrate erie's Avatar
    Join Date
    May 2006
    Location
    USA
    Posts
    89
    tn6478, you dont have to use code to persist data. I have used the Registry Filter component and it is easy to work with http://msdn2.microsoft.com/en-us/library/aa940857.aspx

    A trick I use on my work images is to use a registry key to keep all the settings for the custom apps. If you want debug data, write custom events to the system event log. Next configure the registry filter to persist the event logs.
    06 Galaxy Gray Si #0308
    CarPc Progress -
    10%---------50%---------100%
    -[XXXXXXXXXXXXXXXXXXXXXX]-

  7. #7
    FLAC SFiorito's Avatar
    Join Date
    May 2004
    Posts
    1,364
    If you look at this thread: http://www.mp3car.com/vbulletin/winn...bling-ewf.html

    You can download some tools I wrote to mount/unmount SDI files and commit the file to the EWF disk.

    This site explains setting up Startup/Shutdown scripts using XP Group Policy: http://www.microsoft.com/resources/d....mspx?mfr=true

    The SDI will not change in size so it will not corrupt the volume, but the contents can change with no problem.

  8. #8
    Variable Bitrate
    Join Date
    Sep 2004
    Location
    Slovenia (EU)
    Posts
    312
    So if user would use one SDI partition on CF for settings, error logs, and other changable files ... how would that affect the life of CF card (I understand it would shorten it , but how much).

    What if you have 1GB SDI partition also for cam videos, updates and so on? What would that mean for CF's lifetime?

  9. #9
    FLAC SFiorito's Avatar
    Join Date
    May 2004
    Posts
    1,364
    Clearly it wouldn't help it, but the the writes would happen once at a time instead of continuously. Also, if your system is set to sleep and only shutdown after a prolonged amount of time you may only write the SDI once or twice a day.

    Obviously this isn't the best option, but if you have no other choice then it's a good alternative.

Similar Threads

  1. Using EWF on regular WinXP
    By SFiorito in forum WinNT Based
    Replies: 203
    Last Post: 03-17-2009, 07:43 PM
  2. Replies: 12
    Last Post: 03-16-2009, 08:00 PM
  3. Media drive on EWF system
    By garto in forum Operating System Optimization
    Replies: 1
    Last Post: 06-07-2007, 09:31 PM
  4. eWF and Documents And Settings
    By masch in forum WinNT Based
    Replies: 7
    Last Post: 05-09-2006, 12:36 PM
  5. Minlogon, EWF and HORM - Problem Fuzzy screen menus after HORM hibernate
    By ruairi in forum Operating System Optimization
    Replies: 0
    Last Post: 11-30-2005, 08:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •