Patent ID: 7873870

Claim:
A storage controller that allows a storage device to input and output data, the storage controller comprising: a data size setting part that sets the size of erasing data used for erasing data stored in the storage areas of the storage device; a data erasing part that carries out a data erasing process for erasing the data stored in the storage areas by writing the erasing data whose size is set in the storage areas; a progress state managing part that manages a state of the progress of the data erasing process; and an error detecting part that detects and manages an error related to the data erasing process, wherein the data erasing part detects a storage area of the storage areas where the data erasing process is unfinished in accordance with the state of the progress managed by the progress state managing part and the error detected by the error detecting part and re-executes the data erasing process of the incomplete storage area.