Patent ID: 7584212

Claim:
A data recording apparatus which records data on a recording medium having a plurality of available areas and available area information, comprising: a processor; and an application program embedded in a memory and executed by the processor, the executed application program performs steps comprising: receiving compressed image data; determining at least one available area which satisfies a predetermined area condition out of the plurality of available areas of the recording medium in reference to the available area information; recording the compressed image data into the determined at least one available area; identifying success/failure of the recording; decoding the compressed image data recorded into the determined at least one available area in response to the identified success; determining whether the compressed image data is properly decoded and determining that a defect other than inadequate available area exists on the recording medium if the compressed image data is not properly decoded; renewing the available area information in response to an identification result indicates properly decoding; and setting said recording medium to a recording prohibition state in response to the identified failure even though there is at least one available area on said recording medium, wherein the identified failure is failure caused by a defect of said recording medium, and the recording prohibition state is a state that said recording medium can be used only in the read only mode out of recording mode and read only mode.