Re: ewfOpen returned invalid file handle

From: Slobodan Brcin \(eMVP\) (sbrcin_at_ptt.yu)
Date: 03/27/04


Date: Sat, 27 Mar 2004 17:33:39 +0100

Hi Greg,

Then you should read this:
http://www.xpefiles.com/a_file.cfm?custid=Components&fileid=ramewf.zip&group
Name=Other

Regards,
Slobodan

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

"Greg Martin" <gregmartin@rcwa.com.au> wrote in message
news:uJ3zmvAFEHA.1152@TK2MSFTNGP10.phx.gbl...
> Hi Slobodan.
>
> I have it all sorted here.
>
> But to answer your questions:
> I have used the Sandisk utility to set the CF card to non-removable
> under XPE.
> I am using a single flash card with 1 OS partition, and one data
partition.
>
> My clients are writing a lot of data to a flash card, and the OS was
> getting corrupted when running on a single partition. I have therefore
> partitioned the disk into three parts (OS, data and EWF) as they have
> requested.
>
> I am also setting up an alternate that will use a RAM EWF for them (I
> believe that is the better way for them to go, here).
>
> Regards,
>
> Greg Martin.
>
> Slobodan Brcin (eMVP) wrote:
> > Hi Greg,
> >
> > I didn't completely understand problem you have.
> > Do you have removable or fixed disk?
> > Do you want one or two protected partitions?
> >
> > Regards,
> > Slobodan
> >
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Tell
> > Microsoft!
> > https://www.windowsembeddedeval.com/community/newsgroups
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >
> > "Greg Martin" <gregmartin@rcwa.com.au> wrote in message
> > news:Odmkui#EEHA.2404@TK2MSFTNGP11.phx.gbl...
> >
> >>Helmuth,
> >>
> >>Do you have a small amount of raw, unpartitioned space available on the
> >>disk (~8MB)? I do not get an error if I don't have it, but it still
> >>doesn't work.
> >>
> >>I missed the part about diskpart. I used DOS to fdisk the partitions.
> >>
> >>Greg.
> >>
> >>Slobodan Brcin (eMVP) wrote:
> >>
> >>>Hi Kesavan,
> >>>
> >>>Original poster was Helmuth, and he said that he used diskpart to
create
> >
> > two
> >
> >>>partitions so unless someone know how to do this from Windows on
> >
> > removable
> >
> >>>media then my best guess would be that he has CF that is marked as
> >
> > fixed.
> >
> >>>Regards,
> >>>Slobodan
> >>>
> >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>>Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
> >
> > Tell
> >
> >>>Microsoft!
> >>>https://www.windowsembeddedeval.com/community/newsgroups
> >>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>>
> >>>"Kesavan" <kesavansajeev@hotmail.com> wrote in message
> >>>news:340a938c.0403252111.16723bf4@posting.google.com...
> >>>
> >>>
> >>>>Slobodan,
> >>>>
> >>>> I faced this kinda strange errors before .I didnt plug myself into
> >>>>finding out whether any updates done/notdone to the database would
> >>>>have put up the same.
> >>>>Changing the flash states solved the prob.I guess greg could provide
> >>>>some info once he gets it checked.
> >>>>
> >>>>Regards,
> >>>>Kesavan
> >>>>
> >>>>Greg Martin <gregmartin@rcwa.com.au> wrote in message
> >>>
> >>>news:<#02JmBsEEHA.3980@TK2MSFTNGP09.phx.gbl>...
> >>>
> >>>
> >>>>>Sounds to me like another case of the "removable vs non-removable"
bit
> >
> >
> >>>>>in the compact flash card. I have the same problem with my current
> >>>>>system. I'm waiting for Sandisk tech support to send the application
to
> >>>>>change the bit state before confirming, though.
> >>>>>
> >>>>>Greg Martin.
> >>>>>
> >>>>>Slobodan Brcin (eMVP) wrote:
> >>>>>
> >>>>>
> >>>>>>Hi Tony,
> >>>>>>
> >>>>>>You are right that he need 3 partitions, but according to his log
EWF
> >>>
> >>>was
> >>>
> >>>
> >>>>>>able to create config partition, but then it fails for some unknown
> >>>
> >>>reason.
> >>>
> >>>
> >>>>>>Maybe he need to use new QFE.
> >>>>>>
> >>>>>>Regards,
> >>>>>>Slobodan
> >>>>>>
> >>>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>>>>>Have an opinion on the effectiveness of Microsoft Embedded
newsgroups?
> >>>
> >>>Tell
> >>>
> >>>
> >>>>>>Microsoft!
> >>>>>>https://www.windowsembeddedeval.com/community/newsgroups
> >>>>>>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >>>>>>
> >>>>>>"Tony Camilli" <anonymous@discussions.microsoft.com> wrote in
message
> >>>>>>news:134f301c41285$7176add0$a501280a@phx.gbl...
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>I may be wrong, but I'm fairly certian that RAM or RAM-
> >>>>>>>Reg based EWF overlays will only support 1 protected
> >>>>>>>volume. If you need to support more than one volume, you
> >>>>>>>need to create a Disk based overaly. This will require
> >>>>>>>you to create an additional (3rd) partition to store the
> >>>>>>>overlay data.
> >>>>>>>
> >>>>>>>HTH,
> >>>>>>>Tony
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>-----Original Message-----
> >>>>>>>>Hi everybody!
> >>>>>>>>
> >>>>>>>>I have a 1GB flash disk. Ultimately I would like to have
> >>>>>>>
> >>>>>>>2
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>partitions (C: and D:) which are both protected by the
> >>>>>>>>EWF. In the target designer I entered the following for
> >>>>>>>>the EWF:
> >>>>>>>>
> >>>>>>>>EWF Volume Configuration:
> >>>>>>>>Maximum Number of Protected Volumes: 2
> >>>>>>>>Maximum Number of Overlay levels: 1
> >>>>>>>>EWF partition size in KBytes: 1024
> >>>>>>>>Protected Volume # 1 (Volume # 2)
> >>>>>>>>Start EWF enabled: not checked (not checked)
> >>>>>>>>Enable Lazy write: not checked (not checked)
> >>>>>>>>Disk Number: 0 (0)
> >>>>>>>>Partition Number: 1 (2)
> >>>>>>>>Disk Type: IDE (IDE)
> >>>>>>>>Overlay Type: RAM (RAM)
> >>>>>>>>Optimisation option: Optimal Performance checked
> >>>>>>>>(Performance checked)
> >>>>>>>>
> >>>>>>>>I did not change anything in the advanced settings. I
> >>>>>>>>created 2 partitions with diskpart. I named them C: and
> >>>>>>>
> >>>>>>>E:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>(because I am booting from the CD, which is using D:).
> >>>>>>>>When booting with the image, after final booting, the
> >>>>>>>
> >>>>>>>EWF
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>partition is missing. I pasted the relevant section of
> >>>>>>>
> >>>>>>>the
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>FBALOG.TXT below:
> >>>>>>>>
> >>>>>>>>11:58:29 AM - [ScanQueue: File Exists]
> >>>>>>>>C:\WINDOWS\System32\MsDtc\Trace\msdtcvtr.bat
> >>>>>>>>11:59:09 AM - [OcTerminate] Finished
> >>>>>>>>11:59:09 AM - [FBALaunch] C:\WINDOWS\FBA\FBAOC.EXE
> >>>>>>>>(ExitCode: 0x0)
> >>>>>>>>11:59:09 AM - [CallEntryPointThread]
> >>>>>>>>C:\WINDOWS\FBA\FBALIB.DLL, FBALaunchOCM
> >>>>>>>>11:59:09 AM - [FBASetProgressText] Installing
> >>>>>>>>Components...
> >>>>>>>>11:59:13 AM - [FBALaunch] C:\WINDOWS\system32
> >>>>>>>>\regsvr32.exe /s /i C:\WINDOWS\system32\swprv.dll
> >>>>>>>>(ExitCode: 0x0)
> >>>>>>>>11:59:13 AM - [FBALaunch] C:\WINDOWS\system32
> >>>>>>>>\regsvr32.exe /s /i C:\WINDOWS\system32\eventcls.dll
> >>>>>>>>(ExitCode: 0x0)
> >>>>>>>>11:59:13 AM - [CallEntryPointThread]
> >>>>>>>>C:\WINDOWS\FBA\FBAREG.DLL, FBAMigrateRegistryKeys
> >>>>>>>>11:59:13 AM - [FBAChangeDisplaySettings] Settings:
> >>>>>>>
> >>>>>>>[800,
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>600, 32, 60]
> >>>>>>>>11:59:13 AM - [FBAChangeDisplaySettings] Settings not
> >>>>>>>>found!
> >>>>>>>>11:59:13 AM - [CallEntryPointThread]
> >>>>>>>>C:\WINDOWS\FBA\FBALIB.DLL, FBAChangeDisplaySettings
> >>>>>>>>11:59:13 AM - [FBASetProgressText] Resetting Setup
> >>>>>>>>Flag...
> >>>>>>>>11:59:14 AM - [FBARemoveRestart] Updated BootExecute!
> >>>>>>>>11:59:14 AM - [CallEntryPointThread]
> >>>>>>>>C:\WINDOWS\FBA\FBALIB.DLL, FBAResetSetup
> >>>>>>>>11:59:14 AM - [FBASetProgressText] Replacing System
> >>>>>>>>Hives...
> >>>>>>>>11:59:14 AM - [FBASetProgressText] Resetting Setup
> >>>>>>>>Flag...
> >>>>>>>>11:59:21 AM - [FBAFlushFilesToDisk] FlushFileBuffers
> >>>>>>>>(C:\) succeeded!
> >>>>>>>>11:59:21 AM - [FBADoReboot] Sleeping...
> >>>>>>>>11:59:31 AM - [FBADoReboot] Exiting process...
> >>>>>>>>12:00:25 PM - ConfigureEwf() Start.
> >>>>>>>>
> >>>>>>>>12:00:25 PM - Getting EWF config parameters from
> >>>>>>>>registry.
> >>>>>>>>
> >>>>>>>>12:00:25 PM - Non El Torito disk configuration.
> >>>>>>>>
> >>>>>>>>12:00:25 PM - EWF Partition Size = 1024 (KBytes),
> >>>>>>>
> >>>>>>>Levels
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>= 1, Volumes = 2.
> >>>>>>>>
> >>>>>>>>12:00:25 PM - Protected Volume Config #0 :
> >>>>>>>>
> >>>>>>>>12:00:25 PM - Disk= 0,Part= 1,DiskType= IDE,Type=
> >>>>>>>
> >>>>>>>RAM.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>12:00:25 PM - Enable= Disabled, Optimize= 0,
> >>>>>>>>LazyWrite= N.
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Protected Volume Config #1 :
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Disk= 0,Part= 2,DiskType= IDE,Type=
> >>>>>>>
> >>>>>>>RAM.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>12:00:26 PM - Enable= Disabled, Optimize= 0,
> >>>>>>>>LazyWrite= N.
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Found 1 Hard Disks.
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Disk #0 layout info:
> >>>>>>>>
> >>>>>>>>12:00:26 PM - PRIMARY
> >>>>>>>>partition,start=0x0000000000007e00,
> >>>>>>>>len=0x000000001f408200, type= 7
> >>>>>>>>
> >>>>>>>>12:00:26 PM - PRIMARY
> >>>>>>>>partition,start=0x000000001f410000,
> >>>>>>>>len=0x000000001c2d8000, type= 7
> >>>>>>>>
> >>>>>>>>12:00:26 PM - FREE partition,start=0x000000003b6e8000,
> >>>>>>>>len=0x0000000001a94000, type= 0
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Allocating EWF in PRIMARY partition,
> >>>>>>>>start=0x000000003b6e8000, len=0x000000000000fc00.
> >>>>>>>>
> >>>>>>>>12:00:26 PM - Created EWF partition on Disk = 0,
> >>>>>>>>partition = 3,size = 0x000000000000fc00 .
> >>>>>>>>
> >>>>>>>>12:00:26 PM - ewfOpen.
> >>>>>>>>
> >>>>>>>>12:00:27 PM - ewfOpen returned invalid file handle.
> >>>>>>>>
> >>>>>>>>12:00:27 PM - Deleting EWF Partition #3, disk#=0,
> >>>>>>>
> >>>>>>>type=69
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>12:00:27 PM - ConfigureEwf() End, status = 0x57.
> >>>>>>>>
> >>>>>>>>12:00:27 PM - [CallEntryPointThread]
> >>>>>>>
> >>>>>>>C:\WINDOWS\system32
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>\ewfdll.dll, ConfigureEwf (Error: 0x57)
> >>>>>>>>12:00:27 PM - [FBASetProgressText] Resetting Setup
> >>>>>>>>Flag...
> >>>>>>>>12:01:40 PM - [FBADoReboot] Sleeping...
> >>>>>>>>12:01:50 PM - [FBADoReboot] Rebooting system...
> >>>>>>>>
> >>>>>>>>There seems to be an invalid file handle and the EWF
> >>>>>>>>partition is deleted again. How do I solve this problem?
> >>>>>>>>
> >>>>>>>>The same happens when I use the above configuration, but
> >>>>>>>>with only one physical partition (C:, E: was deleted).
> >>>>>>>>
> >>>>>>>>When I perform the same procedure as above with only one
> >>>>>>>>partition in the EWF (Maximum Number of Protected
> >>>>>>>
> >>>>>>>Volumes:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>1) and created physically on the disk (only C:). The EWF
> >>>>>>>>partition is created.
> >>>>>>>>
> >>>>>>>>Your help is much appreciated!
> >>>>>>>>Helmuth
> >>>>>>>>.
> >>>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>
> >
> >
>



Relevant Pages

  • Re: XPE & activation
    ... Have an opinion on the effectiveness of Microsoft Embedded newsgroups? ... "Luc Cool" wrote in message ... > I ran low on space on the partition I used to test my embedded images. ... > Kind Regards, ...
    (microsoft.public.windowsxp.embedded)
  • Re: ewfOpen returned invalid file handle
    ... Regards, ... Slobodan Brcin wrote: ... >>I am using a single flash card with 1 OS partition, ... >>Greg Martin. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Accessing the FAT16 partition
    ... "Ranga" wrote in message ... > Dear Slobodan, ... > with regards, ... >> Have an opinion on the effectiveness of Microsoft Embedded newsgroups? ...
    (microsoft.public.windowsxp.embedded)
  • Re: A problem about bootable CD
    ... El-torito driver needs this CD present during the boot so PnP will pick up ... >> Regards, ... >> Have an opinion on the effectiveness of Microsoft Embedded newsgroups? ... > Thx dear Slobodan very much........ ...
    (microsoft.public.windowsxp.embedded)
  • Re: Creating El-torito image with two partition from Nero.
    ... AFAIK with RAM overlay EWF partition size is ignored. ... > Hello Slobodan and GregG, ... > Best regards, ...
    (microsoft.public.windowsxp.embedded)