Patent ID: 7062682

Claim:
A data recorder for recording data on a recording medium requiring erasure of recorded data before recording the data, the data recorder comprising: a data storage part storing data exchanged between the data recorder and a host apparatus; an error detection part detecting a data transfer error during transfer of first data from the host apparatus; an erasure part erasing second data recorded on the recording medium; a determination part that, when said error detection part detects the data transfer error, determines whether data corresponding to the second data erased by said erasure part is stored in said data storage part; a recovery part that, when said determination part determines that the corresponding data is stored in said data storage part, recovers the erased second data on the recording medium based on the stored data; and an erasure determination part that determines whether to erase the second data recorded on the recording medium in parallel with the transfer of the first data from the host apparatus, wherein said erasure part erases the second data recorded on the recording medium based on a result of the determination by said erasure determination part, wherein said erasure part, based on the result of the determination by said erasure determination part, erases the second data recorded on the recording medium after the transfer of the first data is completed.