Embodiments of the invention control a recovery procedure effectively in
accordance with write conditions. In one embodiment, the data to be
written into a sector includes not only user data but also recording
condition data, which indicates the temperature prevalent during a write.
If a data read is not accurately performed, a recovery procedure is
executed. If a data read is accomplished by a retry and the temperature
prevalent during a write is lower than predetermined, it is concluded
that the employed medium is nondefective. Thus, the read data is
rewritten into the same sector without being stored in a spare area. This
prevents the spare area from being unnecessarily consumed.