The latest management data recorded in a recording medium is read. Then, it
is judged whether the fault is in this latest management data or not. When
it is judged the fault is not in this latest management data, a data size
of user data under the management of this latest management data is
compared with a data size of the user data recorded actually in the
recording medium. In the judgment explained above, when the latest
management data cannot be read, when it is judged the fault is in the
latest management data or when it is judged a data size of user data under
the management of the latest management data is not identical to a data
size of the user data recorded actually in the recording medium,
management data can be updated by analyzing the user data recorded in the
recording medium. Thereby, there is provided a repair technique for the
recorded data in response to an accidental shut-off condition of power
supply in a data recording apparatus for recording user data and
management data used for management of such user data to the recording
medium.