WinCE 4.2 hangs in FLASHDRV.DLL with TFAT and StrataFMD

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Thomas Hensler (tomh_at_nospam.omicron.at)
Date: 04/23/04


Date: Fri, 23 Apr 2004 16:18:38 +0200

We have a serious problem with a currupted TFAT partition on a StartaFlash
file system with our device. The flash disk probably got corrupted due to a
power loss, but then Windows CE does not start up again.

Any ideas, what we can do, since we have a headless system and need to boot
under all circumstances, even with autoformat.

In QFE 040311_KB837276 (Transaction status may become inconsistent when
power loss occurs while mounting TFAT partition on HDD. File Allocation
Table corruption may also occur) probably a similar problem seems to be
addressed. But even with the Q1/2004 QFEs installed we get the problem.

For details see debug trace below:

...
FileSystem Starting - starting with clean file system
FSVOL: Opening existing volume
FSVOL: Volume heap already initialized
FSVOL: Initializing volume heap
INFO: FMD_Init: Drivers\BuiltIn\StrataFMD
INFO: FMD_Init: Flash Address=0xab000000 Length=0x200000 Offset=0x70.
INFO: FMD_GetInfo
FLASHDRV.DLL:BuildupMappingInfo() - Enter.
FLASHDRV.DLL:BuildupMappingInfo() - Unable to map logical sector 0x0a490849
to p
hysical sector 0x00000001
...
INFO: FMD_OEMIoControl 0x71C24
Loading partition driver mspart.dll hModule=836BEA44
Driver mspart.dll loaded
Opened the store hStore=0008C500
NumSec=3528 BytesPerSec=512 FreeSec=0 BiggestCreatable=0
Partition Part00 NumSectors=3526
MSPART!PD_OpenPartition: dwStoreId=0008C500, PartName=Part00
FSD_MountDisk: mounting volumes for hDsk=0008D8C0
FATFS!OpenVolume: access time updates disabled
FATFS!OpenVolume: event logging enabled
FATFS!OpenVolume: automatic scanning disabled
FATFS!OpenVolume: write verify disabled
FATFS!OpenVolume: extra FAT on format disabled
FATFS!OpenVolume: force write through enabled
FATFS!OpenVolume: Codepage = 1
FATFS: Sec/FAT = 11!!!
FATFS: CacheSize = 16!!!
FSVOL: Opening existing volume
FSVOL: Volume heap already initialized
FSVOL: Opening existing volume
FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to retreive free physical
sector... ALL OUT!!!
FLASHDRV.DLL:CP_CompactBlock() - Unable to get next free physical sector
address for writing! The media is FULL
...
SM_UnmarkSectorsAsDirty: Error, Invalid dirty sector count
FLASHDRV.DLL:CP_CompactBlock() - Unable to unmark physical sector 0x00000a0f
as DIRTY
...
FLASHDRV.DLL:SM_GetNextFreeSector() - Unable to retreive free physical
sector... ALL OUT!!!
FLASHDRV.DLL:CP_CompactBlock() - Unable to get next free physical sector
address for writing! The media is FULL
FLASHDRV.DLL:CP_GetNextCompactionBlock() Error: Cannot write to block 0!
Unknown: DEBUGCHK failed in file
d:\mckendric\private\winceos\drivers\msflash\src\compactor.c at line 818
FLASHDRV.DLL:CompactorThread() - CompactorThread(0xffffffff) failed; unable
to compact!!!

Any comments are highly appreciated.

Thomas Hensler,
OMICRON electronics, Austria

To respond remove nospam. from the e-mail address.



Relevant Pages

  • WinCE 4.2 hangs in FLASHDRV.DLL with TFAT and StrataFMD
    ... We still have a problem with a currupted TFAT partition on a StartaFlash ... FileSystem Starting - starting with clean file system ... FSVOL: Volume heap already initialized ... FLASHDRV.DLL:BuildupMappingInfo- Unable to map logical sector 0x0a490849 ...
    (microsoft.public.windowsce.platbuilder)
  • WinCE 4.2 hangs in FLASHDRV.DLL with TFAT and StrataFMD
    ... We still have a problem with a currupted TFAT partition on a StartaFlash ... FileSystem Starting - starting with clean file system ... FSVOL: Volume heap already initialized ... FLASHDRV.DLL:BuildupMappingInfo- Unable to map logical sector 0x0a490849 ...
    (microsoft.public.windowsce.platbuilder)
  • Re: memory allocation question
    ... > | problem is that seeking to the end of a file opened in binary mode ... Seeking is based on the notion that a file fits the UNIXesque ... The file system only tracked which sectors on the ... If part of a sector was empty, ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Very slow performance - HELP!!
    ... good spare sector, and then altering the hard drive's private sector ... extra head travel involved can make the slowdown palpable. ... try to do what the HD's internal defect management has already failed ... the affected file system - it's no longer hidden under the OS. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Very slow performance - HELP!!
    ... good spare sector, and then altering the hard drive's private sector ... extra head travel involved can make the slowdown palpable. ... try to do what the HD's internal defect management has already failed ... the affected file system - it's no longer hidden under the OS. ...
    (microsoft.public.windowsxp.perform_maintain)