Checking Disk Vitals

Top  Previous  Next

Once the disk is mounted, you can check several important flash disk parameters:

Fd.capacity will tell you the number of usable data sectors on the disk (this excludes housekeeping sectors maintained by the disk).
Fd.numservicesectors will tell you how many sectors are used for internal "housekeeping" of the flash disk (see Disk Area Allocation Details for... details).
Fd.totalsize will indicate how many sectors the disk occupies in the flash memory. Fd.totalsize=fd.capacity+fd.numservicesectors.
Fd.getfreespace method will return the number of free data sectors on the disk (those not yet occupied for file data storage).
Fd.maxstoredfiles will report the maximum number of files that can be stored on the disk (this is defined at the time of disk formatting).
Fd.getnumfiles fetches the number of files currently stored on the disk.


Keep in mind that currently existing disk might not be the largest one that could fit in the current data area (fd.availableflashspace).