Patent ID: 8180955

Claim:
A method for managing a flash memory device comprising at least one mapping block, at least one modification block and at least one cache block, the method comprising: receiving a write command comprising a write logical address and predetermined data for writing the predetermined data in the flash memory device; determining whether a page of the mapping block corresponding to the write logical address has been used; and writing the predetermined data in an empty page of the modification block corresponding to the mapping block in response to that the page of the mapping block corresponding to the write logical address has been used, wherein the writing step further comprises: loading content of a cache page of the cache block corresponding to the modification block according to the write logical address to a random access memory device; reading orderly a plurality of data fields of the cache page in the random access memory device to obtain location information of the empty page of the modification block, wherein cache page of the cache block comprises the plurality of data fields to store the location information corresponding to the data which has been written in the pages of the modification block in order; and writing the predetermined data in the empty page of the modification block according to the obtained location information.