Patent ID: 7478271

Claim:
A method for recycling flash memory, comprising the steps of: scanning the distribution of bad sectors of a flash memory; examining the number of bad sectors in said flash memory to determine whether or not the number of bad sectors exceeds an allowable upper limit of bad sectors stored in a firmware of said flash memory; rearranging said sectors in a plurality of cells of said flash memory, and marking said bad sectors in said plurality of cells as a new cell to define a new cell with densely distributed bad sectors, if the number of bad sectors in said flash memory exceeds said allowable upper limit of bad sectors stored in said firmware of said flash memory; labeling said cell with densely distributed bad sectors as a useless cell; recording the distribution position of said bad sectors and saving said distribution position in said flash memory; and reformatting said flash memory, and writing a universal serial bus (USB) data, a main boot record (MBR) and a file allocation table (FAT) into said flash memory.