A method and apparatus to write a file to a nonvolatile memory is
provided. The method may include writing a file to a nonvolatile memory
using at least two headers and at least two file fragments and using only
information stored in one header of the at least two headers to determine
if the writing of the file to the nonvolatile memory was interrupted by a
loss of power. Other embodiments are described and claimed.