Patent ID: 8185688

Claim:
A method for data management in a flash memory medium, the flash memory medium comprising a plurality of blocks, each of which comprises a plurality of pages, each page comprising data storing bits and redundancy bits, the method comprising: 1) dividing the plurality of blocks into two or more sections; 2) generating a section-address-mapping table by scanning logic addresses of the blocks in each section; 3) storing the section-address-mapping table into a backup block of the respective section; 4) performing an operation of reading/writing by loading the section-address-mapping table into a RAM to map the logic addresses to corresponding physical addresses; 5) generating a new section-address-mapping table based on new logic addresses of blocks in a certain section; 6) storing the new section-address-mapping table in a backup block in the certain section to update the section-address-mapping table stored in the backup block; and 7) performing the operation of reading/writing by performing a conversion between physical addresses and logic addresses based on the new section-address-mapping table, wherein said updating is performed by a switch-block and comprises the following steps: storing the new section-address-mapping table into the switch-block; correlating a physical address of the switch-block with a logic address of the backup block which stores the section-address-mapping table; and correlating a physical address of the backup block with a logic address of the switch block and labeling the backup block as a new switch-block, wherein the backup block is randomly determined.