All Forums
 Microsoft Windows CE
 CE Flash, CF and PCMCIA
 Determining the Format of your CF Card
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

akidder

1519 Posts

Posted - 25 Sep 2003 :  10:56:23  Show Profile  Email Poster
Determining the Format of your CompactFlash Card

The number of clusters (ref 1) on a disk is one of the keys to determining the FAT type (ref 2). Typically, if it's less than 4096, it's FAT12; if it's greater than 65535, then it's FAT32. Otherwise it's FAT16.

Here are two ways to get the number of clusters on the disk (option 2 gives more detail if #1 doesn't reveal anything unusual)(ref. 3):
  1. Use the Windows command prompt CHKDSK utility.
    Run "CHKDSK X:" where X: is the drive letter for your CF card. It'll tell you "the type of the file system is [FAT|NTFS]". The "total allocation units on disk" is the number of clusters.


  2. Run a FAT/partition analysis utilty.
    One such shareware app can be found at http://www.runtime.org/diskexpl.htm (get the FAT version, not NTFS). The application will tell you if the disk is FAT12, FAT16 or another format. But to make sure there's not an odd formatting error, estimate the number of clusters on the disk by dividing "Sectors on drive" by "Sectors per cluster".
References for further reading:
(1) http://www.pcguide.com/ref/hdd/file/partCluster-c.html
(2) http://www.pcguide.com/ref/hdd/file/partSizes-c.html
(3) http://www.pcguide.com/proc/id/fat-c.html
(4) Microsoft white paper: FAT: General Overview of On-Disk Format (.doc)
(5) Dobiash, Jack. FAT16 File structure.
(6) Dobiash, Jack. FAT32 File structure.
(7) "File Allocation Table: How it Seems to Work" http://home.no.net/tkos/info/fat.html (no longer valid?)
(8) Microsoft: Chkdsk usage. http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/winxppro/proddocs/chkdsk.asp

See Also:
Topic 1871: CE Bootloaders, ATA Cards and FAT
  Topic  
 Forum Locked  Topic Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.03 seconds. Snitz Forums 2000