Provided are a method, system, and an article of manufacture for
preventing data loss. Modified data is stored in a volatile storage. The
stored modified data is copied onto a non-volatile storage. A
determination is made as to whether the non-volatile storage should be
checked for errors. In certain implementations, on determining that the
nonvolatile storage should be checked for errors the non-volatile storage
is checked for errors. If on checking the non-volatile storage is found
to have an error, an indication of the error is provided.