Announcement

Collapse
No announcement yet.

Bypass EWF ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.
    EWF, HORM, MinLogon on XP.

    Zotac ION Atom N330, 2GB low-profile RAM, M3-ATX
    Win Embedded Std 2011 RC
    OCZ Vertex Turbo 30GB SSD
    Lilliput 629 Transflective, WRX Screen Mount
    BlueSoleil BT, i-Blue GM-2 GPS, DirectedHD Radio, Andrea Mic
    VoomPC 2

    Comment


    • #3
      Thank you, i'll investigate those ways.
      Zorro_><
      My Project : Z-CarCockpit, also on Facebook

      Comment


      • #4
        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?

        Comment


        • #5
          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]-

          Comment


          • #6
            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]-

            Comment


            • #7
              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.
              EWF, HORM, MinLogon on XP.

              Zotac ION Atom N330, 2GB low-profile RAM, M3-ATX
              Win Embedded Std 2011 RC
              OCZ Vertex Turbo 30GB SSD
              Lilliput 629 Transflective, WRX Screen Mount
              BlueSoleil BT, i-Blue GM-2 GPS, DirectedHD Radio, Andrea Mic
              VoomPC 2

              Comment


              • #8
                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?

                Comment


                • #9
                  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.
                  EWF, HORM, MinLogon on XP.

                  Zotac ION Atom N330, 2GB low-profile RAM, M3-ATX
                  Win Embedded Std 2011 RC
                  OCZ Vertex Turbo 30GB SSD
                  Lilliput 629 Transflective, WRX Screen Mount
                  BlueSoleil BT, i-Blue GM-2 GPS, DirectedHD Radio, Andrea Mic
                  VoomPC 2

                  Comment

                  Working...
                  X