[go: up one dir, main page]

JP2001273728A - Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device - Google Patents

Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device

Info

Publication number
JP2001273728A
JP2001273728A JP2000089186A JP2000089186A JP2001273728A JP 2001273728 A JP2001273728 A JP 2001273728A JP 2000089186 A JP2000089186 A JP 2000089186A JP 2000089186 A JP2000089186 A JP 2000089186A JP 2001273728 A JP2001273728 A JP 2001273728A
Authority
JP
Japan
Prior art keywords
magnetic disk
error
data
access
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000089186A
Other languages
Japanese (ja)
Inventor
Satoshi Yabe
諭 矢部
Jiro Miyabe
二郎 宮部
Tomio Kakiuchi
登巳夫 垣内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000089186A priority Critical patent/JP2001273728A/en
Priority to PCT/JP2001/002556 priority patent/WO2001073786A1/en
Publication of JP2001273728A publication Critical patent/JP2001273728A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1879Direct read-after-write methods

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

(57)【要約】 【課題】 通常使用時において訂正不可能なエラーが発
生しても、上位装置のエラー処理に伴う回転待ち時間を
発生させることなく、AVデータ等の大容量連続データ
の要求する帯域、アクセスの連続性を確保できる磁気デ
ィスク装置,ディスクアクセス方法,ディスクアクセス
プログラム記録媒体を提供するものである。 【解決手段】 磁気ディスク2上に書き込まれたAVデ
ータ等の大容量連続データに対してベリファイを行い訂
正不可能なエラーがセクター4に検出されたら、セクタ
ー4を不揮発性記憶装置5にエラーマップ登録し、その
エラーマップを参照しながら再書き込み等のデータ保証
処理を読み込みアクセス前に行い、エラー発生をなくす
構成とした。
(57) [Summary] [PROBLEMS] Even if an uncorrectable error occurs during normal use, a request for large-capacity continuous data such as AV data without generating a rotation waiting time accompanying error processing of a host device. It is an object of the present invention to provide a magnetic disk device, a disk access method, and a disk access program recording medium that can ensure the bandwidth to be accessed and the continuity of access. SOLUTION: When a large-capacity continuous data such as AV data written on a magnetic disk 2 is verified and an uncorrectable error is detected in a sector 4, the sector 4 is mapped to a nonvolatile storage device 5 by an error map. The data is registered, and data assurance processing such as rewriting is performed before reading access while referring to the error map, thereby eliminating errors.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、記録媒体として磁
気ディスクが用いられた大容量記憶装置として知られる
磁気ディスク装置、そのディスクアクセス方法、及び磁
気ディスク装置用ディスクアクセスプログラム記録媒体
に関するものであり、特に、通常使用時において訂正不
可能なエラーが発生しても、回転待ち時間を発生させる
ことなくエラー発生をなくすことができ、大容量連続デ
ータの要求する帯域、アクセスの連続性を確保できるよ
うにしたものに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk device known as a large-capacity storage device using a magnetic disk as a recording medium, a disk access method thereof, and a disk access program recording medium for the magnetic disk device. In particular, even if an uncorrectable error occurs during normal use, the occurrence of the error can be eliminated without generating a rotation wait time, and the bandwidth required for large-capacity continuous data and the continuity of access can be secured. Regarding what you did.

【0002】[0002]

【従来の技術】磁気ディスク装置においては、媒体欠
陥、すなわち記録媒体上の傷や磁性層の不完全な箇所な
どはつきものであり、これら磁気ディスクの欠陥に対す
る検査は工場出荷時に行われている。工場出荷時に検出
された欠陥箇所の情報は、磁気ディスクのエラーフリー
エリアに書き込んでおき、上位装置がその情報を読み取
り、交代トラックや交代セクタなどの交代指示を出し、
これらの箇所を使用しないようにしている。一方、リー
ドベリファイはフォーマット後、磁気ディスクが正常に
フォーマットされているかを確認するために行われてい
る。これらの処理は、訂正不可能なエラーをなくし、読
み込みアクセス時にエラーを発生させないために行われ
ている。
2. Description of the Related Art In a magnetic disk drive, a medium defect, that is, a scratch on a recording medium or an incomplete portion of a magnetic layer, etc., is common, and inspection for these magnetic disk defects is performed at the time of shipment from a factory. The information of the defective part detected at the time of factory shipment is written in the error free area of the magnetic disk, and the host device reads the information and issues a replacement instruction such as a replacement track or a replacement sector.
These parts are not used. On the other hand, read formatting is performed after formatting to check whether the magnetic disk is properly formatted. These processes are performed to eliminate uncorrectable errors and prevent errors from occurring at the time of read access.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、前記2
つの処理は、通常使用時の書き込みアクセスや読み込み
アクセス等の際には行われていない。つまり、通常使用
時において発生した記録媒体の欠陥に対する情報は無
く、書き込まれたデータに対するベリファイは行われて
いない。従って、通常使用時において書き込まれたデー
タに発生した,訂正不可能なエラーは、読み込みアクセ
ス時にエラーが発生するまでは分からない。また、エラ
ーが発生した場合はその旨を上位装置に通知するように
している。
However, the above-mentioned 2
The two processes are not performed at the time of write access or read access during normal use. That is, there is no information on the defect of the recording medium that occurred during normal use, and no verification has been performed on the written data. Therefore, an uncorrectable error that has occurred in data written during normal use cannot be known until an error occurs during read access. Further, when an error occurs, the fact is notified to a higher-level device.

【0004】図2に、従来の磁気ディスク装置のディス
クアクセス方法を示す。図2において、4Aは媒体不良
のない,あるいは訂正可能なエラーがあるセクタである
GOODSECTOR、4Bは訂正不可能なエラーがあ
るBADSECTORである。
FIG. 2 shows a disk access method of a conventional magnetic disk drive. In FIG. 2, 4A is a GOOD SECTOR which is a sector having no medium failure or has a correctable error, and 4B is a BADSECTOR having an uncorrectable error.

【0005】あるデータに対して読み込みアクセス中、
磁気ディスク媒体に訂正不可能なエラーがあるセクタB
ADSECTOR 4Bがあり、エラーが発生した場
合、磁気ディスク装置はその旨を上位装置に通知する。
その間アクセスは中断し、上位装置はエラー処理を行っ
た後、読み込み再開のコマンドを送るが、その間、磁気
ディスク装置では回転待ち時間が生じる。
[0005] During read access to certain data,
Sector B with uncorrectable error on magnetic disk medium
If there is an ADSECTOR 4B and an error occurs, the magnetic disk device notifies the host device of the error.
During that time, the access is interrupted, the host device performs an error process, and then sends a read restart command. During that time, a rotation wait time occurs in the magnetic disk device.

【0006】ところで、最近、テレビジョン放送等のA
Vデータの記録媒体として磁気ディスク装置を使用する
ケースが増えつつあるが、磁気ディスク装置において、
AVデータ等の大容量連続データを扱う場合、データの
要求する帯域、アクセスの連続性を確保しなければなら
ない。しかし、訂正不可能なエラーが発生すると、上位
装置のエラー処理に伴う回転待ち時間が発生し、これら
を確保することは困難となる。従って、上位装置はデー
タの要求する帯域、アクセスの連続性を確保しながら、
エラー処理を行わなければならないので、そのデータ管
理、エラー処理は複雑なものとなる。
By the way, recently, A, such as television broadcasting,
In many cases, a magnetic disk device is used as a recording medium for V data.
When handling large-capacity continuous data such as AV data, it is necessary to ensure the bandwidth required by the data and the continuity of access. However, when an uncorrectable error occurs, a rotation waiting time occurs due to the error processing of the host device, and it is difficult to secure them. Therefore, the higher-level device secures the bandwidth required by the data and the continuity of the access,
Since error processing must be performed, the data management and error processing are complicated.

【0007】本発明は、前記課題を解決するためになさ
れたもので、訂正不可能なエラー発生前にエラーを検出
し、出荷時やフォーマット時といった特別な場合に行わ
れるベリファイ等の処理を、通常使用時にも行うことが
できる磁気ディスク装置、そのディスクアクセス方法、
及び磁気ディスク装置用ディスクアクセスプログラム記
録媒体を提供することを目的とするものである。
The present invention has been made in order to solve the above-mentioned problem, and detects an error before the occurrence of an uncorrectable error, and performs processing such as verification performed in a special case such as shipping or formatting. A magnetic disk device that can be performed even during normal use, a disk access method thereof,
And a disk access program recording medium for a magnetic disk drive.

【0008】また、本発明は、上位装置のエラー処理に
伴う回転待ち時間をなくし、AVデータ等の大容量連続
データの要求する帯域、アクセスの連続性を確保できる
磁気ディスク装置、そのディスクアクセス方法、及び磁
気ディスク装置用ディスクアクセスプログラム記録媒体
を提供することを目的とするものである。
Further, the present invention eliminates the rotation waiting time associated with error processing of a host device, and secures a band required for large-capacity continuous data such as AV data and continuity of access, and a disk access method therefor. , And a disk access program recording medium for a magnetic disk device.

【0009】[0009]

【課題を解決するための手段】本願の請求項1の発明に
係る磁気ディスク装置は、記録媒体として磁気ディスク
が用いられ、その磁気ディスクに対しアクセスして各種
のデータを読み書きする磁気ディスク装置において、前
記磁気ディスクに対しデータの書き込みアクセスを行う
書き込みアクセス手段と、前記磁気ディスクに対しデー
タの読み込みアクセスを行う読み込みアクセス手段と、
前記磁気ディスクのデータのベリファイを行うベリファ
イ手段と、前記磁気ディスクのエラーマップを登録する
ための不揮発性記憶手段と、前記ベリファイにより検出
された磁気ディスク上の前記エラーの位置と結果を前記
不揮発性記憶手段のエラーマップに登録するエラーマッ
プ登録手段と、本磁気ディスク装置とその外部に接続さ
れた上位装置との間でデータの転送を行う際に、前記磁
気ディスクに対し前記データの書き込みアクセスを終了
した後に、前記磁気ディスクに対して前記データのベリ
ファイを行い、訂正不可能なエラーが検出された場合、
前記磁気ディスク上の前記エラーの位置と結果を、前記
不揮発性記憶手段のエラーマップに登録するように、前
記書き込みアクセス手段,ベリファイ手段,読み出しア
クセス手段およびエラーマップ登録手段を制御するシー
ケンス制御手段とを備えた、ことを特徴とするものであ
る。
A magnetic disk drive according to the first aspect of the present invention uses a magnetic disk as a recording medium and accesses the magnetic disk to read and write various data. Write access means for performing data write access to the magnetic disk; read access means for performing data read access to the magnetic disk;
Verifying means for verifying the data on the magnetic disk; non-volatile storage means for registering an error map of the magnetic disk; and storing the position and result of the error on the magnetic disk detected by the verification in the non-volatile memory. Error map registration means for registering in the error map of the storage means, and when transferring data between the magnetic disk device and a higher-level device connected to the outside thereof, write access of the data to the magnetic disk is performed. After the completion, the data is verified on the magnetic disk, and if an uncorrectable error is detected,
Sequence control means for controlling the write access means, the verification means, the read access means and the error map registration means so as to register the position and the result of the error on the magnetic disk in an error map of the nonvolatile storage means; It is characterized by having.

【0010】また、本願の請求項2の発明に係る磁気デ
ィスク装置のディスクアクセス方法は、記録媒体として
磁気ディスクが用いられ、その磁気ディスクに対しアク
セスして各種のデータを読み書きする磁気ディスク装置
のディスクアクセス方法において、その外部に接続され
た上位装置との間でデータの転送を行う際に、前記磁気
ディスクに対し前記データの書き込みアクセスを終了し
た後に、前記磁気ディスクに対して前記データのベリフ
ァイを行い、訂正不可能なエラーが検出された場合、前
記磁気ディスク上の前記エラーの位置と結果を、不揮発
性記憶手段のエラーマップに登録する、ことを特徴とす
るものである。
According to a second aspect of the present invention, there is provided a disk access method for a magnetic disk drive, wherein a magnetic disk is used as a recording medium and the magnetic disk is accessed to read and write various data. In the disk access method, when transferring data to or from a higher-level device connected to the outside, after verifying the data write access to the magnetic disk, verifying the data to the magnetic disk And when an uncorrectable error is detected, the position and the result of the error on the magnetic disk are registered in an error map of a nonvolatile storage unit.

【0011】また、本願の請求項3の発明に係る磁気デ
ィスク装置用制御プログラム記録媒体は、記録媒体とし
て磁気ディスクが用いられ、その磁気ディスクに対しア
クセスして各種のデータを読み書きする磁気ディスク装
置用制御プログラムを記録した記録媒体において、その
外部に接続された上位装置との間でデータの転送を行う
際に、前記磁気ディスクに対し前記データの書き込みア
クセスを終了した後に、前記磁気ディスクに対して前記
データのベリファイを行い、訂正不可能なエラーが検出
された場合、前記磁気ディスク上の前記エラーの位置と
結果を、不揮発性記憶手段のエラーマップに登録する、
ことを特徴とするものである。
A control program recording medium for a magnetic disk device according to the invention of claim 3 of the present application uses a magnetic disk as a recording medium and accesses the magnetic disk to read and write various data. In a recording medium on which a data control program is recorded, when transferring data to and from a higher-level device connected to the outside, after terminating the data write access to the magnetic disk, Verifying the data, and when an uncorrectable error is detected, registering the position and the result of the error on the magnetic disk in an error map of a nonvolatile storage unit;
It is characterized by the following.

【0012】本発明の請求項1、2及び3に記載の磁気
ディスク装置、そのディスクアクセス方法、及び磁気デ
ィスク装置用ディスクアクセスプログラム記録媒体は、
上述のように、記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種情報のデ
ータの読み書きを行う磁気ディスク装置において、その
外部に接続された上位装置との間で、一定帯域を要求す
るAVデータ等の大容量連続データの転送を行う場合、
上位装置から書き込みコマンドを受け、AVデータ等の
大容量連続データに対して書き込みアクセスが終了した
後、連続してAVデータ等の大容量連続データに対して
ベリファイを行い、ベリファイの結果、訂正不可能なエ
ラーが検出された場合、エラーのあるセクタの磁気ディ
スク上の物理的な位置とエラーのレベルとを不揮発性記
憶手段のエラーマップに登録する。その後、前記エラー
マップを参照することで、再書き込み等の処理を前記訂
正不可能なエラーのあるセクタに対して行う。この状態
で、上位装置から読み込みコマンドを受けた場合には、
制御回路は、読み込みアクセスを行うが、訂正不可能な
エラーのあるセクタに対して読み込みアクセスをする場
合にも、該訂正不可能なエラーのあるセクタに対して
は、すでにエラーに対する処理が行われているので、エ
ラーが発生することはない。
A magnetic disk device, a disk access method thereof, and a disk access program recording medium for a magnetic disk device according to claims 1, 2 and 3 of the present invention are provided.
As described above, a magnetic disk is used as a recording medium, and in a magnetic disk device that accesses the magnetic disk and reads / writes data of various types of information, a fixed bandwidth is set between the magnetic disk device and a host device connected to the outside. When transferring large-capacity continuous data such as AV data that requires
After a write command is received from a host device and write access to large-capacity continuous data such as AV data is completed, verification is continuously performed on large-capacity continuous data such as AV data. When a possible error is detected, the physical position of the erroneous sector on the magnetic disk and the error level are registered in an error map of the nonvolatile storage means. Thereafter, by referring to the error map, processing such as rewriting is performed on the sector having the uncorrectable error. In this state, if a read command is received from the host device,
The control circuit performs read access, but when performing read access to a sector having an uncorrectable error, the error processing is already performed for the sector having the uncorrectable error. So no error occurs.

【0013】この構成により、前記磁気ディスク装置、
そのディスクアクセス方法、及び磁気ディスク装置用デ
ィスクアクセスプログラム記録媒体は、上位装置から読
み込みコマンドを受けて、大容量連続データに対して読
み込みアクセスを行う前に、不揮発性記憶装置に登録さ
れたエラーマップを参照してエラーのあるセクターに対
してエラー処理を行う。従って、従来の技術におけるよ
うな、読み込みアクセス時のエラー発生をなくすことが
でき、また、上位装置はエラー発生の通知を受けエラー
に対する処理を読み込みアクセス時に行わなければなら
ない、ということがない。従って、上位装置のエラー処
理に伴う回転待ち時間がなくなり、AVデータ等の大容
量連続データの要求する帯域の確保、アクセスの連続性
の確保が実現される。
According to this structure, the magnetic disk device,
The disk access method and the disk access program recording medium for a magnetic disk device are provided with an error map registered in a nonvolatile storage device before receiving a read command from a higher-level device and performing read access to large-capacity continuous data. And performs error processing on the erroneous sector. Therefore, it is possible to eliminate the occurrence of an error at the time of read access as in the prior art, and it is not necessary for the higher-level device to receive the notification of the occurrence of the error and perform processing for the error at the time of read access. Therefore, the rotation waiting time associated with the error processing of the host device is eliminated, and the bandwidth required for large-capacity continuous data such as AV data and the continuity of access are ensured.

【0014】また、本願の請求項4の発明に係る磁気デ
ィスク装置は、請求項1に記載の磁気ディスク装置にお
いて、前記シーケンス制御手段は、前記ベリファイ手段
により、前記訂正不可能なエラー以外に、訂正可能なE
CCエラーが検出された場合にも、前記エラーの磁気デ
ィスク上の位置と結果を、前記不揮発性記憶手段のエラ
ーマップに登録するように前記不揮発性記憶手段および
エラーマップ登録手段を制御し、かつ、前記ベリファイ
終了後、ECCエラーがあったことを前記上位装置に通
知する、ことを特徴とするものである。
According to a fourth aspect of the present invention, there is provided the magnetic disk drive according to the first aspect, wherein the sequence control means uses the verifying means to execute the error correction in addition to the uncorrectable error. Correctable E
Even when a CC error is detected, the nonvolatile memory means and the error map registration means are controlled to register the position and the result of the error on the magnetic disk in an error map of the nonvolatile memory means, and After the verification is completed, the upper-level device is notified that an ECC error has occurred.

【0015】また、本願の請求項5の発明に係る磁気デ
ィスク装置のディスクアクセス方法は、請求項2に記載
の磁気ディスク装置のディスクアクセス方法において、
前記ベリファイにより、前記訂正不可能なエラー以外
に、訂正可能なECCエラーが検出された場合にも、前
記エラーの磁気ディスク上の位置と結果を、不揮発性記
憶手段のエラーマップに登録し、前記ベリファイ終了
後、ECCエラーがあったことを上位装置に通知する、
ことを特徴とするものである。
According to a fifth aspect of the present invention, there is provided a disk access method for a magnetic disk drive according to the second aspect of the present invention.
Even when a correctable ECC error other than the uncorrectable error is detected by the verification, the position and the result of the error on the magnetic disk are registered in an error map of a non-volatile storage unit. After the verification, notifies the host device that an ECC error has occurred.
It is characterized by the following.

【0016】また、本願の請求項6の発明に係る磁気デ
ィスク装置用制御プログラム記録媒体は、請求項3に記
載の磁気ディスク装置用制御プログラム記録媒体におい
て、前記ベリファイにより、前記訂正不可能なエラー以
外に、訂正可能なECCエラーが検出された場合にも、
前記エラーの磁気ディスク上の位置と結果を、不揮発性
記憶手段のエラーマップに登録し、前記ベリファイ終了
後、ECCエラーがあったことを上位装置に通知する、
ことを特徴とするものである。
A magnetic disk drive control program recording medium according to a sixth aspect of the present invention is the magnetic disk drive control program recording medium according to the third aspect, wherein the uncorrectable error is obtained by the verification. In addition, when a correctable ECC error is detected,
Registering the position and the result of the error on the magnetic disk in an error map of a nonvolatile storage unit, and, after the completion of the verification, notifying a host device that an ECC error has occurred;
It is characterized by the following.

【0017】本発明の請求項4、5及び6に記載の磁気
ディスク装置、そのディスクアクセス方法、及び磁気デ
ィスク装置用ディスクアクセスプログラム記録媒体は、
上述のように、記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種情報のデ
ータを読み書きする磁気ディスク装置において、その外
部に接続された上位装置との間で、一定帯域を要求する
AVデータ等の大容量連続データの転送を行う場合、通
常使用時において、上位装置から書き込みコマンドを受
け、AVデータ等の大容量連続データに対して書き込み
アクセスを終了した後、連続してAVデータ等の大容量
連続データに対してベリファイを行い、ベリファイの結
果、訂正不可能なエラー以外に、訂正可能なECCエラ
ーが検出された場合にも、訂正可能なECCエラーのあ
るセクターの磁気ディスク上の物理的位置とエラーのレ
ベルとを、不揮発性記憶手段のエラーマップに登録す
る。ベリファイ終了後、磁気ディスク装置は訂正可能な
ECCエラーがあったことを上位装置に通知する。訂正
可能なECCエラーに対しての処理の判断は、上位装置
が行う。
According to a fourth aspect of the present invention, there is provided a magnetic disk drive, a disk access method therefor, and a disk access program recording medium for a magnetic disk drive.
As described above, a magnetic disk is used as a recording medium, and in a magnetic disk device that accesses the magnetic disk and reads / writes data of various types of information, a certain bandwidth is set between the magnetic disk device and an externally connected higher-level device. When transferring large-capacity continuous data such as requested AV data, in normal use, a write command is received from a higher-level device, and write access to large-capacity continuous data such as AV data is terminated. The verification is performed on large-capacity continuous data such as AV data, and when a verifyable ECC error is detected in addition to an uncorrectable error as a result of the verification, the magnetic field of a sector having a correctable ECC error is detected. The physical position on the disk and the level of the error are registered in an error map of the nonvolatile storage means. After the verification is completed, the magnetic disk device notifies the host device that there is a correctable ECC error. The determination of the process for the correctable ECC error is made by the host device.

【0018】この構成により、上位装置は磁気ディスク
から訂正可能なECCエラーがあることを通知されてい
るので、常時、前記訂正可能なECCエラーの処理に対
する判断を行うことができる。現時点では訂正可能なE
CCエラーであっても、読み込みアクセスを繰り返すう
ちに訂正不可能なエラーになってしまう可能性がある
が、上位装置は自分自身でその処理について判断できる
ので、訂正不可能なエラーになってしまう前に、上位装
置の判断により前記訂正可能なECCエラーを訂正し、
磁気ディスク上に書き込む等の処理が可能となる。従っ
て、ECCエラーが訂正不可能なエラーとなることがな
くなり、読み込みアクセス時のエラー発生がなくなるこ
とになり、従来の方式においての上位装置のエラー処理
に伴う回転待ち時間がなくなり、AVデータ等の大容量
連続データの要求する帯域、アクセスの連続性が確保さ
れる。
With this configuration, the host device is notified from the magnetic disk that there is a correctable ECC error, so that the host device can always judge the process of the correctable ECC error. E which is correctable at the moment
Even with a CC error, there is a possibility that an uncorrectable error may occur during repeated read access, but since the host device can determine the processing by itself, the error becomes an uncorrectable error. Before, the correctable ECC error is corrected by the judgment of the host device,
Processing such as writing on a magnetic disk can be performed. Therefore, the ECC error does not become an uncorrectable error, an error does not occur at the time of read access, the rotation waiting time associated with the error processing of the host device in the conventional method is eliminated, and the AV data and the like are eliminated. The bandwidth required for large-capacity continuous data and the continuity of access are ensured.

【0019】また、本願の請求項7の発明に係る磁気デ
ィスク装置は、請求項1に記載の磁気ディスク装置にお
いて、前記シーケンス制御手段は、前記ベリファイを行
う前に、前記上位装置によりエラーマップに登録するE
CCエラーのレベルが設定され、かつ、前記シーケンス
制御手段は、上記ベリファイ手段で検出されたECCエ
ラーが前記設定レベルに達しているときは、前記エラー
の磁気ディスク上の位置と結果を、前記不揮発性記憶手
段のエラーマップに登録し、前記磁気ディスクに対し
て、自動的に再書き込み等の処理を行うように、前記不
揮発性記憶手段,エラーマップ登録手段および書き込み
アクセス手段を制御する、ことを特徴とするものであ
る。
According to a seventh aspect of the present invention, in the magnetic disk drive according to the first aspect, the sequence control means stores the error map in the error map by the higher-level device before performing the verification. E to register
When a level of a CC error is set and the sequence control means detects that the ECC error detected by the verifying means has reached the set level, the sequence control means stores the position and the result of the error on the magnetic disk in the nonvolatile memory. Controlling the non-volatile storage means, the error map registration means, and the write access means so as to register the data in the error map of the non-volatile storage means and automatically perform processing such as rewriting on the magnetic disk. It is a feature.

【0020】また、本願の請求項8の発明に係る磁気デ
ィスク装置のディスクアクセス方法は、請求項2に記載
の磁気ディスク装置のディスクアクセス方法において、
前記ベリファイを行う前に、上位装置によりエラーマッ
プに登録するECCエラーのレベルが設定され、上記ベ
リファイで検出されたECCエラーが設定レベルに達し
ているときは、前記エラーの磁気ディスク上の位置と結
果を、不揮発性記憶手段のエラーマップに登録し、前記
磁気ディスクに対して、自動的に再書き込み等の処理を
行う、ことを特徴とするものである。
The disk access method for a magnetic disk drive according to the invention of claim 8 of the present application is the disk access method for a magnetic disk drive according to claim 2,
Before performing the verification, the level of the ECC error to be registered in the error map is set by the host device, and when the ECC error detected by the verification has reached the set level, the position of the error on the magnetic disk and The result is registered in an error map of a nonvolatile storage means, and processing such as rewriting is automatically performed on the magnetic disk.

【0021】また、本願の請求項9の発明に係る磁気デ
ィスク装置用制御プログラム記録媒体は、請求項3に記
載の磁気ディスク装置用制御プログラム記録媒体におい
て、前記ベリファイを行う前に、上位装置によりエラー
マップに登録するECCエラーのレベルが設定され、上
記ベリファイで検出されたECCエラーが設定レベルに
達しているときは、前記エラーの磁気ディスク上の位置
と結果を、不揮発性記憶手段のエラーマップに登録し、
前記磁気ディスクに対して、自動的に再書き込み等の処
理を行う、ことを特徴とするものである。
According to a ninth aspect of the present invention, in the control program recording medium for a magnetic disk device according to the third aspect of the present invention, the control program recording medium for the magnetic disk device is provided by a higher-level device before performing the verification. When an ECC error level to be registered in the error map is set and the ECC error detected by the above verification has reached the set level, the position and the result of the error on the magnetic disk are stored in an error map of the nonvolatile storage means. Register with
A process, such as rewriting, is automatically performed on the magnetic disk.

【0022】本発明の請求項7、8及び9に記載の磁気
ディスク装置、そのディスクアクセス方法、及び磁気デ
ィスク装置用ディスクアクセスプログラム記録媒体は、
上述のように、記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種情報のデ
ータを読み書きする磁気ディスク装置において、その外
部に接続された上位装置との間で、一定帯域を要求する
AVデータ等の大容量連続データの転送を行う場合、上
位装置から書き込みコマンドを受け、AVデータ等の大
容量連続データに対して書き込みアクセスを終了した
後、大容量連続データに対してベリファイを行う前に、
上位装置は、不揮発性記憶手段のエラーマップに登録す
るECCエラーのレベルを設定する。ベリファイを行っ
た結果、ECCエラーが検出され、そのエラーのレベル
が設定レベルに達しているならば、エラーのあるセクタ
ーの磁気ディスク上の物理的な位置と、エラーのレベル
とを不揮発性記憶手段のエラーマップに登録し、磁気デ
ィスク装置は、ECCエラーのあるデータに対して自動
的に再書き込み等の処理を行う。
According to a seventh aspect of the present invention, there is provided a magnetic disk drive, a disk access method therefor, and a disk access program recording medium for a magnetic disk drive.
As described above, a magnetic disk is used as a recording medium, and in a magnetic disk device that accesses the magnetic disk and reads / writes data of various types of information, a certain bandwidth is set between the magnetic disk device and an externally connected higher-level device. When performing transfer of large-capacity continuous data such as requested AV data, a write command is received from a host device, write access to large-capacity continuous data such as AV data is completed, and then verification of large-capacity continuous data is performed. Before doing
The higher-level device sets an ECC error level to be registered in the error map of the nonvolatile storage unit. As a result of the verification, an ECC error is detected. If the error level has reached a set level, the physical position of the erroneous sector on the magnetic disk and the error level are stored in a nonvolatile storage means. And the magnetic disk device automatically performs processing such as rewriting on data having an ECC error.

【0023】この構成により、AVデータ等の大容量連
続データに対して、書き込みアクセス終了直後から行わ
れる、該AVデータ等の大容量連続データに対するベリ
ファイにより、ECCエラーを検出できる。磁気ディス
ク装置は検出されたECCエラーのあるセクタの磁気デ
ィスク上の物理的な位置と、エラーのレベルとを登録し
た不揮発性記憶手段のエラーマップを参照できるので、
ECCエラーのあるデータに対しての再書き込み等のデ
ータ保証処理を自動的に行うことができる。従って、読
み込みアクセス時に訂正不可能なECCエラーがあった
場合のエラー発生がなくなり、従来の方式においての上
位装置のエラー処理に伴う回転待ち時間が発生しなくな
る。従って、AVデータ等の大容量連続データの要求す
る帯域、アクセスの連続性が確保される。
With this configuration, an ECC error can be detected by verifying large-capacity continuous data such as AV data immediately after the end of the write access to large-capacity continuous data such as AV data. Since the magnetic disk device can refer to the error map of the non-volatile storage unit in which the detected physical position of the sector having the ECC error on the magnetic disk and the error level are registered,
Data assurance processing such as rewriting of data having an ECC error can be automatically performed. Therefore, when there is an uncorrectable ECC error at the time of read access, an error does not occur, and the rotation waiting time accompanying the error processing of the host device in the conventional method does not occur. Therefore, the bandwidth required by large-capacity continuous data such as AV data and the continuity of access are ensured.

【0024】また、本願の請求項10の発明に係る磁気
ディスク装置は、請求項1に記載の磁気ディスク装置に
おいて、前記シーケンス制御手段は、前記ベリファイ動
作を1トラック単位で行うように、前記読み出しアクセ
ス手段およびベリファイ手段を制御する、ことを特徴と
するものである。
According to a tenth aspect of the present invention, in the magnetic disk drive according to the first aspect, the sequence control means performs the read operation such that the verify operation is performed in units of one track. Controlling access means and verify means.

【0025】また、本願の請求項11の発明に係る磁気
ディスク装置のディスクアクセス方法は、請求項2に記
載の磁気ディスク装置のディスクアクセス方法におい
て、前記ベリファイにおいて、その動作を1トラック単
位で行う、ことを特徴とするものである。
In the disk access method for a magnetic disk drive according to the present invention, in the disk access method for a magnetic disk drive according to the second aspect, the operation is performed in units of one track in the verification. It is characterized by the following.

【0026】また、本願の請求項12の発明に係る磁気
ディスク装置用ディスクアクセス制御プログラム記録媒
体は、請求項3に記載の磁気ディスク装置用ディスクア
クセス制御プログラム記録媒体において、前記ベリファ
イにおいて、その動作を1トラック単位で行う、ことを
特徴とするものである。
A disk access control program recording medium for a magnetic disk device according to the invention of claim 12 of the present application is the disk access control program recording medium for a magnetic disk device according to claim 3, wherein Is performed on a track-by-track basis.

【0027】本発明の請求項10、11及び12に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体は、上述のように、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、上位装置から書き込みコマン
ドを受け、AVデータ等の大容量連続データに対して書
き込みアクセスを終了した後、連続してAVデータ等の
大容量連続データに対して行われるベリファイについ
て、磁気ディスク上のある1つのトラックに対して、A
Vデータ等の大容量連続データの書き込みが終了した直
後から、その同一トラックに対して前記ベリファイを行
い、その後、磁気ディスク装置のヘッドは、磁気ディス
ク上の別のトラックにSEEKし、そのトラックに対し
てのAVデータ等の大容量連続データの書き込みアクセ
スが終了した直後から、その同一トラックに対してベリ
ファイを行う、という具合に、書き込みアクセスが終了
したある1つのトラックに対して、連続して同一トラッ
クに対してベリファイを行う、1トラック単位のベリフ
ァイとする。
As described above, the magnetic disk device, the disk access method thereof, and the disk access program recording medium for the magnetic disk device according to the tenth, eleventh, and twelfth aspects of the present invention use a magnetic disk as a recording medium. In a magnetic disk device which accesses the magnetic disk and reads / writes data of various types of information, transfer of large-capacity continuous data such as AV data requesting a certain band to / from an externally connected upper-level device. In this case, during normal use, after a write command is received from a higher-level device and write access to large-capacity continuous data such as AV data is completed, the operation is continuously performed for large-capacity continuous data such as AV data. For verifying, for one track on the magnetic disk, A
Immediately after the writing of large-capacity continuous data such as V data is completed, the above-described verify is performed on the same track, and then the head of the magnetic disk drive SEEKs to another track on the magnetic disk, and Immediately after write access to large-capacity continuous data such as AV data is completed, verify is performed on the same track, and so on. The verification is performed on the same track in units of one track.

【0028】この構成により、通常使用時において、磁
気ディスク装置は、AVデータ等の大容量連続データに
対する書き込みアクセス終了後、連続して行われる前記
AVデータ等の大容量連続データに対するベリファイを
1トラック単位で行うので、上位装置からの書き込みコ
マンドを受け、書き込むべき前記AVデータ等の大容量
連続データをすべて書き終えた後、複数トラック単位で
ベリファイを行うよりも、SEEK時間を最小限にする
ことができ、最も効率の良いベリファイが実現される。
With this configuration, in normal use, the magnetic disk device performs one-track verification on the continuous large-capacity data such as the AV data after the write access to the large-capacity continuous data such as the AV data is completed. Since the write operation is performed in units, the SEEK time is minimized rather than verifying in units of a plurality of tracks after receiving a write command from a higher-level device and writing all the large-capacity continuous data such as the AV data to be written. And the most efficient verification is realized.

【0029】また、本願の請求項13の発明に係る磁気
ディスク装置は、請求項1に記載の磁気ディスク装置に
おいて、前記シーケンス制御手段は、前記ベリファイ動
作を上位装置の介在なしに自動的に行うように、前記読
み出しアクセス手段およびベリファイ手段を制御する、
ことを特徴とするものである。
In the magnetic disk drive according to the invention of claim 13, the sequence control means automatically performs the verify operation without the intervention of a host device. Controlling the read access means and the verify means,
It is characterized by the following.

【0030】また、本願の請求項14の発明に係る磁気
ディスク装置のディスクアクセス方法は、請求項2に記
載の磁気ディスク装置のディスクアクセス方法におい
て、前記ベリファイにおいて、その動作を上位装置の介
在無く自動的に行う、ことを特徴とするものである。
A disk access method for a magnetic disk drive according to a fourteenth aspect of the present invention is the disk access method for a magnetic disk drive according to the second aspect, wherein the verifying operation is performed without the intervention of a host device. It is performed automatically.

【0031】また、本願の請求項15の発明に係る磁気
ディスク装置用制御プログラム記録媒体は、請求項3に
記載の磁気ディスク装置用制御プログラム記録媒体にお
いて、前記ベリファイにおいて、その動作を上位装置の
介在無く自動的に行う、ことを特徴とするものである。
A magnetic disk drive control program recording medium according to claim 15 of the present application is the magnetic disk drive control program recording medium according to claim 3, wherein the operation of the control program recording medium is performed by the higher-level device in the verification. It is performed automatically without intervention.

【0032】本発明の請求項13、14及び15に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体は、上述のように、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、上位装置から書き込みコマン
ド受け、AVデータ等の大容量連続データに対する書き
込みアクセスを終了した後、連続してAVデータ等の大
容量連続データに対するベリファイにおいて、磁気ディ
スク装置は上位装置から書き込みコマンドを受け、書き
込むべきAVデータ等の大容量連続データを書き込んだ
後は、上位装置とのやり取りなく、自動的に書き込まれ
た前記AVデータ等の大容量連続データに対してベリフ
ァイを行う。磁気ディスク装置は上位装置から次の書き
込みコマンドが来るまでにベリファイを終了する。上位
装置から次の書き込みコマンドを受けたときは、同時
に、磁気ディスクは次の書き込みコマンドまでに自動的
ベリファイを行う。
As described above, the magnetic disk device, the disk access method thereof, and the disk access program recording medium for the magnetic disk device according to the thirteenth, fourteenth, and fifteenth aspects of the present invention use a magnetic disk as a recording medium. In a magnetic disk device which accesses the magnetic disk and reads / writes data of various types of information, transfer of large-capacity continuous data such as AV data requesting a certain band to / from an externally connected upper-level device. In this case, in normal use, after receiving a write command from a higher-level device and completing write access to large-capacity continuous data such as AV data, the magnetic disk device performs continuous verification of large-capacity continuous data such as AV data. AV data to be written upon receiving a write command from the host device Of after writing large sequential data, without interaction with the host device performs verification to large continuous data of the like AV data automatically written. The magnetic disk device ends the verification before the next write command comes from the host device. When the next write command is received from the host device, the magnetic disk is automatically verified by the next write command.

【0033】この構成により、通常使用時において、磁
気ディスク装置は、上位装置から書き込みコマンドを受
け、AVデータ等の大容量連続データに対して書き込み
アクセスを終了した後、連続して書き込まれたAVデー
タ等の大容量連続データに対して行うベリファイを、上
位装置からの磁気ディスクに対する書き込みコマンドと
書き込みコマンドとの間の期間に磁気ディスクが自動的
に行うことで、従来の磁気ディスク装置において生じ
る、前記書き込みコマンドと書き込みコマンド間の期間
を有効利用することを可能にする。
With this configuration, in normal use, the magnetic disk device receives a write command from the host device, terminates write access to large-capacity continuous data such as AV data, and then continuously writes the AV data. Verification performed on large-capacity continuous data such as data is automatically performed by a magnetic disk during a period between a write command and a write command for a magnetic disk from a higher-level device. It is possible to effectively use a period between the write commands.

【0034】また、本願の請求項16の発明に係る磁気
ディスク装置は、請求項1に記載の磁気ディスク装置に
おいて、前記シーケンス制御手段は、前記ベリファイ手
段により、訂正不可能なエラーが検出された場合、前記
エラーの磁気ディスク上の位置と結果を不揮発性記憶手
段のエラーマップに登録し、前記読み込みアクセス手段
による読み込みアクセス時には前記エラーマップを参照
し、前記エラーのあるセクターはスキップして読み込み
アクセスを行うように、前記不揮発性記憶手段および読
み込みアクセス手段を制御する、ことを特徴とするもの
である。
According to a magnetic disk drive of the present invention, in the magnetic disk drive of the first aspect, the sequence control means detects an uncorrectable error by the verification means. In this case, the position and the result of the error on the magnetic disk and the result are registered in an error map of the non-volatile storage means, and the read map is referred to at the time of the read access by the read access means, and the erroneous sector is skipped for the read access. The nonvolatile storage means and the read access means are controlled so as to perform the following.

【0035】また、本願の請求項17の発明に係る磁気
ディスク装置のディスクアクセス方法は、請求項2に記
載の磁気ディスク装置のディスクアクセス方法におい
て、前記ベリファイにおいて、訂正不可能なエラーが検
出された場合、上記エラーの磁気ディスク上の位置と結
果を不揮発性記憶手段のエラーマップに登録し、読み込
みアクセス時には上記エラーマップを参照し、上記エラ
ーのあるセクタはスキップして読み込みアクセスを行
う、ことを特徴とするものである。
According to a disk access method of a magnetic disk drive according to a seventeenth aspect of the present invention, in the disk access method of the magnetic disk drive of the second aspect, an uncorrectable error is detected in the verification. In this case, the position and the result of the error on the magnetic disk and the result are registered in an error map of the non-volatile storage unit, and the read access is performed by referring to the error map at the time of read access and skipping the sector having the error. It is characterized by the following.

【0036】また、本願の請求項18の発明に係る磁気
ディスク装置用制御プログラム記録媒体は、請求項3に
記載の磁気ディスク装置用制御プログラム記録媒体にお
いて、前記ベリファイにおいて、訂正不可能なエラーが
検出された場合、前記エラーの磁気ディスク上の位置と
結果を不揮発性記憶手段のエラーマップに登録し、読み
込みアクセス時には前記エラーマップを参照し、前記エ
ラーのあるセクタはスキップして読み込みアクセスを行
う、ことを特徴とするものである。
The control program recording medium for a magnetic disk device according to the invention of claim 18 of the present application is the control program recording medium for a magnetic disk device according to claim 3, wherein an uncorrectable error is detected in the verification. If detected, the position and the result of the error on the magnetic disk and the result are registered in an error map of a non-volatile storage unit, and the read access is performed by referring to the error map at the time of read access and skipping the sector having the error. It is characterized by the following.

【0037】本発明の請求項16、17及び18に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体は、上述のように、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスク装置は上位
装置から書き込みコマンドを受け、前記AVデータ等の
大容量連続データに対する書き込みアクセスを終了した
後、連続して前記大容量連続データに対するベリファイ
を行う。前記ベリファイにより訂正不可能なエラーが検
出された場合、前記訂正不可能なエラーのあるセクタの
磁気ディスク上の物理的な位置と、エラーのレベルとを
不揮発性記憶手段のエラーマップに登録する。その後、
上位装置から読み込コマンドを受け、前記AVデータ等
の大容量連続データに対して読み込みアクセスを行う時
には、前記不揮発性記憶手段のエラーマップを参照する
ことで、前記エラーのあるセクタの位置を予め知ってお
くことができる。従って、前記訂正不可能なエラーのあ
るセクタに対しての読み込みアクセスとしては、そのセ
クタからは何も読み込まずに通り過ぎるだけのスキップ
を行うことができる。前記スキップを行い、前記訂正不
可能なエラーのあるセクタの次の正常なセクタからは通
常の読み込みアクセスを行う。
As described above, the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device according to the sixteenth, seventeenth, and eighteenth aspects of the present invention use a magnetic disk as a recording medium. In a magnetic disk device which accesses the magnetic disk and reads / writes data of various types of information, transfer of large-capacity continuous data such as AV data requesting a certain band to / from an externally connected upper-level device. In such a case, during normal use, the magnetic disk device receives a write command from a host device, terminates write access to large-capacity continuous data such as the AV data, and then continuously performs verification on the large-capacity continuous data. . When an uncorrectable error is detected by the verification, the physical position of the sector having the uncorrectable error on the magnetic disk and the error level are registered in an error map of the nonvolatile storage unit. afterwards,
When a read command is received from a host device and read access is made to large-capacity continuous data such as the AV data, the position of the erroneous sector is determined in advance by referring to the error map of the nonvolatile storage means. You can know. Therefore, as a read access to the sector having the uncorrectable error, it is possible to perform a skip that simply passes through without reading anything from the sector. The skip is performed, and normal read access is performed from a normal sector next to the sector having the uncorrectable error.

【0038】この構成により、上位装置からの読み込み
コマンドを受け、前記磁気ディスクが読み込みアクセス
を行う範囲の前記AVデータ等の大容量連続データに訂
正不可能なエラーがあった場合に、従来の方式では、エ
ラー発生として上位装置にそのことを通知し、上位装置
のエラー処理の間、読み込みアクセスの動作が中断され
ていたものが、ベリファイにより前記訂正不可能なエラ
ーのあるセクタの前記磁気ディスク上の物理的位置と、
そのレベルとを登録した前記不揮発性記憶手段のエラー
マップを参照することで、予め前記訂正不可能なエラー
のあるセクタの位置を知っておくことができるので、そ
のセクタに読み込みアクセスする際には、何も読み込ま
ずに素通りし、次の正常なセクタから再び読み込み始め
るスキップ動作を行うことができるので、読み込みアク
セス時の動作に対するアクセスの連続性を保つことを可
能とする。
With this configuration, when a read command is received from a higher-level device and an uncorrectable error occurs in large-capacity continuous data such as the AV data in a range where the magnetic disk performs read access, a conventional method is used. Then, the upper device is notified of the occurrence of the error, and the read access operation is interrupted during the error processing of the upper device. Physical location of
By referring to the error map of the non-volatile storage means in which the level is registered, the position of the sector having the uncorrectable error can be known in advance. Since it is possible to skip without reading anything and to perform a skip operation to start reading again from the next normal sector, it is possible to maintain the continuity of the access at the time of the read access.

【0039】また、本願の請求項19の発明に係る磁気
ディスク装置は、請求項1に記載の磁気ディスク装置に
おいて、前記シーケンス制御手段は、前記ベリファイ手
段により、訂正不可能なエラーが検出された場合、デー
タに対する前記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、そのエラー
のあったセクタの直後のセクタから、前記バッファのデ
ータを用いて、再書き込みを行うように、前記不揮発性
記憶手段,エラーマップ登録手段および書き込みアクセ
ス手段を制御する、ことを特徴とするものである。
According to a magnetic disk drive of the present invention, in the magnetic disk drive according to the first aspect, the sequence control means detects an uncorrectable error by the verifying means. In this case, the position and the result of the error with respect to the data on the magnetic disk are registered in the error map of the non-volatile storage means, and rewriting is performed from the sector immediately after the sector in which the error occurred using the data in the buffer. Thus, the nonvolatile memory means, the error map registration means and the write access means are controlled.

【0040】また、本願の請求項20の発明に係る磁気
ディスク装置のディスクアクセス方法は、請求項2に記
載の磁気ディスク装置のディスクアクセス方法におい
て、前記ベリファイにおいて、訂正不可能なエラーが検
出された場合、前記エラーの磁気ディスク上の位置と結
果を不揮発性記憶手段のエラーマップに登録し、その直
後からバッファのデータを用いて、前記エラーのあるセ
クタの次のセクタから再書き込みを行う、ことを特徴と
するものである。
In the disk access method for a magnetic disk drive according to the present invention, an uncorrectable error is detected in the verification. In this case, the position and the result of the error on the magnetic disk are registered in the error map of the nonvolatile storage means, and immediately after that, using the data in the buffer, rewriting is performed from the sector next to the sector having the error. It is characterized by the following.

【0041】また、本願の請求項21の発明に係る磁気
ディスク装置用制御プログラム記録媒体は、請求項3に
記載の磁気ディスク装置用制御プログラム記録媒体にお
いて、前記ベリファイにおいて、訂正不可能なエラーが
検出された場合、前記エラーの磁気ディスク上の位置と
結果を不揮発性記憶手段のエラーマップに登録し、その
直後からバッファのデータを用いて、前記エラーのある
セクタの次のセクタから再書き込みを行う、ことを特徴
とするものである。
A control program recording medium for a magnetic disk device according to the invention of claim 21 of the present application is the control program recording medium for a magnetic disk device according to claim 3, wherein an uncorrectable error is detected in the verification. If detected, the position of the error on the magnetic disk and the result are registered in the error map of the non-volatile storage means, and immediately after that, rewriting is performed from the next sector to the sector having the error using the buffer data. Perform.

【0042】本発明の請求項19、20及び21に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体は、上述のように、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスクは上位装置
から書き込みコマンドを受け、前記AVデータ等の大容
量連続データに対する書き込みアクセスが終了し、その
直後から行われる前記AVデータ等の大容量連続データ
に対するベリファイにより、訂正不可能なエラーが検出
された場合、前記訂正不可能なエラーのあるセクターの
磁気ディスク上の物理的な位置とエラーのレベルとを不
揮発性記憶手段のエラーマップに登録する。前記磁気デ
ィスク装置は、前記訂正不可能なエラーを検出した直後
のセクタから再書き込み動作に移る。この時、バッファ
は書き込むべきデータを保持しているので、前記再書き
込みは、前記バッファのデータを用いて行う。前記バッ
ファは、数トラック分のデータが入る容量を持つバッフ
ァとする。
As described above, the magnetic disk device, the disk access method thereof, and the disk access program recording medium for the magnetic disk device according to the nineteenth, twentieth and twenty-first aspects of the present invention use a magnetic disk as a recording medium. In a magnetic disk device which accesses the magnetic disk and reads / writes data of various types of information, transfer of large-capacity continuous data such as AV data requesting a certain band to / from an externally connected upper-level device. When performing the normal operation, the magnetic disk receives a write command from a host device, completes the write access to the large-capacity continuous data such as the AV data, and immediately thereafter executes the large-capacity continuous data such as the AV data. If an uncorrectable error is detected by verification of the A unrecoverable error and physical location and error level on the sector of the magnetic disk is registered in the error map of the nonvolatile memory means. The magnetic disk device shifts to a rewrite operation from the sector immediately after detecting the uncorrectable error. At this time, since the buffer holds the data to be written, the rewriting is performed using the data in the buffer. The buffer is a buffer having a capacity for storing data for several tracks.

【0043】この構成により、上位装置からの書き込み
コマンドを受け、前記磁気ディスク装置が書き込んだ範
囲のAVデータ等の大容量連続データに訂正不可能なエ
ラーがあった場合には、そのエラーは書き込みアクセス
終了後に前記AVデータ等の大容量連続データに対して
行われるベリファイにより検出されるので、前記磁気デ
ィスク上の物理的位置と、レベルとを不揮発性記憶手段
のエラーマップに登録しておけば、読み込みアクセス時
には前記不揮発性記憶手段のエラーマップを参照し、前
記訂正不可能なエラーのあるセクタはスキップし次の正
常なセクタから再書き込みを行うことで、前記AVデー
タ等の大容量連続データに対してアクセスの連続性を確
保することを可能にする。
With this configuration, if a write command is received from a host device and an uncorrectable error occurs in large-capacity continuous data such as AV data in the range written by the magnetic disk device, the error is written. Since detection is performed by verification performed on large-capacity continuous data such as the AV data after access is completed, the physical position and level on the magnetic disk can be registered in an error map of the nonvolatile storage means. At the time of read access, the sector having the uncorrectable error is skipped by referring to the error map of the non-volatile storage means, and rewriting is performed from the next normal sector, whereby the large-capacity continuous data such as the AV data is read. Continuity of access can be ensured.

【0044】また、本願の請求項22の発明に係る磁気
ディスク装置は、請求項1に記載した磁気ディスク装置
において、前記磁気ディスクと前記上位装置との間でや
りとりされるデータを一時的に記憶するバッファを備
え、前記シーケンス制御手段は、前記ベリファイ手段に
より、訂正不可能なエラーが検出された場合、前記エラ
ーの磁気ディスク上の位置と結果を前記不揮発性記憶手
段のエラーマップに登録し、再書き込み時に前記エラー
マップを参照し、前記バッファのデータを用いて前記エ
ラーのあるセクタのデータを前記磁気ディスクの置換ト
ラックに書き込み、読み込みアクセス時には、前記置換
トラックのデータを前記バッファに先読みし、前記エラ
ーのあるセクタのデータは前記バッファから直接読み出
すように、前記不揮発性記憶手段,エラーマップ登録手
段,書き込みアクセス手段,読み出しアクセス手段およ
びバッファを制御する、ことを特徴とするものである。
A magnetic disk drive according to a twenty-second aspect of the present invention is the magnetic disk drive according to the first aspect, in which data exchanged between the magnetic disk and the host device is temporarily stored. The sequence control means, when an uncorrectable error is detected by the verification means, registers the position of the error on the magnetic disk and the result in an error map of the nonvolatile storage means, Refer to the error map at the time of rewriting, write the data of the erroneous sector to the replacement track of the magnetic disk using the data of the buffer, at the time of read access, pre-read the data of the replacement track to the buffer, The non-volatile sector is read so that the data of the erroneous sector is read directly from the buffer. Sex storing means, for controlling the error map registration means, write access means reads the access unit and the buffer, it is characterized in.

【0045】また、本願の請求項23の発明に係る磁気
ディスク装置のディスクアクセス方法は、請求項2に記
載の磁気ディスク装置のディスクアクセス方法におい
て、前記ベリファイにおいて、訂正不可能なエラーが検
出された場合、前記エラーの磁気ディスク上の位置と結
果を不揮発性記憶手段のエラーマップに登録し、再書き
込み時に前記エラーマップを参照し、バッファのデータ
を用いて前記エラーのあるセクタのデータを置換トラッ
クに書き込み、読み込みアクセス時には前記置換トラッ
クのデータをバッファに先読みし、前記エラーのあるセ
クタのデータはバッファから直接読み出す、ことを特徴
とするものである。
According to a disk access method of a magnetic disk drive according to the invention of claim 23 of the present application, in the disk access method of the magnetic disk drive of claim 2, an uncorrectable error is detected in the verification. In this case, the position and the result of the error on the magnetic disk are registered in the error map of the non-volatile storage means, and the error map is referred to at the time of rewriting, and the data of the erroneous sector is replaced using the data of the buffer. At the time of writing and reading access to the track, the data of the replacement track is pre-read into the buffer, and the data of the erroneous sector is read directly from the buffer.

【0046】また、本願の請求項24の発明に係る磁気
ディスク装置用制御プログラム記録媒体は、請求項3に
記載の磁気ディスク装置用制御プログラム記録媒体にお
いて、前記ベリファイにおいて、訂正不可能なエラーが
検出された場合、前記エラー磁気ディスク上の位置と結
果を不揮発性記憶手段のエラーマップに登録し、再書き
込み時に前記エラーマップを参照し、バッファのデータ
を用いて前記エラーのあるセクターのデータを置換トラ
ックに書き込み、読み込みアクセス時には前記置換トラ
ックのデータをバッファに先読みし、前記エラーのある
セクタのデータはバッファから直接読み出す、ことを特
徴とするものである。
The control program recording medium for a magnetic disk device according to the invention of claim 24 of the present application is the control program recording medium for a magnetic disk device according to claim 3, wherein an uncorrectable error is detected in the verification. If detected, the position on the error magnetic disk and the result are registered in the error map of the non-volatile storage means, the error map is referred to at the time of rewriting, and the data of the sector having the error is read using the data of the buffer. At the time of writing and reading access to the replacement track, the data of the replacement track is pre-read into the buffer at the time of access, and the data of the sector having the error is directly read from the buffer.

【0047】本発明の請求項22、23及び24に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体は、上述のように、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスクは上位装置
から書き込みコマンドを受け、前記AVデータ等の大容
量連続データの書き込みアクセスが終了し、その直後か
ら行われる前記大容量連続データに対するベリファイに
より、訂正不可能なエラーが検出された場合、前記訂正
不可能なエラーのあるセクタの磁気ディスク上の物理的
位置とエラーのレベルとを不揮発性記憶手段のエラーマ
ップに登録する。その後、前記磁気ディスク装置は再書
き込みに移るが、再書き込みするデータはバッファに保
持されているデータを用いる。再書き込みは前記不揮発
性記憶手段のエラーマップを参照し、前記訂正不可能な
エラーのあるセクタの位置が予めわかるので、そのセク
タに再書き込みするべきデータはエラー置換トラックと
いう別のトラックに置換データとして書き込んでおく。
読み込みアクセス時には、前記置換データを前記バッフ
ァに先に読み出しておき、前記訂正不可能なエラーのあ
るセクタからはデータは読み出されず、そのデータが本
来読み出されるべきタイミングで、前記バッファから前
記置換データを直接読み出す。
As described above, the magnetic disk device, the disk access method thereof, and the disk access program recording medium for the magnetic disk device according to the present invention use a magnetic disk as a recording medium. In a magnetic disk device which accesses the magnetic disk and reads / writes data of various types of information, transfer of large-capacity continuous data such as AV data requesting a certain band to / from an externally connected upper-level device. In this case, during normal use, the magnetic disk receives a write command from a higher-level device, completes write access to large-capacity continuous data such as the AV data, and performs verification on the large-capacity continuous data immediately after that. If an uncorrectable error is detected, the error The level of the sector physical location and error on the magnetic disk registering the error map of the nonvolatile memory means. After that, the magnetic disk device starts rewriting, and the data to be rewritten uses the data held in the buffer. For rewriting, the position of the sector having the uncorrectable error can be known in advance by referring to the error map of the non-volatile storage means. Therefore, the data to be rewritten to that sector is replaced with the replacement data in another track called an error replacement track. It is written as.
At the time of read access, the replacement data is previously read into the buffer, data is not read from the sector having the uncorrectable error, and the replacement data is read from the buffer at a timing at which the data should be read. Read directly.

【0048】この構成により、上位装置からの書き込み
コマンドを受けて、磁気ディスク上に書き込んだ前記A
Vデータ等の大容量連続データに訂正不可能なエラーが
あった場合には、前記AVデータ等の大容量連続データ
に対する書き込みアクセスを終了した後、連続して行わ
れる前記AVデータ等の大容量連続データに対するベリ
ファイにより検出されるので、前記訂正不可能なエラー
のあるセクタの磁気ディスク上の物理的な位置とエラー
のレベルとを、不揮発性記憶手段のエラーマップに登録
し、その後、前記磁気ディスク装置が行う再書き込みは
前記不揮発性記憶手段のエラーマップを参照するので、
前記訂正不可能なエラーのあるセクタの位置が予めわか
るので、そのセクタに書き込むべきデータは、エラー置
換トラックに置換データとして書き込むことができる。
読み込みアクセス時には前記置換データをバッファに先
に読み出しておき、前記訂正不可能なエラーのあったセ
クタのデータは、本来そのデータが読み出されるタイミ
ングで、先読みしておいたバッファから読み出すので、
AVデータ等の大容量連続データは欠けることなく、そ
の要求する帯域、アクセスの連続性が確保される。
According to this configuration, the A command written on the magnetic disk in response to the write command
If there is an uncorrectable error in the large-capacity continuous data such as V data, the write access to the large-capacity continuous data such as the AV data is terminated, and then the large-capacity large data such as the AV data is continuously performed. Since the continuous data is detected by the verification, the physical position of the uncorrectable errored sector on the magnetic disk and the error level are registered in an error map of the non-volatile storage means. Since the rewriting performed by the disk device refers to the error map of the nonvolatile storage means,
Since the position of the sector having the uncorrectable error is known in advance, the data to be written in the sector can be written as replacement data in the error replacement track.
At the time of read access, the replacement data is read out to the buffer first, and the data of the sector having the uncorrectable error is read from the buffer that has been read ahead at the timing when the data is originally read.
The required bandwidth and continuity of access are ensured without losing large-capacity continuous data such as AV data.

【0049】また、本願の請求項25に記載の磁気ディ
スク装置は、請求項1に記載の磁気ディスク装置におい
て、前記磁気ディスクと前記上位装置との間でやりとり
されるデータを一時的に記憶するバッファを備え、前記
シーケンス制御手段は、本磁気ディスク装置の外部に接
続された上位装置との間でデータの転送を行う際に、前
記データの書き込みアクセス時にオリジナルデータとそ
のコピーデータを、前記磁気ディスク上の別のトラック
に書き込み、オリジナルデータに対するベリファイによ
り、訂正不可能なエラーが検出された場合、前記エラー
の磁気ディスク上の位置と結果を不揮発性記憶手段のエ
ラーマップに登録し、前記エラーマップを参照して前記
エラーのあるセクターのデータのコピーデータをバッフ
ァに先読みし、読み込みアクセス時には前記エラーのあ
るセクターのデータはバッファから直接読み出すよう
に、前記書き込みアクセス手段,不揮発性記憶手段,エ
ラーマップ登録手段,読み込みアクセス手段およびバッ
ファを制御する、ことを特徴とするものである。
According to a magnetic disk drive of the present invention, in the magnetic disk drive of the present invention, data exchanged between the magnetic disk and the host device is temporarily stored. A buffer, wherein the sequence control means transfers the original data and its copy data at the time of data write access when transferring data to / from a higher-level device externally connected to the magnetic disk device. When an uncorrectable error is detected by writing to another track on the disk and verifying the original data, the position and the result of the error on the magnetic disk are registered in an error map of a nonvolatile storage means, and the error is registered. With reference to the map, the copy data of the data of the erroneous sector is pre-read into the buffer and read. The write access means, the non-volatile storage means, the error map registration means, the read access means, and the buffer are controlled so that the data of the erroneous sector is read directly from the buffer at the time of write access. .

【0050】また、本願の請求項26に記載の磁気ディ
スク装置のディスクアクセス方法は、請求項2に記載の
磁気ディスク装置のディスクアクセス方法において、そ
の外部に接続された上位装置との間でデータの転送を行
う際に、前記データの書き込みアクセス時にオリジナル
データとそのコピーデータを別のトラックに書き込み、
オリジナルデータに対するベリファイにより、訂正不可
能なエラーが検出された場合、前記エラーの磁気ディス
ク上の位置と結果を不揮発性記憶手段のエラーマップに
登録し、再書き込み時に前記エラーマップを参照し、コ
ピーデータを用いて前記エラーのあるセクターのデータ
をバッファに先読みし、読み込みアクセス時には前記エ
ラーのあるセクターのデータはバッファから直接読み出
す、ことを特徴とするものである。
According to a disk access method for a magnetic disk device according to claim 26 of the present application, the disk access method for a magnetic disk device according to claim 2 allows data to be exchanged with a higher-level device connected externally. When performing the transfer, write the original data and its copy data to another track at the time of write access of the data,
If an uncorrectable error is detected by verifying the original data, the position of the error on the magnetic disk and the result are registered in an error map of a non-volatile storage unit. The data of the erroneous sector is pre-read into the buffer using data, and the data of the erroneous sector is read directly from the buffer during read access.

【0051】また、本願の請求項27に記載の磁気ディ
スク装置用制御プログラム記録媒体は、請求項3に記載
の磁気ディスク装置用制御プログラム記録媒体におい
て、その外部に接続された上位装置との間でデータの転
送を行う際に、前記データの書き込みアクセス時に、オ
リジナルデータとそのコピーデータを別のトラックに書
き込み、オリジナルデータに対するベリファイにより、
訂正不可能なエラーが検出された場合、前記エラーの磁
気ディスク上の位置と結果を不揮発性記憶手段のエラー
マップに登録し、再書込み時に前記エラーマップを参照
し、コピーデータを用いて前記エラーのあるセクターの
データをバッファに先読みし、読み込みアクセス時には
前記エラーのあるセクターのデータはバッファから直接
読み出す、ことを特徴とするものである。
The control program recording medium for a magnetic disk device according to claim 27 of the present application is the control program recording medium for magnetic disk device according to claim 3, wherein When transferring data at the time of writing access to the data, the original data and its copy data are written to another track, and the original data is verified,
When an uncorrectable error is detected, the position and the result of the error on the magnetic disk are registered in an error map of a non-volatile storage unit, and the error map is referred to when rewriting, and the error is The data of a certain sector is pre-read into a buffer, and the data of the erroneous sector is directly read from the buffer at the time of read access.

【0052】本発明の請求項25、26及び27に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用制御プログラム記録媒体は、上述の
ように、記録媒体として磁気ディスクが用いられ、その
磁気ディスクに対しアクセスして各種情報のデータを読
み書きする磁気ディスク装置において、その外部に接続
された上位装置との間で、一定帯域を要求するAVデー
タ等の大容量連続データの転送を行う場合、通常使用時
において、前記磁気ディスクは上位装置から書き込みコ
マンドを受け、前記AVデータ等の大容量連続データに
対して書き込みアクセスするとともに、そのコピーデー
タも別のトラックに書き込んでおく。前記書き込みアク
セス終了直後から行われる前記大容量連続データのオリ
ジナルデータに対するベリファイにより、訂正不可能な
エラーが検出された場合、前記訂正不可能なエラーのあ
るセクターの磁気ディスク上の物理的位置と、エラーの
レベルとを不揮発性記憶手段のエラーマップに登録す
る。前記磁気ディスクは、上位装置からの読み込みコマ
ンドを受け前記AVデータ等の大容量連続データのオリ
ジナルデータに対して読み込みアクセスを行う前に、前
記不揮発性手段のエラーマップを参照して、前記訂正不
可能なエラーのあるセクタのデータに対応する前記コピ
ーデータをバッファに先読みしておく。読み込みアクセ
ス時には前記不揮発性記憶手段のエラーマップを参照
し、前記訂正不可能なエラーのあるセクタからのデータ
の読み込みは行われず、そのデータが本来読み出される
べきタイミングで前記バッファの中の先読みしたコピー
データを直接読み出す。
As described above, the magnetic disk device, the disk access method thereof, and the control program recording medium for the magnetic disk device according to the twenty-fifth, twenty-sixth and twenty-seventh aspects of the present invention use a magnetic disk as a recording medium. In a magnetic disk device that accesses the magnetic disk and reads / writes data of various types of information, large-capacity continuous data such as AV data requesting a certain band is transferred between the magnetic disk device and an externally connected host device. In this case, during normal use, the magnetic disk receives a write command from a higher-level device, performs write access to large-capacity continuous data such as the AV data, and also writes the copy data to another track. When an uncorrectable error is detected by verifying the original data of the large-capacity continuous data performed immediately after the end of the write access, a physical position on the magnetic disk of the sector having the uncorrectable error, The error level and the error level are registered in the error map of the nonvolatile storage unit. Before the magnetic disk receives a read command from a host device and performs read access to the original data of the large-capacity continuous data such as the AV data, the magnetic disk refers to the error map of the non-volatile means and performs the correction. The copy data corresponding to the data of the sector having a possible error is pre-read in the buffer. At the time of read access, referring to the error map of the non-volatile storage means, data is not read from the sector having the uncorrectable error, and the read-ahead copy in the buffer is performed at the timing when the data should be read. Read data directly.

【0053】この構成により、上位装置からの書き込み
コマンドを受けて、磁気ディスク上に書き込んだ前記A
Vデータ等の大容量連続データのオリジナルデータに訂
正不可能なエラーがあった場合には、前記オリジナルデ
ータおよびそのコピーデータに対する書き込みアクセス
を終了した後、連続して行われる前記オリジナルデータ
に対するベリファイにより検出される。検出された前記
訂正不可能なエラーのあるセクタの磁気ディスク上の物
理的な位置と、エラーのレベルとが不揮発性記憶手段の
エラーマップに登録されるので、それを参照することで
前記訂正不可能なエラーのあるセクタのデータに対応す
る前記コピーデータをバッファに先に読み出すことがで
きる。読み込みアクセス時には前記不揮発性記憶手段の
エラーマップを参照して、前記訂正不可能エラーのある
セクタからはデータを読み込まず、そのデータが本来読
み出されるべきタイミングで前記バッファ内のデータを
読み出すので、データが欠けることなく、前記AVデー
タ等の大容量連続データの要求する帯域、アクセスの連
続性を確保することを可能とする。
According to this configuration, upon receiving the write command from the host device, the A
If there is an uncorrectable error in the original data of the large-capacity continuous data such as V data, the write access to the original data and its copy data is terminated, and then the verification is continuously performed on the original data. Is detected. The physical location of the detected uncorrectable errored sector on the magnetic disk and the error level are registered in the error map of the nonvolatile storage means. The copy data corresponding to the data of a possible erroneous sector can be read out first into a buffer. At the time of read access, referring to the error map of the non-volatile storage means, data is not read from the sector having the uncorrectable error, and the data in the buffer is read at the timing at which the data should be read. Without losing data, it is possible to secure the bandwidth required by the large-capacity continuous data such as the AV data and the continuity of access.

【0054】[0054]

【発明の実施の形態】(実施の形態1)以下に、本発明
の請求項1、2、及び3に記載された発明に対応する,
実施の形態1について、図1、図3及び図12を用いて
説明する。図1において、1は磁気ディスク装置、2は
その記録媒体としての磁気ディスク、3はHDDコント
ローラ等の磁気ディスク2の制御回路(書き込みアクセ
ス手段,読み込みアクセス手段,ベリファイ手段,エラ
ーマップ登録手段,シーケンス制御手段)、4は磁気デ
ィスク2に形成されるセクタ、5は半導体メモリ等によ
り構成された不揮発性記憶装置(不揮発性記憶手段)、
6は制御回路3に対し制御コマンドを発行する,パソコ
ン本体等の上位装置、7,8は磁気ディスク2のトラッ
ク、9は制御回路3と上位装置6との間でやりとりされ
るデータを一時記憶するバッファ、10はエラーが発生
するトラックに代わって使用するエラー置換トラック、
11はエラー置換トラック10に置き換え記録すべき置
換データ、12はオリジナルデータトラック上にあるエ
ラーセクタのデータに対応したコピーデータである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (Embodiment 1) The following corresponds to the invention described in claims 1, 2 and 3 of the present invention.
Embodiment 1 will be described with reference to FIGS. 1, 3, and 12. FIG. In FIG. 1, reference numeral 1 denotes a magnetic disk device, 2 denotes a magnetic disk as its recording medium, and 3 denotes a control circuit (a write access unit, a read access unit, a verify unit, an error map registration unit, a sequence unit) of a magnetic disk 2 such as an HDD controller. Control means), 4 is a sector formed on the magnetic disk 2, 5 is a non-volatile storage device (non-volatile storage means) composed of a semiconductor memory or the like,
Reference numeral 6 denotes a higher-level device such as a personal computer that issues a control command to the control circuit 3. Reference numerals 7 and 8 denote tracks on the magnetic disk 2. Reference numeral 9 temporarily stores data exchanged between the control circuit 3 and the higher-level device 6. Buffer 10 to be used in place of the track in which the error occurs,
Reference numeral 11 denotes replacement data to be replaced and recorded on the error replacement track 10, and reference numeral 12 denotes copy data corresponding to error sector data on the original data track.

【0055】次に、本実施の形態1による磁気ディスク
装置の動作について説明する。図1において、制御回路
3はその内部に図示しないCPUとROM(プログラム
記録媒体)とを有するものであり、ROMには本実施の
形態1による磁気ディスク装置のディスクアクセス方法
に基づく磁気ディスク装置用ディスクアクセスプログラ
ムが記録されており、CPUはこの磁気ディスク装置用
ディスクアクセスプログラムを実行することにより、本
磁気ディスク装置1は以下のような動作を行う。
Next, the operation of the magnetic disk drive according to the first embodiment will be described. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) which are not shown, and a ROM for a magnetic disk device based on the disk access method of the magnetic disk device according to the first embodiment. The disk access program is recorded, and the CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0056】即ち、上位装置6からの指示により、制御
回路3が、磁気ディスク2に対し、バッファ9に保持し
ているデータを用いて、AVデータ等の大容量連続デー
タの書き込みアクセスを行い(図12のステップS1参
照)、該書き込みアクセスが終了した直後から、制御回
路3は、書き込まれたAVデータ等の大容量連続データ
に対してベリファイを行う(ステップS2参照)。その
結果、例えばセクタ4の中に訂正不可能なエラーが検出
されたとすると(ステップS3参照)、制御回路3は、
図3に示すように、該セクタをBADSECTOR 4
Bとして(ステップS4参照)、その磁気ディスク2上
の物理的な位置とエラーのレベルを、不揮発性記憶手段
としての不揮発性記憶装置5のエラーマップに登録を行
う(ステップS5参照)。
That is, in response to an instruction from the host device 6, the control circuit 3 makes write access to large-capacity continuous data, such as AV data, to the magnetic disk 2 using the data held in the buffer 9. Immediately after the end of the write access, the control circuit 3 verifies the large-capacity continuous data such as the written AV data (see step S1 in FIG. 12). As a result, for example, if an uncorrectable error is detected in the sector 4 (see step S3), the control circuit 3
As shown in FIG. 3, the sector is designated as BADSECTOR 4
As B (see step S4), the physical position on the magnetic disk 2 and the error level are registered in an error map of the nonvolatile storage device 5 as nonvolatile storage means (see step S5).

【0057】このように、本実施の形態1による磁気デ
ィスク装置においては、書き込みアクセスを終了した直
後に、書き込んだデータに対してベリファイを行い、訂
正不可能なエラーを検出したときは、これをBADSE
CTOR 4Bとするとともに、ディスク上の位置とエ
ラーレベルをエラーマップに登録するようにしたので、
通常使用時の読み込みアクセス前に、訂正不可能エラー
の検出、およびそのエラーに対する処理を行うことがで
き、従来の磁気ディスク装置で生じる、上位装置のエラ
ー処理に伴う回転待ち時間を無くすことが可能となり、
AVデータ等の大容量連続データの要求する帯域、アク
セスの連続性を保つことができる。
As described above, in the magnetic disk device according to the first embodiment, the write data is verified immediately after the end of the write access, and when an uncorrectable error is detected, the error is detected. BADSE
CTOR 4B and the position on the disk and the error level are registered in the error map.
It is possible to detect uncorrectable errors and perform processing on those errors before read access during normal use, eliminating the rotational waiting time associated with error processing of higher-level devices that occurs with conventional magnetic disk devices. Becomes
The bandwidth required by large-capacity continuous data such as AV data and the continuity of access can be maintained.

【0058】(実施の形態2)次に、本発明の請求項
4、5及び6に記載された発明に対応する,実施の形態
2について、図1、図4及び図13を用いて説明する。
本実施の形態2における磁気ディスク装置の構成は、上
記実施の形態1における図1に示される構成と同じであ
る。次に、本実施の形態2による磁気ディスク装置の動
作について説明する。図1において、制御回路3はその
内部に図示しないCPUとROM(プログラム記録媒
体)とを有するものであり、ROMには本実施の形態2
による磁気ディスク装置のディスクアクセス方法に基づ
く磁気ディスク装置用ディスクアクセスプログラムが記
録されており、CPUはこの磁気ディスク装置用ディス
クアクセスプログラムを実行することにより、本磁気デ
ィスク装置1は以下のような動作を行う。
(Embodiment 2) Next, Embodiment 2 corresponding to the inventions described in Claims 4, 5 and 6 of the present invention will be described with reference to FIGS. 1, 4 and 13. .
The configuration of the magnetic disk drive according to the second embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. Next, the operation of the magnetic disk drive according to the second embodiment will be described. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) not shown therein, and the ROM includes a second embodiment.
A disk access program for a magnetic disk device based on a disk access method for a magnetic disk device according to the present invention is recorded. I do.

【0059】即ち、上位装置6からの指示により、制御
回路3は、磁気ディスク2に対し、バッファに保持して
いるデータを用いて、AVデータ等の大容量連続データ
の書き込みアクセスを行い(図13のステップS11参
照)、該書き込みアクセスが終了した直後に、制御回路
3は、図4に示すように、書き込まれたAVデータ等の
大容量連続データに対してベリファイを行う(ステップ
S12参照)。
In other words, in accordance with an instruction from the host device 6, the control circuit 3 performs write access to the magnetic disk 2 for large-capacity continuous data such as AV data, using the data held in the buffer. Immediately after the end of the write access, the control circuit 3 verifies the large-capacity continuous data such as the written AV data as shown in FIG. 4 (see step S12). .

【0060】このベリファイにより、例えばセクタ4に
訂正不可能なエラーばかりでなく、訂正可能なECC(E
rror Check & Correction)エラーが検出された場合も
(ステップS13参照)、制御回路3は、 該訂正不可
能なエラー、及び訂正可能なECCエラーについて、セ
クタ4の磁気ディスク2上の物理的な位置とエラーのレ
ベルを、不揮発性記憶装置5のエラーマップに登録を行
う。
By this verification, for example, not only an uncorrectable error but also a correctable ECC (E
When an error is detected (see step S13), the control circuit 3 determines the physical position of the sector 4 on the magnetic disk 2 for the uncorrectable error and the correctable ECC error. And the error level are registered in an error map of the nonvolatile storage device 5.

【0061】ここで、ECCエラーについて説明する
と、磁気ディスク2上のエラーは、ある時点では訂正可
能なECCエラーであっても、それ以後、読み込みアク
セスを繰り返すうちに、訂正不可能なエラーになる可能
性がある。
Here, the ECC error will be described. Even if an error on the magnetic disk 2 is a correctable ECC error at a certain point in time, the error becomes an uncorrectable error after repeated read access. there is a possibility.

【0062】本実施の形態2では、訂正不可能なエラー
が検出された場合は、上記実施の形態1と同様、BAD
SECTOR 4Bとするとともに(ステップS14参
照)、セクタ4の磁気ディスク2上の物理的な位置とエ
ラーのレベルを、不揮発性記憶装置5にエラーマップ登
録を行う(ステップS15参照)のに対し、上記のよう
な訂正可能なECCエラーについては、当該セクタをG
OODSECTOR4Aのままにするとともに、セクタ
4の磁気ディスク2上の物理的な位置とエラーのレベル
との、不揮発性記憶装置5上へのエラーマップ登録を行
い(ステップS16参照)、かつ、上位装置6に、この
ような訂正可能なECCエラーがあった旨を通知する
(ステップS17参照)。該上位装置6は、この通知を
受けて、そのエラーの処理をどうするかを判断し、再書
き込みの命令を、上記エラーが訂正不可能になる前に、
制御回路3に送る。制御回路3は、該命令を受け、再書
き込みを行う。
In the second embodiment, when an uncorrectable error is detected, the BAD
The SECTOR 4B is set (see step S14), and the physical position of the sector 4 on the magnetic disk 2 and the error level are registered in an error map in the nonvolatile storage device 5 (see step S15). For a correctable ECC error such as
While keeping the OODSECTOR 4A, the error map registration of the physical position of the sector 4 on the magnetic disk 2 and the error level in the non-volatile storage device 5 is performed (see step S16), and the host device 6 Is notified that there is such a correctable ECC error (see step S17). The host device 6 receives this notification, determines what to do with the error, and issues a rewrite command before the error becomes uncorrectable.
Send to control circuit 3. The control circuit 3 receives the command and performs rewriting.

【0063】このように本実施の形態2の磁気ディスク
装置においては、訂正不可能なエラーと訂正可能なEC
Cエラーとの両者について、かつ上記上位装置6に、こ
のような訂正可能なECCエラーがあった旨の通知をす
ることにより、該上位装置は、そのエラーの処理をどう
するかを判断し、再書き込みの命令を、上記エラーが訂
正不可能になる前に、制御回路3に送る。制御回路3
は、該命令を受け、再書き込みを行うようにしたので、
通常使用時の読み込みアクセス時にエラー発生が無くな
り、従来の磁気ディスク装置で生じる、上位装置のエラ
ー処理に伴う回転待ち時間を無くすことが可能となり、
AVデータ等の大容量連続データの要求する帯域、アク
セスの連続性を保つことができる。
As described above, in the magnetic disk drive of the second embodiment, the uncorrectable error and the correctable EC
By notifying both the C error and the higher-level device 6 that there is such a correctable ECC error, the higher-level device determines what to do with the error and re-executes. A write command is sent to the control circuit 3 before the error cannot be corrected. Control circuit 3
Receives the instruction and rewrites it,
No error occurs at the time of read access during normal use, and it is possible to eliminate the rotation waiting time associated with the error processing of the higher-level device, which occurs in the conventional magnetic disk device,
The bandwidth required by large-capacity continuous data such as AV data and the continuity of access can be maintained.

【0064】(実施の形態3)次に、本発明の請求項
7、8及び9に記載された発明に対応する,実施の形態
3について、図1、図5及び図14を用いて説明する。
本実施の形態3における磁気ディスク装置の構成は、上
記と同様、上記実施の形態1における図1に示される構
成と同じである。次に、本実施の形態3による磁気ディ
スク装置の動作について説明する。図1において、制御
回路3はその内部に図示しないCPUとROM(プログ
ラム記録媒体)とを有するものであり、ROMには本実
施の形態3による磁気ディスク装置のディスクアクセス
方法に基づく磁気ディスク装置用ディスクアクセスプロ
グラムが記録されており、CPUはこの磁気ディスク装
置用ディスクアクセスプログラムを実行することによ
り、本磁気ディスク装置1は以下のような動作を行う。
(Embodiment 3) Next, Embodiment 3 corresponding to the invention described in claims 7, 8 and 9 of the present invention will be described with reference to FIG. 1, FIG. 5 and FIG. .
The configuration of the magnetic disk device according to the third embodiment is the same as the configuration shown in FIG. Next, the operation of the magnetic disk drive according to the third embodiment will be described. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) which are not shown, and a ROM for a magnetic disk device based on the disk access method of the magnetic disk device according to the third embodiment. The disk access program is recorded, and the CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0065】即ち、本実施の形態3においては、磁気デ
ィスク2にAVデータ等の大容量連続データの書き込み
アクセスを終了した後(図14のステップS21参
照)、上位装置6は、制御回路3が書き込まれたAVデ
ータ等の大容量連続データに対するベリファイを行う前
に、図5に示すように、ECCエラーのレベルを、制御
回路3に設定し(ステップS22参照)、制御回路3
は、書き込まれたデータに対してベリファイを行い(ス
テップS23参照)、セクタ4にECCエラーが検出さ
れた時(ステップS24参照)、そのエラーのレベルを
判断し、自分自身に設定されたレベルに到達しているな
らば(ステップS25参照)、セクタ4の磁気ディスク
2上の物理的位置と、エラーのレベルを、不揮発性記憶
手段としての不揮発性記憶装置5にエラーマップ登録を
行う(ステップS26参照)。その後、制御回路3はエ
ラーマップを参照し、エラーのあるセクタ4のデータに
対しては、自動的に再書き込み等の処理を行う。
That is, in the third embodiment, after the write access of large-capacity continuous data such as AV data to the magnetic disk 2 is completed (see step S21 in FIG. 14), the host device 6 Before verifying the large-capacity continuous data such as the written AV data, the level of the ECC error is set in the control circuit 3 (see step S22) as shown in FIG.
Performs verification on the written data (see step S23), and when an ECC error is detected in sector 4 (see step S24), determines the level of the error and returns to the level set for itself. If it has reached (see step S25), the physical position of the sector 4 on the magnetic disk 2 and the error level are registered in an error map in the nonvolatile storage device 5 as nonvolatile storage means (step S26). reference). Thereafter, the control circuit 3 refers to the error map and automatically performs processing such as rewriting on the data of the sector 4 having an error.

【0066】このように本実施の形態3の磁気ディスク
装置では、磁気ディスク2に対しAVデータ等の大容量
連続データの書き込みアクセスを終了した後、該書き込
まれたAVデータ等の大容量連続データに対するベリフ
ァイを行う前に、ECCエラーのレベルを設定した場
合、セクタ4にECCエラーが検出された時、そのエラ
ーレベルが設定されたエラーレベルに到達していれば、
セクタ4の磁気ディスク2上の物理的な位置と、エラー
のレベルとの、不揮発性記憶装置5上へのエラーマップ
登録を行い、自動的に上記セクタ4に再書き込みを行う
ようにしたので、通常使用時の読み込みアクセス時にエ
ラー発生が無くなり、従来の磁気ディスク装置で生じ
る、上位装置のエラー処理に伴う回転待ち時間を無くす
ことが可能となり、AVデータ等の大容量連続データの
要求する帯域、アクセスの連続性を保つことができる。
As described above, in the magnetic disk device according to the third embodiment, after the write access of large-capacity continuous data such as AV data to the magnetic disk 2 is completed, the large-capacity continuous data such as the written AV data is terminated. If the ECC error level is set before verifying the data, if an ECC error is detected in sector 4 and the error level has reached the set error level,
An error map of the physical position of the sector 4 on the magnetic disk 2 and the error level is registered in the non-volatile storage device 5, and the sector 4 is automatically rewritten. Error occurrence during read access during normal use is eliminated, and rotation waiting time associated with error processing of a higher-level device, which occurs in a conventional magnetic disk drive, can be eliminated, and the bandwidth required for large-capacity continuous data such as AV data, Access continuity can be maintained.

【0067】(実施の形態4)次に、本発明の請求項1
0、11、及び12に記載された発明に対応する,実施
の形態4について、図1、図6及び図15を用いて説明
する。本実施の形態4における磁気ディスク装置の構成
は、上記実施の形態1における図1に示される構成と同
じである。次に、本実施の形態4による磁気ディスク装
置の動作について説明する。図1において、制御回路3
はその内部に図示しないCPUとROM(プログラム記
録媒体)とを有するものであり、ROMには本実施の形
態4による磁気ディスク装置のディスクアクセス方法に
基づく磁気ディスク装置用ディスクアクセスプログラム
が記録されており、CPUはこの磁気ディスク装置用デ
ィスクアクセスプログラムを実行することにより、本磁
気ディスク装置1は以下のような動作を行う。
(Embodiment 4) Next, claim 1 of the present invention will be described.
Embodiment 4 corresponding to the inventions described in 0, 11, and 12 will be described with reference to FIGS. 1, 6, and 15. FIG. The configuration of the magnetic disk device in the fourth embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. Next, the operation of the magnetic disk drive according to the fourth embodiment will be described. In FIG. 1, the control circuit 3
Has a not-shown CPU and a ROM (program recording medium) therein, and the ROM stores a disk access program for the magnetic disk device based on the disk access method of the magnetic disk device according to the fourth embodiment. The CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0068】本実施の形態4による磁気ディスク装置1
において、制御回路3は、図6に示すように、磁気ディ
スク2上のある1つのトラック7に対してAVデータ等
の大容量連続データの書き込みアクセスを行い(図15
のステップS31参照)に、該書き込みアクセスが終了
したときは、制御回路3は、その直後から連続して、同
一トラック7の大容量連続データに対して、ベリファイ
を行う(ステップS32参照)。次の書き込みアクセス
がトラック8であるときは、トラック8に対して書き込
みが終了したとき、これに連続して、そのトラック8に
対して大容量連続データのベリファイを行う。つまり、
制御回路3は、1トラック単位で、ベリファイを行うよ
うにする。そして、この場合のSEEK時間、即ち磁気
ヘッドの移動に要する時間は、トラック7からトラック
8までのSEEK時間だけとなり、最小となるものであ
る。同様にして、書き込みアクセスするトラック数がい
くらであっても、最も効率の良いベリファイを行うこと
ができるものである。
A magnetic disk drive 1 according to the fourth embodiment
In FIG. 15, the control circuit 3 performs write access of large-capacity continuous data such as AV data to a certain track 7 on the magnetic disk 2 as shown in FIG.
In step S31), when the write access is completed, the control circuit 3 performs verification on the large-capacity continuous data of the same track 7 continuously immediately after that (see step S32). When the next write access is to the track 8, when the writing to the track 8 is completed, the verification of the large-capacity continuous data is performed on the track 8 continuously. That is,
The control circuit 3 performs verification on a track-by-track basis. In this case, the SEEK time, that is, the time required for moving the magnetic head, is only the SEEK time from track 7 to track 8 and is the minimum. Similarly, no matter how many tracks are accessed for writing, the most efficient verification can be performed.

【0069】このように本実施の形態4の磁気ディスク
装置では、磁気ディスク2上のある1つのトラック7に
対して大容量連続データの書き込みアクセスを行い、こ
れが終了したとき、その直後から連続して、同一トラッ
ク7の大容量連続データに対してベリファイを行い、次
の書き込みアクセスがトラック8のときは、トラック8
に対して書き込みが終了したとき、これに連続して、該
トラック8に対して大容量連続データのベリファイを行
うというように、1トラック単位でベリファイを行うよ
うにしたので、そのSEEK時間、即ち目的とするトラ
ックにヘッドが移動するに要する時間dは、トラック7
からトラック8までのSEEK時間だけというように最
小となり、書き込みアクセスするトラック数がいくらで
あっても、最も効率の良いベリファイを行うことができ
るものとなる。なお、本実施の形態4において、ベリフ
ァイの後に行う不揮発性記憶装置への登録等の処理は、
実施の形態1ないし3のいずれの処理を行ってもよい。
As described above, in the magnetic disk drive of the fourth embodiment, the write access of the large-capacity continuous data is performed to one track 7 on the magnetic disk 2 and when this is completed, the continuous access is performed immediately after that. Then, verification is performed on the large-capacity continuous data in the same track 7, and when the next write access is track 8,
When the write operation is completed on the track 8, the verify operation is performed on a track-by-track basis such that the track 8 is continuously verified on the large-capacity continuous data. The time d required for the head to move to the target track is track 7
Thus, the verification can be performed with the highest efficiency regardless of the number of tracks to be accessed for writing. In the fourth embodiment, processes such as registration in the nonvolatile memory device performed after the verification are as follows.
Any of the processes of Embodiments 1 to 3 may be performed.

【0070】(実施の形態5)次に、本発明の請求項1
3、14、及び15に記載された発明に対応する,実施
の形態5について、図1、図7及び図16を用いて説明
する。本実施の形態5における磁気ディスク装置の構成
は、上記実施の形態1における図1に示される構成と同
じである。次に、本実施の形態5による磁気ディスク装
置の動作について説明する。図1において、制御回路3
はその内部に図示しないCPUとROM(プログラム記
録媒体)とを有するものであり、ROMには本実施の形
態5による磁気ディスク装置のディスクアクセス方法に
基づく磁気ディスク装置用ディスクアクセスプログラム
が記録されており、CPUはこの磁気ディスク装置用デ
ィスクアクセスプログラムを実行することにより、本磁
気ディスク装置1は以下のような動作を行う。
(Embodiment 5) Next, claim 1 of the present invention will be described.
A fifth embodiment corresponding to the inventions described in 3, 14, and 15 will be described with reference to FIGS. 1, 7, and 16. FIG. The configuration of the magnetic disk device according to the fifth embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. Next, the operation of the magnetic disk drive according to the fifth embodiment will be described. In FIG. 1, the control circuit 3
Has a not-shown CPU and a ROM (program recording medium) therein. The ROM stores a disk access program for a magnetic disk device based on the disk access method of the magnetic disk device according to the fifth embodiment. The CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0071】本実施の形態5の磁気ディスク装置1にお
いては、磁気ディスク2上に書き込まれたAVデータ等
の大容量連続データに対して行うベリファイを、上位装
置とのやり取り無しに、制御回路3が自動的に行う。
In the magnetic disk drive 1 according to the fifth embodiment, the control circuit 3 performs a verify operation on large-capacity continuous data such as AV data written on the magnetic disk 2 without exchanging with a higher-level device. Do it automatically.

【0072】まず、磁気ディスク装置1は、図7に示す
ように、上位装置6から書き込みコマンドを受け(図1
6のステップS41参照)、データの書き込みアクセス
を行う(ステップS42参照)。そして、次の上位装置
6からの書き込みコマンドまでの間に、制御回路3は、
書き込まれたデータに対して自動的にベリファイを行う
(ステップS43参照)。
First, as shown in FIG. 7, the magnetic disk device 1 receives a write command from the host device 6 (FIG. 1).
No. 6, step S41), and data write access is performed (see step S42). Then, before the write command from the next higher-level device 6, the control circuit 3
Verify is automatically performed on the written data (see step S43).

【0073】次の書き込みコマンドを受け、書き込みア
クセスを行い、さらに次の書き込みコマンドが来るまで
の間に、制御回路3は書き込まれたデータに対して自動
的にベリファイを行う。
Upon receiving the next write command, write access is performed, and until the next write command comes, the control circuit 3 automatically verifies the written data.

【0074】このように本実施の形態5の磁気ディスク
装置では、磁気ディスク2上に書き込まれたAVデータ
等の大容量連続データに対して行うベリファイを、上位
装置とのやり取り無しに、制御回路3が自動的に行うの
で、上位装置から発行される書き込みコマンドと、書き
込みコマンドとの間の時間を、有効利用しながら、AV
データ等の大容量連続データに対するベリファイを行う
ことができる。なお、本実施の形態5において、ベリフ
ァイの後に行う不揮発性記憶装置への登録等の処理は、
実施の形態1ないし3のいずれの処理を行ってもよい。
As described above, in the magnetic disk drive of the fifth embodiment, the verification performed on large-capacity continuous data such as AV data written on the magnetic disk 2 can be performed without any exchange with the host device. 3 automatically performs the AV command while effectively utilizing the time between the write command issued from the host device and the write command.
Verification can be performed on large-capacity continuous data such as data. In the fifth embodiment, processes such as registration in the nonvolatile memory device performed after the verification are performed as follows.
Any of the processes of Embodiments 1 to 3 may be performed.

【0075】(実施の形態6)次に、本発明の請求項1
6、17及び18に記載された発明に対応する,実施の
形態6について、図1、図8および図17を用いて説明
する。本実施の形態6における磁気ディスク装置の構成
は、上記実施の形態1における図1に示される構成と同
じである。図1において、制御回路3はその内部に図示
しないCPUとROM(プログラム記録媒体)とを有す
るものであり、ROMには本実施の形態6による磁気デ
ィスク装置のディスクアクセス方法に基づく磁気ディス
ク装置用ディスクアクセスプログラムが記録されてお
り、CPUはこの磁気ディスク装置用ディスクアクセス
プログラムを実行することにより、本磁気ディスク装置
1は以下のような動作を行う。
(Embodiment 6) Next, claim 1 of the present invention will be described.
A sixth embodiment corresponding to the inventions described in 6, 17, and 18 will be described with reference to FIGS. 1, 8, and 17. FIG. The configuration of the magnetic disk drive in the sixth embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) which are not shown. The disk access program is recorded, and the CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0076】本実施の形態6の磁気ディスク装置1にお
いては、磁気ディスク2上に書き込まれたAVデータ等
の大容量連続データに対して(図17のステップS51
参照)、制御回路3はベリファイを行い(ステップS5
2参照)、例えばセクタ4に訂正不可能なエラーが検出
された場合(ステップS53参照)、セクタ4をBAD
SECTOR 4Bとして(ステップS54参照)、そ
の磁気ディスク2上の物理的な位置とエラーのレベル
を、不揮発性記憶手段としての不揮発性記憶装置5のエ
ラーマップに登録する(ステップS55参照)。
In the magnetic disk device 1 of the sixth embodiment, large-capacity continuous data such as AV data written on the magnetic disk 2 is read (step S51 in FIG. 17).
Control circuit 3 performs verification (step S5).
2), for example, if an uncorrectable error is detected in sector 4 (see step S53), sector 4 is BAD
As SECTOR 4B (see step S54), the physical position on the magnetic disk 2 and the error level are registered in the error map of the nonvolatile storage device 5 as nonvolatile storage means (see step S55).

【0077】そして、上位装置6から読み込みコマンド
を受けると(ステップS56参照)、図8に示すよう
に、制御回路3は不揮発性記憶装置5のエラーマップを
参照して読み込むべきデータの範囲にエラーのあるセク
タ4があるかどうかを判断し(ステップS57参照)、
エラーのあるセクタ4に読み込みアクセスをしなければ
ならない時は(ステップS58参照)、セクタ4からは
データを読み込まずに、これを通り過ぎるスキップ動作
を行うように制御する。そして、次のセクタのデータか
ら、再び読み込みを始め(ステップS59参照)、これ
を読み込むべきデータが終わるまで継続する(ステップ
S60参照)。
When a read command is received from the upper level device 6 (see step S56), the control circuit 3 refers to the error map of the nonvolatile memory device 5 and places an error in the range of data to be read, as shown in FIG. It is determined whether or not there is a sector 4 having a pattern (see step S57).
When it is necessary to perform read access to the sector 4 having an error (see step S58), control is performed so that skip operation is performed without passing data from the sector 4 without reading data. Then, reading is started again from the data of the next sector (see step S59), and is continued until the data to be read ends (see step S60).

【0078】このように本実施の形態6の磁気ディスク
装置では、磁気ディスク上に書き込まれたAVデータ等
の大容量連続データに対して、ベリファイを行い、訂正
不可能なエラーを検出した場合、該セクタ4をBADS
ECTOR 4Bとするとともに、エラーマップ登録
し、上位装置6からの読み込みコマンドを受けたとき、
エラーマップを参照して読み込むべきデータの範囲にエ
ラーセクタがあるか否かを判断し、エラーセクタに読み
込みアクセスをすべきときにも、セクタ4からはデータ
を読み込まずに、通り過ぎるスキップ動作を行うように
し、次のセクタデータから再び読み込みを始めるように
したので、読み込みアクセスを行う範囲のデータに訂正
不可能なエラーのあるセクタがあっても、エラーは発生
せず、読み込みアクセスの動作のアクセスの連続性を確
保することができる。なお、本実施の形態6において、
ベリファイの後に行う不揮発性記憶装置への登録等の処
理は、実施の形態1または2のいずれの処理を行っても
よい。
As described above, in the magnetic disk drive of the sixth embodiment, when a large capacity continuous data such as AV data written on the magnetic disk is verified and an uncorrectable error is detected, BADS for sector 4
When ECTOR 4B is set, an error map is registered, and when a read command is received from the host device 6,
By referring to the error map, it is determined whether or not there is an error sector in the range of data to be read. When reading access to the error sector is to be performed, skipping operation is performed without reading data from sector 4 and passing. In this case, reading is started again from the next sector data, so even if there is a sector with an uncorrectable error in the data to be read, there is no error Continuity can be ensured. In the sixth embodiment,
The processing such as registration in the non-volatile storage device performed after the verification may be the processing of any of the first and second embodiments.

【0079】(実施の形態7)次に、本発明の請求項1
9、20及び21に記載された発明に対応する,実施の
形態7について、図1、図9および図18を用いて説明
する。本実施の形態7における磁気ディスク装置の構成
は、上記実施の形態1における図1に示される構成と同
じである。図1において、制御回路3はその内部に図示
しないCPUとROM(プログラム記録媒体)とを有す
るものであり、ROMには本実施の形態7による磁気デ
ィスク装置のディスクアクセス方法に基づく磁気ディス
ク装置用ディスクアクセスプログラムが記録されてお
り、CPUはこの磁気ディスク装置用ディスクアクセス
プログラムを実行することにより、本磁気ディスク装置
1は以下のような動作を行う。
(Embodiment 7) Next, claim 1 of the present invention will be described.
A seventh embodiment corresponding to the inventions described in 9, 20, and 21 will be described with reference to FIG. 1, FIG. 9 and FIG. The configuration of the magnetic disk drive according to the seventh embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) which are not shown, and a ROM for a magnetic disk device based on the disk access method of the magnetic disk device according to the seventh embodiment. The disk access program is recorded, and the CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0080】本実施の形態7の磁気ディスク装置1にお
いては、磁気ディスク2上に書き込まれたAVデータ等
の大容量連続データに対して(図18のステップS61
参照)、制御回路3はベリファイを行い(ステップS6
2参照)、例えばセクタ4に訂正不可能なエラーが検出
された場合(ステップS63参照)、セクタ4をBAD
SECTOR 4Bとして(ステップS64参照)、そ
の磁気ディスク2上の物理的な位置とエラーのレベル
を、不揮発性記憶手段としての不揮発性記憶装置5にエ
ラーマップ登録する(ステップS65参照)。
In the magnetic disk drive 1 according to the seventh embodiment, large-capacity continuous data such as AV data written on the magnetic disk 2 is read (step S61 in FIG. 18).
The control circuit 3 performs verification (step S6).
2), for example, if an uncorrectable error is detected in the sector 4 (see step S63), the sector 4 is BAD
As SECTOR 4B (see step S64), the physical position on the magnetic disk 2 and the error level are registered in an error map in the nonvolatile storage device 5 as nonvolatile storage means (see step S65).

【0081】制御回路3は、図9に示すように、その直
後からセクタ4をスキップするよう制御し(ステップS
66参照)、バッファ9に再書き込みするためのデータ
を送ってもらうことを要求した後(ステップS67参
照)、バッファ9から送られてきたデータを用いて、ス
キップした次のセクタから、エラーマップを参照してセ
クタ4には書き込まないよう制御しながら、再書き込み
を行う(ステップS68参照)。
The control circuit 3 controls to skip the sector 4 immediately after that, as shown in FIG.
66), after requesting the buffer 9 to send data for rewriting (see step S67), using the data sent from the buffer 9 to create an error map from the next skipped sector. Rewriting is performed while controlling not to write to sector 4 by referring to the data (see step S68).

【0082】このように本実施の形態7の磁気ディスク
装置では、訂正不可能なエラーを検出した場合、該セク
タ4をBADSECTOR 4Bとするとともに、エラ
ーマップ登録し、その直後からセクタ4をスキップする
よう制御するとともに、バッファ9に再書き込みのため
のデータの転送を要求し、該バッファ9から送られてき
たデータを用いて、スキップした次のセクタから、該セ
クタ4には書き込まないよう制御しながら、再書き込み
を行うようにしたので、通常使用時に、訂正不可能なエ
ラーがあっても、AVデータ等の大容量連続データは欠
けることなく、そのアクセスの連続性を保つことができ
る。なお、本実施の形態7において、ベリファイの後に
行う不揮発性記憶装置への登録等の処理は、実施の形態
1または2のいずれの処理を行ってもよい。
As described above, in the magnetic disk drive of the seventh embodiment, when an uncorrectable error is detected, the sector 4 is set to BADSECTOR 4B, an error map is registered, and the sector 4 is skipped immediately after that. And a request to transfer data for rewriting to the buffer 9, and by using the data sent from the buffer 9, control is performed so as not to write to the sector 4 from the next sector skipped. However, since rewriting is performed, even if there is an uncorrectable error during normal use, large-capacity continuous data such as AV data can be maintained without loss and continuous access can be maintained. In the seventh embodiment, the processing such as registration in the non-volatile storage device performed after the verification may be the processing of any of the first and second embodiments.

【0083】(実施の形態8)次に、本発明の請求項2
2、23、及び24に記載された発明に対応する,実施
の形態8について、図1、図10及び図19を用いて説
明する。本実施の形態8における磁気ディスク装置の構
成は、上記実施の形態1における図1に示される構成と
同じである。図1において、制御回路3はその内部に図
示しないCPUとROM(プログラム記録媒体)とを有
するものであり、ROMには本実施の形態8による磁気
ディスク装置のディスクアクセス方法に基づく磁気ディ
スク装置用ディスクアクセスプログラムが記録されてお
り、CPUはこの磁気ディスク装置用ディスクアクセス
プログラムを実行することにより、本磁気ディスク装置
1は以下のような動作を行う。
(Embodiment 8) Next, claim 2 of the present invention will be described.
An eighth embodiment corresponding to the inventions described in 2, 23, and 24 will be described with reference to FIGS. 1, 10, and 19. FIG. The configuration of the magnetic disk drive according to the eighth embodiment is the same as the configuration shown in FIG. 1 in the first embodiment. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM (program recording medium) which are not shown, and a ROM for a magnetic disk drive based on the disk access method of the magnetic disk drive according to the eighth embodiment. The disk access program is recorded, and the CPU executes the disk access program for the magnetic disk device, whereby the magnetic disk device 1 performs the following operation.

【0084】本実施の形態8の磁気ディスク装置1にお
いては、磁気ディスク2上に書き込まれたAVデータ等
の大容量連続データに対して(図19のステップS71
参照)、図10に示すように、制御回路3は、ベリファ
イを行い(ステップS72参照)、例えばセクタ4に訂
正不可能なエラーが検出された場合(ステップS73参
照)、セクタ4をBADSECTOR 4Bとして(ス
テップS74参照)、その磁気ディスク上2の物理的な
位置とエラーのレベルを不揮発性記憶手段としての不揮
発性記憶装置5のエラーマップに登録する(ステップS
75参照)。その後、制御回路3は、エラーマップを参
照しながら(ステップS76参照)再書き込みに移り、
セクタ4に書き込むべきデータはエラー置換トラック1
0に置換データ11として書き込む(ステップS77参
照)。
In the magnetic disk drive 1 of the eighth embodiment, large-capacity continuous data such as AV data written on the magnetic disk 2 is read (step S71 in FIG. 19).
10), as shown in FIG. 10, the control circuit 3 performs verification (see step S72). For example, when an uncorrectable error is detected in the sector 4 (see step S73), the sector 4 is set as BADSECTOR 4B. (See step S74), the physical position on the magnetic disk 2 and the error level are registered in the error map of the nonvolatile storage device 5 as nonvolatile storage means (step S74).
75). Thereafter, the control circuit 3 proceeds to rewriting while referring to the error map (see step S76).
Data to be written to sector 4 is error replacement track 1
0 is written as replacement data 11 (see step S77).

【0085】次に、上位装置6から読み込みコマンドを
受けると(ステップS78参照)、制御回路3は、ま
ず、エラーマップを参照して、読み込むべきデータの範
囲内にBADSECTOR 4Bであるセクタがあるか
どうかを判断し(ステップS79参照)、もしそのよう
なセクタ4があるのであれば(ステップS80参照)、
制御回路3は、置換データ11をバッファ9に先読みす
るよう指示を出す(ステップS81参照)。この先読み
の指示により、先読みされたデータは、バッファ9内
で、他の正常なセクタからのデータと共に、正常な順序
に並べられる(ステップS82参照)。そして、上位装
置6は、通常通り、バッファ9内のデータをその終わり
まで読み出す(ステップS83,S84参照)。これに
より、AVデータ等の連続データに対する読み込みアク
セス時のエラー発生がなくなり、このため、上位装置の
エラーに対する処理に伴う回転待ち時間がなくなり、A
Vデータ等の大容量連続データの要求する帯域、アクセ
スの連続性を確保することができることとなる。
Next, upon receiving a read command from the host device 6 (see step S78), the control circuit 3 first refers to the error map to determine whether there is a sector of BADSECTOR 4B within the range of data to be read. It is determined whether or not such a sector 4 exists (see step S80).
The control circuit 3 issues an instruction to pre-read the replacement data 11 into the buffer 9 (see step S81). In accordance with the prefetch instruction, the prefetched data is arranged in the buffer 9 in a normal order together with data from other normal sectors (see step S82). Then, the host device 6 reads the data in the buffer 9 until the end as usual (see steps S83 and S84). As a result, the occurrence of an error at the time of reading access to continuous data such as AV data is eliminated.
The bandwidth required by large-capacity continuous data such as V data and the continuity of access can be ensured.

【0086】このように本実施の形態8の磁気ディスク
装置では、上記のように、磁気ディスク2上に書き込ま
れた大容量連続データに対してベリファイを行い、訂正
不可能なエラーが検出された場合、該セクタ4をBAD
SECTOR 4Bとして、その物理的な位置とエラー
のレベルをエラーマップ登録し、その後、エラーマップ
を参照しながら再書き込みに移り、エラーセクタ4に書
き込むべきデータはエラー置換トラック10に置換デー
タ11として書き込み、上位装置6から読み込みコマン
ドを受けると、エラーマップを参照して読み込むべきデ
ータの範囲にBADSECTOR 4Bであるセクタが
あるか否かを判断し、そのようなセクタ4があるなら、
置換データ11をバッファ9に先読みするよう指示を出
し、この先読みされたデータは、バッファ9内で他の正
常なセクタからのデータと共に、正常な順序に並べられ
るようにし、上位装置6は、通常通りバッファ9内のデ
ータを読み出すようにしたので、AVデータ等の連続デ
ータに対する読み込みアクセス時のエラー発生がなくな
り、上位装置のエラーに対する処理に伴う回転待ち時間
がなくなり、AVデータ等の大容量連続データの要求す
る帯域、アクセスの連続性を確保できる効果が得られ
る。なお、本実施の形態8において、ベリファイの後に
行う不揮発性記憶装置への登録等の処理は、実施の形態
1または2のいずれの処理を行ってもよい。
As described above, in the magnetic disk device of the eighth embodiment, as described above, the verification is performed on the large-capacity continuous data written on the magnetic disk 2, and an uncorrectable error is detected. In this case, the sector 4 is BAD
As SECTOR 4B, its physical position and error level are registered in an error map, and then rewriting is performed with reference to the error map. Data to be written in the error sector 4 is written as replacement data 11 in the error replacement track 10. When a read command is received from the upper level device 6, it is determined whether or not there is a sector of BADSECTOR 4B in the range of data to be read by referring to the error map.
The replacement data 11 is instructed to be prefetched into the buffer 9, and the prefetched data is arranged in a normal order together with data from other normal sectors in the buffer 9. Since the data in the buffer 9 is read as described above, the occurrence of an error at the time of reading access to continuous data such as AV data is eliminated, the rotation waiting time accompanying the processing for the error of the higher-level device is eliminated, and the large-capacity continuous The effect that the band requested by the data and the continuity of the access can be secured is obtained. Note that, in the eighth embodiment, the processing such as registration in the non-volatile storage device performed after the verification may be the processing of any of the first and second embodiments.

【0087】(実施の形態9)次に、本発明の請求項2
5、26、及び27に記載された発明に対応する,実施
の形態9について、図1、図11を用いて説明する。本
実施の形態9における装置の構成は、上記実施の形態1
における図1に示される構成と同じである。図1におい
て、制御回路3はその内部に図示しないCPUとROM
(プログラム記録媒体)とを有するものであり、ROM
には本実施の形態9による磁気ディスク装置のディスク
アクセス方法に基づく磁気ディスク装置用ディスクアク
セスプログラムが記録されており、CPUはこの磁気デ
ィスク装置用ディスクアクセスプログラムを実行するこ
とにより、本磁気ディスク装置1は以下のような動作を
行う。
(Embodiment 9) Next, Embodiment 2 of the present invention will be described.
A ninth embodiment corresponding to the inventions described in 5, 26, and 27 will be described with reference to FIGS. The configuration of the device according to the ninth embodiment is the same as that of the first embodiment.
Is the same as that shown in FIG. In FIG. 1, a control circuit 3 includes a CPU (not shown) and a ROM
(Program recording medium).
In this embodiment, a disk access program for a magnetic disk device based on the disk access method for a magnetic disk device according to the ninth embodiment is recorded, and the CPU executes the disk access program for a magnetic disk device to 1 performs the following operation.

【0088】本実施の形態9の磁気ディスク装置1にお
いては、磁気ディスク2上に書き込むべきAVデータ等
の大容量連続データのオリジナルデータが書き込まれた
後(図20のステップS91参照)、図11に示すよう
に、制御回路3は、そのコピーデータを別のトラックに
書き込む指示を出す(ステップS92参照)。図11に
おいて、トラック7をオリジナルデータ、トラック8を
コピーデータとする。両データの書き込み終了後、トラ
ック7に対して制御回路3はベリファイを行い(ステッ
プS93参照)、訂正不可能なエラーがセクタ4にあっ
た場合(ステップS94参照)、セクタ4をBADSE
CTOR 4Bとして(ステップS95参照)、その磁
気ディスク2上の物理的な位置とエラーのレベルを不揮
発性記憶手段としての不揮発性記憶装置5のエラーマッ
プに登録する(ステップS96参照)。
In the magnetic disk device 1 according to the ninth embodiment, after the original data of large-capacity continuous data such as AV data to be written on the magnetic disk 2 is written (see step S91 in FIG. 20), FIG. As shown in (1), the control circuit 3 issues an instruction to write the copy data to another track (see step S92). In FIG. 11, track 7 is original data and track 8 is copy data. After the writing of both data is completed, the control circuit 3 verifies the track 7 (see step S93). If an uncorrectable error is found in the sector 4 (see step S94), the sector 4 is set to BADSE.
As the CTOR 4B (see step S95), the physical position on the magnetic disk 2 and the error level are registered in the error map of the nonvolatile storage device 5 as nonvolatile storage means (see step S96).

【0089】次に、上位装置6から読み込みコマンドを
受けると(ステップS97参照)、制御回路3は、エラ
ーマップを参照して読み込むべきデータの範囲にエラー
のあるセクタ4が含まれているかどうかを判断し(ステ
ップS98参照)、もし含まれているなら(ステップS
99参照)、読み込みアクセス前に、トラック7上にあ
るセクタ4のデータに対応したコピーデータ12を、バ
ッファ9に先読みする指示を出す(ステップS100参
照)。該トラック8上にあるセクタ4のデータに対応し
たコピーデータ12は、先読み中に本来の順序に並べら
れる(ステップS101参照)。そして、上位装置6
は、通常通り、バッファ9内のデータをその終わりまで
読み出す(ステップS102,S103参照)。
Next, upon receiving a read command from the host device 6 (see step S97), the control circuit 3 refers to the error map and determines whether or not the range of data to be read includes an erroneous sector 4. Judgment (see step S98), and if included (step S98)
Before the read access, an instruction to pre-read the copy data 12 corresponding to the data of the sector 4 on the track 7 into the buffer 9 is issued (see step S100). The copy data 12 corresponding to the data of the sector 4 on the track 8 is arranged in the original order during the pre-reading (see step S101). And the host device 6
Reads the data in the buffer 9 until the end as usual (see steps S102 and S103).

【0090】このように本実施の形態9の磁気ディスク
装置では、磁気ディスク2上に書き込むべきAVデータ
等の大容量連続データのオリジナルデータが書き込まれ
た後、制御回路3は、そのコピーデータを別のトラック
に書き込む指示を出し、両データの書き込み終了後、オ
リジナルデータのトラック7に対して制御回路3はベリ
ファイを行い、訂正不可能なエラーがセクタ4にあった
場合、セクタ4をBADSECTOR 4Bとして、そ
の物理的な位置とエラーレベルのエラーマップ登録を行
い、上位装置6から読み込みコマンドを受けると、制御
回路3は、エラーマップを参照して読み込むべきデータ
の範囲内ににエラーのあるセクタ4が含まれているかを
判断し、含まれているなら、読み込みアクセス前に、ト
ラック8上にあるセクタ4のデータに対応したコピーデ
ータ12を、バッファ9に先読みする指示を出し、該ト
ラック8上にあるセクタ4のデータに対応したコピーデ
ータ12を、バッファ9に先読みする指示を出し、該ト
ラック8上にあるセクタ4のデータに対応したコピーデ
ータ12は、先読み中に本来の順序に並べられるように
し、上位装置6は、バッファ9から通常どおりにデータ
を読み出すようにしたので、AVデータ等の大容量連続
データに対する読み込みアクセス時には、エラーが発生
しなくなり、その要求する帯域、アクセスの連続性を確
保できることとなる。
As described above, in the magnetic disk device of the ninth embodiment, after the original data of large-capacity continuous data such as AV data to be written on the magnetic disk 2 is written, the control circuit 3 copies the copy data. An instruction to write to another track is issued, and after the writing of both data is completed, the control circuit 3 verifies the track 7 of the original data, and if there is an uncorrectable error in the sector 4, the sector 4 is replaced with the BADSECTOR 4B. When the error map of the physical position and the error level is registered, and a read command is received from the higher-level device 6, the control circuit 3 refers to the error map and finds a sector having an error within the range of data to be read. 4 is included, and if so, the cell on track 8 is read before read access. An instruction to pre-read the copy data 12 corresponding to the data of the sector 4 into the buffer 9 is issued, and an instruction to pre-read the copy data 12 corresponding to the data of the sector 4 on the track 8 to the buffer 9 is issued. Since the copy data 12 corresponding to the data of the sector 4 on the top 8 is arranged in the original order during the pre-reading, and the host device 6 reads the data from the buffer 9 as usual, the AV data etc. In the read access to the large-capacity continuous data, no error occurs, and the required bandwidth and continuity of access can be secured.

【0091】なお、本実施の形態9において、ベリファ
イの後に行う不揮発性記憶装置への登録等の処理は、実
施の形態1または2のいずれの処理を行ってもよい。
In the ninth embodiment, the processing such as registration in the nonvolatile memory device performed after the verification may be the same as the processing in the first or second embodiment.

【0092】[0092]

【発明の効果】以上のように、本発明の請求項1、2及
び3に記載の磁気ディスク装置、そのディスクアクセス
方法、及び磁気ディスク装置用ディスクアクセスプログ
ラム記録媒体によれば、磁気ディスクに対しAVデータ
等の大容量連続データの書き込みアクセスが終了した直
後から、書き込まれたAVデータ等の大容量連続データ
に対してベリファイを行い、例えばセクタに訂正不可能
なエラーが検出されたとすると、制御回路は、該セクタ
をBADSECTORとしてその磁気ディスク上の物理
的な位置とエラーのレベルを、不揮発性記憶装置にエラ
ーマップ登録を行うようにしたので、読み込みアクセス
前には、不揮発性記憶装置にエラーマップ登録をした訂
正不可能エラーを検出でき、そのエラーに対する処理を
行うことが可能となり、したがって、従来の磁気ディス
ク装置で生じる、上位装置のエラー処理に伴う回転待ち
時間を無くすことが可能となり、AVデータ等の大容量
連続データの要求する帯域、アクセスの連続性を保つこ
とができる。
As described above, according to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device according to the first, second and third aspects of the present invention, Immediately after the end of write access to large-capacity continuous data such as AV data, verification is performed on large-capacity continuous data such as written AV data. If an uncorrectable error is detected in a sector, for example, control is performed. The circuit uses the sector as a BADSECTOR to register the physical position on the magnetic disk and the error level in the error map in the non-volatile storage device. It is possible to detect uncorrectable errors registered in the map and process them Therefore, it is possible to eliminate the rotation waiting time associated with the error processing of the higher-level device, which occurs in the conventional magnetic disk device, and it is possible to maintain the bandwidth required for large-capacity continuous data such as AV data and the continuity of access. it can.

【0093】また、本発明の請求項4、5及び6に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体によれば、磁気ディスクに対してAVデータ等の大容
量連続の書き込みアクセスを終了した後、連続して書き
込まれたAVデータ等の大容量連続データに対するベリ
ファイを行い、例えばセクタに訂正不可能なエラー以外
の、訂正可能なECCエラーが検出された場合にも、セ
クタの磁気ディスク上の物理的な位置とエラーのレベル
を、不揮発性記憶装置にエラーマップ登録を行い、か
つ、アクセス終了後、ECCエラーがあったことを上位
装置に通知しておくようにしたので、磁気ディスク上の
エラーは、ある時点では訂正可能なECCエラーであっ
ても、それ以後、読み込みアクセスを繰り返すうちに、
訂正不可能なエラーになる可能性があるが、上位装置
は、訂正可能なECCエラーがあった旨の通知を受け
て、そのエラーの処理をどうするかを判断し、訂正不可
能になる前に、再書き込みの命令を制御回路に送り、制
御回路は、命令を受け、再書き込みを行うことにより、
読み込みアクセス時にエラー発生が無くなり、従来の磁
気ディスク装置で生じる、上位装置のエラー処理に伴う
回転待ち時間を無くすことが可能となり、AVデータ等
の大容量連続データの要求する帯域、アクセスの連続性
を保つことができる。
According to the magnetic disk device, the disk access method and the disk access program recording medium for the magnetic disk device according to the fourth, fifth and sixth aspects of the present invention, it is possible to store AV data or the like on the magnetic disk. After the end of the large-capacity continuous write access, verification is performed on large-capacity continuous data such as continuously written AV data, and for example, a correctable ECC error other than an uncorrectable error is detected in a sector. In this case, the physical position of the sector on the magnetic disk and the error level are registered in an error map in the nonvolatile storage device, and after the access is completed, the host device is notified that an ECC error has occurred. Therefore, even if an error on the magnetic disk is an ECC error that can be corrected at a certain point in time, While repeating the write access,
Although an uncorrectable error may occur, the host device receives a notification that there is a correctable ECC error, determines what to do with the error, and before the error becomes uncorrectable. , A rewrite command is sent to the control circuit, and the control circuit receives the command and performs rewrite,
Eliminating the occurrence of errors at the time of read access eliminates the rotation waiting time associated with the error processing of the higher-level device, which occurs in the conventional magnetic disk device. The bandwidth required for large-capacity continuous data such as AV data, and the continuity of access Can be kept.

【0094】また、本発明の請求項7、8及び9に記載
の磁気ディスク装置、そのディスクアクセス方法、及び
磁気ディスク装置用ディスクアクセスプログラム記録媒
体によれば、磁気ディスクに対しデータ等の大容量連続
データの書き込みアクセスを終了した後、上位装置は、
制御回路が、書き込まれたAVデータ等の大容量連続デ
ータに対するベリファイを行う前に、制御回路に、EC
Cエラーのレベルを設定する。制御回路は、書き込まれ
たデータに対してベリファイを行い、セクタにECCエ
ラーが検出された時、そのエラーのレベルを判断し、自
分自身に設定されたレベルに到達しているならば、セク
タの磁気ディスク上の物理的位置とエラーのレベルを、
不揮発性記憶装置にエラーマップ登録を行う。その後、
制御回路はエラーマップを参照し、セクタのデータに対
しては自動的に再書き込み等の処理を行う。これによ
り、AVデータ等の大容量連続データの要求する帯域、
信頼性を保つことができる。
According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device according to the seventh, eighth, and ninth aspects of the present invention, the magnetic disk has a large capacity for storing data and the like. After ending the continuous data write access, the host device
Before the control circuit verifies large-capacity continuous data such as written AV data, the control circuit sends an EC
Set the level of C error. The control circuit verifies the written data. When an ECC error is detected in the sector, the control circuit determines the level of the error. The physical location on the magnetic disk and the level of error
Register an error map in the nonvolatile storage device. afterwards,
The control circuit refers to the error map and automatically performs processing such as rewriting on the data in the sector. As a result, the bandwidth required by large-capacity continuous data such as AV data,
Reliability can be maintained.

【0095】また、本発明の請求項10、11、及び1
2に記載の磁気ディスク装置、そのディスクアクセス方
法、及び磁気ディスク装置用ディスクアクセスプログラ
ム記録媒体によれば、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、上位装置から書き込みコマン
ドを受け、前記大容量連続データに対して書き込みアク
セスを終了した後、連続して前記大容量連続データに対
してベリファイを行う際、前記磁気ディスク上のある1
つのトラックに対して、前記大容量連続データの書き込
みが終了した直後から、その同一トラックに対して前記
ベリファイを行い、その後、磁気ディスク装置のヘッド
は、磁気ディスク上の別のトラックにSEEKし、その
トラックに対しての大容量連続データの書き込みアクセ
スが終了した直後から、その同一トラックに対してベリ
ファイを行う、という具合に、書き込みアクセスの終了
後のベリファイとして、1トラック単位のベリファイを
行うものとしたので、上位装置からの書き込みコマンド
を受け、書き込むべきAVデータ等の大容量連続データ
をすべて書き終えた後、複数トラック単位でベリファイ
を行うよりも、SEEK時間を最小限にすることがで
き、最も効率の良いベリファイを行うことができる。
Further, claims 10, 11 and 1 of the present invention
According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device described in 2, the magnetic disk is used as a recording medium, and the magnetic disk is accessed to read and write various information data. When transferring large-capacity continuous data such as AV data that requires a certain band between a magnetic disk device and a higher-level device connected to the outside, a write command is received from the higher-level device during normal use. After a write access to the large-capacity continuous data is completed, when verifying the large-capacity continuous data continuously, a certain one on the magnetic disk is
Immediately after the writing of the large-capacity continuous data to one track is completed, the verify is performed on the same track. Thereafter, the head of the magnetic disk drive SEEKs to another track on the magnetic disk, Verify is performed on the same track immediately after write access of large-capacity continuous data to the track is completed. In other words, verify is performed on a track-by-track basis after write access is completed. Therefore, the SEEK time can be minimized as compared with a case where a write command is received from a higher-level device and all large-capacity continuous data such as AV data to be written is completely written, and then verification is performed in units of a plurality of tracks. , The most efficient verification can be performed.

【0096】また、本発明の請求項13、14、及び1
5に記載の磁気ディスク装置、そのディスクアクセス方
法、及び磁気ディスク装置用ディスクアクセスプログラ
ム記録媒体によれば、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、上位装置から書き込みコマン
ドを受け、前記大容量連続データに対する書き込みアク
セスを終了した後、連続して行う前記大容量連続データ
に対するベリファイにおいて、前記磁気ディスク装置は
上位装置から書き込みコマンドを受け、書き込むべき前
記大容量連続データを書き込んだ後は、上位装置とのや
り取りなく、自動的に書き込まれた前記大容量連続デー
タに対してベリファイを行い、前記磁気ディスク装置は
上位装置から次の書き込みコマンドが来るまでに前記ベ
リファイを終了し、上位装置から次の書き込みコマンド
を受けた時は、同様に、前記磁気ディスクは次の書き込
みコマンドまでに前記自動的ベリファイを行うようにし
たので、通常使用時において、前記磁気ディスク装置
は、上位装置から書き込みコマンドを受け、前記大容量
連続データに対して書き込みアクセスを終了した後、連
続して書き込まれた前記大容量連続データに対して行う
ベリファイを、上位装置からの前記磁気ディスクに対す
る書き込みコマンドと書き込みコマンドとの間の期間
に、前記磁気ディスク装置が自動的に行うことで、従来
の磁気ディスク装置において生じる、前記書き込みコマ
ンドと書き込みコマンド間の期間を有効利用することが
できる。
Further, claims 13, 14 and 1 of the present invention
According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device described in 5, the magnetic disk is used as the recording medium, and the magnetic disk is accessed to read and write various information data. When transferring large-capacity continuous data such as AV data that requires a certain bandwidth between a magnetic disk device and a higher-level device connected to the outside, a write command is received from the higher-level device during normal use. After the write access to the large-capacity continuous data is completed, the magnetic disk device receives a write command from a higher-level device and writes the large-capacity continuous data to be written in the continuous verification of the large-capacity continuous data. After that, automatically without any interaction with the host device Verify is performed on the written large-capacity continuous data, and the magnetic disk device finishes the verification before the next write command comes from a higher-level device, and when the next write command is received from the higher-level device, Similarly, since the magnetic disk performs the automatic verification until the next write command, during normal use, the magnetic disk device receives a write command from a higher-level device and performs a write operation on the large-capacity continuous data. After the write access is completed, a verify operation for continuously writing the large-capacity continuous data is performed in a period between a write command to the magnetic disk from a host device and the write command. Automatically occurs, which occurs in the conventional magnetic disk drive, The duration of the period included command and the write command can be effectively used.

【0097】また、本発明の請求項16、17及び18
に記載の磁気ディスク装置、そのディスクアクセス方
法、及び磁気ディスク装置用ディスクアクセスプログラ
ム記録媒体によれば、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスク装置は、上
位装置から書き込みコマンドを受け、前記大容量連続デ
ータに対する書き込みアクセスを終了した後、連続して
前記大容量連続データに対するベリファイを行い、前記
ベリファイにより訂正不可能なエラーが検出された場
合、前記訂正不可能なエラーのあるセクタの磁気ディス
ク上の物理的な位置と、エラーのレベルとを不揮発性記
憶手段のエラーマップに登録し、その後、上位装置から
読み込コマンドを受け、前記AVデータ等の大容量連続
データに対して読み込みアクセスを行う時には、前記不
揮発性記憶手段のエラーマップを参照することで、前記
エラーのあるセクタの位置を予め知っておくことがで
き、従って、前記訂正不可能なエラーのあるセクタに対
しての読み込みアクセスとしては、そのセクタからは何
も読み込まずに通り過ぎるだけのスキップを行うことが
でき、前記訂正不可能なエラーのあるセクタの、次の正
常なセクタからは、通常の読み込みアクセスを行うよう
にすることができるので、上位装置からの読み込みコマ
ンドを受け、前記磁気ディスクが読み込みアクセスを行
う範囲の前記AVデータ等の大容量連続データに、訂正
不可能なエラーがあった場合、従来の方式では、エラー
発生として上位装置にそのことを通知し、上位装置のエ
ラー処理の間、読み込みアクセスの動作が中断されてい
たが、ベリファイにより前記訂正不可能なエラーのある
セクタの前記磁気ディスク上の物理的位置と、そのレベ
ルとを登録した前記不揮発性記憶手段のエラーマップを
参照することで、予め前記訂正不可能なエラーのあるセ
クタの位置を知っておくことができるので、そのセクタ
に読み込みアクセスする際には、何も読み込まずに素通
りし、次の正常なセクタから再び読み込み始めるスキッ
プ動作を行うことができ、読み込みアクセス時の動作に
対するアクセスの連続性を保つことができる。
Further, claims 16, 17 and 18 of the present invention.
According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device, a magnetic disk is used as a recording medium, and the magnetic disk is accessed to read and write various information data. In a magnetic disk device, when transferring large-capacity continuous data such as AV data requesting a certain band between the magnetic disk device and an external device connected to the outside, the magnetic disk device is configured such that during normal use, the magnetic disk device After receiving a write command from the controller and ending write access to the large-capacity continuous data, continuously performing verification on the large-capacity continuous data, and if an uncorrectable error is detected by the verification, the The physical location of the erroneous sector on the magnetic disk, The error level is registered in the error map of the non-volatile storage means. After that, when a read command is received from a higher-level device and read access is made to large-capacity continuous data such as the AV data, the non-volatile storage means is used. By referring to the error map, the location of the erroneous sector can be known in advance. Therefore, as read access to the uncorrectable erroneous sector, what Can be skipped by just passing without reading, and normal read access can be performed from the next normal sector after the sector having the uncorrectable error. Receiving a read command of large-capacity continuous data such as the AV data in a range where the magnetic disk performs read access. However, if there is an uncorrectable error, the conventional method notifies the host device of the occurrence of the error, and the read access operation was interrupted during the error processing of the host device. By referring to the error map of the non-volatile storage means in which the physical position of the sector having the uncorrectable error on the magnetic disk and its level are registered, the sector having the uncorrectable error is determined in advance. When reading and accessing the sector, it is possible to skip without reading anything and perform a skip operation to start reading again from the next normal sector. The continuity of access to the operation can be maintained.

【0098】また、本発明の請求項19、20及び21
に記載の磁気ディスク装置、そのディスクアクセス方
法、及び磁気ディスク装置用ディスクアクセスプログラ
ム記録媒体によれば、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスクは上位装置
から書き込みコマンドを受け、前記AVデータ等の大容
量連続データに対する書き込みアクセスが終了し、その
直後から行われる前記AVデータ等の大容量連続データ
に対するベリファイにより、訂正不可能なエラーが検出
された場合、前記訂正不可能なエラーのあるセクタの磁
気ディスク上の物理的な位置とエラーのレベルを不揮発
性記憶手段のエラーマップに登録し、前記磁気ディスク
装置は、前記訂正不可能なエラーを検出した直後のセク
タから再書き込み動作に移り、この時、バッファは書き
込むべきデータを保持しているので、前記再書き込み
は、前記バッファのデータを用いて行うようにし、ここ
で、前記バッファは、数トラック分のデータが入る容量
を持つバッファとしたので、上位装置からの書き込みコ
マンドを受け、前記磁気ディスク装置が書き込んだ範囲
のAVデータ等の大容量連続データに訂正不可能なエラ
ーがあった場合に、そのエラーは、書き込みアクセス終
了後に前記AVデータ等の大容量連続データに対して行
われるベリファイにより検出され、前記磁気ディスク上
の物理的位置とレベルとを不揮発性記憶手段のエラーマ
ップに登録しておくことにより、読み込みアクセス時に
は前記不揮発性記憶手段のエラーマップを参照し、前記
訂正不可能なエラーのあるセクタはスキップし次の正常
なセクタから再書き込みを行うことで、前記AVデータ
等の大容量連続データに対してアクセスの連続性を確保
することができる。
Further, claims 19, 20 and 21 of the present invention
According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device, a magnetic disk is used as a recording medium, and the magnetic disk is accessed to read and write various information data. In a magnetic disk device, when transferring large-capacity continuous data such as AV data requesting a certain bandwidth between the magnetic disk device and a host device connected to the outside, the magnetic disk is written from the host device during normal use. Upon receiving a command, the write access to the large-capacity continuous data such as the AV data is completed, and immediately after that, an uncorrectable error is detected by verification of the large-capacity continuous data such as the AV data, Physical sector on magnetic disk of sectors with uncorrectable errors The position and the level of the error are registered in an error map of the nonvolatile storage means, and the magnetic disk device starts a rewrite operation from a sector immediately after detecting the uncorrectable error. At this time, the buffer stores the data to be written. , The rewriting is performed using the data in the buffer. Here, the buffer is a buffer having a capacity for storing data for several tracks, When an uncorrectable error occurs in large-capacity continuous data such as AV data in the range written by the magnetic disk device upon receiving a command, the error is detected after the completion of the write access. The physical position and level on the magnetic disk are detected by the verification performed on the By reading the error map of the non-volatile storage means at the time of read access, skipping the sector having the uncorrectable error and performing rewriting from the next normal sector. The continuity of access to large-capacity continuous data such as the AV data can be ensured.

【0099】また、本発明の請求項22、23及び24
に記載の磁気ディスク装置によれば、記録媒体として磁
気ディスクが用いられ、その磁気ディスクに対しアクセ
スして各種情報のデータを読み書きする磁気ディスク装
置において、その外部に接続された上位装置との間で、
一定帯域を要求するAVデータ等の大容量連続データの
転送を行う場合、通常使用時において、前記磁気ディス
クは上位装置から書き込みコマンドを受け、前記AVデ
ータ等の大容量連続データの書き込みアクセスが終了
し、その直後から行われる前記大容量連続データに対す
るベリファイにより、訂正不可能なエラーが検出された
場合、前記訂正不可能なエラーのあるセクタの磁気ディ
スク上の物理的位置と、エラーのレベルとを不揮発性記
憶手段のエラーマップに登録し、その後、前記磁気ディ
スク装置は再書き込みに移るが、再書き込みするデータ
はバッファに保持されているデータを用い、再書き込み
は前記不揮発性記憶手段のエラーマップを参照し、前記
訂正不可能なエラーのあるセクタの位置が予めわかるの
で、そのセクタに再書き込みするべきデータはエラー置
換トラックという別のトラックに置換データとして書き
込んでおき、読み込みアクセス時には、前記置換データ
を前記バッファに先に読み出しておき、前記訂正不可能
なエラーのあるセクタからはデータは読み出されず、そ
のデータが本来読み出されるべきタイミングで、前記バ
ッファから前記置換データを直接読み出すようにしたの
で、上位装置からの書き込みコマンドを受けて、磁気デ
ィスク上に書き込んだ前記AVデータ等の大容量連続デ
ータに訂正不可能なエラーがあった場合には、前記AV
データ等の大容量連続データに対する書き込みアクセス
を終了した後、連続して行われる前記AVデータ等の大
容量連続データに対するベリファイにより検出すること
ができ、前記訂正不可能なエラーのあるセクタの磁気デ
ィスク上の物理的な位置と、エラーのレベルとを、不揮
発性記憶手段のエラーマップに登録し、その後、前記磁
気ディスク装置が行う再書き込みは、前記不揮発性記憶
手段のエラーマップを参照して、前記訂正不可能なエラ
ーのあるセクタの位置が予めわかることにより、そのセ
クタに書き込むべきデータは、エラー置換トラックに置
換データとして書き込むようにし、読み込みアクセス時
には前記置換データをバッファに先に読み出しておき、
前記訂正不可能なエラーのあったセクタのデータは、本
来そのデータが読み出されるタイミングで、先読みして
おいたバッファから読み出すようにしたので、AVデー
タ等の大容量連続データは欠けることなく、その要求す
る帯域、アクセスの連続性を確保できる。
Further, claims 22, 23 and 24 of the present invention.
According to the magnetic disk device described in (1), a magnetic disk is used as a recording medium, and the magnetic disk device accesses the magnetic disk and reads / writes data of various information. so,
When transferring large-capacity continuous data such as AV data that requires a certain bandwidth, during normal use, the magnetic disk receives a write command from a host device, and the write access of the large-capacity continuous data such as the AV data ends. If an uncorrectable error is detected by the verification of the large-capacity continuous data performed immediately after that, the physical position of the sector having the uncorrectable error on the magnetic disk and the error level Is registered in the error map of the non-volatile storage means, and thereafter, the magnetic disk device shifts to rewriting, but the data to be rewritten uses the data held in the buffer. By referring to the map, the position of the sector having the uncorrectable error can be known in advance, and the The data to be written is written as replacement data in another track called an error replacement track, and at the time of read access, the replacement data is read out to the buffer first, and data is read from the sector having the uncorrectable error. The replacement data is read directly from the buffer at the timing at which the data should be read, so that the write command from the host device is received and the size of the AV data or the like written on the magnetic disk is received. If there is an uncorrectable error in the continuous capacity data, the AV
After the end of write access to large-capacity continuous data such as data, the magnetic disk can be detected by continuous verification of large-capacity continuous data such as the AV data, and the sector of the sector having an uncorrectable error can be detected. The physical position above and the level of the error are registered in the error map of the non-volatile storage means, and then the rewriting performed by the magnetic disk device refers to the error map of the non-volatile storage means, Since the position of the sector having the uncorrectable error is known in advance, the data to be written in the sector is written as replacement data in an error replacement track, and the read data is read out to a buffer at the time of read access. ,
Since the data of the sector having the uncorrectable error is read from the buffer which has been read ahead at the timing when the data is originally read, large-capacity continuous data such as AV data is not lost. Required bandwidth and access continuity can be secured.

【0100】また、本発明の請求項25、26、及び2
7に記載の磁気ディスク装置、そのディスクアクセス方
法、及び磁気ディスク装置用ディスクアクセスプログラ
ム記録媒体によれば、記録媒体として磁気ディスクが用
いられ、その磁気ディスクに対しアクセスして各種情報
のデータを読み書きする磁気ディスク装置において、そ
の外部に接続された上位装置との間で、一定帯域を要求
するAVデータ等の大容量連続データの転送を行う場
合、通常使用時において、前記磁気ディスクは上位装置
から書き込みコマンドを受け、前記大容量連続データに
対して書き込みアクセスするとともに、そのコピーデー
タも別のトラックに書き込んでおき、前記書き込みアク
セス終了直後から行われる前記大容量連続データのオリ
ジナルデータに対するベリファイにより、訂正不可能な
エラーが検出された場合、前記訂正不可能なエラーのあ
るセクターの磁気ディスク上の物理的位置と、エラーの
レベルとを不揮発性記憶手段のエラーマップに登録し、
前記磁気ディスクは、上位装置からの読み込みコマンド
を受け前記大容量連続データのオリジナルデータに対し
て読み込みアクセスを行う前に、前記不揮発性手段のエ
ラーマップを参照して、前記訂正不可能なエラーのある
セクタのデータに対応する前記コピーデータをバッファ
に先読みしておき、読み込みアクセス時には前記不揮発
性記憶手段のエラーマップを参照し、前記訂正不可能な
エラーのあるセクタからのデータの読み込みは行わず、
そのデータが本来読み出されるべきタイミングで、前記
バッファの中の先読みしたコピーデータを直接読み出す
ようにし、上位装置からの書き込みコマンドを受けて、
磁気ディスク上に書き込んだ前記大容量連続データのオ
リジナルデータに訂正不可能なエラーがあった場合に、
前記オリジナルデータおよびそのコピーデータに対する
書き込みアクセスを終了した後、連続して行われる前記
オリジナルデータに対するベリファイにより、該訂正不
可能なエラーが検出され、検出された前記訂正不可能な
エラーのあるセクタの磁気ディスク上の物理的な位置
と、エラーのレベルとが不揮発性記憶手段のエラーマッ
プに登録され、それを参照することで前記訂正不可能な
エラーのあるセクタのデータに対応する前記コピーデー
タをバッファに先に読み出すことができ、読み込みアク
セス時には前記不揮発性記憶手段のエラーマップを参照
して、前記訂正不可能エラーのあるセクタからはデータ
を読み込まず、そのデータが本来読み出されるべきタイ
ミングで、前記バッファ内のデータを読み出すようにす
ることにより、データが欠けることなく、前記AVデー
タ等の大容量連続データの要求する帯域、アクセスの連
続性を確保することができる。
Further, claims 25, 26 and 2 of the present invention
7. According to the magnetic disk device, the disk access method, and the disk access program recording medium for the magnetic disk device described in 7, the magnetic disk is used as a recording medium, and the magnetic disk is accessed to read and write various information data. When transferring large-capacity continuous data such as AV data requesting a certain band between the external device and a higher-level device connected to the external device, during normal use, the magnetic disk is transferred from the higher-level device. Upon receiving a write command, write access is made to the large-capacity continuous data, and the copy data is also written to another track, and by performing verification on the original data of the large-capacity continuous data performed immediately after the end of the write access, Uncorrectable error detected If registers the physical position on the magnetic disk of the sector with the uncorrectable error, the level of error in the error map of the nonvolatile memory means,
The magnetic disk receives a read command from a higher-level device and, before performing read access to the original data of the large-capacity continuous data, refers to an error map of the non-volatile means and checks the uncorrectable error. The copy data corresponding to the data of a certain sector is pre-read in a buffer, and at the time of read access, the error map of the nonvolatile storage means is referred to, and the data is not read from the sector having the uncorrectable error. ,
At the timing at which the data should be read, the read-ahead copy data in the buffer is directly read, and in response to a write command from a higher-level device,
When there is an uncorrectable error in the original data of the large-capacity continuous data written on the magnetic disk,
After the write access to the original data and its copy data is completed, the uncorrectable error is detected by successive verification of the original data, and the detected sector having the uncorrectable error is detected. The physical position on the magnetic disk and the error level are registered in the error map of the non-volatile storage means, and by referring to the error map, the copy data corresponding to the uncorrectable error data is read. The buffer can be read first, and at the time of read access, data is not read from the sector having the uncorrectable error by referring to the error map of the nonvolatile storage means, and at the timing when the data should be read, By reading the data in the buffer, Without chipping, the requested bandwidth of the high-capacity continuous data such as the AV data, it is possible to ensure the continuity of the access.

【0101】このように、本発明の磁気ディスク装置
と、そのディスクアクセス方法、及び磁気ディスク装置
用ディスクアクセスプログラム記録媒体によれば、AV
データ等の大容量連続データに訂正不可能なエラーがあ
っても、通常使用時において、書き込みアクセス終了直
後に行われるベリファイにより検出できる。また、検出
された結果をエラーマップ登録することで、読み込みア
クセス前に再書き込み等々のエラーに対する処理が可能
となり、読み込みアクセス時のエラー発生がなくなる。
従って、上位装置のエラー処理に伴う回転待ち時間がな
くなることになり、AVデータ等の大容量連続データの
要求する帯域、アクセスの連続性を確保することが可能
となる。
As described above, according to the magnetic disk device of the present invention, the disk access method thereof, and the disk access program recording medium for the magnetic disk device,
Even if there is an uncorrectable error in large-capacity continuous data such as data, it can be detected during normal use by verification performed immediately after the end of write access. Further, by registering the detected result in an error map, it is possible to perform processing for errors such as rewriting before read access, and to eliminate the occurrence of errors at the time of read access.
Therefore, the rotation waiting time associated with the error processing of the host device is eliminated, and the band required for large-capacity continuous data such as AV data and the continuity of access can be secured.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態1ないし9による磁気ディ
スク装置の構成および動作の説明図。
FIG. 1 is an explanatory diagram of the configuration and operation of a magnetic disk drive according to Embodiments 1 to 9 of the present invention.

【図2】従来の磁気ディスク装置において読み込みアク
セス時にエラーが発生した場合の概要図。
FIG. 2 is a schematic diagram when an error occurs during read access in a conventional magnetic disk device.

【図3】本発明の実施の形態1による磁気ディスク装置
における動作の説明図。
FIG. 3 is an explanatory diagram of an operation in the magnetic disk device according to the first embodiment of the present invention.

【図4】本発明の実施の形態2による磁気ディスク装置
における動作の説明図。
FIG. 4 is an explanatory diagram of an operation in the magnetic disk device according to the second embodiment of the present invention.

【図5】本発明の実施の形態3による磁気ディスク装置
における動作の説明図。
FIG. 5 is an explanatory diagram of an operation in the magnetic disk drive according to the third embodiment of the present invention.

【図6】本発明の実施の形態4による磁気ディスク装置
における動作の説明図。
FIG. 6 is an explanatory diagram of an operation in the magnetic disk drive according to the fourth embodiment of the present invention.

【図7】本発明の実施の形態5による磁気ディスク装置
における動作の説明図。
FIG. 7 is an explanatory diagram of an operation in the magnetic disk drive according to the fifth embodiment of the present invention.

【図8】本発明の実施の形態6による磁気ディスク装置
における動作の説明図。
FIG. 8 is an explanatory diagram of an operation in the magnetic disk drive according to the sixth embodiment of the present invention.

【図9】本発明の実施の形態7による磁気ディスク装置
における動作の説明図。
FIG. 9 is an explanatory diagram of an operation in the magnetic disk drive according to the seventh embodiment of the present invention.

【図10】本発明の実施の形態8による磁気ディスク装
置における動作の説明図。
FIG. 10 is an explanatory diagram of an operation in the magnetic disk drive according to the eighth embodiment of the present invention.

【図11】本発明の実施の形態9による磁気ディスク装
置における動作の説明図。
FIG. 11 is an explanatory diagram of an operation in the magnetic disk drive according to the ninth embodiment of the present invention.

【図12】本発明の実施の形態1による磁気ディスク装
置における動作のフローチャート図。
FIG. 12 is a flowchart of an operation in the magnetic disk drive according to the first embodiment of the present invention.

【図13】本発明の実施の形態2による磁気ディスク装
置における動作のフローチャート図。
FIG. 13 is a flowchart of an operation in the magnetic disk drive according to the second embodiment of the present invention.

【図14】本発明の実施の形態3による磁気ディスク装
置における動作のフローチャート図。
FIG. 14 is a flowchart of an operation in the magnetic disk drive according to the third embodiment of the present invention.

【図15】本発明の実施の形態4による磁気ディスク装
置における動作のフローチャート図。
FIG. 15 is a flowchart of an operation in the magnetic disk drive according to the fourth embodiment of the present invention.

【図16】本発明の実施の形態5による磁気ディスク装
置における動作のフローチャート図。
FIG. 16 is a flowchart of an operation in the magnetic disk drive according to the fifth embodiment of the present invention.

【図17】本発明の実施の形態6による磁気ディスク装
置における動作のフローチャート図。
FIG. 17 is a flowchart of an operation in the magnetic disk drive according to the sixth embodiment of the present invention.

【図18】本発明の実施の形態7による磁気ディスク装
置における動作のフローチャート図。
FIG. 18 is a flowchart of an operation in the magnetic disk drive according to the seventh embodiment of the present invention.

【図19】本発明の実施の形態8による磁気ディスク装
置における動作のフローチャート図。
FIG. 19 is a flowchart of an operation in the magnetic disk drive according to the eighth embodiment of the present invention.

【図20】本発明の実施の形態9による磁気ディスク装
置における動作のフローチャート図。
FIG. 20 is a flowchart of an operation in the magnetic disk drive according to the ninth embodiment of the present invention;

【符号の説明】[Explanation of symbols]

1 磁気ディスク装置 2 磁気ディスク 3 制御回路 4 セクタ 5 不揮発性記憶装置 6 上位装置 7、8 トラック 9 バッファ 10 エラー置換トラック 11 置換データ 12 コピーデータ DESCRIPTION OF SYMBOLS 1 Magnetic disk device 2 Magnetic disk 3 Control circuit 4 Sector 5 Non-volatile storage device 6 High-order device 7, 8 Track 9 Buffer 10 Error replacement track 11 Replacement data 12 Copy data

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成13年5月25日(2001.5.2
5)
[Submission date] May 25, 2001 (2001.5.2)
5)

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0060[Correction target item name] 0060

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0060】このベリファイにより、例えばセクタ4に
訂正不可能なエラーばかりでなく、訂正可能なECC(E
rror Correction Code)エラーが検出された場合も(ス
テップS13参照)、制御回路3は、 該訂正不可能な
エラー、及び訂正可能なECCエラーについて、セクタ
4の磁気ディスク2上の物理的な位置とエラーのレベル
を、不揮発性記憶装置5のエラーマップに登録を行う。
By this verification, for example, not only an uncorrectable error but also a correctable ECC ( E
If an error is detected (see step S13), the control circuit 3 determines the physical position of the sector 4 on the magnetic disk 2 for the uncorrectable error and the correctable ECC error. The error level is registered in the error map of the nonvolatile storage device 5.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G11B 20/18 572 G11B 20/18 572F ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G11B 20/18 572 G11B 20/18 572F

Claims (27)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種のデータ
を読み書きする磁気ディスク装置において、 前記磁気ディスクに対しデータの書き込みアクセスを行
う書き込みアクセス手段と、 前記磁気ディスクに対しデータの読み込みアクセスを行
う読み込みアクセス手段と、 前記磁気ディスクのデータのベリファイを行うベリファ
イ手段と、 前記磁気ディスクのエラーマップを登録するための不揮
発性記憶手段と、 前記ベリファイにより検出された磁気ディスク上の前記
エラーの位置と結果を前記不揮発性記憶手段のエラーマ
ップに登録するエラーマップ登録手段と、 本磁気ディスク装置とその外部に接続された上位装置と
の間でデータの転送を行う際に、前記磁気ディスクに対
し前記データの書き込みアクセスを終了した後に、前記
磁気ディスクに対して前記データのベリファイを行い、
訂正不可能なエラーが検出された場合、前記磁気ディス
ク上の前記エラーの位置と結果を、前記不揮発性記憶手
段のエラーマップに登録するように、前記書き込みアク
セス手段,ベリファイ手段,読み出しアクセス手段およ
びエラーマップ登録手段を制御するシーケンス制御手段
とを備えた、 ことを特徴とする磁気ディスク装置。
1. A magnetic disk device that uses a magnetic disk as a recording medium and accesses the magnetic disk to read and write various data, wherein: write access means for performing data write access to the magnetic disk; Read access means for performing data read access to the magnetic disk; verify means for verifying data on the magnetic disk; non-volatile storage means for registering an error map of the magnetic disk; detected by the verify Error map registration means for registering the position and the result of the error on the magnetic disk in an error map of the nonvolatile storage means, and transferring data between the magnetic disk device and a higher-level device connected to the outside thereof. When performing, the data is Verifying the data on the magnetic disk after terminating the data write access,
When an uncorrectable error is detected, the write access unit, the verify unit, the read access unit, and the write access unit register the position and the result of the error on the magnetic disk in an error map of the nonvolatile storage unit. And a sequence control means for controlling the error map registration means.
【請求項2】 記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種のデータ
を読み書きする磁気ディスク装置のディスクアクセス方
法において、 その外部に接続された上位装置との間でデータの転送を
行う際に、前記磁気ディスクに対し前記データの書き込
みアクセスを終了した後に、前記磁気ディスクに対して
前記データのベリファイを行い、 訂正不可能なエラーが検出された場合、前記磁気ディス
ク上の前記エラーの位置と結果を、不揮発性記憶手段の
エラーマップに登録する、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
2. A disk access method for a magnetic disk device in which a magnetic disk is used as a recording medium and accesses the magnetic disk to read and write various data. When performing the data transfer, after verifying the data on the magnetic disk after completing the data write access to the magnetic disk, if an uncorrectable error is detected, Registering the position and the result of the error in an error map of a non-volatile storage means.
【請求項3】 記録媒体として磁気ディスクが用いら
れ、その磁気ディスクに対しアクセスして各種のデータ
を読み書きする磁気ディスク装置用制御プログラムを記
録した記録媒体において、 その外部に接続された上位装置との間でデータの転送を
行う際に、前記磁気ディスクに対し前記データの書き込
みアクセスを終了した後に、前記磁気ディスクに対して
前記データのベリファイを行い、 訂正不可能なエラーが検出された場合、前記磁気ディス
ク上の前記エラーの位置と結果を、不揮発性記憶手段の
エラーマップに登録する、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
3. A recording medium in which a magnetic disk is used as a recording medium, and a control program for a magnetic disk device for reading and writing various data by accessing the magnetic disk is provided. When transferring data between the above, after completing the data write access to the magnetic disk, verify the data to the magnetic disk, if an uncorrectable error is detected, A disk access control program recording medium for a magnetic disk device, wherein a position and a result of the error on the magnetic disk are registered in an error map of a nonvolatile storage unit.
【請求項4】 請求項1に記載の磁気ディスク装置にお
いて、 前記シーケンス制御手段は、前記ベリファイ手段によ
り、前記訂正不可能なエラー以外に、訂正可能なECC
エラーが検出された場合にも、前記エラーの磁気ディス
ク上の位置と結果を、前記不揮発性記憶手段のエラーマ
ップに登録するように前記不揮発性記憶手段およびエラ
ーマップ登録手段を制御し、 かつ、前記ベリファイ終了後、ECCエラーがあったこ
とを前記上位装置に通知する、 ことを特徴とする磁気ディスク装置。
4. The magnetic disk drive according to claim 1, wherein the sequence control unit is configured to correct the ECC which can be corrected by the verification unit in addition to the uncorrectable error.
Even when an error is detected, the nonvolatile memory means and the error map registration means are controlled to register the position and the result of the error on the magnetic disk in an error map of the nonvolatile memory means, and A magnetic disk device, after completion of the verification, notifying the host device that an ECC error has occurred.
【請求項5】 請求項2に記載の磁気ディスク装置のデ
ィスクアクセス方法において、 前記ベリファイにより、前記訂正不可能なエラー以外
に、訂正可能なECCエラーが検出された場合にも、前
記エラーの磁気ディスク上の位置と結果を、不揮発性記
憶手段のエラーマップに登録し、 前記ベリファイ終了後、ECCエラーがあったことを上
位装置に通知する、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
5. The disk access method of a magnetic disk drive according to claim 2, wherein a correctable ECC error other than the uncorrectable error is detected by the verification even when the error is detected. A disk access method for a magnetic disk device, comprising: registering a position on a disk and a result in an error map of a non-volatile storage unit, and notifying an upper-level device that an ECC error has occurred after completion of the verification.
【請求項6】 請求項3に記載の磁気ディスク装置用制
御プログラム記録媒体において、 前記ベリファイにより、前記訂正不可能なエラー以外
に、訂正可能なECCエラーが検出された場合にも、前
記エラーの磁気ディスク上の位置と結果を、不揮発性記
憶手段のエラーマップに登録し、前記ベリファイ終了
後、ECCエラーがあったことを上位装置に通知する、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
6. The control program recording medium for a magnetic disk device according to claim 3, wherein the correctable ECC error other than the uncorrectable error is detected by the verification even if the error is detected. Registering the position on the magnetic disk and the result in an error map of the non-volatile storage means, and notifying an upper-level device that an ECC error has occurred after completion of the verification; Program recording medium.
【請求項7】 請求項1に記載の磁気ディスク装置にお
いて、 前記シーケンス制御手段は、前記ベリファイを行う前
に、前記上位装置によりエラーマップに登録するECC
エラーのレベルが設定され、 かつ、前記シーケンス制御手段は、上記ベリファイ手段
で検出されたECCエラーが前記設定レベルに達してい
るときは、前記エラーの磁気ディスク上の位置と結果
を、前記不揮発性記憶手段のエラーマップに登録し、前
記磁気ディスクに対して、自動的に再書き込み等の処理
を行うように、前記不揮発性記憶手段,エラーマップ登
録手段および書き込みアクセス手段を制御する、 ことを特徴とする磁気ディスク装置。
7. The magnetic disk drive according to claim 1, wherein the sequence control means registers an ECC in an error map by the higher-level device before performing the verification.
When an error level is set, and when the ECC error detected by the verifying means has reached the set level, the sequence control means stores the position of the error on the magnetic disk and the result in the nonvolatile memory. The non-volatile storage unit, the error map registration unit, and the write access unit are controlled so as to be registered in an error map of a storage unit and to automatically perform processing such as rewriting on the magnetic disk. Magnetic disk device.
【請求項8】 請求項2に記載の磁気ディスク装置のデ
ィスクアクセス方法において、 前記ベリファイを行う前に、上位装置によりエラーマッ
プに登録するECCエラーのレベルが設定され、 上記ベリファイで検出されたECCエラーが設定レベル
に達しているときは、前記エラーの磁気ディスク上の位
置と結果を、不揮発性記憶手段のエラーマップに登録
し、 前記磁気ディスクに対して、自動的に再書き込み等の処
理を行う、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
8. The disk access method for a magnetic disk drive according to claim 2, wherein a level of an ECC error to be registered in an error map is set by a higher-level device before performing the verifying, and the ECC detected by the verifying is set. When the error has reached the set level, the position and the result of the error on the magnetic disk are registered in an error map of the nonvolatile storage means, and processing such as automatically rewriting the magnetic disk is performed. A disk access method for a magnetic disk drive.
【請求項9】 請求項3に記載の磁気ディスク装置用制
御プログラム記録媒体において、 前記ベリファイを行う前に、上位装置によりエラーマッ
プに登録するECCエラーのレベルが設定され、 上記ベリファイで検出されたECCエラーが設定レベル
に達しているときは、前記エラーの磁気ディスク上の位
置と結果を、不揮発性記憶手段のエラーマップに登録
し、 前記磁気ディスクに対して、自動的に再書き込み等の処
理を行う、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
9. The control program recording medium for a magnetic disk device according to claim 3, wherein a level of an ECC error to be registered in an error map is set by a host device before the verification is performed, and the level is detected by the verification. When the ECC error has reached the set level, the position and the result of the error on the magnetic disk are registered in an error map of the non-volatile storage means, and processing such as automatically rewriting the magnetic disk is performed. A disk access control program recording medium for a magnetic disk device.
【請求項10】 請求項1に記載の磁気ディスク装置に
おいて、 前記シーケンス制御手段は、前記ベリファイ動作を1ト
ラック単位で行うように、前記読み出しアクセス手段お
よびベリファイ手段を制御する、 ことを特徴とする磁気ディスク装置。
10. The magnetic disk drive according to claim 1, wherein the sequence control unit controls the read access unit and the verification unit so as to perform the verification operation in units of one track. Magnetic disk drive.
【請求項11】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 前記ベリファイにおいて、その動作を1トラック単位で
行う、 ことを特徴とするディスク装置のディスクアクセス方
法。
11. The disk access method of a disk device according to claim 2, wherein the verifying operation is performed for each track.
【請求項12】 請求項3に記載の磁気ディスク装置用
ディスクアクセス制御プログラム記録媒体において、 前記ベリファイにおいて、その動作を1トラック単位で
行う、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
12. The disk access control program recording medium for a magnetic disk device according to claim 3, wherein the verifying operation is performed for each track. Medium.
【請求項13】 請求項1に記載の磁気ディスク装置に
おいて、 前記シーケンス制御手段は、前記ベリファイ動作を上位
装置の介在なしに自動的に行うように、前記読み出しア
クセス手段およびベリファイ手段を制御する、ことを特
徴とする磁気ディスク装置。
13. The magnetic disk drive according to claim 1, wherein the sequence control unit controls the read access unit and the verify unit so that the verify operation is automatically performed without intervention of a host device. A magnetic disk drive characterized by the above-mentioned.
【請求項14】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 前記ベリファイにおいて、その動作を上位装置の介在無
く自動的に行う、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
14. The disk access method for a magnetic disk device according to claim 2, wherein the verifying operation is performed automatically without the intervention of a host device.
【請求項15】 請求項3に記載の磁気ディスク装置用
制御プログラム記録媒体において、 前記ベリファイにおいて、その動作を上位装置の介在無
く自動的に行う、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
15. The disk access control for a magnetic disk device according to claim 3, wherein in the verification, the operation is automatically performed without the intervention of a host device. Program recording medium.
【請求項16】 請求項1に記載の磁気ディスク装置に
おいて、 前記シーケンス制御手段は、前記ベリファイ手段によ
り、訂正不可能なエラーが検出された場合、前記エラー
の磁気ディスク上の位置と結果を不揮発性記憶手段のエ
ラーマップに登録し、前記読み込みアクセス手段による
読み込みアクセス時には前記エラーマップを参照し、前
記エラーのあるセクターはスキップして読み込みアクセ
スを行うように、前記不揮発性記憶手段および読み込み
アクセス手段を制御する、 ことを特徴とする磁気ディスク装置。
16. The magnetic disk drive according to claim 1, wherein, when an uncorrectable error is detected by the verifying unit, the sequence control unit stores the position of the error on the magnetic disk and the result in a nonvolatile manner. The non-volatile storage means and the read access means so that the read access is performed by referring to the error map at the time of read access by the read access means and skipping the sector having the error. A magnetic disk drive.
【請求項17】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、上記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、読み込みア
クセス時には上記エラーマップを参照し、上記エラーの
あるセクタはスキップして読み込みアクセスを行う、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
17. The disk access method for a magnetic disk device according to claim 2, wherein in the verification, when an uncorrectable error is detected, a position and a result of the error on the magnetic disk and a result are stored in a nonvolatile storage unit. And performing a read access by skipping the erroneous sector by referring to the error map at the time of read access.
【請求項18】 請求項3に記載の磁気ディスク装置用
制御プログラム記録媒体において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、前記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、読み込みア
クセス時には前記エラーマップを参照し、前記エラーの
あるセクタはスキップして読み込みアクセスを行う、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
18. The control program recording medium for a magnetic disk device according to claim 3, wherein in the verification, when an uncorrectable error is detected, a position and a result of the error on the magnetic disk are stored in a nonvolatile memory. A disk access control program recording medium for a magnetic disk drive, wherein the disk access control program is registered in an error map of the means, refers to the error map at the time of read access, and skips the erroneous sector to perform read access.
【請求項19】 請求項1に記載の磁気ディスク装置に
おいて、 前記シーケンス制御手段は、前記ベリファイ手段によ
り、訂正不可能なエラーが検出された場合、データに対
する前記エラーの磁気ディスク上の位置と結果を不揮発
性記憶手段のエラーマップに登録し、そのエラーのあっ
たセクタの直後のセクタから、前記バッファのデータを
用いて、再書き込みを行うように、前記不揮発性記憶手
段,エラーマップ登録手段および書き込みアクセス手段
を制御する、 ことを特徴とする磁気ディスク装置。
19. The magnetic disk drive according to claim 1, wherein, when an uncorrectable error is detected by the verifying unit, the sequence control unit determines a position on the magnetic disk of the error with respect to data and a result. Is registered in the error map of the non-volatile storage means, and the non-volatile storage means, the error map registration means and the error map registration means are rewritten from the sector immediately after the errored sector using the data of the buffer. A magnetic disk drive for controlling write access means.
【請求項20】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、前記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、 その直後からバッファのデータを用いて、前記エラーの
あるセクタの次のセクタから再書き込みを行う、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
20. The disk access method for a magnetic disk device according to claim 2, wherein in the verification, when an uncorrectable error is detected, the position of the error on the magnetic disk and the result are stored in a nonvolatile storage means. And rewriting from the next sector after the erroneous sector using the data in the buffer immediately after registration in the error map.
【請求項21】 請求項3に記載の磁気ディスク装置用
制御プログラム記録媒体において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、前記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、 その直後からバッファのデータを用いて、前記エラーの
あるセクタの次のセクタから再書き込みを行う、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
21. The control program recording medium for a magnetic disk device according to claim 3, wherein in the verification, when an uncorrectable error is detected, a position and a result of the error on the magnetic disk are stored in a non-volatile memory. A disk access control program recording medium for a magnetic disk device, wherein the information is registered in an error map of the means, and immediately after that, rewriting is performed from a sector next to the sector having the error using data in the buffer.
【請求項22】 請求項1に記載した磁気ディスク装置
において、 前記磁気ディスクと前記上位装置との間でやりとりされ
るデータを一時的に記憶するバッファを備え、 前記シーケンス制御手段は、前記ベリファイ手段によ
り、訂正不可能なエラーが検出された場合、前記エラー
の磁気ディスク上の位置と結果を前記不揮発性記憶手段
のエラーマップに登録し、再書き込み時に前記エラーマ
ップを参照し、前記バッファのデータを用いて前記エラ
ーのあるセクタのデータを前記磁気ディスクの置換トラ
ックに書き込み、読み込みアクセス時には、前記置換ト
ラックのデータを前記バッファに先読みし、前記エラー
のあるセクタのデータは前記バッファから直接読み出す
ように、前記不揮発性記憶手段,エラーマップ登録手
段,書き込みアクセス手段,読み出しアクセス手段およ
びバッファを制御する、 ことを特徴とする磁気ディスク装置。
22. The magnetic disk drive according to claim 1, further comprising: a buffer for temporarily storing data exchanged between the magnetic disk and the host device, wherein the sequence control unit includes the verification unit. When an uncorrectable error is detected, the position and the result of the error on the magnetic disk are registered in an error map of the nonvolatile storage means, and the error map is referred to at the time of rewriting, and the data in the buffer is read. The data of the erroneous sector is written into a replacement track of the magnetic disk by using, and at the time of read access, the data of the replacement track is pre-read into the buffer, and the data of the erroneous sector is directly read from the buffer. The nonvolatile storage means, the error map registration means, the write access Means for controlling the read access means and a buffer, it magnetic disk apparatus according to claim.
【請求項23】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、前記エラーの磁気ディスク上の位置と結果を
不揮発性記憶手段のエラーマップに登録し、 再書き込み時に前記エラーマップを参照し、バッファの
データを用いて前記エラーのあるセクタのデータを置換
トラックに書き込み、 読み込みアクセス時には前記置換トラックのデータをバ
ッファに先読みし、前記エラーのあるセクタのデータは
バッファから直接読み出す、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
23. The disk access method of a magnetic disk drive according to claim 2, wherein in the verifying, when an uncorrectable error is detected, a position and a result of the error on the magnetic disk are stored in a nonvolatile storage means. The error map is registered in the error map, the error map is referred to at the time of rewriting, the data of the erroneous sector is written into the replacement track using the data of the buffer, and the data of the replacement track is pre-read into the buffer at the time of read access, The data of the sector having an error is directly read from a buffer, wherein the data is read from the buffer.
【請求項24】 請求項3に記載の磁気ディスク装置用
制御プログラム記録媒体において、 前記ベリファイにおいて、訂正不可能なエラーが検出さ
れた場合、前記エラー磁気ディスク上の位置と結果を不
揮発性記憶手段のエラーマップに登録し、 再書き込み時に前記エラーマップを参照し、バッファの
データを用いて前記エラーのあるセクターのデータを置
換トラックに書き込み、 読み込みアクセス時には前記置換トラックのデータをバ
ッファに先読みし、前記エラーのあるセクタのデータは
バッファから直接読み出す、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
24. The control program recording medium for a magnetic disk device according to claim 3, wherein in the verification, when an uncorrectable error is detected, a position and a result on the error magnetic disk are stored in a nonvolatile storage means. The error map is registered in the error map, the error map is referred to at the time of rewriting, the data of the erroneous sector is written to the replacement track using the data of the buffer, and the data of the replacement track is pre-read to the buffer at the time of read access, 3. The disk access control program recording medium for a magnetic disk device according to claim 1, wherein the data of the erroneous sector is read directly from a buffer.
【請求項25】 請求項1に記載の磁気ディスク装置に
おいて、 前記磁気ディスクと前記上位装置との間でやりとりされ
るデータを一時的に記憶するバッファを備え、 前記シーケンス制御手段は、本磁気ディスク装置の外部
に接続された上位装置との間でデータの転送を行う際
に、前記データの書き込みアクセス時にオリジナルデー
タとそのコピーデータを、前記磁気ディスク上の別のト
ラックに書き込み、オリジナルデータに対するベリファ
イにより、訂正不可能なエラーが検出された場合、前記
エラーの磁気ディスク上の位置と結果を不揮発性記憶手
段のエラーマップに登録し、前記エラーマップを参照し
て前記エラーのあるセクターのデータのコピーデータを
バッファに先読みし、読み込みアクセス時には前記エラ
ーのあるセクターのデータはバッファから直接読み出す
ように、前記書き込みアクセス手段,不揮発性記憶手
段,エラーマップ登録手段,読み込みアクセス手段およ
びバッファを制御する、 ことを特徴とする磁気ディスク装置。
25. The magnetic disk drive according to claim 1, further comprising: a buffer for temporarily storing data exchanged between the magnetic disk and the host device; When performing data transfer with a higher-level device connected outside the device, the original data and its copy data are written to another track on the magnetic disk at the time of the data write access, and the original data is verified. Thus, when an uncorrectable error is detected, the position and the result of the error on the magnetic disk are registered in an error map of the non-volatile storage means, and the error map is referred to by referring to the error map. Copy data is pre-read into the buffer, and during read access, Chromatography data, as read directly from the buffer, the write access means, nonvolatile storage means, the error map registration means controls the read access unit and a buffer, magnetic disk apparatus according to claim.
【請求項26】 請求項2に記載の磁気ディスク装置の
ディスクアクセス方法において、 その外部に接続された上位装置との間でデータの転送を
行う際に、 前記データの書き込みアクセス時にオリジナルデータと
そのコピーデータを別のトラックに書き込み、 オリジナルデータに対するベリファイにより、訂正不可
能なエラーが検出された場合、前記エラーの磁気ディス
ク上の位置と結果を不揮発性記憶手段のエラーマップに
登録し、 再書き込み時に前記エラーマップを参照し、コピーデー
タを用いて前記エラーのあるセクターのデータをバッフ
ァに先読みし、 読み込みアクセス時には前記エラーのあるセクターのデ
ータはバッファから直接読み出す、 ことを特徴とする磁気ディスク装置のディスクアクセス
方法。
26. The disk access method for a magnetic disk drive according to claim 2, wherein when data is transferred to or from an externally connected higher-level device, the original data and the original data are written during the data write access. When an uncorrectable error is detected by writing the copy data to another track and verifying the original data, the position of the error on the magnetic disk and the result are registered in an error map of the nonvolatile storage means, and rewritten. The data of the erroneous sector is read ahead of the buffer using copy data, and the data of the erroneous sector is read directly from the buffer at the time of read access. Disk access method.
【請求項27】 請求項3に記載の磁気ディスク装置用
制御プログラム記録媒体において、 その外部に接続された上位装置との間でデータの転送を
行う際に、 前記データの書き込みアクセス時に、オリジナルデータ
とそのコピーデータを別のトラックに書き込み、 オリジナルデータに対するベリファイにより、訂正不可
能なエラーが検出された場合、前記エラーの磁気ディス
ク上の位置と結果を不揮発性記憶手段のエラーマップに
登録し、 再書込み時に前記エラーマップを参照し、コピーデータ
を用いて前記エラーのあるセクターのデータをバッファ
に先読みし、読み込みアクセス時には前記エラーのある
セクターのデータはバッファから直接読み出す、 ことを特徴とする磁気ディスク装置用ディスクアクセス
制御プログラム記録媒体。
27. The control program recording medium for a magnetic disk device according to claim 3, wherein when transferring data to / from a higher-level device externally connected thereto, when writing the data, If the uncorrectable error is detected by verifying the original data, the position and the result of the error on the magnetic disk are registered in an error map of the nonvolatile storage means, Referring to the error map at the time of rewriting, prefetching data of the erroneous sector into the buffer using copy data, and directly reading the data of the erroneous sector from the buffer at the time of read access. Disk access control program recording medium for disk device.
JP2000089186A 2000-03-28 2000-03-28 Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device Pending JP2001273728A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2000089186A JP2001273728A (en) 2000-03-28 2000-03-28 Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device
PCT/JP2001/002556 WO2001073786A1 (en) 2000-03-28 2001-03-28 Magnetic disk unit, disk accessing method therefor, disk accessing program recording medium for magnetic disk unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000089186A JP2001273728A (en) 2000-03-28 2000-03-28 Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device

Publications (1)

Publication Number Publication Date
JP2001273728A true JP2001273728A (en) 2001-10-05

Family

ID=18604970

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000089186A Pending JP2001273728A (en) 2000-03-28 2000-03-28 Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device

Country Status (2)

Country Link
JP (1) JP2001273728A (en)
WO (1) WO2001073786A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100472583B1 (en) * 2002-04-11 2005-03-10 가부시키가이샤 히타치세이사쿠쇼 Magnetic disk drive
US8015433B2 (en) 2006-09-13 2011-09-06 Hitachi Global Storage Technologies Netherlands B.V. Disk drive with nonvolatile memory for storage of failure-related data
JP2018089100A (en) * 2016-12-02 2018-06-14 株式会社ジャパン・アイディー Microcomputer for controlling game machine

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62256268A (en) * 1986-04-26 1987-11-07 Toshiba Corp Magnetic disk device
JPH03194774A (en) * 1989-12-25 1991-08-26 Hitachi Ltd Defective block alternation processing system for external memory
JP2616097B2 (en) * 1990-02-23 1997-06-04 松下電器産業株式会社 Information recording / reproducing device
JP3289931B2 (en) * 1991-11-19 2002-06-10 株式会社リコー Information recording / reproducing device
JPH07121997A (en) * 1993-10-27 1995-05-12 Canon Inc Image recording / reproducing device
KR100228796B1 (en) * 1996-12-31 1999-11-01 윤종용 Data read / write control method of arbitrary data section including defect sector
JPH11167773A (en) * 1997-12-04 1999-06-22 Sony Corp Information recording / reproducing apparatus and recording / reproducing method
JPH11273265A (en) * 1998-03-26 1999-10-08 Toshiba Corp Optical disk drive
JP2000021093A (en) * 1998-07-03 2000-01-21 Sony Corp Data recording device and recording method, data reproducing device and reproducing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100472583B1 (en) * 2002-04-11 2005-03-10 가부시키가이샤 히타치세이사쿠쇼 Magnetic disk drive
US8015433B2 (en) 2006-09-13 2011-09-06 Hitachi Global Storage Technologies Netherlands B.V. Disk drive with nonvolatile memory for storage of failure-related data
JP2018089100A (en) * 2016-12-02 2018-06-14 株式会社ジャパン・アイディー Microcomputer for controlling game machine

Also Published As

Publication number Publication date
WO2001073786A1 (en) 2001-10-04

Similar Documents

Publication Publication Date Title
JP2009110287A (en) Access control apparatus and access control method
JPH05224833A (en) Data guaranteeing method of external storage device
JP2009266333A (en) Data storage device and adjacent track rewrite processing method
US5590298A (en) Method of restoring and updating records in a disk cache system during disk drive idle time using start and end addresses
WO2004114115A1 (en) Raid device, raid control method, and raid control program
JP2009187049A (en) apparatus
JPWO2009050765A1 (en) Medium storage device read / write processing method and medium storage device
US5841598A (en) Information recording/reproducing apparatus and data processing method
US7757118B2 (en) Method and system for detecting and recovering failure command
US20170229141A1 (en) Managing read and write errors under external vibration
JP2001273728A (en) Magnetic disk device, disk access method thereof, and disk access program recording medium for magnetic disk device
JP4672454B2 (en) Storage device
JP2003297025A (en) Disk unit
JP2002100126A (en) Recording and reproducing device, storage device, computer system, data processing method, program transmitting device
JP3845239B2 (en) Disk array device and failure recovery method in disk array device
JPH0519981A (en) Method for judging normal end of data writing in optical disk device
JP3335969B2 (en) Magnetic disk drive
JP3289931B2 (en) Information recording / reproducing device
JPH0660550A (en) Disk device
US6920011B2 (en) Recording device having disk-shaped recording medium and servo information processing method
JPH04311218A (en) External storage controller
JPH10162493A (en) Disk apparatus and defect detection method applied to the apparatus
JPS61283074A (en) optical information device
JPH10269729A (en) Disk unit
JP2005011454A (en) Magnetic disk unit