Patent ID: 8176231

Claim:
A method for handling data updating of a flash memory, wherein the flash memory comprises a mother block with a plurality of pages to be updated, and each page comprises a plurality of sectors, comprising: obtaining a first data for updating a target page in the mother block; determining whether the first data comprises data for updating an ending sector in the target page; writing the first data into a replacing page in a first file allocation table (FAT) block when the first data does not comprise the data for updating the ending sector in the target page; and writing the first data into a corresponding page in a second FAT block when the first data comprises the data for updating the ending sector in the target page, wherein the corresponding page in the second FAT block and the target page in the mother block have the same page indexes, wherein the step of writing the first data into the replacing page in the first FAT block further comprises: obtaining a second data from the mother block, wherein the second data is configured to update sectors which are not updated by the first data in the target page; and writing the first and the second data into the replacing page in the first FAT block.