Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / WinCE Programming / August 2008

Tip: Looking for answers? Try searching our database.

Detecting the file system used

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RyeCatcher - 27 Aug 2008 15:07 GMT
Hi, All,

I noticed that we can use the debug version to get the file system type,
which is used in the storage device. Is there any other easy way to know
this, such as WIN32 function?

Signature

RyeCatcher

Shanghai, China

Bruce Eitman [eMVP] - 27 Aug 2008 15:12 GMT
Take a look at:
http://geekswithblogs.net/BruceEitman/archive/2008/06/25/windows-ce-displaying-d
isk-information.aspx


Signature

Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

> Hi, All,
>
> I noticed that we can use the debug version to get the file system type,
> which is used in the storage device. Is there any other easy way to know
> this, such as WIN32 function?
RyeCatcher - 27 Aug 2008 15:30 GMT
Thanks, Bruce. It is very useful.

Will the following message print the File System type?

   RETAILMSG( 1, (TEXT("\t\tPartion Type %s\n"), PartTypeString ));

Seems in the partition table, there is no exFAT and TFAT types. In CE 6.0,
this is very confusing.

Signature

RyeCatcher

Shanghai, China

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> дÈëÏûÏ¢ÐÂÎÅ:%237z7n7ECJHA.2480@TK2MSFTNGP02.phx.gbl...

> Take a look at:
> http://geekswithblogs.net/BruceEitman/archive/2008/06/25/windows-ce-displaying-d
isk-information.aspx

[quoted text clipped - 4 lines]
>> which is used in the storage device. Is there any other easy way to know
>> this, such as WIN32 function?
Bruce Eitman [eMVP] - 27 Aug 2008 16:01 GMT
Yes.  That will print the type.

I don't know about exFAT, but TFAT has always reported as FATFS.

Signature

Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

> Thanks, Bruce. It is very useful.
>
[quoted text clipped - 13 lines]
>>> which is used in the storage device. Is there any other easy way to know
>>> this, such as WIN32 function?
RyeCatcher - 27 Aug 2008 16:23 GMT
In fact, CE 6.0 describes that TFAT can only be used with exFAT in its help
document. This is not the same with some past experience. Several of my
colleagues used the TFAT only during their past development procedure.

My current trying is to find a way to detect the exact file sytem that will
be used in our system.

Signature

RyeCatcher

Shanghai, China

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> дÈëÏûÏ¢ÐÂÎÅ:uSfu$WFCJHA.2292@TK2MSFTNGP02.phx.gbl...

> Yes.  That will print the type.
>
[quoted text clipped - 17 lines]
>>>> type, which is used in the storage device. Is there any other easy way
>>>> to know this, such as WIN32 function?
Bruce Eitman [eMVP] - 27 Aug 2008 16:55 GMT
You will find several discussion of this in the newsgroups.  I don't recall
anyone ever finding a solution.

I once write some code to search the bits on the drive to find an instance
of "TFAT".  It worked, but should **NEVER** be used in production becuase it
can cause serious problems with a disk.

Signature

Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman

EuroTech Inc.
www.EuroTech.com

> In fact, CE 6.0 describes that TFAT can only be used with exFAT in its
> help document. This is not the same with some past experience. Several of
[quoted text clipped - 24 lines]
>>>>> type, which is used in the storage device. Is there any other easy way
>>>>> to know this, such as WIN32 function?
RyeCatcher - 28 Aug 2008 12:51 GMT
Thanks, Bruce. I just want to know exactly the file system that is used in
the storage device. No real product will need this.

Signature

RyeCatcher

Shanghai, China

"Bruce Eitman [eMVP]" <bruce.eitman.nospam@EuroTech.com.nospam> дÈëÏûÏ¢ÐÂÎÅ:eGpce1FCJHA.4368@TK2MSFTNGP06.phx.gbl...

> You will find several discussion of this in the newsgroups.  I don't
> recall anyone ever finding a solution.
[quoted text clipped - 31 lines]
>>>>>> type, which is used in the storage device. Is there any other easy
>>>>>> way to know this, such as WIN32 function?
Silver - 27 Aug 2008 19:31 GMT
You can see how the OS does it:
WINCE600\PUBLIC\COMMON\OAK\DRIVERS\FSD\FATUTIL

Look for "ReadBootSector" in scandisk.cpp

Geoff
--
RyeCatcher - 28 Aug 2008 12:52 GMT
Thanks. But that is for the MBR format. In the CE6.0 R2, this will not be
used for NAND Flash any longer.

Signature

RyeCatcher

Shanghai, China

"Silver" <moc.liamtoh@gnirrevliseht>
??????:uggXfMHCJHA.1228@TK2MSFTNGP02.phx.gbl...

> You can see how the OS does it:
> WINCE600\PUBLIC\COMMON\OAK\DRIVERS\FSD\FATUTIL
[quoted text clipped - 3 lines]
> Geoff
> --
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.