JPH0479074A - Formating system for magnetic disk device - Google Patents

Formating system for magnetic disk device

Info

Publication number
JPH0479074A
JPH0479074A JP19297290A JP19297290A JPH0479074A JP H0479074 A JPH0479074 A JP H0479074A JP 19297290 A JP19297290 A JP 19297290A JP 19297290 A JP19297290 A JP 19297290A JP H0479074 A JPH0479074 A JP H0479074A
Authority
JP
Japan
Prior art keywords
sector
defective
alternative
sectors
defective sector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP19297290A
Other languages
Japanese (ja)
Inventor
Fumitoshi Yamaguchi
山口 文敏
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP19297290A priority Critical patent/JPH0479074A/en
Publication of JPH0479074A publication Critical patent/JPH0479074A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To always enable a normal alternate processing by recording the address information of a sector and the address information of an alternating destination to the ID parts of respective sectors and recording these plural ID parts to the area of a defective sector in the case of the defective sector. CONSTITUTION:When a sector 51 is reported in defective sector information, first of all, a write gate signal 2 is turned on only in the case of the defective sector 51, and an (n) number of ID are written in the defective sector 51. Further, the cylinder number, head number and sector number of an alternating destination sector 61 are set to an alternate destination cylinder number, head number and sector number 21-23. Then, when access to the defective sector is requested, the first ID part of the defective sector 51 is read and error is detected. When error is not detected, the alternate sector 61 is accessed according to alternate destination address information in the ID part, and the data is written in or read out. Thus, even when medium defect is at any position of the defective sector, the normal alternate processing can be executed.

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は、磁気ディスク装置のフォーマツティング方
式、特に例えば固定磁気ディスク装置などの磁気ディス
ク円盤のフォーマット方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a formatting method for a magnetic disk device, and particularly to a formatting method for a magnetic disk disk such as a fixed magnetic disk device.

[従来の技術] 第7図は例えば日経エレクトロニクス1982年10月
25日号に掲載されたような従来のフォーマツティング
方式において代替セクタを設けた1トラック分のセクタ
割り付けを示したものであり、第8図(a)は各セクタ
の内部割り付けを示したものであり、第8図(b)はそ
の中のID部の内部割り付けを示したものであり、第9
図は従来のフォーマツティング方式による欠陥セクタの
代替処理方法および処理結果を示したものである6図に
おいて、(1)はインデックス・パルス信号、(2)は
ライトゲート信号、(3)はライトデータ、(4)はギ
ャップ1、(51)〜(5n)はセクター、(61)、
(62)は代替セクター、<7)はギャップ4、(8)
は同期化バタン、(9)はID部、(10)はギャップ
2、(11)はデータ・アドレス・マーク、(12)は
データ、(13)はCRCコード、(14)はギャップ
3、(15)はIDアドレス・マーク、(16)はシリ
ンダ一番号、(17)はヘッド番号、(18)はセクタ
一番号、(19)はID郁CRCコードである。
[Prior Art] FIG. 7 shows sector allocation for one track with alternative sectors provided in a conventional formatting method such as that published in the October 25, 1982 issue of Nikkei Electronics. FIG. 8(a) shows the internal allocation of each sector, FIG. 8(b) shows the internal allocation of the ID part in it, and FIG.
The figure shows an alternative processing method for defective sectors using the conventional formatting method and the processing results. In figure 6, (1) is the index pulse signal, (2) is the write gate signal, and (3) is the write signal. Data, (4) is gap 1, (51) to (5n) are sectors, (61),
(62) is alternative sector, <7) is gap 4, (8)
is the synchronization button, (9) is the ID section, (10) is the gap 2, (11) is the data address mark, (12) is the data, (13) is the CRC code, (14) is the gap 3, ( 15) is an ID address mark, (16) is a cylinder number, (17) is a head number, (18) is a sector number, and (19) is an ID CRC code.

次に動作について説明する。一般に、磁気ディスフ円盤
上には製造過程において媒体欠陥が生じ、この媒体欠陥
が無い磁気ディスク円盤を作ることは非常に困難で、ま
た、高価なものとなる。従って、磁気ディスク制御装置
の製造者はこの媒体欠陥があるディスク円盤を使用する
ことになるが、磁気ディスク制御装置はユーザー側が使
用中にその媒体欠陥が原因で書き込みエラー/読み込み
エラーが発生しないようにフォーマット時においてその
媒体欠陥を含む領域(以下欠陥セクターと呼ぶ)を書き
込み/読み込み使用領域から省く必要がある。従来から
フォーマツティングはトラック単位ですることが広く行
なわれており、各トラックに複数個のセクターが設定さ
れる。普通このセクタは256.512または1024
バイトのデータが記録できる大きさに設定され、各トラ
ック毎に数十個設けられる。この内の数個のセクターが
欠陥セクタを代替するための代替セクターとして使用さ
れる。フォーマット時には普通ユーザーであるホストコ
ンピュータから欠陥セクタ情報が磁気ディスク制御装置
に報告される。従って、磁気ディスク制御装置は報告さ
れたセクターを欠陥として抹消するとともに代替セクタ
ーにそのセクターを代替する。セクターの抹消および代
替の方法を第7図第8図および第9図を用いて説明する
Next, the operation will be explained. Generally, medium defects occur on magnetic disk disks during the manufacturing process, and it is extremely difficult and expensive to produce a magnetic disk disk free of such medium defects. Therefore, the manufacturer of the magnetic disk controller will use a disk disk with this media defect, but the magnetic disk controller will be designed to ensure that the user will not experience write/read errors due to the media defect during use. At the time of formatting, it is necessary to exclude the area containing the medium defect (hereinafter referred to as a defective sector) from the area used for writing/reading. Conventionally, formatting has been widely performed on a track-by-track basis, and a plurality of sectors are set for each track. Usually this sector is 256.512 or 1024
They are set to a size that can record bytes of data, and several dozen are provided for each track. Some of these sectors are used as replacement sectors to replace defective sectors. During formatting, defective sector information is reported to the magnetic disk controller from the host computer, which is a normal user. Therefore, the magnetic disk controller erases the reported sector as defective and replaces the sector with a replacement sector. Sector erasure and alternative methods will be explained with reference to FIGS. 7, 8, and 9.

第7図は従来のフォーマツティング方式による1トラツ
ク分のセクターの割り付けを示したものであり、ディス
クの1回転に一度ディスク装置(図示せず)から発生さ
れるインデックス パルス(1)に同期して、ライト・
ゲート信号(2)をオンするとともに1トラツク分のラ
イト・データ(3)をディスク装置に送出することによ
り、1トラツク分のセの割り付けが行われる。この図で
は、各トラックの始めと終わりには若干の余裕を持たせ
るための先頭ギャップ(4)および最終ギャップ(7)
があり、そして、n個のセクター(51)〜(5n)お
よび2個の代替セクター(61)、(62)が割り付け
られている。第8図(a)は各セクターの内部割り付け
を示したものであり、第8図(b)はその中のID部の
内部割り付けを示したものである。セクターにデータを
書き込む、あるいはこのセクターからデータを読み込む
場合そのセクターを特定することが必要なため、各セク
ターにはデータ(12)以外に第8図(a) 、 (b
)に示したように付随情報が書き込まれる。この付随情
報には1)ディスクの回転との同期を行なうための同期
化パターン(8)、2)ID部(9)、3)データ(1
2)を認識するためのデータ・アドレス・マーク(11
L4)データ〈12)の読み書きに際し発生するエラー
を検出あるいは訂正するためのCRCコード(13)が
あり、またID部(9)の中には、1)ID部を認識す
るためのIDアドレス・マーク(15) 、2)ヘッド
番号け7)、このバイトの最上位ビット(ビット7)は
該セクタが不良セクタであることを示すフラグ・ビット
として使用し、ヘッド指定は下位4ビツトだけで行う。
Figure 7 shows the allocation of sectors for one track using the conventional formatting method, which is synchronized with an index pulse (1) generated from a disk device (not shown) once every rotation of the disk. Oh, light.
By turning on the gate signal (2) and sending one track's worth of write data (3) to the disk device, one track's worth of cells is allocated. In this diagram, there is a leading gap (4) and a final gap (7) to provide some extra space at the beginning and end of each track.
, and n sectors (51) to (5n) and two alternative sectors (61) and (62) are allocated. FIG. 8(a) shows the internal allocation of each sector, and FIG. 8(b) shows the internal allocation of the ID section therein. When writing data to a sector or reading data from this sector, it is necessary to specify the sector.
), the accompanying information is written as shown in . This accompanying information includes 1) a synchronization pattern (8) for synchronizing with the rotation of the disk, 2) an ID section (9), 3) data (1)
2) Data address mark (11
L4) There is a CRC code (13) for detecting or correcting errors that occur when reading and writing data (12), and the ID section (9) contains 1) an ID address for recognizing the ID section. Mark (15), 2) Head number 7), The most significant bit (bit 7) of this byte is used as a flag bit to indicate that the sector is a bad sector, and the head is specified using only the lower 4 bits. .

3)トラック番号であるシリンダ一番号(16L4) 
)ラック内のセクタ一番号(18)、5)  ID部読
み書きに際し発生するエラーを検出あるいは訂正するた
めのCRCコード(19)がある。
3) Cylinder number one (16L4) which is the track number
) Sector number (18) in the rack, 5) ID section There is a CRC code (19) for detecting or correcting errors that occur when reading or writing.

従って、1トラツクのフォーマツティングは先頭ギャッ
プ、複数個のセクター、複数個の代替セクターおよび最
終ギャップの順で行なわれる。
Therefore, formatting of one track is performed in the order of the leading gap, multiple sectors, multiple alternative sectors, and the final gap.

このようにしてフォーマツティングされた1トラツクに
おいて、例えば、ホスト・コンピュータから欠陥セクタ
ー情報として、セクター(51)および(53)が磁気
ディスク制御装置に報告されていた場合のセクター(5
1)および〈53)の抹消および代替の方法を第9図に
おいて説明する4 猷ず、ライト ゲート信号(2)をセクター(51)の
時にオンするとともに、該セクターのヘッド番号(17
)のフラグ・ビットがオンであるライト ブタ(3)を
磁気ディスク装置に送出することにより、該セクターを
フラグ・ビットだけが異なるものに書き換える。これに
より、該セクターは不良セクターとして書き込み/読み
込み使用領域から抹消される。さらに、同一インデック
ス・パルス間にライト・ゲート信号(2)を代替セクタ
ー(61)の時にオンするとともに、セクター(51)
が不良セクターとして設定される前と同一内容のライト
・データ(3)を磁気ディスク装置に送出する(フラグ
・ビットがオフ)。これによって、セクタ(51)は代
替セクター(61)に代替される0次のインデックス・
パルス間で同上の方法により、欠陥セクター(53〉を
代替セクター(62)に代替する。
In one track formatted in this way, for example, if sectors (51) and (53) have been reported to the magnetic disk controller as defective sector information from the host computer,
Deletion and alternative methods of 1) and <53) will be explained with reference to FIG.
) by sending the write sector (3) whose flag bit is on to the magnetic disk device, the sector is rewritten to one that differs only in the flag bit. As a result, the sector is deleted from the write/read use area as a bad sector. Furthermore, during the same index pulse, the write gate signal (2) is turned on at the time of the alternative sector (61), and when the sector (51)
Write data (3) having the same contents as before the sector was set as a bad sector is sent to the magnetic disk device (the flag bit is off). As a result, the sector (51) is replaced by the 0th-order index index (61).
Between pulses, the defective sector (53) is replaced by a replacement sector (62) using the same method as described above.

以上の方法により磁気ディスク円盤上に媒体欠陥がある
にもかかわらず、その欠陥セクターを欠陥のない代替セ
クターに代替するので、ユーザはあたかも欠陥のないデ
ィスク円盤と同様に使用することができる。
By the above method, even if there is a medium defect on the magnetic disk, the defective sector is replaced with a defect-free replacement sector, so that the user can use the magnetic disk as if it were a defect-free disk.

[発明が解決しようとする課題] 従来の磁気ディスク装置のフォーマツティング方式は以
上のようになされていたため、欠陥セクターにおける欠
陥の位置がID部以外にある場合は問題はないが、ID
部に欠陥のあった場合は、正常に代替処理ができなくな
ることがある。これは、ID部のフラグビットをオンす
ることにより、該セクターを不良セクターとして設定し
、書き込み/読み込み領域から抹消しているためであり
、もし、このビットに欠陥があり、フラグビットをオン
させたにもかかわらず読み出し時、このビットがオフで
あった場合は当セクターと当セクタの代替先である代替
セクターとの区別が判断できなくなるからである。上記
のように、従来の磁気ディスク装置のフォーマツティン
グ方式では欠陥の位置がID部にある場合、正常な代替
処理ができなくなることがあるといった課題かあった。
[Problems to be Solved by the Invention] Since the formatting method of the conventional magnetic disk device was performed as described above, there is no problem if the defect in the defective sector is located outside the ID section.
If there is a defect in the part, normal replacement processing may not be possible. This is because by turning on the flag bit in the ID section, the sector is set as a bad sector and erased from the write/read area.If this bit is defective and the flag bit is turned on, However, if this bit is off at the time of reading, it becomes impossible to distinguish between the current sector and the alternative sector to which the current sector is being replaced. As mentioned above, in the conventional formatting method of a magnetic disk device, there is a problem in that if a defect is located in the ID section, normal replacement processing may not be possible.

この発明は上記のような課題を解消するためになされた
もので、媒体欠陥がどこにあっても正常に代替処理がて
きる磁気ディスク装置のフォーマツティング方式を得る
ことを目的とする。
The present invention has been made to solve the above-mentioned problems, and its object is to provide a formatting method for a magnetic disk device that can normally carry out alternative processing no matter where a medium defect is located.

[課題を解決するための手段] この発明に係る磁気ディスク装置のフォーマツティング
方式は、各セクターのID部に当該セクターのアドレス
情報(当該シリンダ一番号、当該ヘッド番号および当該
セクタ一番号)と代替先のアドレス情報(代替先シリン
ダ一番号、代替先ヘッド番号および代替先セクタ一番号
)を記録し、欠陥セクターにおいては、上記ID部を当
該欠陥セクターの領域に複数個記録するようにしたもの
である。
[Means for Solving the Problem] The formatting method of the magnetic disk device according to the present invention includes address information of the sector (the cylinder number, the head number, and the sector number) in the ID section of each sector. Address information of the replacement destination (replacement destination cylinder 1 number, replacement destination head number, and replacement destination sector 1 number) is recorded, and in the case of a defective sector, a plurality of the above ID parts are recorded in the area of the defective sector. It is.

[作 用] この発明においては、ホスト・コンピュータから欠陥セ
クターへアクセス要求がなされた場合、まず、当該欠陥
セクターの最初のID部を読み込み、エラーの検出を行
う。もし、エラーが検出された場合は次のID部を読み
込み、エラーの検出を行う。エラーが検出される限り、
上記処理を行う。もし、エラーが検出されない場合はI
D部の中の代替先アドレス情報により、代替セクターを
アクセスしデータの書き込みあるいは読み込みを行う。
[Operation] In the present invention, when a host computer requests access to a defective sector, first the first ID part of the defective sector is read to detect an error. If an error is detected, the next ID section is read and error detection is performed. As long as an error is detected,
Perform the above processing. If no error is detected, I
The alternative sector is accessed and data is written or read based on the alternative destination address information in part D.

これにより、媒体欠陥が欠陥セクターのどの位置にあっ
ても正常な代替処理ができる。
As a result, normal replacement processing can be performed no matter where the medium defect is located in the defective sector.

[実施例] 以下、この発明の一実施例を図について説明する。第1
図は本発明による代替セクターを設けた場合の1台トラ
ック分のセクター割り付は例を示したものであり、第2
図(a)は本発明の各セクタの内部割り付けを示したも
のであり、第2図(b)はその中のID部の内部割り付
けを示したものであり、第2図(c)は第2図(b)の
中のFLAに部のビット割り付は例を示したものであり
、第3図は本発明における代替処理実施例をフローライ
トで示したものであり、第4図は欠陥セクタ一部分のフ
ォーマツティング例を示したものであり、第5図は本発
明による欠陥セクターの代替処理実施結果を示したもの
であり、第6図は本発明における書込み/読込み処理実
施例をフローチャートで示したものである。図において
、(1)はインデックス・パルス信号、(2)はライト
ゲート信号、(3)はライトデータ、(4)はギャップ
1 、(51)〜(5n)はセクター、(61)、(6
2)は代替セクター、(7)はギャップ4、(8)は同
期化パターン、(9)および(91)〜(9n)はID
部、(10)はギャップ2、(11)はデータ・アドレ
ス・マーク、(12)はデータ、〈13)はCRCコー
ド、(14)はギャップ3、(15)はIDアドレス・
マーク、(16)はシリンダ一番号、(17)はヘッド
番号、(18)はセクタ一番号、(19)はID部CR
Cコード、(20)はFLAG、(21)は代替先ヘッ
ド番号、(23)は代替先セクタ一番号である。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. 1st
The figure shows an example of the sector allocation for one truck when an alternative sector is provided according to the present invention.
Figure (a) shows the internal allocation of each sector of the present invention, Figure 2 (b) shows the internal allocation of the ID part therein, and Figure 2 (c) shows the internal allocation of each sector. The bit allocation for FLA in Fig. 2(b) is an example, Fig. 3 shows an alternative processing example in the present invention using flow lights, and Fig. 4 shows an example of defective processing. This figure shows an example of formatting a part of a sector. FIG. 5 shows the result of performing alternative processing for a defective sector according to the present invention. FIG. 6 is a flowchart showing an example of write/read processing according to the present invention. This is shown in . In the figure, (1) is the index pulse signal, (2) is the write gate signal, (3) is the write data, (4) is the gap 1, (51) to (5n) are the sectors, (61), (6
2) is the alternate sector, (7) is the gap 4, (8) is the synchronization pattern, (9) and (91) to (9n) are the ID
(10) is gap 2, (11) is data address mark, (12) is data, <13) is CRC code, (14) is gap 3, (15) is ID address/
Mark, (16) is the cylinder number, (17) is the head number, (18) is the sector number, (19) is the ID part CR
C code, (20) is the FLAG, (21) is the replacement destination head number, and (23) is the replacement destination sector number.

次に、本磁気ディスク装置がホスト・コンピュタからフ
ォーマツティング指令を受けた場合の1トラツク分のフ
ォーマツティング方法を第1図から第5図を用いて詳細
に説明する。ディスクの1回転につき一度ディスク装置
から発生されるインデックス・パルス信号(1)に同期
して、ライトケート信号(2)をオンするとともに1ト
ラツク分のライト・データ(3〉トディスク装置に送出
することにより、1トラツク分のセクターの割り付けを
行う。第1図では、各トラックの始めと終わりには若干
の余裕を持たせるための先頭ギャップ(4)および最終
ギャップ(7)があり、そして、n個のセクター(51
)〜(5n)および2個の代替セクタ(61)、(62
)が割り付けられている。第2図(a)は各セクターの
内部割り付けを示したものであり、セクターにデータを
書き込む、あるいはこのセクターからデータを読み込む
場合そのセクターを特定することが必要なため、当該各
セクターにはブタ(12)以外に第2図(、)に示した
ような付随情報を書き込む。この付随情報は、1)ディ
スクの回転との同期を行なうための同期化情報(8)、
2)ID部(9)、3)データ(12)を認識するため
のブタ・アドレス マーク(11)、4)データ(12
)の読み書きに際し発生するエラーを検出あるいは訂正
するためのエラーコード(13)で構成する。第2図(
b)は第2図(a)の中のID部の内部割り付けを示し
たものであり、1〉正常なセクターが欠陥セクタかを認
識するためのFLAf;(20)、2)  トラック番
号であるシリンダ一番号(16) 、3)ヘッド番号(
17)、4)1〜ラツク内のセクタ一番号(18)、5
)  I D部読み書きに際し発生するエラーを検出す
るあるいは訂正するためのCRCコード(19)で構成
する。第2図(c)は第2図<b>の中のFLAG部の
ビット割り付は例を示したちのである。第1図の各セク
ター(51)〜(5n)のFLAG部には当該各セクタ
ーが正常なセクターであることを示すバイナリデータの
0を書き込む。従って、1トラツクのフォーマツティン
グは先頭ギャップ、複数個のセクター、複数個の代替セ
クターおよび最終ギャップの順で行う。このようにして
フォーマツティングされた1トラツクにおいて、例えば
、ホスト・コンピュータから欠陥セクター情報として、
セクター(51)および(53)が磁気ディスク装置に
報告されていた場合のセクタ(51)および(53)の
抹消および代替の方法を第3図の代替処理例のフローチ
ャートおよび第4図。
Next, a method for formatting one track when this magnetic disk device receives a formatting command from a host computer will be explained in detail with reference to FIGS. 1 to 5. In synchronization with the index pulse signal (1) generated from the disk device once per rotation of the disk, the write signal (2) is turned on and the write data for one track (3) is sent to the disk device. By doing this, sectors for one track are allocated.In Figure 1, there is a leading gap (4) and a final gap (7) at the beginning and end of each track to provide some margin, and, n sectors (51
) to (5n) and two alternative sectors (61), (62
) is assigned. Figure 2 (a) shows the internal allocation of each sector, and since it is necessary to specify the sector when writing data to or reading data from this sector, each sector has a In addition to (12), additional information as shown in FIG. 2 (,) is written. This accompanying information includes 1) synchronization information (8) for synchronizing with the rotation of the disk;
2) ID part (9), 3) Pig address mark (11) for recognizing data (12), 4) Data (12)
) consists of an error code (13) for detecting or correcting errors that occur when reading or writing. Figure 2 (
b) shows the internal allocation of the ID section in Fig. 2(a); 1> FLAf for recognizing whether a normal sector is a defective sector; (20); 2) Track number. Cylinder number (16), 3) Head number (
17), 4) 1 to sector number in rack (18), 5
) It consists of a CRC code (19) for detecting or correcting errors that occur when reading and writing the ID section. FIG. 2(c) shows an example of the bit assignment of the FLAG section in FIG. 2<b>. Binary data 0 indicating that each sector is a normal sector is written in the FLAG portion of each sector (51) to (5n) in FIG. Therefore, formatting of one track is performed in the order of the leading gap, a plurality of sectors, a plurality of alternative sectors, and a final gap. For example, in one track formatted in this way, defective sector information is sent from the host computer.
FIG. 3 is a flowchart of an alternative processing example and FIG. 4 shows an alternative method for erasing sectors (51) and (53) when sectors (51) and (53) have been reported to the magnetic disk device.

第5図を用いて説明する。This will be explained using FIG.

第3図において、まず、ライト ゲート信号(2)を欠
陥セクター(51)の時のみにオンにして、該欠陥セク
ターにn個のIDを書き込む。このn個のIDは第4図
で示すようにn個のID部とn1個のギャップ部で構成
される。nの値は少なくとも2以上で上記IDの書き込
みが該欠陥セクターの領域を越えない範囲である。この
時の各ID部(91)〜(9n)におけるFLAGには
、第2図(c)のように、最初のID(91)にはバイ
ナリデータの1を、次のI D (92)にはバイナリ
データの2を、同様にI D (9n)にはバイナリデ
ータのnを設定し、当該セクターとバイナリデータ0を
持つ欠陥のない正常なセクターと区別する。また、シリ
ンダー番号(16)には当該セクター(51)のシリン
ダ一番号を、ヘッド番号(17)には当該セクター(5
1)のヘッド番号を、セクタ一番号(18)には当該セ
クター(51)のセクタ一番号を設定する。さらに、代
替先シリンダ一番号(21)、代替先ヘッド番号(22
)、代替先セクタ一番号(23)には、代替先である代
替先セクター(61)のシリンダ一番号、ヘッド番号、
セクタ一番号を設定する。これにより、当該セクタは不
良セクターとして書き込み/読み込み使用領域から抹消
される。
In FIG. 3, first, the write gate signal (2) is turned on only when there is a defective sector (51), and n IDs are written in the defective sector. As shown in FIG. 4, the n IDs are composed of n ID parts and n1 gap parts. The value of n is at least 2 or more, and the writing of the ID does not exceed the area of the defective sector. At this time, in the FLAG in each ID section (91) to (9n), as shown in FIG. 2(c), the first ID (91) is set to binary data 1, and the next ID (92) is set to Similarly, ID (9n) is set to binary data 2, and ID (9n) is set to binary data n to distinguish the sector from a normal sector without a defect that has binary data 0. In addition, the cylinder number (16) is the cylinder number of the sector (51), and the head number (17) is the cylinder number of the sector (51).
1), and the sector 1 number of the sector (51) is set in the sector 1 number (18). Furthermore, the replacement destination cylinder number (21) and the replacement destination head number (22) are added.
), the replacement destination sector number (23) contains the cylinder number, head number, and head number of the replacement destination sector (61), which is the replacement destination.
Set sector number. As a result, the sector is deleted from the write/read area as a bad sector.

次に、上記と同一インデックス・パルス間にライト・ゲ
ート信号(2)を代替セクター(61)の時のみにオン
にし、該代替セクターのIDを書き換える。この書き換
えは以下のように行う。当該代替セクター(61)のI
D部(9)におけるFLAG(20)には正常なセクタ
ーを示すバイナリデータ0を設定し、シリンダ一番号(
16)には当該代替セクター(61)のシリンダ一番号
を、ヘッド番号(17)には当該代替セクター(61)
のヘッド番号を、セクタ一番号(18)には当該代替セ
クター(61)のセクタ一番号を設定する。また、代替
先シリンダ一番号(21)、代替先ヘッド番号(22)
、代替先セクタ一番号(23)には、代替先である欠陥
セクター(51)のシリンダ一番号、ヘッド番号、セク
タ一番号を設定する。これにより、当該代替セクターが
どのセクターを代替しているか分かる。但し、これは、
設定しても、しなくともかまわない。また、代替処理を
行わない正常なセクターにおける代替先シリンダ一番号
(21)、代替先ヘッド番号(22)、代替先セクタ一
番号(23)には、当該ディスク装置で存在しない値を
設定しておけば、代替先のセクターの値と混同すること
はない、但し、これも付加機能である。これによって、
セクター(51)は代替セクター(61)に代替される
0以上、第3図を用いてセクター(51)を代替セクタ
ー(61)に代替する方法を説明したが、同様の方法に
より、次のインデックス・パルス間で欠陥セクター(5
3)を代替セクター(62)に代替する。第5図は上記
方法により、欠陥セクター(51)および(53)がど
のように代替されたかを示したものである。
Next, during the same index pulse as above, the write gate signal (2) is turned on only for the alternative sector (61), and the ID of the alternative sector is rewritten. This rewriting is performed as follows. I of the said alternative sector (61)
FLAG (20) in part D (9) is set to binary data 0 indicating a normal sector, and cylinder number one (
16) is the cylinder number of the alternative sector (61), and head number (17) is the cylinder number of the alternative sector (61).
The sector 1 number of the alternative sector (61) is set in the sector 1 number (18). Also, the replacement destination cylinder number (21) and the replacement destination head number (22)
, the cylinder number, head number, and sector number of the defective sector (51) that is the replacement destination are set in the replacement destination sector number (23). This allows us to know which sector the alternative sector is replacing. However, this
It doesn't matter if you set it or not. In addition, values that do not exist in the relevant disk device are set for the replacement destination cylinder number 1 (21), replacement destination head number (22), and replacement destination sector 1 number (23) in a normal sector that does not undergo replacement processing. If you set this value, it will not be confused with the value of the sector to be substituted.However, this is also an additional function. by this,
The sector (51) is replaced by an alternative sector (61) of 0 or more.The method of replacing the sector (51) with an alternative sector (61) using FIG. 3 was explained using the same method.・Defect sectors (5
3) is replaced by an alternative sector (62). FIG. 5 shows how defective sectors (51) and (53) are replaced by the above method.

このような代替処理がなされたディスク装置において、
ホスト・コンピューターから書込みあるいは読込み要求
がなされた場合の処理方法を第6図を用いて説明する。
In disk devices that have undergone such alternative processing,
The processing method when a write or read request is made from the host computer will be explained using FIG.

まず、要求されたセクタにおいて、FLAGの値がOで
あるIDを探す。該セクターが代替処理されていない正
常なセクターであればこのIDが見つかり、該セクター
で書込みあるいは読込みを行って目的の処理を終える。
First, an ID whose FLAG value is O is searched for in the requested sector. If the sector is a normal sector that has not been subjected to alternative processing, this ID is found, writing or reading is performed in the sector, and the target processing is completed.

該セクターが代替処理されている欠陥セクターであれば
このIDは見つからないため以下の処理を行1)  F
LAGの値をひとつ増やして再度IDを探す。
If the sector is a defective sector that has been replaced, this ID cannot be found, so perform the following process 1) F
Increase the LAG value by one and search for the ID again.

2)ID部にエラーがなければ代替先シリンダ一番号(
21)、代替先ヘッド番号(22)、代替先セクタ一番
号(23)で指定されている代替セクターに書込みある
いは読込みを行って目的の処理を終える。
2) If there is no error in the ID section, enter the replacement destination cylinder number (
21), writes or reads to the alternative sector specified by the alternative destination head number (22) and the alternative destination sector number (23) to complete the target process.

3)ID部にエラーがあった場合、FLAGの値がn以
下であれば1)に戻って次のIDを捜す。
3) If there is an error in the ID section and the value of FLAG is less than or equal to n, return to 1) and search for the next ID.

nを越える場合(全てのIDに読み込みエラが発生する
ことはエラーレートから考えて可能性は極めて低い)、
ホスト・コンピュタ−に欠陥セクター読み込み不良の旨
通知して処理を終える。
If it exceeds n (considering the error rate, it is extremely unlikely that a reading error will occur for all IDs),
The host computer is notified of the failure to read the defective sector and the process ends.

以上のように、本代替処理方法を用いれば媒体欠陥が欠
陥セクターのどの位置にあっても正常な書込みあるいは
読込みができる。
As described above, if this alternative processing method is used, normal writing or reading can be performed no matter where the medium defect is located in the defective sector.

なお、上記実施例の1トラツクのフォーマツティング例
はあくまでも例示であり、例えば、代替セクターを欠陥
セクターと同一トラック上にかならず設定する必要はな
く、また、FLAG部の内容の意付けおよびギャップの
長さなど本発明の要旨内で適宜に選択されても同様の効
果を奏する。
Note that the formatting example of one track in the above embodiment is just an example; for example, it is not always necessary to set the alternative sector on the same track as the defective sector, and it is not necessary to set the alternative sector on the same track as the defective sector. Similar effects can be obtained even if the length is appropriately selected within the gist of the present invention.

[発明の効果] 以上のように、この発明によれば、ホスト・コンピュー
タが指定した欠陥セクターのフォーマツティングにおい
て、当該欠陥セクターの領域全般に渡って、当該セクタ
ーのアドレス情報(当該シリンダ一番号、当該ヘッド番
号および当該セクタ番号)と代替先のアドレス情報(代
替先シリンダ一番号、代替先ヘッド番号および代替先セ
クタ番号)等を含むID部を複数個記録するようにした
ので、媒体欠陥が欠陥セクターのどの位置にあっても正
常な代替処理ができるといった効果を奏する。また、代
替先のアドレス情報がID部に付加されているため欠陥
セクターとその代替セクターが同一トラック上になくて
も(シリンダ一番号あるいはヘッド番号が異なっても)
代替処理ができるといった効果を奏する。
[Effects of the Invention] As described above, according to the present invention, when formatting a defective sector specified by a host computer, the address information of the sector (the cylinder number , the relevant head number, and the relevant sector number) and the replacement destination address information (the replacement destination cylinder number, the replacement destination head number, and the replacement destination sector number), etc. are recorded, so that media defects can be avoided. This has the effect that normal replacement processing can be performed no matter where the defective sector is located. In addition, since the address information of the replacement destination is added to the ID section, even if the defective sector and its replacement sector are not on the same track (even if the cylinder number or head number is different)
This has the effect of enabling alternative processing.

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

第1図はこの発明による代替セクターを設けた場合の1
トラツク分のセクター割り付は例を示した図、第2図(
a)はこの発明の各セクターの内部割り付けを示した図
、第2図(b)はその中のID部の内部割り付けを示し
た図、第2図(c)は第2図(b)の中のFLAG部の
ビット割り付は例を示した図、第3図はこの発明におけ
る代替処理例を示すフローチャート、第4図は欠陥セク
タ一部分のフォマツティング例を示した図、第5図はこ
の発明による欠陥セクターの代替処理実施結果を示した
図、第6図はこの発明における書込み/読込み処理例を
示すフローチャートラック、第7図は従来のフォーマツ
ティング方式において代替セクターを設けた1トラック
分のセクター割り付けを示した図、第8図(a)は各セ
クターの内部割り付けを示した図、第8図(b)はその
中のID部の内部割り付けを示した図、第9図は従来の
フォーマツティング方式による欠陥セクターの代替処理
方法および実施結果を示した図である。 図において、(1)はインデックス・パルス信号、(2
)はライトゲート信号、(3)はライトデータ、(4)
はギャップ1、(51)〜(5n)はセクター、(61
)(62)は代替セクター、(7)はギャップ4、(8
)は同期化パターン、(9)および(91)〜(9n)
はID部、(10)はギャップ2、(11)はデータ・
アドレス マク、(12)はデータ、(13)はCRC
コード、(14)はギャップ3、り15)はIDアドレ
ス マーク、(16)はシリンダ一番号、(17)はヘ
ッド番号、(18)はセクタ一番号、(19)はID部
CRCコード、(20)はFLAG、(21〉は代替先
シリンダ一番号、(22)は代替先ヘッド番号、(23
)は代替先セクタ一番号である。 なお、図中、同一符号は同一、又は相当部分を示す。 壓3図 W11図 に2図 テ゛−夕 P/f−)4図 昂5図 W)6図 然7図 篤8図
Figure 1 shows a case where an alternative sector according to the present invention is provided.
An example of sector allocation for tracks is shown in Figure 2 (
a) is a diagram showing the internal allocation of each sector of the present invention, FIG. 2(b) is a diagram showing the internal allocation of the ID section, and FIG. FIG. 3 is a flowchart showing an example of alternative processing according to the present invention, FIG. 4 is a diagram showing an example of formatting a part of a defective sector, and FIG. 6 is a flowchart track showing an example of write/read processing in the present invention; FIG. 7 is a track in which a substitute sector is provided in the conventional formatting method. Figure 8(a) is a diagram showing the internal allocation of each sector, Figure 8(b) is a diagram showing the internal allocation of the ID section, and Figure 9 is a diagram showing the internal allocation of each sector. FIG. 2 is a diagram illustrating an alternative processing method for defective sectors using a conventional formatting method and its implementation results. In the figure, (1) is the index pulse signal, (2
) is the write gate signal, (3) is the write data, (4)
is gap 1, (51) to (5n) are sectors, (61
) (62) is an alternative sector, (7) is a gap 4, (8
) are synchronization patterns, (9) and (91) to (9n)
is the ID section, (10) is the gap 2, and (11) is the data section.
Address mask, (12) is data, (13) is CRC
code, (14) is gap 3, 15) is ID address mark, (16) is cylinder 1 number, (17) is head number, (18) is sector 1 number, (19) is ID part CRC code, ( 20) is FLAG, (21> is the replacement destination cylinder number, (22) is the replacement destination head number, (23)
) is the replacement destination sector number. In addition, in the figures, the same reference numerals indicate the same or equivalent parts. Fig. 3, Fig. 11, Fig. 2 (P/f-), Fig. 4, Fig. 5, Fig. 6, Fig. 7, Atsushi, Fig. 8.

Claims (1)

【特許請求の範囲】  フォーマッテイングによりディスク面内の各トラック
に複数個のセクターと代替セクターが設定されるフォー
マッテイング方式であって、 ホスト・コンピューターからの欠陥セクタの指定に応じ
て当該欠陥セクターに少なくとも2個以上のID部とギ
ャップ部を埋め込み、 当該ID部には当該セクタのアドレス情報と代替先のア
ドレス情報を設けたことを特徴とする磁気ディスク装置
のフォーマッテイング方式。
[Claims] A formatting method in which a plurality of sectors and alternative sectors are set in each track on a disk surface by formatting, and the formatting method sets a plurality of sectors and alternative sectors in each track on a disk surface, and in accordance with a defective sector specified by a host computer, the defective sector is A formatting method for a magnetic disk device, characterized in that at least two or more ID sections and a gap section are embedded, and the ID section is provided with address information of the sector and address information of an alternative destination.
JP19297290A 1990-07-23 1990-07-23 Formating system for magnetic disk device Pending JPH0479074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19297290A JPH0479074A (en) 1990-07-23 1990-07-23 Formating system for magnetic disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19297290A JPH0479074A (en) 1990-07-23 1990-07-23 Formating system for magnetic disk device

Publications (1)

Publication Number Publication Date
JPH0479074A true JPH0479074A (en) 1992-03-12

Family

ID=16300109

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19297290A Pending JPH0479074A (en) 1990-07-23 1990-07-23 Formating system for magnetic disk device

Country Status (1)

Country Link
JP (1) JPH0479074A (en)

Similar Documents

Publication Publication Date Title
US5265230A (en) Method and apparatus for determining sector status in a data storage device by writing a status of read-only, writable, or obliterated in an error recovery area of each sector
JP3206657B2 (en) Replacement processing method and information recording / reproducing device
US4525839A (en) Method of controlling storage device
EP0243503B1 (en) Data recording/regenerating device
RU2360300C2 (en) Non-rewritable optical disk and method and device for controlling defective zones on non-rewritable optical disk using current control information for defective zone
US4833665A (en) Information recording control system reusing a defective area
US20070094550A1 (en) Information recording device
JPH07182793A (en) Housing and retrieval system of optical disk and method for decision of excessive use of spare sector of optical disk
KR910010414A (en) Method and apparatus for writing data to a magnetic recording medium
JPH0427626B2 (en)
JPH02216672A (en) Optical disk drive device
JPH04243061A (en) Flexible magnetic disk device
US5467361A (en) Method and system for separate data and media maintenance within direct access storage devices
US7027241B2 (en) Defect management for HDD with variable index architecture
EP0490400B1 (en) Information storage apparatus
JP2009223996A (en) Recording device
JP2009223996A5 (en)
US6539496B1 (en) Method for preventing repeating non-recoverable read errors at same physical location on data storage media
JPH06111479A (en) Information recording and reproducing device
JPH0479074A (en) Formating system for magnetic disk device
JP4273149B2 (en) Information recording and playback method
JPH04245072A (en) Disk device with data management information area on medium
JP3281063B2 (en) Optical disk certification method
RU2294025C2 (en) Method for controlling processing of disk flaws and device for realization of said method, and also disk for said device
JPH04215153A (en) Information recording and reproducing device