Patent ID: 7472309

Claim:
A method, comprising: writing a file to a nonvolatile memory using a plurality of headers and a plurality of file fragments; and using only information stored in one header of the plurality of headers to determine if the writing of the file to the nonvolatile memory was interrupted by a loss of power wherein the nonvolatile memory includes a plurality of blocks, wherein the one header is a first header of the plurality of headers, and wherein writing includes: dividing the file into the plurality of file fragments; allocating the first header of the plurality of headers in a first block of the plurality of blocks, wherein the first header includes a plurality of status bits and wherein allocating includes altering a first status bit of the plurality of status bits of the first header to indicate that the first header is allocated; storing file information of the file in the first block of the plurality of blocks, wherein the first header corresponds to the file information and wherein the plurality of status bits of the first header indicates status of the writing of all file fragments of the file to the nonvolatile memory; and altering a second status bit of the plurality of status bits of the first header to indicate that writing of the file is in progress.