JPS6381663A - Magnetic disk data check method - Google Patents
Magnetic disk data check methodInfo
- Publication number
- JPS6381663A JPS6381663A JP22589086A JP22589086A JPS6381663A JP S6381663 A JPS6381663 A JP S6381663A JP 22589086 A JP22589086 A JP 22589086A JP 22589086 A JP22589086 A JP 22589086A JP S6381663 A JPS6381663 A JP S6381663A
- Authority
- JP
- Japan
- Prior art keywords
- data
- sector
- magnetic disk
- read
- cpu
- 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
Links
Abstract
Description
【発明の詳細な説明】
技術分野
本発明は、磁気ディスクのデータチェック方式に関し、
特に磁気ディスクに書き込まれたデータの確実な読出し
を行うのに好適なデータチェック方式に関するものであ
る。[Detailed Description of the Invention] Technical Field The present invention relates to a data checking method for a magnetic disk.
In particular, the present invention relates to a data check method suitable for reliably reading data written on a magnetic disk.
従来技術
従来、磁気ディスク装置4例えばハードディスク装置(
以下、HDDという)においては、ハードディスク制御
装置(以下、HDCという)にID磁気ディスク媒体に
フォーマツティングを行い、ID部とデータ部(ある一
定パターン、例えばE5、、)の書き込みを行っている
。このようにフォーマットされる磁気ディスク媒体のセ
クタには、第3図に示すように、セクタの開始とアドレ
スを示す情報を記録したIDフィールドと、データを記
録するデータ・フィールドがある。これらの前後には回
転変動や機械的寸法誤差、イレーズゲートの遅れやタイ
ミング誤差からデータを保護するためのギャップがおか
れている。上記のIDフィールドはシンクフィールド、
ミッシングクロック(A l )、 I D情報エリア
に分けられており、さらにID情報エリアはシリンダ番
号(トラック番号)。Prior Art Conventionally, a magnetic disk device 4, for example, a hard disk device (
In the HDD (hereinafter referred to as HDD), the hard disk controller (hereinafter referred to as HDC) formats the ID magnetic disk medium and writes the ID part and data part (a certain pattern, for example, E5, etc.). . As shown in FIG. 3, a sector of a magnetic disk medium formatted in this manner has an ID field in which information indicating the start and address of the sector is recorded, and a data field in which data is recorded. Gaps are placed before and after these to protect data from rotational fluctuations, mechanical dimensional errors, erase gate delays, and timing errors. The ID field above is a sink field,
It is divided into a missing clock (A l ) and an ID information area, and the ID information area further contains a cylinder number (track number).
ヘッド番号、セクタ番号、セクタ長が格納される。The head number, sector number, and sector length are stored.
以上のようにフォーマットされた磁気ディスク媒体のデ
ータ部を読み出す場合は、HDCが第3図に示すID部
のID情報を読み取り、HDC自身が解読し、その結果
目的とするセクタか否かを判断していた。When reading the data section of a magnetic disk medium formatted as described above, the HDC reads the ID information in the ID section shown in Figure 3, decodes it itself, and then determines whether it is the target sector or not. Was.
前述したHDDを外部記憶装置としてホストシステムと
接続してシステムを構成した例を第2図に示す。ここで
、1はメモリ等を含むホストシステム(例えば、CPU
)、2はHD(ディスク駆動装置)のデータ書込み・読
出し、データ転送の制御を行うHDC13は磁気ディス
ク媒体へデータを記録するH’Dである。CPUIID
HDC2に対しリード命令(1セクタリード)が出され
、HD C2はその命令を受け、HD3のディスク媒体
を読みにいくが、その時の読み出し方法としては、例え
ばOシリンダ、0ヘツド、0セクタを読む場合。FIG. 2 shows an example of a system configured by connecting the aforementioned HDD as an external storage device to a host system. Here, 1 is a host system including memory etc. (e.g. CPU
), 2 is an HD (disk drive device) that controls data writing/reading and data transfer, and an HDC 13 is an H'D that records data on a magnetic disk medium. CPU ID
A read command (one sector read) is issued to the HDC2, and the HDC2 receives the command and goes to read the disk medium of the HD3.The reading method at that time is, for example, reading O cylinder, 0 head, 0 sector. case.
まず、HDC2は第3図に示すインデックス(HD3の
ディスク板の1回転に1回発生するパルス)を検知する
と、次に、ID部を検索し、そこに書かれている情報が
0シリンダ、0ヘツド、0セクタかを判断し、次にデー
タ部を読む。さらに詳しく述べると、ID部を読出す前
に第3図に示す5YNCにIDVFO回路(これは、H
DC2の内部にあるものとする)の同期を取り、VF○
を安定させると同時に、VFO回路から5YNC信号を
HDC2に与える。5YNC信号を与えられたHDC2
は、ID部がはじまったことを知ると、次にA1° と
いうデータを読み取り、それに続くデータがID情報で
あることをHDC2が判断し、ID情報を読取る。デー
タフィールドにおいても同じ動作をするが、データ部か
ID部かの判断は、 “A1″に続くデータが“F8’
か否かで決定する。First, when the HDC 2 detects the index shown in Fig. 3 (a pulse that occurs once per revolution of the disk plate of the HD 3), it searches the ID section, and the information written there is 0 cylinder, 0 Determine whether the head is 0 sector or not, and then read the data section. To explain in more detail, before reading the ID section, the IDVFO circuit (this is
(assumed to be inside DC2), and synchronize VF○
At the same time, a 5YNC signal is given to HDC2 from the VFO circuit. HDC2 given 5YNC signal
When the HDC 2 learns that the ID section has started, it next reads data A1°, determines that the following data is ID information, and reads the ID information. The same operation is performed for the data field, but to determine whether it is the data field or the ID field, the data following "A1" is "F8".
It is decided whether or not.
このような読み出し動作で、目的とする0セクタのID
部は解読できた場合でも、第3図のデータ部の5YNC
にてハードディスクの回転むら、ノイズ等にIDVFO
回路の同期が取れないと、HDC2に対し、目的とする
Oセクタのデータ部がきたにもかかわらず、5YNC信
号が与えられていないため、0セクタのデータ部を読み
とばすことになる。次に1セクタのID部の5YNCが
くることになるが、仮にここで、VFO回路の同期が取
れ、HDC2に対して5YNC信号が与えられたとして
も“Al’ に続くデータがF8’でないため、HDC
2はデータ部でないと判断し、次の5YNCを待つ。■
セクタのデータ部の5YNCにて同期が取れると、HD
C2はA1′。In such a read operation, the ID of the target 0 sector
Even if the part can be decoded, the 5YNC of the data part in Figure 3
IDVFO for uneven hard disk rotation, noise, etc.
If the circuits are not synchronized, the data portion of the 0 sector will be skipped because the 5YNC signal is not given to the HDC 2 even though the target data portion of the O sector has arrived. Next comes 5YNC of the ID part of one sector, but even if the VFO circuit is synchronized and the 5YNC signal is given to HDC2, the data following "Al" is not F8'. , HDC
2 is not the data section, and waits for the next 5YNC. ■
When synchronization is achieved at 5YNC of the data section of the sector, the HD
C2 is A1'.
F8′ を確認し、データを読取り、結果として目的と
するOセクタのデータではなく、1セクタのデータをC
PUへ転送することになる。Check F8', read the data, and as a result, the data of 1 sector is converted to C instead of the data of the target O sector.
It will be transferred to PU.
しかし、この方式では、CPUIはHDC2から転送さ
れたデータが目的とするセクタのデータか否か判断する
ことができないため、HDa自体の持つ回転むらやノイ
ズ等にIDVF○回路の追従精度不足となり、HDC2
が間違って正常と判断し、目的とするセクタ以外のデー
タを転送した場合でも、CPUIは目的のセクタデータ
として処理するしかなかった。However, with this method, the CPU cannot judge whether the data transferred from the HDC2 is the data of the target sector or not, so the IDVF○ circuit lacks tracking accuracy due to uneven rotation and noise of the HDA itself. HDC2
Even if the CPU erroneously determines that the sector is normal and transfers data other than the target sector, the CPU has no choice but to process the data as the target sector data.
目 的
本発明の目的は、このような従来の問題を解決し、磁気
ディスク装置において、目的としたデータを確実に読出
しが行え、読出しデータの信頼性の向上を図れる磁気デ
ィスクのデータチェック方式を提供することにある。Purpose The purpose of the present invention is to solve such conventional problems and provide a magnetic disk data check method that can reliably read target data in a magnetic disk device and improve the reliability of read data. It is about providing.
構 成
上記目的を達成するため、本発明の磁気ディスクのデー
タチェック方式は、セクタの開始とアドレス等のID=
l#報を記録するIDフィールドとデータを記録するデ
ータフィールドにフォーマットされる磁気ディスクと、
該磁気ディスクへのデータの書込みまたは該磁気ディス
クからデータの読出しおよびデータの転送を行う制御手
段とを有する磁気ディスク装置において、上記IDフィ
ールドのID情報とは別にデータフィールドに読出しデ
ータが目的とするセクタか否かを上位装置が判断するた
めの検索エリアをフォーマツティングした後、該検索エ
リアにID情報のセクタ番号と同一番号をセットし、上
位装置から与えられたデータを受信して上記制御手段が
上記検索エリアのデータの読出しを行い、該読出しデー
タを上位装置に転送したときは、上位装置は上記検索エ
リアのデータと該上位装置が与えたデータとを比較チェ
ックすることに特徴がある。Configuration In order to achieve the above object, the magnetic disk data check method of the present invention uses ID=
a magnetic disk formatted into an ID field for recording l# information and a data field for recording data;
In a magnetic disk device having a control means for writing data to the magnetic disk, reading data from the magnetic disk, and transferring data, read data is stored in a data field in addition to the ID information in the ID field. After formatting a search area for the higher-level device to judge whether or not it is a sector, the same number as the sector number of the ID information is set in the search area, and the data given from the higher-level device is received and the above control is performed. The feature is that when the means reads data in the search area and transfers the read data to a host device, the host device compares and checks the data in the search area and the data given by the host device. .
以下、本発明の構成を、実施例にID説明する。Hereinafter, the configuration of the present invention will be explained with reference to embodiments.
本実施例が適用される全体構成は、第2図と同様である
ので、以下第2図を参照しながら本実施例を説明する。Since the overall configuration to which this embodiment is applied is the same as that shown in FIG. 2, this embodiment will be described below with reference to FIG. 2.
第4図は、本発明の実施例による磁気ディスク媒体のデ
ィスクフォーマツティングのフローと従来のフローの比
較図である。ここで、(a)は従来のフローを示し、(
b)は本実施例のフローを示している。FIG. 4 is a comparison diagram of the flow of disk formatting of a magnetic disk medium according to the embodiment of the present invention and the conventional flow. Here, (a) shows the conventional flow, and (
b) shows the flow of this embodiment.
第4図(a)に示すように、従来はHDC2にID磁気
ディスク媒体の1トラツクのフォーマツティングを行い
(301)、最終シリンダ(トラック)まで(302)
、301の処理を繰り返すことにID、磁気ディスク媒
体のフォーマツティングを終了する。As shown in FIG. 4(a), conventionally, formatting of one track of the ID magnetic disk medium is performed on the HDC 2 (301), and the final cylinder (track) is formatted (302).
, 301 is repeated to complete the formatting of the ID and magnetic disk medium.
しかし、本発明では、第4図(b)に示すように、まず
、HDC2にID磁気ディスク媒体の1トラツクのフォ
ーマツティングを行う(401)。この処理は従来の処
理301と同じである。このフォーマット後、データバ
ッファ領域の各セクタのデータ領域の先頭バイトにセク
タ検索データをセットする(402)。すなわち、各セ
クタのデータ部の1バイト目にID部のセクタ番号と同
一番号をセットする。次に、HDC2はHD3の磁気デ
ィスク媒体の1トラツクにそのセクタ検索データの書き
込みを行う(403)。以上の処理を最終シリンダ(ト
ラック)まで(404)、繰り返すことにID、磁気デ
ィスク媒体のフォーマツティングを終了する。このフォ
ーマツティングされた1セクタの例を第5図に示す。こ
こでは、1セクタのデータ長は256バイトとしている
ので、1セクタ内は1バイトのセクタ検索エリアと25
5バイトのデータエリアとにフォーマットされたことに
なる。However, in the present invention, as shown in FIG. 4(b), first, formatting of one track of the ID magnetic disk medium is performed on the HDC 2 (401). This process is the same as the conventional process 301. After this formatting, sector search data is set in the first byte of the data area of each sector in the data buffer area (402). That is, the same number as the sector number of the ID part is set in the first byte of the data part of each sector. Next, the HDC 2 writes the sector search data to one track of the magnetic disk medium of the HD 3 (403). The above process is repeated until the final cylinder (track) (404), thereby completing the formatting of the ID and magnetic disk medium. An example of one sector after this formatting is shown in FIG. Here, the data length of one sector is 256 bytes, so within one sector there is a sector search area of 1 byte and a sector search area of 256 bytes.
This means that it is formatted into a 5-byte data area.
第1図は1本発明の一実施例を示すデータチェック処理
動作のフローチャートである。これは、前述したように
フォーマットされた磁気ディスク媒体を用いて、データ
チェックを行う場合の処理を示している。以下、第1図
のフローに従ってデータチェックを説明する。FIG. 1 is a flowchart of a data check processing operation showing an embodiment of the present invention. This shows the process when data is checked using a magnetic disk medium formatted as described above. The data check will be explained below according to the flow shown in FIG.
まず、第2図に示すようなシステムにおいて、CPUI
がHDC2に対してリード命令を発行し、セクタアドレ
スを指定すると(101)、この命令を受けてHDC2
は指定されたセクタアドレスに対するセクタのID部を
検索し、次に第5図に示すようなデータ部の1バイト目
のセクタ検索エリアのデータを読み取る(102)。こ
の読み取りデータをHDC2はCPUIに対して転送す
る。CPutでは、読み取り転送されたデータ(検索エ
リアのセクタ番号)と目的としたセクタ番号が一致して
いるかをチェックする(103)。一致した場合は正常
読み出しと判断してチェック処理を終了し、次の処理に
移行する。一致しない場合は、例えば、8回程度繰返し
リトライを行う(104)。First, in a system like the one shown in Figure 2, the CPU
issues a read command to HDC2 and specifies a sector address (101), and upon receiving this command, HDC2
searches the ID section of the sector corresponding to the specified sector address, and then reads the data in the sector search area of the first byte of the data section as shown in FIG. 5 (102). The HDC 2 transfers this read data to the CPUI. CPUt checks whether the read and transferred data (sector number of the search area) matches the target sector number (103). If they match, it is determined that the reading is normal, the check process ends, and the process moves to the next process. If they do not match, retry is repeated, for example, about eight times (104).
また、リトライを8回しても一致しない場合は、CPU
Iはエラー処理として、例えば表示装置(図示せず)に
その旨を表示する。ここでは、リトライ回数を8回とし
ているが、この数値に限定されるものではない。Also, if the match does not match even after retrying 8 times, the CPU
As an error process, I displays a message to that effect on, for example, a display device (not shown). Although the number of retries is set to eight here, it is not limited to this number.
このように、本実施例においては、1セクタのデータ部
にセクタ検索エリアを設けて、そのセクタ検索エリアに
ID部のセクタ番号と同一番号を格納することにID、
CPU1は目的としたセクタの読出しが正常かどうか判
断できるようになる。As described above, in this embodiment, a sector search area is provided in the data section of one sector, and the same number as the sector number of the ID section is stored in the sector search area.
The CPU 1 can now determine whether reading of the target sector is normal.
本実施例では、バー6ドデイスク装置を用いたシステム
のディスクデータチェックについて説明したが、同様に
してフロッピーディスク装置を用いた場合にも適用でき
ることは明らかである。In this embodiment, a disk data check in a system using a floppy disk device has been described, but it is obvious that the present invention can be similarly applied to a system using a floppy disk device.
効 果
以上説明したように、本発明によれば、磁気ディスク装
置において、目的としたデータを確実に読出しが行え、
読出しデータの信頼性の向上を図れるようになる。Effects As explained above, according to the present invention, target data can be reliably read in a magnetic disk device.
This makes it possible to improve the reliability of read data.
第1図は本発明の一実施例を示すデータチェック動作の
フローチャート、第2図は本発明が適用されるシステム
の構成図、第3図は磁気ディスク媒体のセクタフォーマ
ットを示す図、第4図は本発明の実施例によるディスク
フォーマツティングのフローと従来のフローの比較図、
第5図は本発明の実施例にIDフォーマツティングされ
た1セクタの構成例を示す図である。
1 : CPU、2 : HDC,3: HD。
第 1 図
第 2 図
第 4 図
Ca)FIG. 1 is a flowchart of a data check operation showing an embodiment of the present invention, FIG. 2 is a configuration diagram of a system to which the present invention is applied, FIG. 3 is a diagram showing a sector format of a magnetic disk medium, and FIG. 4 is a comparison diagram of the disk formatting flow according to the embodiment of the present invention and the conventional flow,
FIG. 5 is a diagram showing an example of the structure of one sector subjected to ID formatting according to the embodiment of the present invention. 1: CPU, 2: HDC, 3: HD. Figure 1 Figure 2 Figure 4 Figure Ca)
Claims (1)
IDフィールドとデータを記録するデータフィールドに
フォーマットされる磁気ディスクと、該磁気ディスクへ
のデータの書込みまたは該磁気ディスクからデータの読
出しおよびデータの転送を行う制御手段とを有する磁気
ディスク装置において、上記IDフィールドのID情報
とは別にデータフィールドに読出しデータが目的とする
セクタか否かを上位装置が判断するための検索エリアを
フォーマッティングした後、該検索エリアにID情報の
セクタ番号と同一番号をセットし、上位装置から与えら
れたデータを受信して上記制御手段が上記検索エリアの
データの読出しを行い、該読出しデータを上位装置に転
送したときは、上位装置は上記検索エリアのデータと該
上位装置が与えたデータとを比較チェックすることを特
徴とする磁気ディスクのデータチェック方式。(1) A magnetic disk that is formatted into an ID field that records ID information such as the start of a sector and an address, and a data field that records data, and the writing of data to or reading data from the magnetic disk, and the data In a magnetic disk device having a control means for transferring data, a search area is formatted in the data field in addition to the ID information in the ID field for the host device to determine whether or not the read data is in the target sector. , sets the same number as the sector number of the ID information in the search area, receives data given from the host device, causes the control means to read data in the search area, and transfers the read data to the host device. When this happens, the host device compares and checks the data in the search area and the data provided by the host device.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22589086A JPS6381663A (en) | 1986-09-26 | 1986-09-26 | Magnetic disk data check method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP22589086A JPS6381663A (en) | 1986-09-26 | 1986-09-26 | Magnetic disk data check method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6381663A true JPS6381663A (en) | 1988-04-12 |
Family
ID=16836475
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP22589086A Pending JPS6381663A (en) | 1986-09-26 | 1986-09-26 | Magnetic disk data check method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6381663A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5113295A (en) * | 1988-08-09 | 1992-05-12 | Sharp Kabushiki Kaisha | Recording and reproducing apparatus for rewriting data onto a previously recorded medium using a relaying operation |
-
1986
- 1986-09-26 JP JP22589086A patent/JPS6381663A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5113295A (en) * | 1988-08-09 | 1992-05-12 | Sharp Kabushiki Kaisha | Recording and reproducing apparatus for rewriting data onto a previously recorded medium using a relaying operation |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4914529A (en) | Data disk defect handling using relocation ID fields | |
| US6654195B1 (en) | Disk drive having a register set for providing real time position variables to a host | |
| US4558446A (en) | Memory system | |
| US6671114B2 (en) | Method and apparatus for forming data sector suitable for high density hard disk drive | |
| JPH0444688A (en) | Optical disk driving device | |
| US4918651A (en) | Method and disk controller architecture for zero latency data read | |
| JPS6381663A (en) | Magnetic disk data check method | |
| JP2829128B2 (en) | Read / write head buffer | |
| JPH01171044A (en) | Method for positioning block of memory | |
| US4647991A (en) | Disk channel controller | |
| JP2595096B2 (en) | Control method of magnetic tape unit and buffer memory | |
| JPS6117274A (en) | Optical disk control device | |
| JPH0620403A (en) | Magnetic disk unit | |
| JP2723226B2 (en) | Magnetic recording / reproducing device | |
| JPS6041124A (en) | Magnetic disc control device | |
| JP3603474B2 (en) | Disk unit | |
| WO1998014939A1 (en) | Headerless formatted disk drive | |
| JPS59121560A (en) | Read control system of floppy disc | |
| CN1099899A (en) | Magnetic disk and magnetic disk drive system | |
| JPH03189719A (en) | Disk control lsi, storage device and information processing system | |
| JPH03156775A (en) | Information recording method and information recording device | |
| JPH10269729A (en) | Disk unit | |
| JPS60176136A (en) | Data recording method in magnetic recording and reproducing device | |
| JPH0512805A (en) | Disk device | |
| JP3392311B2 (en) | Data recording medium formatting method and disk device |