JPH10275425A - Disk device and method for high-speed host transfer of relocated data due to defect in the device - Google Patents

Disk device and method for high-speed host transfer of relocated data due to defect in the device

Info

Publication number
JPH10275425A
JPH10275425A JP8168297A JP8168297A JPH10275425A JP H10275425 A JPH10275425 A JP H10275425A JP 8168297 A JP8168297 A JP 8168297A JP 8168297 A JP8168297 A JP 8168297A JP H10275425 A JPH10275425 A JP H10275425A
Authority
JP
Japan
Prior art keywords
data
relocation
area
sector
disk
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.)
Granted
Application number
JP8168297A
Other languages
Japanese (ja)
Other versions
JP3847888B2 (en
Inventor
Makoto Kawasaki
誠 川崎
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP08168297A priority Critical patent/JP3847888B2/en
Publication of JPH10275425A publication Critical patent/JPH10275425A/en
Application granted granted Critical
Publication of JP3847888B2 publication Critical patent/JP3847888B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Recording Or Reproducing By Magnetic Means (AREA)

Abstract

PROBLEM TO BE SOLVED: To rapidly transfer the required data to a host device when a read access for an area containing a defect sector is requested. SOLUTION: The data rearranged on an alternative area on a disk 10 are read out by an HDC 1 under control of a CPU 3 when a disk device is initialization operated to be held beforehand in a defect hold area after being copied. Then, when a read command for a disk area containing the defect sector imparted from the host device is executed, the rearranged data held in the defect hold area in the buffer 2 are read in by the HDC 1 under the control of the CPU 3 to be transferred to the host device.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ディスクの記録面
上に欠陥セクタが存在した場合に、その欠陥セクタが代
替領域に再配置されるディスク装置に係り、特にその欠
陥セクタを含む領域に対するリードアクセス要求を実行
するのに好適なディスク装置及び同装置における欠陥に
よる再配置データの高速ホスト転送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk drive in which a defective sector is relocated to an alternative area when a defective sector exists on a recording surface of a disk, and more particularly to a read operation for an area including the defective sector. The present invention relates to a disk device suitable for executing an access request and a high-speed host transfer method of relocation data due to a defect in the device.

【0002】[0002]

【従来の技術】一般に、ヘッドにより、記録媒体として
の記録単板、即ちディスク(ディスク媒体)に対するデ
ータの記録再生が行われるディスク装置、例えば磁気デ
ィスク装置では、ディスク(磁気ディスク)の記録面上
に欠陥(ディフェクト)が存在した場合、パーソナルコ
ンピュータなどのホスト装置(ホストシステム)にその
旨を通知することなく、欠陥領域をセクタ(データセク
タ)単位でディスク上の代替領域に再配置する再配置処
理(代替処理)が行われる。この再配置処理により、ホ
スト装置はディスク上の欠陥領域を意識することなく、
欠陥セクタを含む領域を連続的にアクセス(書き込み/
読み出し)することができる。
2. Description of the Related Art Generally, in a disk device in which data is recorded / reproduced on a recording single plate as a recording medium, that is, a disk (disk medium) by a head, for example, in a magnetic disk device, a recording surface of the disk (magnetic disk) is formed. When a defect (defect) exists in the disk, the defect area is relocated to an alternate area on the disk in sectors (data sectors) without notifying a host device (host system) such as a personal computer of the fact. Processing (alternative processing) is performed. By this relocation processing, the host device does not need to be aware of the defective area on the disk,
Continuous access to the area including the defective sector (write / write
Read out).

【0003】ここで、欠陥領域と判断されて代替領域に
再配置されたセクタ(欠陥セクタ)を含む領域に対する
アクセスコマンド、例えばリードコマンドを、磁気ディ
スク装置がホスト装置から受け取った場合の、従来の磁
気ディスク装置のデータアクセス手順を、図13のヘッ
ド(磁気ヘッド)移動経路を示す図、及び図14のフロ
ーチャートを参照して説明する。
[0003] Here, in the case where the magnetic disk device receives an access command, for example, a read command for an area including a sector (defective sector) determined to be a defective area and rearranged in the replacement area, from the host apparatus, The data access procedure of the magnetic disk device will be described with reference to the diagram showing the head (magnetic head) moving path in FIG. 13 and the flowchart in FIG.

【0004】磁気ディスク装置は、ホスト装置からリー
ドコマンドを受信すると(ステップS41)、当該コマ
ンドで指定された図13に示すディスク(磁気ディス
ク)100上の領域(読み出し指定範囲)110へのリ
ード動作を次の手順で開始する(ステップS42)。
When the magnetic disk device receives a read command from the host device (step S41), the magnetic disk device performs a read operation to an area (designated read range) 110 on the disk (magnetic disk) 100 shown in FIG. Is started in the following procedure (step S42).

【0005】まず磁気ディスク装置は、ホスト装置から
のリードコマンドで指定された、欠陥セクタ111を含
むトラックへ磁気ヘッドを移動する(経路b1)。次に
磁気ディスク装置は、ホスト装置から指定された読み出
し指定範囲110の先頭セクタ位置が来るまで、ディス
ク100の回転待ちをする(経路b2)。次に磁気ディ
スク装置は、欠陥セクタ110の直前までアクセス(リ
ード動作)を行う(経路b3)。
[0005] First, the magnetic disk device moves the magnetic head to the track including the defective sector 111 specified by the read command from the host device (path b1). Next, the magnetic disk device waits for rotation of the disk 100 until the head sector position of the read designated range 110 designated by the host device comes (path b2). Next, the magnetic disk device performs access (read operation) until immediately before the defective sector 110 (path b3).

【0006】このようにして、リード動作を開始(ステ
ップS42)して、欠陥セクタ110の直前までリード
動作を行うと、磁気ディスク装置は、その欠陥110の
直前の位置b4でリード動作を一旦中断する(ステップ
S43)。
As described above, when the read operation is started (step S42) and the read operation is performed up to immediately before the defective sector 110, the magnetic disk device temporarily suspends the read operation at the position b4 immediately before the defect 110. (Step S43).

【0007】次のステップS44では、磁気ディスク装
置は、目的の再配置されたセクタ113を含む代替領域
112のあるトラックへ磁気ヘッドを移動し(経路b
5)、更に次のステップS45では、当該セクタ113
が来るまでディスク100の回転待ちをする(経路b
6)。
In the next step S44, the magnetic disk drive moves the magnetic head to a track having an alternative area 112 including the target rearranged sector 113 (path b).
5) In the next step S45, the sector 113
Wait for the rotation of the disk 100 until the disk comes (path b).
6).

【0008】次のステップS46では、磁気ディスク装
置は、(欠陥セクタ111の代替セクタである)再配置
セクタ113のリード動作を行い(経路b7)、当該セ
クタ113の終端の位置b8でリード動作を一旦中断す
る。
In the next step S 46, the magnetic disk drive performs a read operation on the relocated sector 113 (which is a substitute sector for the defective sector 111) (path b 7), and performs a read operation at the end position b 8 of the sector 113. Stop temporarily.

【0009】次のステップS47では、磁気ディスク装
置は、欠陥セクタ111のある元のトラックへ磁気ヘッ
ドを移動し(経路b9)、更に次のステップS48で
は、当該欠陥セクタ111の直後のセクタ位置までディ
スク100の回転待ちをする(経路b10)。
In the next step S47, the magnetic disk drive moves the magnetic head to the original track having the defective sector 111 (path b9). In the next step S48, the magnetic head moves to the sector position immediately after the defective sector 111. The disk 100 waits for rotation (path b10).

【0010】次のステップS49では、磁気ディスク装
置は、欠陥セクタ111の直後のセクタから読み出し指
定範囲110内の最後のセクタまでのリード動作を行う
(経路b11)。
In the next step S49, the magnetic disk drive performs a read operation from the sector immediately after the defective sector 111 to the last sector in the designated read range 110 (path b11).

【0011】[0011]

【発明が解決しようとする課題】上記したように従来技
術においては、代替領域を別途アクセスするために、ア
クセスの中断、ヘッド移動等の動作が必要であり、ホス
ト装置から指定されたアクセス範囲に欠陥セクタが含ま
れていない場合のアクセスに対して実行時間が著しく増
加するという問題があった。また、このことが、磁気デ
ィスク装置のパフォーマンスの低下や機体(磁気ディス
ク装置)間のパフォーマンスのばらつきの原因となって
いた。
As described above, in the prior art, in order to separately access the substitute area, operations such as interruption of access and movement of the head are required, and the access to the access area designated by the host device is required. There is a problem that execution time is significantly increased for access when a defective sector is not included. In addition, this causes a decrease in performance of the magnetic disk device and a variation in performance between airframes (magnetic disk devices).

【0012】本発明は上記事情を考慮してなされたもの
でその目的は、欠陥セクタを含む領域に対するリードア
クセスがホスト装置から要求された場合、その要求され
たデータを高速でホスト装置に転送できるディスク装置
及び同装置における欠陥による再配置データの高速ホス
ト転送方法を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object that when read access to an area including a defective sector is requested from a host device, the requested data can be transferred to the host device at high speed. An object of the present invention is to provide a disk device and a high-speed host transfer method of relocation data due to a defect in the device.

【0013】[0013]

【課題を解決するための手段】本発明のディスク装置
は、ディスクの記録面上に欠陥セクタが存在した場合
に、その欠陥セクタをディスク上の代替領域に再配置す
ることで、上記欠陥セクタのアクセス時にはその再配置
情報に従って上記再配置されたデータをアクセスするこ
とが可能なディスク装置において、上記代替領域に再配
置されたデータを保持するためのディフェクト保持領域
が確保された高速メモリと、上記代替領域に再配置され
たデータを予め上記ディスクから上記ディフェクト保持
領域にセクタ単位でコピーしておく再配置データコピー
処理手段と、ホスト装置から与えられる欠陥セクタを含
むディスク領域を対象とするリードコマンドの実行時に
は、上記欠陥セクタの再配置データを上記ディフェクト
保持領域から読み出して上記ホスト装置に転送する再配
置データ読み出し・転送手段とを備えたことを特徴とす
る。
According to the disk apparatus of the present invention, when a defective sector is present on the recording surface of a disk, the defective sector is relocated to an alternative area on the disk, whereby the defective sector is deleted. A high-speed memory in which a defect holding area for holding data relocated to the replacement area is secured in a disk device capable of accessing the relocated data according to the relocation information at the time of access; A relocation data copy processing means for previously copying data relocated to an alternative area from the disk to the defect holding area in sector units, and a read command for a disk area including a defective sector provided from a host device Read the relocation data of the defective sector from the defect holding area Characterized in that a relocation data reading and transfer means for transferring to the host device.

【0014】このように、代替領域に再配置されたデー
タを予め高速なメモリ上にコピーして保持し、ホスト装
置からの欠陥セクタを含むディスク領域を対象とするリ
ードコマンドに対して代替領域をアクセスすることな
く、メモリに保持されている再配置データを読み込んで
ホスト装置に転送することにより、欠陥セクタ直前のデ
ータ読み出し後の代替領域に対するアクセス動作、即ち
ヘッドの移動、ヘッドが目標領域に達するまでのディス
ク回転待ちと代替領域から欠陥セクタ直後までの同様な
アクセス動作を省略することができるため、欠陥セクタ
を含む領域に対するホストからのリードコマンドの実行
時間を短縮することができる。
As described above, the data relocated to the substitute area is copied and held in advance in a high-speed memory, and the substitute area is designated in response to a read command from the host apparatus for a disk area including a defective sector. By reading the relocated data held in the memory and transferring the read data to the host device without accessing, the access operation to the alternative area after the data read immediately before the defective sector, that is, the movement of the head, the head reaches the target area Therefore, it is possible to omit the same access operation from the alternate area to the area immediately after the defective sector from the disk rotation wait, and thus it is possible to shorten the execution time of the read command from the host to the area including the defective sector.

【0015】また本発明は、上記ディスク装置における
再配置データコピー処理手段が、ディスク装置の初期化
動作時に起動される構成としたことをも特徴とする。こ
のように、ディスク装置の初期化時、例えば電源投入時
とか、ホスト装置からのハードウェアリセット信号の入
力時に、再配置データをメモリ上のディフェクト保持領
域にコピーする(読み込む)ことにより、この動作がホ
スト装置からのコマンドと衝突することによるパフォー
マンスの低下を招くことなく、再配置データをディフェ
クト保持領域に保持することが可能となる。
The present invention is also characterized in that the rearrangement data copy processing means in the disk device is activated when the disk device is initialized. In this way, when the disk device is initialized, for example, when the power is turned on, or when a hardware reset signal is input from the host device, the relocation data is copied (read) to the defect holding area on the memory, thereby performing this operation. Can cause the relocation data to be held in the defect holding area without deteriorating performance due to collision with a command from the host device.

【0016】また本発明は、上記再配置データコピー処
理手段による再配置データのコピー処理にあっては、上
記代替領域に再配置されたデータの総量が上記ディフェ
クト保持領域の容量より大きい場合には、上記各欠陥セ
クタとその再配置先との物理的距離が大きい順に上記デ
ィフェクト保持領域が満杯になるまで対応する再配置デ
ータをコピーするようにしたことをも特徴とする。
Further, according to the present invention, in the copy processing of the relocation data by the relocation data copy processing means, when the total amount of data relocated to the replacement area is larger than the capacity of the defect holding area. The corresponding relocation data is copied in the descending order of the physical distance between each defective sector and its relocation destination until the defect holding area becomes full.

【0017】このように、多数の欠陥セクタが存在する
場合でも、代替領域へのヘッドの移動量が小さい欠陥セ
クタの再配置データを優先的にディフェクト保持領域に
へ辞することにより、パフォーマンスの低下を最小限に
抑えることができる。
As described above, even in the case where a large number of defective sectors are present, the relocation data of the defective sector having a small amount of movement of the head to the replacement area is preferentially transferred to the defect holding area, thereby deteriorating the performance. Can be minimized.

【0018】また本発明は、ディスク装置の初期化動作
以後の上記各欠陥セクタへのアクセス回数を管理するア
クセス回数管理手段を設け、ディフェクト保持領域が満
杯の状態において、当該ディフェクト保持領域に再配置
データがコピーされていない欠陥セクタの中に、当該デ
ィフェクト保持領域に再配置データがコピーされている
欠陥セクタよりアクセス回数が多い欠陥セクタがある場
合には、そのアクセス回数が少ない欠陥セクタの再配置
データに代えて、上記再配置データコピー処理手段が、
そのアクセス回数が多い欠陥セクタの再配置データをデ
ィフェクト保持領域にコピーするようにしたことをも特
徴とする。
Further, according to the present invention, access number management means for managing the number of accesses to each of the defective sectors after the initialization operation of the disk device is provided, and when the defect holding area is full, the data is relocated to the defect holding area. If there is a defective sector in which data has not been copied and a defective sector whose access frequency is larger than that of the defective sector whose relocation data has been copied in the defect holding area, the defective sector whose access frequency is low is relocated. Instead of the data, the relocation data copy processing means,
It is also characterized in that the relocation data of the defective sector having a large number of accesses is copied to the defect holding area.

【0019】このように、ディフェクト保持領域が満杯
の場合には、当該ディフェクト保持領域には、常にアク
セス回数が多い欠陥セクタの再配置データが保持される
ようにすることで、パフォーマンスの低下を最小限に抑
えることができる。
As described above, when the defect holding area is full, the defect holding area always holds the relocation data of the defective sector which is frequently accessed, thereby minimizing the deterioration in performance. Can be minimized.

【0020】また本発明は、新たな欠陥セクタが代替領
域に再配置される毎に、その再配置データを上記再配置
データコピー処理手段が上記ディフェクト保持領域にコ
ピーするようにしたことをも特徴とする。
The present invention is also characterized in that each time a new defective sector is relocated to the replacement area, the relocation data copy processing means copies the relocation data to the defect holding area. And

【0021】このように代替領域への再配置直後に、そ
の再配置データをディフェクト保持領域に読み込むこと
により、改めて代替領域をアクセスして再配置データを
読み込む動作が省略される上に、常に最新の再配置状況
をディフェクト保持領域に反映することができる。但
し、ディフェクト保持領域が満杯の場合には、この処理
が適用できない。
By immediately reading the relocation data into the defect holding area immediately after the relocation to the replacement area, the operation of accessing the replacement area and reading the relocation data is omitted, and the latest data is always read. Can be reflected in the defect holding area. However, when the defect holding area is full, this processing cannot be applied.

【0022】そこで本発明は、新たな欠陥セクタが上記
代替領域に再配置された際に、上記ディフェクト保持領
域が満杯の場合には、当該ディフェクト保持領域にコピ
ーされている再配置データのうち、一度もアクセスされ
たことのない再配置データがあれば、そのデータに代え
て、一度もアクセスされたことのない再配置データがな
ければ、最も以前にアクセスされた再配置データに代え
て、上記再配置データコピー処理手段が、新たな欠陥セ
クタの再配置データを当該ディフェクト保持領域にコピ
ーするようにしたことを特徴とする。
Therefore, according to the present invention, when a new defective sector is relocated to the replacement area, and the defect holding area is full, the relocation data copied to the defect holding area is If there is relocation data that has never been accessed, instead of that data, if there is no relocation data that has never been accessed, instead of the most recently accessed relocation data, The relocation data copy processing means copies relocation data of a new defective sector to the defect holding area.

【0023】このように、代替領域への再配置直後に、
その再配置データをディフェクト保持領域に読み込もう
としても、当該ディフェクト保持領域が満杯の場合に
は、当該ディフェクト保持領域に保持されている再配置
データの中で最も利用されそうもない再配置データを選
んで、新たに再配置されたデータと置き換えることで、
パフォーマンスの低下を最小限に抑えることができる。
As described above, immediately after the relocation to the alternative area,
Even if the relocation data is read into the defect holding area, if the defect holding area is full, the relocation data which is least likely to be used among the relocation data held in the defect holding area is read. By replacing it with the newly relocated data,
Performance degradation can be minimized.

【0024】[0024]

【発明の実施の形態】以下、本発明を磁気ディスク装置
に適用した実施の形態につき図面を参照して説明する。
図1は本発明の一実施形態に係る磁気ディスク装置の構
成を示すブロック図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a magnetic disk drive will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a magnetic disk drive according to one embodiment of the present invention.

【0025】図1において、10はデータが記録される
媒体であるディスク(磁気ディスク)、7はディスク1
0へのデータ書き込み(データ記録)及びディスク10
からのデータ読み出し(データ再生)に用いられるヘッ
ド(磁気ヘッド)である。このヘッド7は、ディスク1
0の各記録面に対応してそれぞれ設けられているものと
する。なおディスク10は、本実施形態では単一枚であ
るとするが、複数枚積層して設けられることもある。
In FIG. 1, reference numeral 10 denotes a disk (magnetic disk) as a medium on which data is recorded;
0 (data recording) and disk 10
This is a head (magnetic head) used for reading data from the memory (data reproduction). The head 7 is mounted on the disk 1
It is assumed that each of them is provided corresponding to each recording surface of No. 0. In this embodiment, the disk 10 is a single disk, but a plurality of disks 10 may be provided in a stacked manner.

【0026】ディスク10の両面には同心円状の多数の
トラックが形成され、各トラックには、位置決め制御等
に用いられる(シリンダ番号を示すシリンダコード、当
該シリンダコードの示すシリンダ内の位置誤差を波形の
振幅で示すためのバーストデータを含む)サーボデータ
が記録された複数のサーボエリアが等間隔で配置されて
いる。これらのサーボエリアは、ディスク10上では中
心から各トラックを渡って放射状に配置されている。サ
ーボエリア間はデータエリア(ユーザエリア)となって
おり、当該データエリアには複数のデータセクタが設定
される。
A large number of concentric tracks are formed on both surfaces of the disk 10. Each track is used for positioning control and the like (a cylinder code indicating a cylinder number, and a positional error in the cylinder indicated by the cylinder code is represented by a waveform. A plurality of servo areas in which servo data is recorded (including burst data for indicating the amplitude of the data) are arranged at equal intervals. These servo areas are radially arranged on the disk 10 from the center over each track. A data area (user area) is provided between the servo areas, and a plurality of data sectors are set in the data area.

【0027】ディスク10の記録面の所定の領域(シス
テム領域)には、当該記録面での欠陥セクタとその代替
先(再配置先)セクタ等を示す欠陥セクタ再配置情報
(以下、ディフェクトマップと称する)が保存されてい
る。
In a predetermined area (system area) of the recording surface of the disk 10, defective sector relocation information (hereinafter referred to as a defect map and a defective sector) indicating a defective sector on the recording surface and its replacement destination (relocation destination) sector and the like. Is stored.

【0028】ディスク10はスピンドルモータ(SP
M)11により高速に回転する。ヘッド7はキャリッジ
機構9と称するヘッド移動機構に取り付けられて、この
キャリッジ機構9の移動によりディスク10の半径方向
に移動する。キャリッジ機構9は、ボイスコイルモータ
(VCM)13により駆動される。
The disk 10 has a spindle motor (SP
M) 11 to rotate at high speed. The head 7 is attached to a head moving mechanism called a carriage mechanism 9, and moves in the radial direction of the disk 10 by the movement of the carriage mechanism 9. The carriage mechanism 9 is driven by a voice coil motor (VCM) 13.

【0029】SPM11は、当該SPM11に制御電流
を流して当該SPM11を駆動するためのSPMドライ
バ12に接続され、VCM13は、当該VCM13に制
御電流を流して当該VCM13を駆動するためのVCM
ドライバ14に接続されている。上記制御電流の値(制
御量)は、CPU(マイクロプロセッサ)3の計算処理
で決定される。
The SPM 11 is connected to an SPM driver 12 for supplying a control current to the SPM 11 to drive the SPM 11, and a VCM 13 for supplying a control current to the VCM 13 to drive the VCM 13.
It is connected to the driver 14. The value (control amount) of the control current is determined by calculation processing of the CPU (microprocessor) 3.

【0030】ヘッド7は例えばフレキシブルプリント配
線板(FPC)に実装されたヘッドアンプ回路8と接続
されている。ヘッドアンプ回路8は、ヘッド7の切り替
え、ヘッド7との間のリード/ライト信号の入出力等を
司るもので、ヘッド7で読み取られたアナログ出力を増
幅するヘッドアンプ(プリアンプ)、及びR/W回路6
から送られてくる書き込みデータに従いヘッド7にライ
ト信号(ライト電流)を出力するライトドライバ(いず
れも図示せず)を有している。
The head 7 is connected to a head amplifier circuit 8 mounted on, for example, a flexible printed circuit (FPC). The head amplifier circuit 8 is responsible for switching the head 7, inputting / outputting read / write signals to / from the head 7, etc., and a head amplifier (preamplifier) for amplifying an analog output read by the head 7; W circuit 6
A write driver (both not shown) for outputting a write signal (write current) to the head 7 in accordance with the write data sent from the printer.

【0031】R/W回路(リード/ライト回路)6は、
ヘッド7によりディスク10から読み取られてヘッドア
ンプ回路8(内のヘッドアンプ)により増幅されたアナ
ログ出力(ヘッド7のリード信号)を入力してデータ再
生動作に必要な信号処理を行うデコード機能(リードチ
ャネル)と、ディスク10へのデータ記録に必要な信号
処理を行うエンコード機能(ライトチャネル)と、ヘッ
ド位置決め制御等のサーボ処理に必要なサーボデータ中
のバーストデータを抽出する処理を行う信号処理機能と
を有する。
The R / W circuit (read / write circuit) 6
A decode function (read) for inputting an analog output (read signal of the head 7) read from the disk 10 by the head 7 and amplified by the head amplifier circuit 8 (internal head amplifier) and performing signal processing necessary for data reproduction operation Channel), an encoding function (write channel) for performing signal processing required for recording data on the disk 10, and a signal processing function for extracting burst data from servo data required for servo processing such as head positioning control. And

【0032】サーボ処理回路15は、R/W回路6で再
生されたデータを受けてサーボ処理に必要な信号処理を
実行する。即ちサーボ処理回路15は、R/W回路6で
再生されたデータからサーボエリアの期間だけ有効
(真)となる周知のタイミング信号であるサーボゲート
等のタイミング生成機能、サーボエリアに記録されてい
るサーボデータ中のシリンダコードを抽出・復号するデ
コード機能を有する。
The servo processing circuit 15 receives the data reproduced by the R / W circuit 6 and executes signal processing necessary for servo processing. In other words, the servo processing circuit 15 is a well-known timing signal that is valid (true) only during the servo area period from the data reproduced by the R / W circuit 6, and is recorded in the servo area such as a timing generation function such as a servo gate. It has a decoding function to extract and decode the cylinder code in the servo data.

【0033】GA(ゲートアレイ)5は、R/W回路6
及びサーボ処理回路15とHDC1及びCPU3との間
の情報の受け渡しを行う他、サーボ処理回路15で生成
されたサーボゲートのタイミングの監視、該当するサー
ボエリアに後続するデータエリアに配置されるデータセ
クタの位置情報をHDC1に通知するなどの機能を有す
る。
The GA (gate array) 5 includes an R / W circuit 6
In addition to transferring information between the servo processing circuit 15 and the HDC 1 and the CPU 3, monitoring the timing of the servo gate generated by the servo processing circuit 15, a data sector arranged in a data area subsequent to the corresponding servo area The HDC 1 has a function of notifying the HDC 1 of the position information.

【0034】CPU3は、例えばワンチップのマイクロ
プロセッサである。このCPU3は、ROM4に格納さ
れている制御プログラムに従って磁気ディスク装置内の
各部を制御する。即ちCPU3は、サーボ処理回路15
により抽出されたサーボデータ中のシリンダコード及び
R/W回路6により抽出されたサーボデータ中のバース
トデータに従ってVCMドライバ14を駆動制御するこ
とでヘッド7を目標シリンダ(トラック)位置に移動さ
せるためのシーク・位置決め制御、HDC1を制御する
ことによるリード/ライトデータの転送制御などの制御
を行う。
The CPU 3 is, for example, a one-chip microprocessor. The CPU 3 controls each unit in the magnetic disk device according to a control program stored in the ROM 4. That is, the CPU 3 controls the servo processing circuit 15
The head 7 is moved to a target cylinder (track) position by controlling the drive of the VCM driver 14 in accordance with the cylinder code in the servo data extracted by the above and the burst data in the servo data extracted by the R / W circuit 6. Control such as seek / positioning control and transfer control of read / write data by controlling the HDC 1 is performed.

【0035】CPU3には、磁気ディスク装置全体を制
御するための制御プログラム(ファームウェア)等が格
納されているROM(Read Only Memory)4と、HDC
(ディスクコントローラ)1とが接続されている。
The CPU 3 includes a ROM (Read Only Memory) 4 for storing a control program (firmware) for controlling the entire magnetic disk drive, and an HDC.
(Disk controller) 1 is connected.

【0036】HDC1は、ホストインタフェースの規格
に従ってホスト装置との間のコマンド、データの通信を
制御するホストインタフェース機能と、バッファ2の管
理を行うバッファ管理制御機能と、R/W回路6、ヘッ
ドアンプ回路8を介して行われるディスク10を対象と
するリードとライトのタイミングを制御するディスク制
御機能を有する。
The HDC 1 has a host interface function for controlling communication of commands and data with the host device in accordance with the host interface standard, a buffer management control function for managing the buffer 2, an R / W circuit 6, a head amplifier, It has a disk control function for controlling the timing of read and write operations on the disk 10 performed via the circuit 8.

【0037】バッファ2は高速メモリ、例えばRAM構
成のバッファメモリである。バッファ2には、図2に示
すように、バッファ領域21、ディフェクトマップ領域
22、及びディフェクト保持領域23の各領域が確保さ
れている。
The buffer 2 is a high-speed memory, for example, a buffer memory having a RAM configuration. As shown in FIG. 2, each area of the buffer area 21, the defect map area 22, and the defect holding area 23 is secured in the buffer 2.

【0038】バッファ領域21は、ディスク10から読
み出したデータ、及びホスト装置から転送されたディス
ク10への書き込みデータを一時格納するのに用いられ
るキャッシュ領域を提供する。
The buffer area 21 provides a cache area used for temporarily storing data read from the disk 10 and write data to the disk 10 transferred from the host device.

【0039】ディフェクトマップ領域22は、当該記録
面での欠陥セクタとその代替先(再配置先)セクタ等を
示すディフェクトマップを格納するための領域であり、
ディスク10の各記録面(ヘッド)毎に、欠陥セクタが
存在するシリンダを示すシリンダ情報と、そのシリンダ
上の欠陥セクタの情報の格納先へのポインタ情報を登録
するシリンダ情報領域221と、シリンダ情報領域22
1内のシリンダ情報で示されるシリンダ上の欠陥セクタ
に関する情報を登録するセクタ情報領域222とからな
る。
The defect map area 22 is an area for storing a defect map indicating a defective sector on the recording surface and a replacement destination (relocation destination) sector thereof, and the like.
For each recording surface (head) of the disk 10, cylinder information indicating a cylinder in which a defective sector exists, a cylinder information area 221 for registering pointer information to a storage location of information of the defective sector on the cylinder, and cylinder information Region 22
1 includes a sector information area 222 for registering information on defective sectors on cylinders indicated by the cylinder information in 1.

【0040】セクタ情報領域222には、各欠陥セクタ
毎に、その欠陥セクタ(代替元セクタ)の情報222a
と、その欠陥セクタの代替先セクタ(再配置セクタ)の
情報222bと、その欠陥セクタのディフェクトの種別
222cに加えて、その欠陥セクタ(の代替先セクタ)
へのアクセス回数222dと、コピーフラグ222eの
各情報が登録される。このコピーフラグ222eは、再
配置先のデータがバッファ2内の後述するディフェクト
保持領域23(内の再配置データコピー領域232)に
コピーされているか否かを示す。
The sector information area 222 contains, for each defective sector, information 222a of the defective sector (alternative source sector).
In addition to the information 222b of the replacement destination sector (relocated sector) of the defective sector and the defect type 222c of the defective sector, (the replacement destination sector of the defective sector)
The information on the number of times 222d of access to and the copy flag 222e is registered. The copy flag 222e indicates whether or not the data of the relocation destination has been copied to the defect holding area 23 (the relocation data copy area 232 therein) of the buffer 2 to be described later.

【0041】ディフェクトマップ領域22に格納される
ディフェクトマップは、磁気ディスク装置の初期化動作
時(例えば装置の電源投入時や、ホスト装置からのハー
ドウェアリセット信号の入力時)に、ディスク10のシ
ステム領域から読み出されるものである。但し、各欠陥
セクタ毎のセクタ情報中の、上記アクセス回数222d
及びコピーフラグ222eは、ディフェクトマップ領域
22に固有のもので、ディスク10のシステム領域から
読み出されたディフェクトマップ中の各欠陥セクタ毎の
セクタ情報に付加されるものである。
The defect map stored in the defect map area 22 is used when the magnetic disk drive is initialized (for example, when the power of the drive is turned on or when a hardware reset signal is input from the host device). It is read from the area. However, the number of accesses 222d in the sector information for each defective sector
The copy flag 222e is unique to the defect map area 22, and is added to sector information for each defective sector in the defect map read from the system area of the disk 10.

【0042】ディフェクトマップ領域22内のディフェ
クトマップは、ホスト装置からディスクアクセスが要求
された場合に、要求されたアクセス範囲に欠陥セクタが
含まれているか否かの判断と、含まれている場合には、
その欠陥セクタの位置の検出と、対応する再配置セクタ
のデータがディフェクト保持領域23(内の再配置デー
タコピー領域232)にコピーされているか否かの判断
等に用いられる。
The defect map in the defect map area 22 is used to determine whether a defective sector is included in the requested access range when a disk access is requested from the host device, and to determine whether a defective sector is included in the requested access range. Is
It is used for detecting the position of the defective sector and determining whether or not the data of the corresponding relocated sector has been copied to the defect holding area 23 (the relocated data copy area 232 therein).

【0043】また、新たに欠陥セクタが検出されて、代
替セクタへの再配置処理がなされた場合には、その欠陥
セクタに関する情報のディフェクトマップへの登録、即
ちディフェクトマップの更新は、バッファ2内のディフ
ェクトマップ領域22とディスク10のシステム領域の
両方に対して行われる。
When a new defective sector is detected and relocation processing to a replacement sector is performed, information on the defective sector is registered in the defect map, that is, the defect map is updated in the buffer 2. Is performed for both the defect map area 22 and the system area of the disk 10.

【0044】次にディフェクト保持領域23は、テーブ
ル領域231、及び再配置データコピー領域232から
なる。再配置データコピー領域232は、1セクタ分の
サイズ(例えば512バイト)を単位に分割して使用さ
れ、その1セクタ分の分割領域に、ディスク10上の欠
陥セクタの再配置先のデータ、即ち再配置セクタ(代替
先セクタ)のデータがコピーされる。テーブル領域23
1は、再配置データコピー領域232内のいずれの位置
(分割領域)に、いずれの再配置セクタのデータがコピ
ー(格納)されているかを示す、コピー先の位置情報
と、再配置セクタを示す再配置セクタ情報とからなるテ
ーブル情報を、各再配置セクタ毎に登録するのに用いら
れる。ここで再配置セクタ情報は、再配置セクタのセク
タ番号と、再配置セクタが存在するシリンダ及びヘッド
を示す情報からなる。
Next, the defect holding area 23 includes a table area 231 and a relocation data copy area 232. The relocation data copy area 232 is used by dividing the size of one sector (for example, 512 bytes) into units, and the data of the relocation destination of the defective sector on the disk 10 in the one sector division area, that is, The data of the relocation sector (alternative destination sector) is copied. Table area 23
Reference numeral 1 denotes a copy destination position information indicating which position (divided region) in the relocation data copy area 232 is copied (stored) in which relocation sector, and indicates a relocation sector. It is used to register table information including relocation sector information for each relocation sector. Here, the relocation sector information includes a sector number of the relocation sector and information indicating a cylinder and a head where the relocation sector exists.

【0045】次に、図1の構成の磁気ディスク装置の動
作を説明する。 (A)再配置セクタデータコピー処理 まず、ディスク10上の代替領域に保存されている再配
置セクタのデータをバッファ2上に確保されたディフェ
クト保持領域23にコピーする再配置セクタデータコピ
ー処理を例に、図3を参照して説明する。
Next, the operation of the magnetic disk drive having the configuration shown in FIG. 1 will be described. (A) Relocated Sector Data Copy Process First, a relocated sector data copy process for copying data of a relocated sector stored in an alternative area on the disk 10 to a defect holding area 23 secured on the buffer 2 is described as an example. Next, a description will be given with reference to FIG.

【0046】今、ディスク10上の通常の記録領域のあ
るシリンダ上のセクタ#3が欠陥セクタであり、その欠
陥セクタ#3がディスク10に予め用意されている代替
領域内の1つの代替セクタ(再配置セクタ)に再配置さ
れているものとする。
Now, the sector # 3 on the cylinder where the normal recording area on the disk 10 is located is a defective sector, and the defective sector # 3 is one of the alternative sectors ( (Relocated sector).

【0047】このような状態で、装置の電源が投入され
るか、或いはホスト装置からのハードウェアリセット信
号が入力されると、CPU3は磁気ディスク装置内の各
部を初期化する初期化動作を開始する。この初期化動作
においてCPU3は、ディスク10上のシステム領域に
保存されているディフェクトマップを読み出してバッフ
ァ2のディフェクトマップ領域22に格納するディフェ
クトマップコピー処理を、HDC1を制御することで実
行する。このとき、ディフェクトマップ領域22に格納
されるディフェクトマップ中の各欠陥セクタ毎のセクタ
情報には、アクセス回数0を示すアクセス回数222d
及び未コピーを示すコピーフラグ222eの両情報が付
加される。
In this state, when the power of the apparatus is turned on or a hardware reset signal is input from the host apparatus, the CPU 3 starts an initializing operation for initializing each unit in the magnetic disk apparatus. I do. In this initialization operation, the CPU 3 reads out the defect map stored in the system area on the disk 10 and stores the defect map in the defect map area 22 of the buffer 2 by controlling the HDC 1. At this time, the sector information for each defective sector in the defect map stored in the defect map area 22 includes an access frequency 222d indicating the access frequency 0d.
And a copy flag 222e indicating non-copy.

【0048】また、上記の電源投入時、或いはハードウ
ェアリセット信号入力時には、即ち磁気ディスク装置の
初期化動作時には、CPU3は、ディスク10上の代替
領域に保存されている再配置セクタのデータを、バッフ
ァ2のディフェクト保持領域23内に確保されている再
配置データコピー領域232にセクタ単位でコピーする
処理をHDC1を制御して行う。同時にCPU3は、コ
ピーした再配置セクタの情報とコピー先の位置情報から
なるテーブル情報を、各再配置セクタ毎にテーブル領域
231に登録する処理を行う。更にCPU3は、ディフ
ェクトマップ領域22に格納されているディフェクトマ
ップ中の各欠陥セクタ毎のセクタ情報のうち、コピーし
た再配置セクタに対応する欠陥セクタに関するセクタ情
報に付加されているコピーフラグ222eをコピー済み
を示す状態に設定する。
When the power is turned on or when a hardware reset signal is input, that is, during the initialization operation of the magnetic disk drive, the CPU 3 transfers the data of the relocated sector stored in the substitute area on the disk 10 to the The HDC 1 controls the HDC 1 to perform a process of copying data to the relocation data copy area 232 secured in the defect holding area 23 of the buffer 2 in sector units. At the same time, the CPU 3 performs a process of registering, in the table area 231 for each relocated sector, table information including the information of the copied relocated sector and the location information of the copy destination. Further, the CPU 3 copies the copy flag 222e added to the sector information on the defective sector corresponding to the copied relocated sector among the sector information for each defective sector in the defect map stored in the defect map area 22. Set to a status indicating that

【0049】ここでディフェクトマップの示す全再配置
セクタのデータの総量が再配置データコピー領域232
の容量より大きい場合には、後述する方法で最適なコピ
ー対象再配置セクタを選択する。
Here, the total amount of data of all relocation sectors indicated by the defect map is the relocation data copy area 232.
If the capacity is larger than the capacity, the optimum copy target relocation sector is selected by a method described later.

【0050】さて本実施形態では、上記のコピー処理
は、新たに欠陥セクタであることが検出されて、代替セ
クタへの再配置が行われた直後にも行われる。即ちCP
U3は、再配置が行われた代替セクタ、即ち再配置セク
タのデータを再配置データコピー領域232内の空き領
域にコピーすると共に、コピーした再配置セクタの情報
とコピー先の位置情報からなるテーブル情報をテーブル
領域231に登録する処理を、HDC1を制御すること
で実行する。
In the present embodiment, the above-described copy processing is also performed immediately after the detection of a new defective sector and the relocation to the replacement sector is performed. That is, CP
U3 copies the data of the relocated replacement sector, that is, the relocated sector to a free area in the relocated data copy area 232, and stores a table including information on the copied relocated sector and location information of the copy destination. The process of registering information in the table area 231 is executed by controlling the HDC1.

【0051】このようにして、バッファ領域21のディ
フェクト保持領域23内に確保された再配置データコピ
ー領域232のある1セクタ分の領域には、ディスク1
0上の上記セクタ#3の再配置セクタのデータがコピー
され、その再配置セクタとコピー先を示すテーブル情報
がテーブル領域231に格納されているものとする。
In this manner, the area for one sector in the relocation data copy area 232 secured in the defect holding area 23 of the buffer area 21 is
It is assumed that the data of the relocated sector of the sector # 3 on 0 is copied, and table information indicating the relocated sector and the copy destination is stored in the table area 231.

【0052】(B)リードコマンド受信時動作 次に、ホスト装置から、再配置された欠陥セクタを含む
領域に対するリードコマンドが発行された場合の動作
を、(b1)HDCへの飛ばし読みセクタの設定、及び
(b2)リード動作に分けて、図4のフローチャートを
適宜参照しながら説明する。
(B) Operation at Read Command Reception Next, the operation when a read command is issued from the host device to the area including the relocated defective sector is described as (b1) Skip reading sector setting to HDC. , And (b2) the read operation will be described with reference to the flowchart of FIG.

【0053】(b1)HDCへの飛ばし読みセクタの設
定 まず、再配置された欠陥セクタを含む領域に対するリー
ドコマンドを受信した場合に行われる、HDC1への飛
ばし読みセクタの設定動作について説明する。
(B1) Setting of skipped read sectors to HDC First, the operation of setting skipped read sectors to HDC1, which is performed when a read command for an area including a relocated defective sector is received, will be described.

【0054】今、ホスト装置から、図3に示したような
再配置された欠陥セクタ#3を含む領域に対するリード
コマンドが図1の磁気ディスク装置に対して発行され、
そのリードコマンドを磁気ディスク装置内のHDC1が
受信したものとする(ステップS1)。
Now, a read command for the area including the relocated defective sector # 3 as shown in FIG. 3 is issued from the host device to the magnetic disk device of FIG.
Assume that the read command is received by the HDC 1 in the magnetic disk device (step S1).

【0055】CPU3は、HDC1により受信されたリ
ードコマンドを受け取ると、バッファ2のディフェクト
マップ領域22に格納されているディフェクトマップを
もとに、当該リードコマンドの指定する読み出し対象領
域内に代替領域に再配置された欠陥セクタが含まれてい
るか否かを判断し、含まれているならば、その欠陥セク
タの代替先セクタのデータ(再配置セクタデータ)がデ
ィフェクト保持領域23にコピーされているか否かを判
断する。ここでは、読み出し対象領域内に欠陥セクタ#
3が含まれており、しかも当該欠陥セクタ#3の再配置
セクタのデータがディフェクト保持領域23(内の再配
置データコピー領域232)にコピーされていると認識
する。同時にCPU3は、ディフェクトマップ領域22
に格納されているディフェクトマップ中の欠陥セクタ#
3に関するセクタ情報に付加されているアクセス回数2
22dを1インクリメントする。
When the CPU 3 receives the read command received by the HDC 1, based on the defect map stored in the defect map area 22 of the buffer 2, the CPU 3 sets the replacement area in the read target area specified by the read command. It is determined whether or not the relocated defective sector is included, and if so, whether or not the data (relocated sector data) of the replacement destination sector of the defective sector has been copied to the defect holding area 23. Judge. Here, the defective sector # is included in the read target area.
No. 3 is included, and the data of the relocated sector of the defective sector # 3 is recognized as being copied to the defect holding area 23 (the relocated data copy area 232 therein). At the same time, the CPU 3
Sector # in the defect map stored in the
Number of accesses 2 added to sector information related to 3
22d is incremented by one.

【0056】さてCPU3は、読み出し対象領域内に欠
陥セクタ#3が含まれており、且つ当該欠陥セクタ#3
の再配置セクタのデータがディフェクト保持領域23に
コピーされていると判断した場合、HDC1に対して、
当該欠陥セクタ#3を、図5に示すように、飛ばし読み
の対象セクタとして設定すると共に、飛ばし読みした段
階でホスト装置へのデータ転送を一時中断するように設
定する。またCPU3は、ディフェクト保持領域23内
のテーブル領域231を参照して、再配置セクタ#3の
データがコピーされている再配置データコピー領域23
2内の先頭位置を特定しておく。
The CPU 3 determines that the read target area includes the defective sector # 3, and the defective sector # 3
Is determined to have been copied to the defect holding area 23, the HDC 1
As shown in FIG. 5, the defective sector # 3 is set as a skip-read target sector, and the data transfer to the host device is temporarily stopped at the skip-read stage. Further, the CPU 3 refers to the table area 231 in the defect holding area 23, and refers to the relocation data copy area 23 in which the data of the relocation sector # 3 has been copied.
2 is specified in advance.

【0057】(b2)リード動作 次に、上記(b1)の設定動作に続くリード動作につい
て上記図4のフローチャートの他に図5乃至図9を参照
して説明する。なお、図9は、従来の技術の説明で参照
した図13と同様のヘッド移動経路を示すものである。
(B2) Read Operation Next, the read operation following the setting operation of (b1) will be described with reference to FIGS. 5 to 9 in addition to the flowchart of FIG. FIG. 9 shows the same head movement path as FIG. 13 referred to in the description of the conventional technique.

【0058】まずCPU3は、ホスト装置からのリード
コマンドの実行の前処理として上記(b1)の設定動作
を行うと、リードコマンドの指定するリード動作を次の
手順で開始する(ステップS2)。ここでのリード動作
は、ディスク10上の指定された領域のデータを読み出
すディスク読み出し動作と、ディスク10から読み出し
たデータをホスト装置に転送するホスト転送動作とから
なる。
First, when the CPU 3 performs the setting operation (b1) as a pre-process before the execution of the read command from the host device, the CPU 3 starts the read operation specified by the read command in the following procedure (step S2). Here, the read operation includes a disk read operation for reading data in a designated area on the disk 10 and a host transfer operation for transferring data read from the disk 10 to a host device.

【0059】まずCPU3は、ヘッド7を、現在位置か
ら、リードコマンドで指定された図9に示すディスク1
0上の読み出し指定範囲(読み出し対象領域)90が存
在するトラックへ移動する(経路a1)。この読み出し
指定範囲90には、先に飛ばし読みが設定された欠陥セ
クタ#3である欠陥セクタ91が含まれているものとす
る。
First, the CPU 3 moves the head 7 from the current position to the disk 1 shown in FIG.
Move to the track where the read designated range (read target area) 90 on 0 exists (path a1). It is assumed that the read designated range 90 includes a defective sector 91 which is a defective sector # 3 to which skip reading has been set earlier.

【0060】読み出し指定範囲90が存在するトラック
へヘッド7を位置決めできると、HDC1は、当該読み
出し指定範囲90の先頭セクタ位置が来るまで、ディス
ク10の回転待ちをする(経路a2)。
When the head 7 can be positioned on the track where the designated read range 90 exists, the HDC 1 waits for the rotation of the disk 10 until the head sector position of the designated read range 90 comes (path a2).

【0061】次にHDC1は、欠陥セクタ91(#3)
の直前まで、セクタ単位でディスク10からのデータ読
み出しを行い(経路a3)、その読み出したデータをセ
クタ単位でバッファ2のバッファ領域21に格納しなが
ら、当該バッファ領域21に格納したデータをホスト装
置に転送する。この様子を図6に示す。ここでは、セク
タ#1,#2の2セクタからのディスク読み出しが行わ
れて、そのリードデータがホスト装置に転送される例が
示されている。
Next, the HDC 1 has a defective sector 91 (# 3).
Until immediately before, data is read from the disk 10 in sector units (path a3), and the data stored in the buffer area 21 is stored in the buffer area 21 of the buffer 2 while the read data is stored in the buffer area 21 of the buffer 2 in sector units. Transfer to This is shown in FIG. Here, an example is shown in which the disk is read from two sectors # 1 and # 2, and the read data is transferred to the host device.

【0062】HDC1は、欠陥セクタ91(#3)の直
前のセクタ(#2)のデータをホスト装置に転送した時
点で、先のCPU3からの設定に従って図7に示すよう
にホスト転送のみを中断する。
When the HDC 1 transfers the data of the sector (# 2) immediately before the defective sector 91 (# 3) to the host device, only the host transfer is interrupted as shown in FIG. I do.

【0063】このように、リード動作が開始(ステップ
S2)され、欠陥セクタ91(#3)の直前までセクタ
単位でデータをホスト装置に転送したところで、ホスト
転送が一旦中断される(ステップS3)。本実施形態に
おいて、HDC1でのディスク読み出しは、同じHDC
1でのホスト転送とは独立して動作している。このた
め、ホスト転送の中断の間に、欠陥セクタ91(#3)
の飛ばし読みが行われ(経路a4)、バッファ領域21
には欠陥セクタ91(#3)の直後のセクタ(#4)の
データが読み出されることになる。
As described above, the read operation is started (step S2), and when the data is transferred to the host device in sector units until immediately before the defective sector 91 (# 3), the host transfer is temporarily suspended (step S3). . In the present embodiment, the disk reading by the HDC 1
1 operates independently of the host transfer. Therefore, during the interruption of the host transfer, the defective sector 91 (# 3)
Is skipped (path a4), and the buffer area 21 is read.
Reads the data of the sector (# 4) immediately after the defective sector 91 (# 3).

【0064】CPU3は、欠陥セクタ91(#3)の直
前のセクタ(#2)のデータがホスト装置に転送された
時点で、ホスト装置への転送元を、ディフェクト保持領
域23の再配置データコピー領域232にコピーされて
いる欠陥セクタ91(#3)の再配置データの先頭位
置、即ち先に特定しておいた位置に切り替え、その再配
置データコピー領域232からの1セクタ分の再配置デ
ータ(再配置セクタデータ)のホスト転送後に、ホスト
転送を中断するようにHDC1に設定する。
When the data of the sector (# 2) immediately before the defective sector 91 (# 3) is transferred to the host device, the CPU 3 sets the transfer source to the host device to the relocation data copy of the defect holding area 23. The relocation data of the defective sector 91 (# 3) copied to the area 232 is switched to the head position, that is, the previously specified position, and the relocation data for one sector from the relocation data copy area 232 is switched. After the host transfer of (relocated sector data), the HDC 1 is set so as to interrupt the host transfer.

【0065】これによりHDC1は、図7に示すよう
に、再配置データコピー領域232にコピーされていた
欠陥セクタ91(#3)の再配置データをホスト装置へ
転送し(ステップS4)、しかる後にホスト転送を中断
する(経路a5)。これと並行してHDC1では、図7
に示すように、欠陥セクタ91(#3)の直後のセクタ
(#4…)のデータがバッファ領域21に読み出される
(経路a6)。
As a result, the HDC 1 transfers the relocation data of the defective sector 91 (# 3) copied to the relocation data copy area 232 to the host device as shown in FIG. 7 (step S4). The host transfer is interrupted (path a5). In parallel with this, in HDC1, FIG.
As shown in (1), the data of the sector (# 4...) Immediately after the defective sector 91 (# 3) is read into the buffer area 21 (path a6).

【0066】次にHDC1は、再配置セクタデータをホ
スト装置に転送した時点で、先のCPU3からの設定に
従って、ホスト転送を中断する。するとCPU3は、ホ
スト装置への転送元を、欠陥セクタ91(#3)の直後
のセクタ(#4)の位置とするようにHDC1に設定
し、HDC1によるホスト転送を再開させる。
Next, when the HDC 1 transfers the relocated sector data to the host device, the HDC 1 interrupts the host transfer according to the setting from the CPU 3. Then, the CPU 3 sets the HDC1 so that the transfer source to the host device is the position of the sector (# 4) immediately after the defective sector 91 (# 3), and restarts the host transfer by the HDC1.

【0067】先に述べたように、HDC1ではホスト転
送とディスク読み出しとが独立して動作するため、バッ
ファ領域21には、当該バッファ領域21からのホスト
転送の中断の間に、欠陥セクタ91(#3)の直後のセ
クタ(#4…)のデータが読み出されている。したがっ
て、CPU3からのホスト転送再開指示により、既にバ
ッファ領域21に読み出されている欠陥セクタ91(#
3)の直後のセクタ(#4…)から、図8に示すように
ホスト装置への転送を再開する(ステップS5)(経路
a7)。
As described above, in the HDC 1, the host transfer and the disk read operate independently, so that the buffer area 21 stores the defective sector 91 () during the interruption of the host transfer from the buffer area 21. The data of the sector (# 4 ...) immediately after # 3) has been read. Therefore, in response to the host transfer restart instruction from the CPU 3, the defective sector 91 (#
From the sector (# 4...) Immediately after 3), the transfer to the host device is resumed as shown in FIG. 8 (step S5) (path a7).

【0068】その後、HDC1は、読み出し指定範囲9
0の最終セクタまでディスク読み出し並びに読み出した
セクタデータのホスト転送を行う(経路a8)。そして
最終セクタのデータがホスト装置に転送された段階で一
連のリード動作は終了となる。
Thereafter, the HDC 1 sets the read designation range 9
The disk is read up to the last sector of 0 and host transfer of the read sector data is performed (path a8). Then, when the data of the last sector is transferred to the host device, a series of read operations is completed.

【0069】以上に述べた上記(b2)のリード動作に
よれば、図9と図13とを比較すれば明らかなように、
ヘッドの移動距離が大幅に短縮されている。周知のよう
に、ディスクアクセス動作に要する時間のうちで高い比
率を占めるのは、目標トラックへヘッドを移動させる動
作(シーク動作)と、磁気ヘッドが目標セクタの存在す
る位置に来るまで待つディスクの回転待ち時間である。
According to the above-described read operation (b2), as is apparent from a comparison between FIG. 9 and FIG.
The moving distance of the head has been greatly reduced. As is well known, a large proportion of the time required for the disk access operation is occupied by the operation of moving the head to the target track (seek operation) and the disk which waits until the magnetic head comes to the position where the target sector exists. This is the rotation waiting time.

【0070】従来技術では、図13に示されているよう
に、再配置セクタデータをアクセスする場合には、欠陥
セクタのない場合に比べて2回多いシーク動作と2回多
い回転待ち動作が発生するため、多くの余分な時間を必
要としていた。
In the prior art, as shown in FIG. 13, when the relocated sector data is accessed, two more seek operations and two more rotation wait operations occur as compared with the case where there is no defective sector. You needed a lot of extra time to do so.

【0071】これに対して本実施形態では、代替領域に
再配置されたデータを予めバッファ領域21内のディフ
ェクト保持領域23にコピーして保持し、ホスト装置か
らの欠陥セクタを含むディスク領域を対象とするリード
コマンドに対して代替領域をアクセスすることなく、デ
ィフェクト保持領域23に保持されている再配置データ
を読み込んでホスト装置に転送することにより、欠陥セ
クタ直前のデータ読み出し後の代替領域に対するアクセ
ス動作、即ちヘッドの移動、ヘッドが目標領域に達する
までのディスク回転待ちと代替領域から欠陥セクタ直後
までの同様なアクセス動作を省略することができるた
め、図9に示されているように、これらの余分な時間を
ほぼ0にすることができる。
On the other hand, in the present embodiment, the data relocated to the replacement area is copied and held in the defect holding area 23 in the buffer area 21 in advance, and the disk area including the defective sector from the host apparatus is targeted. By reading the relocation data held in the defect holding area 23 and transferring the read data to the host device without accessing the alternative area in response to the read command, the access to the alternative area after the data read immediately before the defective sector is performed. Since the operations, that is, the movement of the head, the disk rotation waiting until the head reaches the target area, and the similar access operation from the replacement area to immediately after the defective sector can be omitted, as shown in FIG. Can be reduced to almost zero.

【0072】これは、大別して以下の3つの理由によ
る。 (1)ディスクアクセス(ディスク読み出し)とホスト
転送は独立に並行して行われる。
This is roughly based on the following three reasons. (1) Disk access (disk read) and host transfer are performed independently and in parallel.

【0073】(2)ホスト転送位置変更動作、転送中断
/再開動作に要する時間は、ディスクアクセス動作に比
較して十分短い。 (3)たとえ上記(2)の動作に多くの時間が必要であ
ったとしても、ホスト転送の方がディスクアクセスより
高速な場合、一旦遅れたホスト転送がディスクアクセス
に追いつく形となり、遅延時間がキャンセルされる。
(2) The time required for the host transfer position change operation and the transfer suspend / restart operation is sufficiently shorter than the disk access operation. (3) Even if a long time is required for the operation (2), if the host transfer is faster than the disk access, the host transfer that is once delayed catches up with the disk access, and the delay time becomes longer. Canceled.

【0074】以上のことから、本実施例においては、欠
陥セクタを含むディスク領域に対するリードアクセス動
作の実行時間を大幅に短縮できる。 (C)コピー対象再配置セクタの選択 次に、コピー対象再配置セクタの選択処理について、図
10のフローチャートを参照して説明する。
As described above, in this embodiment, the execution time of the read access operation to the disk area including the defective sector can be greatly reduced. (C) Selection of Copy Target Relocation Sector Next, the process of selecting the copy target relocation sector will be described with reference to the flowchart of FIG.

【0075】本実施形態では、電源投入時、或いはハー
ドウェアリセット信号入力時等の初期化動作時におい
て、ディスク10上の代替領域に保存されている再配置
セクタのデータをバッファ領域21内の再配置データコ
ピー領域232にコピーする動作が自動的に行われる。
このとき、ディフェクトマップの示すディスク10上の
全ての再配置セクタのデータの総量が再配置データコピ
ー領域232の容量より大きい場合には、コピー対象再
配置セクタを選択する必要がある。
In the present embodiment, when the power is turned on or when an initialization operation such as input of a hardware reset signal is performed, the data of the relocated sector stored in the alternate area on the disk 10 is rewritten in the buffer area 21. The operation of copying to the arrangement data copy area 232 is automatically performed.
At this time, if the total amount of data of all the relocation sectors on the disk 10 indicated by the defect map is larger than the capacity of the relocation data copy area 232, it is necessary to select the relocation sector to be copied.

【0076】そのためCPU3は、装置の初期化動作時
には、ディフェクトマップの示す全再配置セクタのデー
タの総量が再配置データコピー領域232の容量より大
きいか否かを調べ(ステップS11)、大きい場合に
は、欠陥セクタ(のあるトラック)から再配置セクタ
(のあるトラック)までのトラック数の多い順、即ち物
理的距離(再配置セクタへのシーク時のヘッド移動量)
が大きい順に、対応する再配置セクタをコピー対象とし
て選択し(ステップS12)、その選択した再配置セク
タのデータを、再配置データコピー領域232にコピー
する処理(ステップS13)を、当該再配置データコピ
ー領域232が一杯になるまで繰り返す(ステップS1
4)。この選択手法を適用するのは、欠陥セクタから再
配置セクタ(代替先セクタ)までの磁気ヘッドの移動距
離(シーク距離)が長い再配置セクタのデータを再配置
データコピー領域232にコピーする方が、対応する欠
陥セクタを含むディスク領域を対象とするリードコマン
ドの実行時間短縮の効果が大きいためである。
For this reason, at the time of initialization of the apparatus, the CPU 3 checks whether or not the total amount of data of all relocation sectors indicated by the defect map is larger than the capacity of the relocation data copy area 232 (step S11). Is the descending order of the number of tracks from a defective sector (with a certain track) to a relocated sector (with a certain track), that is, the physical distance (the amount of head movement when seeking to the relocated sector).
The corresponding relocated sector is selected as a copy target in the descending order (step S12), and the process of copying the data of the selected relocated sector to the relocated data copy area 232 (step S13) is performed in the relocated data. Repeat until the copy area 232 is full (step S1
4). This selection method is applied to a case where data of a relocated sector having a long moving distance (seek distance) of a magnetic head from a defective sector to a relocated sector (alternate destination sector) is copied to the relocated data copy area 232. This is because the effect of shortening the execution time of the read command for the disk area including the corresponding defective sector is great.

【0077】さて、再配置データコピー領域232にデ
ータがコピーされていない再配置セクタ、即ち未コピー
の再配置セクタ(に対応する欠陥セクタ)の中に、アク
セス頻度が高いものがある場合、その再配置セクタのデ
ータを再配置データコピー領域232にコピーした方
が、再配置データコピー領域232を利用した欠陥セク
タを含むディスク領域からのリード動作の実行時間の短
縮の効果が大きい。
If there is a relocated sector in which data has not been copied to the relocated data copy area 232, that is, an uncopied relocated sector (defective sector corresponding to), the access frequency is high. Copying the data of the relocated sector to the relocated data copy area 232 has a greater effect of reducing the execution time of the read operation from the disk area including the defective sector using the relocated data copy area 232.

【0078】そこで本実施形態では、図11のフローチ
ャートに示すように再配置データの置き換え(入れ替
え)を行うようにしている。まずCPU3は、欠陥セク
タ(を含む領域)へのアクセスが発生した場合、アクセ
ス対象となる欠陥セクタの再配置セクタのデータが未コ
ピーであるか否かをチェックし(ステップS21)、未
コピーである場合には、CPU3は、ディフェクトマッ
プ領域22に格納されているディフェクトマップから、
アクセス対象欠陥セクタのアクセス回数(222d)を
読み込む(ステップS22)。
Therefore, in this embodiment, replacement (replacement) of relocation data is performed as shown in the flowchart of FIG. First, when an access is made to the defective sector (including the area), the CPU 3 checks whether or not the data of the relocated sector of the defective sector to be accessed is uncopied (step S21). In some cases, the CPU 3 determines from the defect map stored in the defect map area 22
The access count (222d) of the defective sector to be accessed is read (step S22).

【0079】次にCPU3は、上記ディフェクトマップ
から、(コピーフラグ222eで示される)コピー済み
の再配置セクタに対応する欠陥セクタの中に、ステップ
S22で読み込んだアクセス回数よりもアクセス回数が
少ないものがあるか否かをチェックする(ステップS2
3)。もし、アクセス回数が少ない欠陥セクタがあるな
らば、その欠陥セクタのコピー済み再配置データに代え
て、アクセス対象欠陥セクタの再配置データを再配置デ
ータコピー領域232にコピーする(ステップS2
4)。即ち再配置データコピー領域232にコピーする
再配置セクタを、各再配置セクタのアクセス回数に基づ
いて動的に入れ替える。この動作は、アクセス対象欠陥
セクタの再配置データをバッファ2のバッファ領域21
に読み込んだ際に行うと、再配置セクタからの再読み出
しが不要なため効率的である。
Next, the CPU 3 determines, from the defect map, one of the defective sectors corresponding to the copied relocated sector (indicated by the copy flag 222e) having a smaller number of accesses than the number of accesses read in step S22. It is checked whether or not there is (Step S2)
3). If there is a defective sector with a small number of accesses, the relocation data of the defective sector to be accessed is copied to the relocation data copy area 232 instead of the copied relocation data of the defective sector (step S2).
4). That is, the relocation sectors to be copied to the relocation data copy area 232 are dynamically replaced based on the access count of each relocation sector. In this operation, the relocation data of the defective sector to be accessed is stored in the buffer area 21 of the buffer 2.
When the data is read from the relocation sector, it is efficient because rereading from the relocated sector is unnecessary.

【0080】この他、新たな欠陥セクタが検出されて再
配置セクタへの再配置が行われた場合、その欠陥セクタ
(の再配置セクタ)は近いうちに再度アクセスされる可
能性が高く、逆に長時間アクセスされていないセクタは
近いうちに再度アクセスされる可能性が低いことを考慮
して、図12のフローチャートに示すような再配置デー
タの置き換えを行うことも可能である。
In addition, when a new defective sector is detected and relocation to the relocated sector is performed, there is a high possibility that (the relocated sector of) the defective sector will be accessed again soon. Considering that a sector that has not been accessed for a long time is unlikely to be accessed again soon, it is also possible to replace the relocation data as shown in the flowchart of FIG.

【0081】まずCPU3は、新たな欠陥セクタが検出
されて再配置セクタへの再配置処理が発生した場合に
は、再配置データコピー領域232にコピーされている
再配置データの中に、一度もアクセスされたことのない
再配置データがあるか否かをチェックする(ステップS
31)。
First, when a new defective sector is detected and the relocation process to the relocation sector occurs, the CPU 3 includes at least one of the relocation data copied in the relocation data copy area 232. Check whether there is any relocation data that has not been accessed (step S
31).

【0082】もし、一度もアクセスされたことのないコ
ピー済みの再配置データがあるならば、CPU3は、そ
の再配置データを置き換え(追い出し)対象として選択
する(ステップS32)。
If there is copied relocation data that has never been accessed, the CPU 3 selects the relocation data as a replacement (removal) target (step S32).

【0083】これに対し、一度もアクセスされたことの
ないコピー済みの再配置データがないならば、CPU3
は再配置データコピー領域232にコピーされている再
配置データの中で最も以前にアクセスされた再配置デー
タを置き換え(追い出し)対象として選択する(ステッ
プS33)。このためには、再配置データコピー領域2
32内の各再配置データについて、そのアクセス順を示
す情報を、例えばテーブル領域231の各テーブル情報
に持たせればよい。
On the other hand, if there is no copied relocation data that has never been accessed,
Selects the most recently accessed relocation data among the relocation data copied to the relocation data copy area 232 as a replacement (eviction) target (step S33). For this purpose, the relocation data copy area 2
For each piece of relocation data in 32, information indicating the access order may be provided in, for example, each piece of table information in the table area 231.

【0084】次にCPU3は、ステップS32またはS
33で選択した再配置データに代えて、再配置直後の再
配置データを再配置データコピー領域232にコピーす
る(ステップS24)。
Next, the CPU 3 determines in step S32 or S
Instead of the relocation data selected in step 33, the relocation data immediately after the relocation is copied to the relocation data copy area 232 (step S24).

【0085】また、新たに検出された欠陥セクタに限ら
ず、新たにアクセスが発生したセクタは、近いうちに再
度アクセスされる可能性が高いことから、上記の方式
は、未コピーの再配置セクタへのアクセスが発生した場
合にも適用可能である。
In addition, not only a newly detected defective sector but also a newly accessed sector is highly likely to be accessed again soon. It is also applicable when an access to the URL occurs.

【0086】なお、以上の説明では、ディスクから読み
出したデータ、及びディスクへの書き込みデータを一時
格納するバッファ内にディフェクト保持領域を確保し
て、ディスク上の欠陥セクタの代替先セクタの再配置デ
ータを保持する場合について説明したが、当該バッファ
とは独立の高速メモリをディフェクト保持領域として用
いるようにしても構わない。
In the above description, a defect holding area is secured in a buffer for temporarily storing data read from the disk and data to be written to the disk, and the relocation data of a replacement sector for a defective sector on the disk is secured. Has been described, but a high-speed memory independent of the buffer may be used as the defect holding area.

【0087】以上に述べた実施形態では磁気ディスク装
置について説明したが、本発明は、ディスクの記録面上
に欠陥セクタが存在した場合に、その欠陥セクタをディ
スク上の代替領域に再配置することで、欠陥セクタのア
クセス時にはその再配置情報に従って再配置されたデー
タをアクセスすることが可能なディスク装置であれば、
光磁気ディスク装置など、磁気ディスク装置以外のディ
スク装置にも適用可能である。
In the embodiments described above, the magnetic disk device has been described. However, according to the present invention, when a defective sector exists on the recording surface of a disk, the defective sector is relocated to an alternative area on the disk. In a disk device that can access data relocated according to the relocation information when accessing a defective sector,
The present invention is also applicable to disk devices other than magnetic disk devices, such as magneto-optical disk devices.

【0088】[0088]

【発明の効果】以上詳述したように本発明によれば、代
替領域に再配置されたデータを予め高速なメモリ上にコ
ピーして保持し、ホスト装置からの欠陥セクタを含むデ
ィスク領域を対象とするリードコマンドに対して代替領
域をアクセスすることなく、メモリに保持されている再
配置データを読み込んでホスト装置に転送するようにし
たので、欠陥セクタ直前のデータ読み出し後の代替領域
に対するアクセス動作と、代替領域から欠陥セクタ直後
までのアクセス動作を省略でき、リードコマンドの実行
時間を短縮できる。
As described above in detail, according to the present invention, data relocated to an alternative area is copied and held in a high-speed memory in advance, and a disk area including a defective sector from a host device is targeted. In this case, the relocation data stored in the memory is read and transferred to the host device without accessing the alternative area in response to the read command, so that the access operation to the alternative area after the data read immediately before the defective sector is performed. Thus, the access operation from the replacement area to immediately after the defective sector can be omitted, and the execution time of the read command can be reduced.

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

【図1】本発明の一実施形態に係る磁気ディスク装置の
構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a magnetic disk drive according to an embodiment of the present invention.

【図2】図1中のバッファ2に割り当てられる各領域を
説明するための図。
FIG. 2 is a view for explaining each area allocated to a buffer 2 in FIG. 1;

【図3】同実施形態における再配置セクタデータコピー
処理を説明するための図。
FIG. 3 is an exemplary view for explaining relocation sector data copy processing in the embodiment.

【図4】同実施形態における欠陥セクタを含むディスク
領域に対するホスト装置からのリードコマンド受信時の
動作を説明するためのフローチャート。
FIG. 4 is an exemplary flowchart for explaining the operation at the time of receiving a read command from the host device for a disk area including a defective sector according to the embodiment;

【図5】同実施形態におけるHDC1への飛ばし読みセ
クタの設定動作を説明するための図。
FIG. 5 is an exemplary view for explaining an operation of setting a skip-read sector to the HDC 1 in the embodiment.

【図6】同実施形態における欠陥セクタ直前までのディ
スク読み出し動作とホスト転送動作を説明するための
図。
FIG. 6 is an exemplary view for explaining a disk read operation and a host transfer operation up to immediately before a defective sector in the embodiment.

【図7】同実施形態にける欠陥セクタの直前のセクタの
データをホスト装置に転送した後の再配置データのホス
ト転送動作と、欠陥セクタ直後のセクタのデータのディ
スク読み出し動作を説明するための図。
FIG. 7 is a view for explaining a host transfer operation of relocation data after transferring data of a sector immediately before a defective sector to a host device and a disk read operation of data of the sector immediately after the defective sector in the embodiment. FIG.

【図8】同実施形態における欠陥セクタ直後のセクタの
データのホスト転送動作を説明するための図。
FIG. 8 is an exemplary view for explaining a host transfer operation of data of a sector immediately after a defective sector in the embodiment.

【図9】同実施形態における欠陥セクタを含むディスク
領域に対するリード動作時のヘッド移動経路を示す図。
FIG. 9 is an exemplary view showing a head moving path at the time of a read operation for a disk area including a defective sector in the embodiment.

【図10】同実施形態におけるコピー対象再配置セクタ
の選択処理を説明するためのフローチャート。
FIG. 10 is an exemplary flowchart for explaining the process of selecting a copy target relocation sector according to the embodiment;

【図11】同実施形態における再配置データの置き換え
処理を説明するためのフローチャート。
FIG. 11 is an exemplary flowchart for explaining replacement processing of relocation data according to the embodiment;

【図12】同実施形態における再配置データの他の置き
換え処理を説明するためのフローチャート。
FIG. 12 is an exemplary flowchart for explaining another replacement process of the relocation data in the embodiment.

【図13】従来の磁気ディスク装置における欠陥セクタ
を含むディスク領域に対するリード動作時のヘッド移動
経路を示す図。
FIG. 13 is a diagram showing a head moving path at the time of a read operation on a disk area including a defective sector in a conventional magnetic disk device.

【図14】従来の磁気ディスク装置における欠陥セクタ
を含むディスク領域に対するホスト装置からのリードコ
マンド受信時の動作を説明するためのフローチャート。
FIG. 14 is a flowchart for explaining an operation when a read command is received from a host device for a disk area including a defective sector in a conventional magnetic disk device.

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

1…HDC(ディスクコントローラ、再配置データ読み
出し・転送手段) 2…バッファ(高速メモリ) 3…CPU(再配置データコピー処理手段) 7…ヘッド 10…ディスク 21…バッファ領域 22…ディフェクトマップ領域(アクセス回数管理手
段) 23…ディフェクト保持領域 222d…アクセス回数 222e…コピーフラグ 231…テーブル領域 232…再配置データコピー領域
DESCRIPTION OF SYMBOLS 1 ... HDC (disk controller, relocation data reading / transfer means) 2 ... buffer (high-speed memory) 3 ... CPU (relocation data copy processing means) 7 ... head 10 ... disk 21 ... buffer area 22 ... defect map area (access) 23: Defect holding area 222d: Access frequency 222e: Copy flag 231: Table area 232: Relocation data copy area

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI G11B 20/18 512 G11B 20/18 512D 552 552A 572 572B 572F ──────────────────────────────────────────────────の Continued on the front page (51) Int.Cl. 6 Identification code FI G11B 20/18 512 G11B 20/18 512D 552 552A 572 572B 572F

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ディスクの記録面上に欠陥セクタが存在
した場合に、その欠陥セクタを前記ディスク上の代替領
域に再配置することで、前記欠陥セクタのアクセス時に
はその再配置情報に従って前記再配置されたデータをア
クセスすることが可能なディスク装置において、 前記代替領域に再配置されたデータを保持するためのデ
ィフェクト保持領域が確保された高速メモリと、 前記代替領域に再配置されたデータを予め前記ディスク
から前記ディフェクト保持領域にセクタ単位でコピーし
ておく再配置データコピー処理手段と、 ホスト装置から与えられる欠陥セクタを含むディスク領
域を対象とするリードコマンドの実行時には、前記欠陥
セクタの再配置データを前記ディフェクト保持領域から
読み出して前記ホスト装置に転送する再配置データ読み
出し・転送手段とを具備することを特徴とするディスク
装置。
1. When a defective sector is present on a recording surface of a disk, the defective sector is relocated to an alternative area on the disk, so that when the defective sector is accessed, the relocation is performed according to the relocation information. A high-speed memory in which a defect holding area for holding data relocated to the replacement area is secured; and a data storage apparatus for storing the data relocated to the replacement area in advance. A relocation data copy processing means for copying sectors from the disk to the defect holding area in sector units; and a relocation of the defective sectors when a read command provided for a disk area including a defective sector provided from a host device is executed. Relocation data for reading data from the defect holding area and transferring the data to the host device. A disk device comprising: a data read / transfer unit.
【請求項2】 前記再配置データコピー処理手段は、少
なくとも前記ディスク装置の初期化動作時に起動される
ことを特徴とする請求項1記載のディスク装置。
2. The disk device according to claim 1, wherein the relocation data copy processing means is started at least during an initialization operation of the disk device.
【請求項3】 前記再配置データコピー処理手段は、前
記代替領域に再配置されたデータの総量が前記ディフェ
クト保持領域の容量より大きい場合には、前記各欠陥セ
クタとその再配置先との物理的距離が大きい順に前記デ
ィフェクト保持領域が満杯になるまで対応する前記再配
置データをコピーすることを特徴とする請求項2記載の
ディスク装置。
3. When the total amount of data relocated to the replacement area is larger than the capacity of the defect holding area, the relocation data copy processing means may determine whether the defective sector and the relocation destination are physically located. 3. The disk device according to claim 2, wherein the corresponding relocation data is copied in order of increasing target distance until the defect holding area becomes full.
【請求項4】 前記各欠陥セクタへのアクセス回数を管
理するアクセス回数管理手段を更に具備し、 前記再配置データコピー処理手段は、前記ディフェクト
保持領域に再配置データがコピーされていない欠陥セク
タの中に、前記ディフェクト保持領域に再配置データが
コピーされている欠陥セクタより、前記アクセス回数管
理手段により管理されているアクセス回数が多い欠陥セ
クタがある場合には、そのアクセス回数が少ない欠陥セ
クタの再配置データに代えて、そのアクセス回数が多い
欠陥セクタの再配置データを前記ディフェクト保持領域
にコピーすることを特徴とする請求項3記載のディスク
装置。
4. An apparatus according to claim 1, further comprising access number management means for managing the number of times of access to each of said defective sectors, wherein said relocation data copy processing means is provided for a defective sector whose relocation data has not been copied to said defect holding area. If there is a defective sector whose access frequency managed by the access frequency management means is larger than that of the defective sector whose relocation data is copied in the defect holding area, the defective sector whose access frequency is smaller is selected. 4. The disk device according to claim 3, wherein, instead of the relocation data, the relocation data of the defective sector whose access frequency is large is copied to the defect holding area.
【請求項5】 前記再配置データコピー処理手段は、新
たな欠陥セクタが前記代替領域に再配置される毎に、そ
の再配置データを前記ディフェクト保持領域にコピーす
ることを特徴とする請求項2記載のディスク装置。
5. The relocation data copy processing means, each time a new defective sector is relocated to the replacement area, copies the relocation data to the defect holding area. The disk device as described above.
【請求項6】 前記再配置データコピー処理手段は、前
記新たな欠陥セクタが前記代替領域に再配置された際
に、前記ディフェクト保持領域に空きがない場合には、
前記ディフェクト保持領域にコピーされている再配置デ
ータのうち、一度もアクセスされたことのない再配置デ
ータがあれば、そのデータに代えて、一度もアクセスさ
れたことのない再配置データがなければ、最も以前にア
クセスされた再配置データに代えて、前記新たな欠陥セ
クタの再配置データを前記ディフェクト保持領域にコピ
ーすることを特徴とする請求項5記載のディスク装置。
6. The relocation data copy processing means, when the new defective sector is relocated to the replacement area, if there is no free space in the defect holding area,
If there is any relocation data that has never been accessed among the relocation data copied to the defect holding area, instead of that data, if there is no relocation data that has never been accessed, 6. The disk drive according to claim 5, wherein the relocation data of the new defective sector is copied to the defect holding area instead of the relocation data accessed most recently.
【請求項7】 ディスクの記録面上に欠陥セクタが存在
した場合に、その欠陥セクタを前記ディスク上の代替領
域に再配置することで、前記欠陥セクタのアクセス時に
はその再配置情報に従って前記再配置されたデータをア
クセスすることが可能なディスク装置における欠陥によ
る再配置データの高速ホスト転送方法であって、 前記代替領域に再配置されたデータを高速メモリに確保
されたディフェクト保持領域に前記ディスクからセクタ
単位で予めコピーしておき、 ホスト装置から与えられる欠陥セクタを含むディスク領
域を対象とするリードコマンドの実行時には、前記欠陥
セクタの再配置データを前記ディフェクト保持領域から
読み出して前記ホスト装置に転送するようにしたことを
特徴とする欠陥による再配置データの高速ホスト転送方
法。
7. When a defective sector is present on a recording surface of a disk, the defective sector is relocated to an alternative area on the disk, so that when the defective sector is accessed, the relocation is performed according to the relocation information. A high-speed host transfer method of relocated data due to a defect in a disk device capable of accessing the relocated data, wherein the data relocated to the replacement area is transferred from the disk to a defect holding area secured in a high-speed memory. When a read command for a disk area including a defective sector given from the host device is executed, the relocation data of the defective sector is read out from the defect holding area and transferred to the host device when the read command is executed. High-speed host transfer of relocation data due to defects characterized by Method.
【請求項8】 前記代替領域に再配置されたデータをセ
クタ単位で前記ディフェクト保持領域にコピーする動作
を、前記ディスク装置の初期化動作時に行うことを特徴
とする請求項7記載の欠陥による再配置データの高速ホ
スト転送方法。
8. The method according to claim 7, wherein the operation of copying the data relocated to the replacement area to the defect holding area in sector units is performed at an initialization operation of the disk drive. High-speed host transfer method for configuration data.
JP08168297A 1997-03-31 1997-03-31 High speed host transfer method of rearranged data due to defects in disk device Expired - Fee Related JP3847888B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08168297A JP3847888B2 (en) 1997-03-31 1997-03-31 High speed host transfer method of rearranged data due to defects in disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08168297A JP3847888B2 (en) 1997-03-31 1997-03-31 High speed host transfer method of rearranged data due to defects in disk device

Publications (2)

Publication Number Publication Date
JPH10275425A true JPH10275425A (en) 1998-10-13
JP3847888B2 JP3847888B2 (en) 2006-11-22

Family

ID=13753137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08168297A Expired - Fee Related JP3847888B2 (en) 1997-03-31 1997-03-31 High speed host transfer method of rearranged data due to defects in disk device

Country Status (1)

Country Link
JP (1) JP3847888B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6940796B2 (en) 2001-07-02 2005-09-06 Nec Electronics Corporation Optical disk device using a new alternate list for defect correction
US7085965B2 (en) 2002-04-09 2006-08-01 Kabushiki Kaisha Toshiba Apparatus and method for accessing a disk containing an alternate sector
US7680398B2 (en) 2003-06-11 2010-03-16 Panasonic Corporation Recording device, information recording medium and recording method
JP2010176743A (en) * 2009-01-29 2010-08-12 Pioneer Electronic Corp Recording medium playback device and method, recording medium playback program and recording medium storing the recording medium playback program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6940796B2 (en) 2001-07-02 2005-09-06 Nec Electronics Corporation Optical disk device using a new alternate list for defect correction
US7085965B2 (en) 2002-04-09 2006-08-01 Kabushiki Kaisha Toshiba Apparatus and method for accessing a disk containing an alternate sector
US7680398B2 (en) 2003-06-11 2010-03-16 Panasonic Corporation Recording device, information recording medium and recording method
JP2010176743A (en) * 2009-01-29 2010-08-12 Pioneer Electronic Corp Recording medium playback device and method, recording medium playback program and recording medium storing the recording medium playback program

Also Published As

Publication number Publication date
JP3847888B2 (en) 2006-11-22

Similar Documents

Publication Publication Date Title
US20020188800A1 (en) Self-mirroring high performance disk drive
JP2001307410A (en) Magnetic disk device, data recording method, and data reproduction method
KR19980029917A (en) How to improve read cache performance on magnetic disk drives
JPH1097385A (en) Disk recording / reproducing apparatus and interface control apparatus applied to the apparatus
JP2759920B2 (en) Method and apparatus for operating a DASD peripheral data storage subsystem
JPWO2009050765A1 (en) Medium storage device read / write processing method and medium storage device
US6693754B2 (en) Method and apparatus for a disc drive adaptive file system
JPH10269027A (en) Disk device and buffer management control method in the device
US20040015878A1 (en) Reordering controller, reordering method and storage apparatus
KR100368964B1 (en) Data writing method, data reading method, disk drive apparatus and disk drive apparatus controller
US8320066B2 (en) Storage device and read/write processing method therefor
JP3847888B2 (en) High speed host transfer method of rearranged data due to defects in disk device
US6957300B2 (en) Reducing delay of command completion due to overlap condition
JP2845658B2 (en) Access control device for data recording / reproducing device
JPH10171713A (en) Disk storage device and cache control method applied to the device
JP2003199014A (en) Disk storage device and command processing method
JP2002342038A (en) Disk unit that controls the execution order of commands
JPH0944315A (en) Storage device and method thereof
JPH03290873A (en) Disk type storage device, controller of disk type storage device, and control method for disk type storage device
JP3080758B2 (en) Magnetic disk drive
JP3150242B2 (en) Disk unit
JP2000222137A (en) Disk storage device and buffer control method in the same device
JP2001160268A (en) Substitution processing method for recording medium and device
JP2704138B2 (en) Control method of magnetic disk cache
JP3977611B2 (en) Disk storage device and sector replacement processing method in the same device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040317

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060530

A521 Written amendment

Effective date: 20060731

Free format text: JAPANESE INTERMEDIATE CODE: A523

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060822

A61 First payment of annual fees (during grant procedure)

Effective date: 20060824

Free format text: JAPANESE INTERMEDIATE CODE: A61

LAPS Cancellation because of no payment of annual fees