Patent ID: 8656086

Claim:
A computer system having files stored in a computer file system, the computer system comprising: a central processing unit; a non-volatile memory coupled to the central processing unit; and memory containing computer program code embedded therein, wherein the computer program code controls the central processing unit to determine if a file system independent rewrite process should occur, and, if the file-system independent rewrite process should occur, controls the central processing unit to read at least one page of the non-volatile memory and rewrite the at least one page of non-volatile memory into the non-volatile memory such that each rewritten page of the at least one page appears to the file system to be in the same location after being rewritten as before being rewritten, wherein determining if the file system independent rewrite process should occur comprises determining a temperature of the embedded system and determining based on the temperature if at least a temperature-specific period of time has elapsed since a last rewrite process occurred.