Patent ID: 7246139

Claim:
A file management apparatus for a file system, including a data area divided into a plurality of clusters, a file allocation table (FAT) having a plurality of table areas mapped in accordance with said clusters, and a directory having a file attribute area containing at least a file name and a head FAT pointer, comprising: a processor; and a memory having instructions executed by the processor to perform: during data recording, repetitively writing data in a cluster corresponding to a currently processed FAT and storing a succeeding FAT address in said currently processed FAT to generate a FAT chain; and restoring a FAT of a destroyed file by generating a FAT map by storing a file number in a map area corresponding to each FAT of said FAT chain for each file, when data recording is not normally terminated, in accordance with the head FAT pointer in said file attribute area of said directory and said FAT chain, and storing an end code in a FAT corresponding to an end of the destroyed file stored in said FAT map in which a file number of the destroyed file is stored, by referring to said generated FAT map.