Windows CE and Windows Mobile, the specific OSs released by Microsoft, are marketed towards the embedded or mobile platforms. For those platforms, to concern the risk of file system corruption is needed with unexpectedly situations. A transaction-safe FAT (TFAT) file system is a file system designed for transaction safe feature on storage devices, TFAT requires a hardware-specific driver designed for the type of media on which the TFAT volume will exist[2].TFAT is still based on the FAT file system, the main function of the TFAT is designed to reduce the probability that a computer file system becomes corrupted in the event of power loss during a write cycle[1]. TFAT is best applied in non-removable disk. Removable disk like USB flash device can also use TFAT but it cannot be hundred percent guaranteed to prevent data loss on removable disk.
How does the TFAT to prevent data loss on our computer?
When the user to operate a software(e.g. Microsoft Word ), the TFAT system will create two copies of the FAT table(FAT1 table and FAT0 table), a FAT1 table is operating and being conducted and the FAT0 table is the last copy of the FAT1 table, the record of the FAT0 table must be in stable condition.
If all elements are finished in the transaction successfully, at that time the FAT1 table will modifications to FAT0 table. In case of power loss or the application closed suddenly, TFAT system will keep updating the schedule to the FAT0 table[2], if the transaction fails, it will restart the schedule base on the FAT0 table. After completing the transaction, the FAT1 table will be copied to FAT0. If TFAT system is not available, computer will lose all of the data.