摘要 |
PURPOSE:To reduce failures of a medium and to improve the throughout of data processing by deciding automatically whether a data read error exists or not when a fault occurs at the time of writing, and not writing a failure data flag in its sector irrespective of occurrence of the fault of no error exists. CONSTITUTION:After a seek operation of a track is executed and coincidence of ID is taken, its data and an error correction detecting code are written in a medium 24 by a reading/writing circuit 23, but if a fault occurs in the couse of this writing operation, the data of the same sector as the data written in the medium 24 is supplied and stored in a read data buffer circuit 19. This data detects whether an error exists or not by an error correction detecting circuit 14 through a selecting circuit 16, decides that writing is executed normally unless an error exists in a read data, and the processing device ends its processing. On the other hand, when an error is detected, a sector in which the read error is generated is searched, and in case when ID coincides, a failure data pattern 34 is written in its sector, and subsequently, an unwritten sector is searched, coincidence of ID is taken and thereafter, a data stored in advance in a data buffer 18 is written. |