JPH06251503A - Method for controlling flexible disk device - Google Patents

Method for controlling flexible disk device

Info

Publication number
JPH06251503A
JPH06251503A JP3815793A JP3815793A JPH06251503A JP H06251503 A JPH06251503 A JP H06251503A JP 3815793 A JP3815793 A JP 3815793A JP 3815793 A JP3815793 A JP 3815793A JP H06251503 A JPH06251503 A JP H06251503A
Authority
JP
Japan
Prior art keywords
recorded
information management
management area
flexible disk
medium
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
JP3815793A
Other languages
Japanese (ja)
Inventor
Koji Nakane
弘二 中根
Hideto Shiraishi
英人 白石
Kenichi Senda
健市 千田
Hidekazu Shinya
英一 新屋
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.)
Hitachi Ltd
Hitachi Asahi Electronics Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Asahi Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd, Hitachi Asahi Electronics Co Ltd filed Critical Hitachi Ltd
Priority to JP3815793A priority Critical patent/JPH06251503A/en
Publication of JPH06251503A publication Critical patent/JPH06251503A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Moving Of Head For Track Selection And Changing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Abstract

PURPOSE:To manage the defect of a medium without using a user area by recording a necessary information with the free area of the medium corresponding to the dislocation of a head as an information management area and reporting the information to a host device. CONSTITUTION:Areas corresponding to the dislocation of the heads 22 and 23 for the flexible disk 21 in the flexible disk device are utilized an information management area 24. Then, the number of rewritings, the number of copied parts, the number of chukings, error information, the operation mode of the disk 21, etc., are recorded on the area 24, managed and information about there is reported to the host device. Thus, the defect management of the disk is carried out without using the user area, the life, damages, etc., of the medium of the disk, etc., are managed thereby and the handleability of the device is improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、媒体の空きエリアを利
用して欠陥管理を行うことが可能なフレキシブルディス
ク装置の制御方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of controlling a flexible disk drive capable of performing defect management by utilizing an empty area of a medium.

【0002】[0002]

【従来の技術】従来、磁気ディスク媒体に対する欠陥管
理を行うものとしては、例えば、特開平2−16165
9号公報に記載された『ハ−ドディスク装置』がある。
この装置では、ディスクの通常のデ−タエリア以外に欠
陥管理用のトラックを設けて、デ−タエリアにディフェ
クトフリ−領域を存在させずに、エラ−管理を行うこと
ができるようにしている。すなわち、ヘッドを媒体の最
外周部から内側にシ−クさせ、1シリンダでも欠陥のな
いディフェクトフリ−のトラックを見付け出して、この
トラックを欠陥管理用トラックとして形成し、欠陥管理
用トラックより内側のトラックをデ−タエリアとするこ
とによって、この欠陥管理用トラックによりデ−タエリ
アの欠陥管理を行っている。これに対して、フレキシブ
ルディスク装置(以下、FDDと略記する)では、媒体
に対する欠陥管理を行うものが見当らず、欠陥の生じた
ものは廃棄するより他に方法がなかった。すなわち、フ
レキシブルディスク自体は比較的に安価であるため、欠
陥が生じないうちに新品に交換する方法が当然のことと
考えられていた。
2. Description of the Related Art Conventionally, for managing defects in a magnetic disk medium, for example, Japanese Patent Laid-Open No. 2-16165
There is a "hard disk device" described in Japanese Patent No.
In this apparatus, a defect management track is provided in addition to the normal data area of the disc, and error management can be performed without the presence of a defect-free area in the data area. That is, the head is sought from the outermost peripheral portion of the medium inward to find a defect-free track even with one cylinder, and this track is formed as a defect management track. By using the track No. as the data area, the defect management track performs the defect management of the data area. On the other hand, in the flexible disk device (hereinafter, abbreviated as FDD), there is no device that manages defects on the medium, and there is no other method than discarding the defect. That is, since the flexible disk itself is relatively inexpensive, it was considered natural to replace it with a new one before a defect occurred.

【0003】しかし、最初から欠陥の存在する媒体もあ
り、このような媒体に対しては簡単に欠陥管理ができれ
ば、省資源、経費節減からも極めて有効である。そこ
で、上述のハ−ドディスクの欠陥管理方法をFDDにも
適用する方法が考えられるが、FDDに適用しようとす
ると、媒体のデ−タエリアを媒体管理エリアとして使用
することになるため、他の異なる方式のFDDで書き込
み動作を行うときには、それまでに記録した管理情報が
消去されてしまうという問題がある。なお、同じ媒体に
異なる記録密度で記録する状態を、動作モ−ドと呼ぶこ
とにする。また、従来のFDDでは、同じ媒体に対して
異なる記録密度で記録する機能を備えおり、この場合、
記録密度を変えるためには媒体の回転数を変えて記録す
る必要があった。回転数を変えて記録したFDDに対し
て、上位装置がこれを読み出すためには、一旦、片方の
回転数をFDDに指定し、媒体上のデ−タエリアを読み
にいき、読み取れるか否かを判定し、読み取れない場合
には、他方の回転数で再度デ−タエリアを読み取る必要
があったので、媒体に記録されている記録密度を判定す
るという煩しさがあった。
However, some media have defects from the beginning, and if defect management can be easily performed on such media, resource saving and cost reduction are extremely effective. Therefore, it is conceivable to apply the above-mentioned hard disk defect management method to FDD, but if it is applied to FDD, the data area of the medium will be used as the medium management area. When a writing operation is performed by a different type of FDD, there is a problem that the management information recorded up to that time is erased. A state in which the same medium is recorded at different recording densities will be referred to as an operation mode. Further, the conventional FDD has a function of recording on the same medium at different recording densities.
In order to change the recording density, it was necessary to change the number of rotations of the medium for recording. In order for the host device to read the FDD recorded by changing the rotation speed, one rotation speed is designated in the FDD once, the data area on the medium is read, and whether the data can be read or not is read. If it is determined that the data area cannot be read, it is necessary to read the data area again at the other number of rotations. Therefore, it is troublesome to determine the recording density recorded on the medium.

【0004】[0004]

【発明が解決しようとする課題】このように、FDDは
同じ媒体に対して異なる記録密度で記録することができ
るために、一方の記録密度で書き込みを行うと他方の記
録密度で記録された管理情報が消去されてしまうという
問題があった。本発明の第1の目的は、このような従来
の課題を解決し、媒体のデ−タエリアを使用せずに、媒
体の欠陥管理を行うことができるフレキシブルディスク
の制御方法を提供することにある。本発明の第2の目的
は、リトライ回数の管理を行って、デ−タエラ−、デ
−タ破壊等の障害を未然に防止することができ、チャ
ッキング動作の回数を管理することにより、媒体が寿命
に達する前に、事前警告ができるようにしエラ−情報
を管理することにより、障害調査時に、FDDの過去の
障害状況を把握することができ、動作モ−ドを管理す
ることにより、媒体交換時やFDDの電源オン時の動作
モ−ド設定を容易にすることができるフレキシブルディ
スクの制御方法を提供することにある。
As described above, since the FDD can record on the same medium at different recording densities, when writing is performed at one recording density, the management recorded at the other recording density is performed. There was a problem that information was erased. A first object of the present invention is to solve the above conventional problems and provide a flexible disk control method capable of performing defect management of a medium without using the data area of the medium. . A second object of the present invention is to manage the number of retries to prevent a failure such as data error or data destruction in advance, and to manage the number of chucking operations to realize a medium. Before the product reaches the end of its life, it is possible to give a pre-warning and manage the error information so that the past failure status of the FDD can be grasped at the time of failure investigation, and the operation mode can be managed so that the medium It is another object of the present invention to provide a flexible disk control method capable of facilitating the operation mode setting at the time of replacement or when the power of the FDD is turned on.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、本発明によるフレキシブルディスクの制御方法は、
(イ)上位装置とバスを介して接続されたフレキシブル
ディスク装置において、記録媒体上のデ−タエリア以外
の空きエリアを情報管理エリアとして割り当て、記録媒
体アクセス時にエラ−が発生してリトライ動作が実行さ
れる毎に、リトライ動作の回数を情報管理エリアに記録
し、リトライ動作の回数とそれ以前に実行されたリトラ
イ回数との累計を算出して、1回のコマンド実行におけ
る同一部位でのリトライ回数が予め定めた値を越ている
ときには、部位に記録されているデ−タを上記情報管理
エリアにコピ−し、またコピ−した部位の数の累計も情
報管理エリアに記録して、部位の数の累計が予め定めた
値を越えているときには、上位装置にアラ−ムを出力し
て上位装置の表示器に表示するとともに、上位装置から
要求があれば、コピ−した部位の数およびコピ−デ−タ
を上位装置に送出することを特徴としている。また、
(ロ)情報管理エリアに、記録媒体を挿入した時のチャ
ッキング動作の累計回数を記録して、記録する毎に累計
回数が予め定めた値を越えたか否かを判定し、予め定め
た値を越えた時には、上位装置にアラ−ムを出力して上
位装置の表示器に表示するとともに、上位装置から要求
があれば、チャッキング動作の累計回数が予め定めた値
を越えたことを報告することも特徴としている。また、
(ハ)デ−タ読み込み/書き込み動作中等にエラ−等の
障害が発生したとき、障害が発生する毎にエラ−情報を
生成し、生成したエラ−情報を前記情報管理エリアにエ
ラ−情報を順次記録し、上位装置からエラ−情報収集コ
マンドを受けたときには、情報管理エリアに記録されて
いるエラ−情報を読み出して転送することも特徴として
いる。さらに、(ニ)情報管理エリアに、読み込み/書
き込みの動作モ−ドを記録しておき、フレキシブルディ
スク装置の電源ON時および記録媒体交換時には、情報
管理エリアを読み出して、フレキシブルディスク装置の
動作モ−ドが記録されているか否かをチェックすること
も特徴としている。
In order to achieve the above object, a flexible disk control method according to the present invention comprises:
(B) In a flexible disk device connected to a host device via a bus, an empty area other than the data area on the recording medium is assigned as an information management area, and an error occurs when the recording medium is accessed and a retry operation is executed. Each time, the number of retries is recorded in the information management area, the cumulative number of retries and retries executed before that is calculated, and the number of retries at the same part in one command execution is calculated. When the value exceeds a predetermined value, the data recorded in the part is copied to the information management area, and the total number of copied parts is also recorded in the information management area to record the part When the cumulative total of the numbers exceeds a predetermined value, an alarm is output to the higher-level device and displayed on the display of the higher-level device. - the number of sites and copy - de - is characterized by sending a data to the host device. Also,
(B) The cumulative number of chucking operations when the recording medium is inserted is recorded in the information management area, and it is determined whether or not the cumulative number exceeds a predetermined value each time recording is performed, and the predetermined value is determined. When it exceeds the limit, an alarm is output to the upper device and displayed on the display of the upper device, and if there is a request from the upper device, it reports that the cumulative number of chucking operations has exceeded a predetermined value. It is also characterized by doing. Also,
(C) When a failure such as an error occurs during data read / write operation, error information is generated each time the failure occurs, and the generated error information is transferred to the information management area. It is also characterized in that the error information recorded in the information management area is read out and transferred when the error information collection command is received from the host device by sequentially recording. Further, (d) a read / write operation mode is recorded in the information management area, and when the power of the flexible disk device is turned on or when the recording medium is replaced, the information management area is read and the operation mode of the flexible disk device is read. -It is also characterized by checking whether or not the code is recorded.

【0006】[0006]

【作用】本発明においては、FDDの空きエリアを利用
して媒体の管理を行う。すなわち、FDDでは、対面す
るヘッド間の干渉を避けるために、ヘッド位置を媒体の
直径方向に数トラック分ずらして配置している。媒体の
両面に配置されているデ−タ用トラック数は各面とも同
数であるにもかかわらず、ヘッドがずらして配置されて
いるため、媒体の上にヘッドのずれ分の空きエリアが生
じる。この空きエリアを、情報管理エリアとして利用す
るのである。この情報管理エリアには、FDDで媒体
をアクセスして、リトライ動作が実行されたときのリト
ライ動作の累計回数をリトライ部位の単位で記録し、リ
トライ動作回数の累計が所定の回数を越えた時、その部
位に記録されているデ−タを情報管理エリアにコピ−す
る。また、コピ−した回数の累計を媒体の情報管理エリ
アに記録し、コピ−した部位の数の累計が所定の数を越
えた時、またはコピ−する毎に上位装置に報告するか、
表示器に表示する。これにより、他の異なる方式のFD
Dで書き込み動作を行っても、それまでに記録した管理
情報が消去されないという利点がある。 媒体挿入時のチャッキング動作を実行した累計回数を
媒体の情報管理エリアに記録し、チャッキング動作の累
計回数が所定の値を越えたとき、またはチャッキング動
作を実行したとき、上位装置に報告するか、表示器に表
示する。このように、チャッキング動作回数を管理し、
上位装置への報告または表示器に表示されるので、媒体
の寿命を把握することができる。 媒体をアクセスしたとき、エラ−等の障害が発生する
毎にエラ−情報を順次、情報管理エリアに記録し、エラ
−情報を少なくとも2個以上記録できるようにする。こ
のようにFDDのエラ−情報を順次記録しておき、これ
を読み出せるようにしておくので、その媒体の過去の履
歴を把握することができる。 読み込み/書き込み動作の条件を、情報管理エリアに
記録しておき、次の電源がオンした時にこれを読み出し
て動作モ−ドにする。このように、FDDの動作モ−ド
を記録し、媒体が交換される毎に、または電源オン毎
に、これを読み出すので、その媒体に対する動作モ−ド
をFDD自体で指定することができる。
In the present invention, the medium is managed by utilizing the free area of the FDD. That is, in the FDD, in order to avoid the interference between the facing heads, the head positions are displaced by several tracks in the diameter direction of the medium. Although the number of data tracks arranged on both sides of the medium is the same on each side, the heads are arranged so as to be displaced, so that an empty area corresponding to the displacement of the head occurs on the medium. This empty area is used as an information management area. In this information management area, the medium is accessed by FDD, and the cumulative number of retry operations when the retry operation is executed is recorded in units of retry parts. When the cumulative total number of retry operations exceeds a predetermined number. , The data recorded in that part is copied to the information management area. In addition, the total number of times of copying is recorded in the information management area of the medium, and when the total number of copied parts exceeds a predetermined number, or is reported to the host device each time copying is made,
Display on the display. This allows other different types of FD
Even if the write operation is performed with D, there is an advantage that the management information recorded so far is not erased. Record the cumulative number of times the chucking operation was performed when the medium was inserted in the information management area of the medium, and report to the host device when the cumulative number of chucking operations exceeded a specified value or when the chucking operation was performed. Or display on the display. In this way, manage the number of chucking operations,
Since it is reported to the host device or displayed on the display, the life of the medium can be grasped. When the medium is accessed, error information is sequentially recorded in the information management area every time a failure such as an error occurs, so that at least two pieces of error information can be recorded. In this way, since the FDD error information is sequentially recorded and can be read out, the past history of the medium can be grasped. The conditions of read / write operation are recorded in the information management area, and when the next power supply is turned on, this is read and set in the operation mode. In this way, the operation mode of the FDD is recorded and read out every time the medium is exchanged or each time the power is turned on, so that the operation mode for the medium can be designated by the FDD itself.

【0007】[0007]

【実施例】以下、本発明の実施例を、図面により詳細に
説明する。図1は、本発明の一実施例を示すFDDと上
位装置周辺の構成図である。図1において、1は上位装
置、2はFDD、3はインタフェ−ス回路、4はロジッ
ク回路、5はROM、6はRAM、7はステッピングモ
−タドライバ−、8はスピンドルモ−タドライバ−、9
は書込み/読出し回路、10は表示器である。FDD2
内のインタフェ−ス回路3は、上位装置1とのデ−タ授
受を行うとともに、リ−ドオンリ−メモリ(ROM)5
およびデ−タ一時記憶のためのランダムアクセスメモリ
(RAM)6を用いて、ロジック回路4を介してステッ
ピングモ−タドライバ−7、スピンドルモ−タドライバ
−8および書き込み/読み出し回路9を制御する。上位
装置10は、FDD2の状態を表示するための表示器1
0を接続して、これを制御する。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 1 is a block diagram of the periphery of an FDD and a host device showing an embodiment of the present invention. In FIG. 1, 1 is a host device, 2 is an FDD, 3 is an interface circuit, 4 is a logic circuit, 5 is a ROM, 6 is a RAM, 7 is a stepping motor driver, 8 is a spindle motor driver, 9
Is a writing / reading circuit, and 10 is a display. FDD2
An interface circuit 3 therein exchanges data with the host device 1 and also has a read only memory (ROM) 5
A random access memory (RAM) 6 for temporarily storing data is used to control the stepping motor driver-7, the spindle motor driver-8 and the write / read circuit 9 via the logic circuit 4. The host device 10 is a display device 1 for displaying the status of the FDD 2.
Connect 0 to control this.

【0008】図2は、FDDに媒体を挿入した時点での
情報管理エリアを示す断面図である。FDD装置に媒体
を挿入したとき、図2(a)に示すように、媒体21を
アクセスするヘッド(上)22とヘッド(下)23が媒
体21の両面に存在しており、ヘッド(上)22はヘッ
ド(下)23よりも媒体21の内周側に数トラック分ず
れている。通常の読み書き動作では、ヘッド(上)22
とヘッド(下)23はデ−タエリアの最内周トラックで
停止するが、さらにヘッドを内周側にアクセスされるこ
とにより、空きエリア24が情報管理エリアとして使用
可能となる。また、同じようにして、図2(b)に示す
ように、通常の読み書き動作では、ヘッド(上)22と
ヘッド(下)23はデ−タエリアの最外周トラックで停
止するが、さらにヘッドを外周側にアクセスさせること
により、空きエリア25が情報管理エリアとして使用可
能となる。
FIG. 2 is a sectional view showing the information management area at the time when the medium is inserted into the FDD. When the medium is inserted into the FDD device, a head (upper) 22 and a head (lower) 23 for accessing the medium 21 are present on both sides of the medium 21, as shown in FIG. Reference numeral 22 is displaced from the head (lower) 23 toward the inner peripheral side of the medium 21 by several tracks. In normal read / write operation, the head (upper) 22
The head (lower) 23 stops at the innermost track of the data area, but the free area 24 can be used as an information management area by further accessing the head to the inner circumference side. Similarly, as shown in FIG. 2B, in a normal read / write operation, the head (upper) 22 and the head (lower) 23 stop at the outermost track of the data area, but the heads are further moved. By accessing the outer peripheral side, the empty area 25 can be used as an information management area.

【0009】図3、図4および図5は、それぞれ本発明
によるリトライ回数の管理、FDD起動後の動作、およ
び自己診断動作の各フロ−チャ−トである。リトライ回
数の管理方法では、図3に示すように、先ずFDDへの
媒体挿入を待ち(ステップ301)、媒体が挿入された
ならば、媒体をアクセスし(ステップ302)、FDD
によるリトライ動作が実行されたか否かを判断する(ス
テップ303)。リトライ動作が実行されなかったとき
には、正常終了となる(ステップ304)。リトライ動
作が実行されたときには、媒体の情報管理エリアにその
リトライ回数を記録し、累計をカウントする(ステップ
305)。同一リトライ部位、例えば同一セクタにおけ
る連続リトライ回数が一定の数に達したか(ステップ3
06)、あるいは同一セクタでリトライ回数が所定の数
に達したときには(ステップ307)、そのセクタに記
録されているデ−タを情報管理エリアにコピ−する(ス
テップ308)。コピ−が終了すると、コピ−終了信号
を出力し(ステップ309)、LED等への表示を行
う。そして、コピ−したセクタ数を情報管理エリアに記
録して、カウントした後(ステップ310)、媒体アク
セスを終了する。
FIGS. 3, 4, and 5 are flowcharts of the management of the number of retries, the operation after the FDD is started, and the self-diagnosis operation according to the present invention, respectively. In the method of managing the number of retries, as shown in FIG. 3, first, the medium is waited for to be inserted into the FDD (step 301), and if the medium is inserted, the medium is accessed (step 302) to perform the FDD.
It is determined whether or not the retry operation has been executed (step 303). When the retry operation is not executed, the process ends normally (step 304). When the retry operation is executed, the number of retries is recorded in the information management area of the medium and the total is counted (step 305). Has the number of consecutive retries in the same retry area, for example, the same sector, reached a certain number (step 3
06) or when the number of retries reaches a predetermined number in the same sector (step 307), the data recorded in the sector is copied to the information management area (step 308). When the copy is completed, a copy end signal is output (step 309) to display on the LED or the like. Then, the number of copied sectors is recorded in the information management area and after counting (step 310), the medium access is terminated.

【0010】次に、FDD起動後の動作では、図4に示
すように、FDDへの媒体の挿入を待ち(ステップ31
1)、媒体が挿入されたならば、媒体の自己診断動作を
行う(ステップ312)。その後、通常の処理に移る。
自己診断動作の詳細は、図5に示すように、FDDに媒
体を挿入した後、それまでに情報管理エリアに記録され
た、コピ−したセクタ数の累計を読み出し(ステップ3
13)、コピ−されたセクタ数が所定の数以上であるか
否かを判断する(ステップ314)。次に、コピ−され
たセクタ数が所定の数以上の時には、FDDから上位装
置にアラ−ム信号を出力し(ステップ315)、LED
等への表示を行う。セクタ数が所定の数以下の時には、
その時点で自己診断動作を終了する。図6は、本発明に
おけるFDDのチャッキング回数を管理する動作フロ−
チャ−トである。先ず、FDDへの媒体挿入を待ち(ス
テップ401)、媒体が挿入されたならば、媒体の情報
管理エリアに記録してあるチャッキング回数の累計をカ
ウントアップする(ステップ402)。チャッキング回
数の累計が所定の数、例えばチャッキング寿命回数の8
0%に達しており(ステップ403)、かつ寿命回数に
は達していない時には(ステップ404)、アラ−ムを
出力する(ステップ406)。一方、チャッキング回数
が寿命回数の80%に達していない時には、媒体アクセ
スを実行する。チャッキング回数が寿命回数に達した時
には、上位装置に寿命回数に達したことを報告し(ステ
ップ405)、媒体アクセスを実行する。
Next, in the operation after the FDD is activated, as shown in FIG. 4, the insertion of the medium into the FDD is waited (step 31).
1) If the medium is inserted, the medium self-diagnosis operation is performed (step 312). After that, the normal processing is started.
For details of the self-diagnosis operation, as shown in FIG. 5, after the medium is inserted into the FDD, the total number of copied sectors recorded in the information management area by that time is read (step 3
13) It is determined whether the number of copied sectors is equal to or larger than a predetermined number (step 314). Next, when the number of copied sectors is a predetermined number or more, an alarm signal is output from the FDD to the host device (step 315) and the LED is turned on.
Etc. are displayed. When the number of sectors is less than the specified number,
At that point, the self-diagnosis operation ends. FIG. 6 is an operation flow chart for managing the number of times the FDD is chucked in the present invention.
It is a chart. First, waiting for the medium to be inserted into the FDD (step 401), if the medium is inserted, the total number of chucking times recorded in the information management area of the medium is counted up (step 402). The total number of times of chucking is a predetermined number, for example, 8 times the number of times of chucking life.
When it has reached 0% (step 403) and has not reached the life count (step 404), an alarm is output (step 406). On the other hand, when the number of times of chucking has not reached 80% of the number of lifetimes, medium access is executed. When the number of times of chucking reaches the number of lifetimes, the upper device is notified that the number of lifetimes has been reached (step 405), and the medium access is executed.

【0011】図7および図8は、本発明におけるFDD
のエラ−情報の管理を行う動作フロ−チャ−トである。
先ず、図7に示すように、FDDが例えばデ−タ読み込
み動作中にエラ−が発生したときには、エラ−情報(セ
ンスデ−タ、エラ−が発生したコマンド)を生成して
(ステップ501)、生成されたエラ−情報を以前に記
録されたエラ−情報に加えて情報管理エリアに記録する
(ステップ502)。確実にエラ−情報が記録された否
かを判断し(ステップ503)、記録されていたならば
終了する。また、エラ−情報が確実に記録されていなか
ったときには、再度リトライするために、リトライ回数
を情報管理エリアに記録して、カウントアップする(ス
テップ504)。リトライ動作が10回実行されたか否
かを判断し(ステップ505)、10回未満であれば再
度リトライするため、ステップ502に戻ってエラ−情
報を情報管理エリアに記録する。リトライ動作が10回
目であれば、上位装置に対して処理失敗を報告して(ス
テップ506)、処理を終了する。一方、上位装置が媒
体に対して記録済みのエラ−情報を検索するコマンドを
発行したときには、図8に示すように、上位装置からエ
ラ−情報収集コマンドを受信し(ステップ507)、媒
体の情報管理エリアに記録されているエラ−情報を読み
出して(ステップ508)、そのエラ−情報を上位装置
に転送する(ステップ509)。
7 and 8 show the FDD according to the present invention.
Is an operation flow chart for managing the error information of the above.
First, as shown in FIG. 7, when an error occurs in the FDD during a data reading operation, error information (sense data, command in which an error has occurred) is generated (step 501). The generated error information is added to the previously recorded error information and recorded in the information management area (step 502). It is judged whether or not the error information is surely recorded (step 503), and if it is recorded, the process ends. If the error information is not surely recorded, the number of retries is recorded in the information management area and is counted up for retrying again (step 504). It is determined whether or not the retry operation has been executed 10 times (step 505), and if it is less than 10 times, retry is performed again, and therefore the process returns to step 502 and the error information is recorded in the information management area. If the retry operation is the tenth time, the processing failure is reported to the host device (step 506) and the processing ends. On the other hand, when the host device issues a command to search the recorded error information for the medium, as shown in FIG. 8, an error information collection command is received from the host device (step 507), and the medium information is received. The error information recorded in the management area is read (step 508), and the error information is transferred to the host device (step 509).

【0012】図9、図10および図11は、本発明にお
けるFDDの動作モ−ドを設定するフロ−チャ−トであ
る。図9では、FDD電源がONになった時および媒体
交換の時に、媒体の動作モ−ドをチェックする処理が示
されている。先ず、媒体の挿入を待ち(ステップ60
1)、媒体が挿入されたならば、情報管理エリアを読み
出して(ステップ602)、FDDの動作モ−ドが記録
されているか否かをチェックする(ステップ603)。
動作モ−ドが記録されている時には、FDDをその動作
モ−ドにして(ステップ604)、FDD内部のRAM
6にその動作モ−ドを記録する(ステップ605)。そ
の後、上位装置からのコマンド受信を待つ(ステップ6
06)。ステップ603において、媒体の情報管理エリ
アにFDDの動作モ−ドが記録されていない時には、以
下の動作で2つの動作モ−ド(A,B)の自動設定処理
を行う(ステップ607〜612)。先ず、動作モ−ド
Aのスピンドルモ−タの回転数でデ−タエリアを読み出
す(ステップ607)。次に、動作モ−ドBのスピンド
ルモ−タの回転数でデ−タエリアを読み出す(ステップ
608)。その後、動作モ−ドAおよびBの読み出し結
果について、両者共、正常に終了したか、あるいはエラ
−終了したかを判定する(ステップ609)。両者とも
正常終了した場合には、モ−ドA,Bのいずれにも特定
できないので、動作モ−ド未設定であることをFDDの
内部RAMに記憶する(ステップ613)。そして、コ
マンド待ちとなる(ステップ606)。また、動作モ−
ドAでのみ正常終了した場合には(ステップ610)、
FDDの動作モ−ドをAに設定する(ステップ61
2)。また、動作モ−ドAでは異常終了となった場合に
は、FDDの動作モ−ドをBとする(ステップ61
1)。そして、動作モ−ドAまたはBに設定したときに
は、FDD内のRAM6に設定した動作モ−ドを記録し
て(ステップ605)、コマンド待ちとなる(ステップ
606)。このように、モ−ドAまたはBのいずれかに
特定できたときには、いずれであるかを判定することに
より、FDDをその動作モ−ドに設定する。
FIGS. 9, 10 and 11 are flowcharts for setting the operation mode of the FDD according to the present invention. FIG. 9 shows a process of checking the operation mode of the medium when the FDD power source is turned on and when the medium is replaced. First, wait for the insertion of the medium (step 60
1) When the medium is inserted, the information management area is read (step 602) and it is checked whether the FDD operation mode is recorded (step 603).
When the operation mode is recorded, the FDD is set to the operation mode (step 604) and the RAM inside the FDD is set.
The operation mode is recorded in 6 (step 605). After that, it waits for the command reception from the host device (step 6).
06). In step 603, when the FDD operation mode is not recorded in the information management area of the medium, two operation modes (A, B) are automatically set by the following operations (steps 607 to 612). . First, the data area is read at the number of revolutions of the spindle motor in the operation mode A (step 607). Next, the data area is read at the number of revolutions of the spindle motor in operation mode B (step 608). After that, as to the reading results of the operation modes A and B, it is judged whether both are normally ended or the errors are ended (step 609). If both are normally completed, it cannot be specified in either mode A or B, so that the fact that the operation mode is not set is stored in the internal RAM of the FDD (step 613). Then, it waits for a command (step 606). Also, the operation mode
If the process ends normally only in step A (step 610),
The operation mode of FDD is set to A (step 61).
2). If the operation mode A ends abnormally, the operation mode of the FDD is set to B (step 61).
1). When the operation mode is set to A or B, the operation mode set in the RAM 6 in the FDD is recorded (step 605) and the command waits (step 606). In this way, when the mode A or B can be specified, the FDD is set to the operation mode by determining which one is the mode.

【0013】図10では、上位装置からの読み出し/書
き込みコマンドを実行する処理が示されている。上位装
置から読み出し/書き込みコマンドが与えられると、先
ずFDDの動作モ−ドのチェックが必要であるか否かを
示す工注を読み取り(ステップ615)、チェックが必
要か否かを判定する(ステップ616)。チェックが不
要の場合には、上位装置からの読み出し/書き込みコマ
ンドを実行し(ステップ617)、その後、上位装置に
コマンド終了を報告する(ステップ618)。ステップ
616で、動作モ−ドのチェックが必要であると判定さ
れた場合には、動作モ−ドが既に設定されているか否か
をチェックする(ステップ619)。動作モ−ドが設定
されている場合には、ステップ617に戻って、読み出
し/書き込みを実行する。また、動作モ−ドが設定され
てない場合には、動作モ−ド未設定エラ−として上位装
置に報告し(ステップ620)、処理を終了する。動作
モ−ド未設定エラ−を上位装置が検知した場合には、上
位装置は情報管理エリアに動作モ−ドを書き込むコマン
ドをFDDに対して発行する。図11では、動作モ−ド
を書き込むコマンドの処理が示されている。動作モ−ド
書き込みコマンドを受けると、先ず情報管理エリアを読
み出し(ステップ622)、FDDの動作モ−ドが記録
されているか否かをチェックし(ステップ623)、記
録されている場合には、媒体に記録されている動作モ−
ドと上位装置から指定された動作モ−ドとが一致するか
否かを比較する(ステップ624)。両者が一致した場
合には、何もせずに処理を終了する。また、両者が一致
しない場合には、動作モ−ド不一致エラ−であることを
上位装置に報告し(ステップ627)、処理を終了す
る。一方、ステップ623で、媒体の情報管理エリアに
動作モ−ドが記録されていないと判定された場合には、
動作モ−ドを情報管理エリアに書き込み(ステップ62
5)、FDDを上位装置から指定された動作モ−ドに設
定して(ステップ626)、処理を終了する。
FIG. 10 shows a process of executing a read / write command from the host device. When a read / write command is given from the host device, first, a working note indicating whether the operation mode of the FDD needs to be checked is read (step 615), and it is determined whether the check is necessary (step 615). 616). If the check is not necessary, the read / write command from the host device is executed (step 617), and then the command end is reported to the host device (step 618). If it is determined in step 616 that the operation mode needs to be checked, it is checked whether or not the operation mode has already been set (step 619). If the operation mode is set, the process returns to step 617 to execute reading / writing. If the operation mode is not set, it is reported to the higher-level device as an operation mode unset error (step 620) and the process is terminated. When the host device detects an error in which the operation mode is not set, the host device issues a command for writing the operation mode to the information management area to the FDD. FIG. 11 shows the processing of the command for writing the operation mode. When the operation mode write command is received, the information management area is first read (step 622), and it is checked whether the operation mode of the FDD is recorded (step 623). The motion mode recorded on the medium
It is compared whether or not the mode and the operation mode designated by the host device match (step 624). If they match, the process ends without doing anything. If they do not match, the fact that the operation mode does not match is reported to the higher-level device (step 627), and the process ends. On the other hand, if it is determined in step 623 that the operation mode is not recorded in the information management area of the medium,
Write the operation mode to the information management area (step 62).
5), the FDD is set to the operation mode designated by the host device (step 626), and the process is terminated.

【0014】このように、本発明においては、通常の
デ−タエリア外に情報管理エリアを設定することによ
り、ユ−ザのデ−タエリアを使用せずに媒体を管理する
こと要できる。また、情報管理エリアに記録したリトラ
イ回数を管理することができるので、障害の発生を未然
に防止することができ、ユ−ザはデ−タのバックアップ
を取る等の回避処置が行える。また、FDDにおける
媒体挿入時のチャッキング動作回数を管理することによ
り、媒体の寿命が把握でき、ユ−ザは媒体が寿命が近づ
いていることを知ることができるので、デ−タ破壊等を
回避することが可能である。また、媒体の情報管理エ
リアにFDDのエラ−情報を記録しておくことにより、
ユ−ザは障害調査時にそのエラ−情報を読み出して、F
DDの障害状況を把握することができる。さらに、媒
体の情報管理エリアに媒体の動作モ−ドを記録して、媒
体交換時やFDD電源オン時にFDD自体が動作モ−ド
を設定できるので、上位装置が新たに動作モ−ドを指定
する必要がなく、媒体の使い勝手がよくなる。
As described above, in the present invention, by setting the information management area outside the normal data area, it is necessary to manage the medium without using the user's data area. Further, since the number of retries recorded in the information management area can be managed, it is possible to prevent a failure from occurring, and the user can take preventive measures such as backing up data. In addition, by managing the number of times of chucking operation at the time of inserting the medium in the FDD, the life of the medium can be grasped, and the user can know that the medium is approaching the life. It is possible to avoid it. By recording the FDD error information in the information management area of the medium,
The user reads the error information at the time of failure investigation and
It is possible to grasp the failure status of the DD. Further, the operation mode of the medium is recorded in the information management area of the medium, and the operation mode can be set by the FDD itself when the medium is exchanged or the FDD power is turned on, so that the host device newly specifies the operation mode. There is no need to do this, and the usability of the medium is improved.

【0015】[0015]

【発明の効果】以上説明したように、本発明によれば、
媒体のデ−タエリアを使用せずに、媒体の欠陥管理等が
行える。すなわち、媒体アクセス時のリトライ回数の管
理を行うことにより、デ−タエラ−、デ−タ破壊等の障
害を未然に防止することができ、またチャッキング動作
の回数を管理することにより、媒体の寿命に達する前に
事前報告することができ、また、エラ−情報の管理を行
うことにより、障害調査時にFDDの過去の障害状況を
把握することができ、さらに動作モ−ドの管理を行うこ
とにより、媒体交換時やFDDの電源オン時の動作モ−
ド設定を容易にすることができる。
As described above, according to the present invention,
The defect management of the medium can be performed without using the data area of the medium. That is, by controlling the number of retries at the time of accessing the medium, it is possible to prevent failures such as data error and data destruction, and by controlling the number of chucking operations, It is possible to report in advance before it reaches the end of its life, and by managing error information, it is possible to grasp the past failure status of the FDD at the time of failure investigation and to manage the operation mode. Operation mode during media replacement or FDD power on.
It is possible to easily set the mode.

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

【図1】本発明の一実施例を示すFDDと上位装置周辺
の構成図である。
FIG. 1 is a configuration diagram around an FDD and a host device showing an embodiment of the present invention.

【図2】本発明の情報管理エリアを示すもので、FDD
に媒体が挿入された場合の断面図である。
FIG. 2 shows an information management area of the present invention, which is an FDD.
FIG. 6 is a cross-sectional view when a medium is inserted into the device.

【図3】本発明におけるリトライ回数管理の動作フロ−
チャ−トである。
FIG. 3 is an operation flowchart of retry count management in the present invention.
It is a chart.

【図4】本発明における自己診断を行う際の動作フロ−
チャ−トである。
FIG. 4 is an operation flow chart when performing self-diagnosis in the present invention.
It is a chart.

【図5】図4における自己診断の詳細な動作フロ−チャ
−トである。
FIG. 5 is a detailed operation flowchart of self-diagnosis in FIG.

【図6】本発明におけるチャッキング回数管理の動作フ
ロ−チャ−トである。
FIG. 6 is an operation flowchart for managing the number of times of chucking in the present invention.

【図7】本発明におけるエラ−情報書き込みの動作フロ
−チャ−トである。
FIG. 7 is an operation flowchart for writing error information in the present invention.

【図8】本発明におけるエラ−情報報告の動作フロ−チ
ャ−トである。
FIG. 8 is an operation flowchart of error information reporting in the present invention.

【図9】本発明におけるFDD電源ON時および媒体交
換時の動作モ−ド設定動作のフロ−チャ−トである。
FIG. 9 is a flowchart of the operation mode setting operation when the FDD power supply is turned on and when the medium is replaced according to the present invention.

【図10】本発明における上位装置からの読み出し/書
き込みコマンドの実行動作フロ−チャ−トである。
FIG. 10 is an operation flow chart of executing a read / write command from a host device according to the present invention.

【図11】本発明における動作モ−ド書き込み動作のフ
ロ−チャ−トである。
FIG. 11 is a flow chart of the operation mode write operation in the present invention.

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

1 上位装置 2 FDD 3 インタフェ−ス回路 4 ロジック回路 5 ROM 6 RAM 7 ステッピングモ−タドライバ− 8 スピンドルモ−タドライバ− 9 書き込み/読み出し回路 10 表示器 21 媒体 22 ヘッド(上) 23 ヘッド(下) 24,25 情報管理エリア 1 host device 2 FDD 3 interface circuit 4 logic circuit 5 ROM 6 RAM 7 stepping motor driver-8 spindle motor driver-9 writing / reading circuit 10 indicator 21 medium 22 head (upper) 23 head (lower) 24, 25 Information management area

───────────────────────────────────────────────────── フロントページの続き (72)発明者 千田 健市 愛知県尾張旭市晴丘町池上1番地 株式会 社日立旭エレクトロニクス内 (72)発明者 新屋 英一 愛知県尾張旭市晴丘町池上1番地 株式会 社日立製作所オフィスシステム事業部内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Kenichi Senda, 1 Ikegami, Haruoka-cho, Owariasahi-shi, Aichi Stock Company, Hitachi Asahi Electronics (72) Inventor, Eiichi Shinya, Ikegami, Haruka-cho, Owari-Ashi, Aichi Stock Association Hitachi, Ltd. Office Systems Division

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 上位装置とバスを介して接続されたフレ
キシブルディスク装置において、記録媒体上のデ−タエ
リア以外の空きエリアを情報管理エリアとして割り当
て、記録媒体アクセス時にエラ−が発生してリトライ動
作が実行される毎に、該リトライ動作の回数を上記情報
管理エリアに記録し、該リトライ動作の回数とそれ以前
に実行されたリトライ回数との累計を算出して、1回の
コマンド実行における同一部位でのリトライ回数が予め
定めた値を越ているときには、該部位に記録されている
デ−タを上記情報管理エリアにコピ−し、またコピ−し
た部位の数の累計も上記情報管理エリアに記録して、該
部位の数の累計が予め定めた値を越えているときには、
上位装置にアラ−ムを出力して該上位装置の表示器に表
示するとともに、該上位装置から要求があれば、コピ−
した部位の数およびコピ−デ−タを該上位装置に送出す
ることを特徴とするフレキシブルディスク装置の制御方
法。
1. A flexible disk device connected to a higher-level device via a bus allocates an empty area other than a data area on a recording medium as an information management area, and an error occurs when the recording medium is accessed to perform a retry operation. Each time a command is executed, the number of retry operations is recorded in the information management area, the cumulative number of the number of retry operations and the number of retries executed before that is calculated, and the same command execution is performed. When the number of retries in a part exceeds a predetermined value, the data recorded in the part is copied to the information management area, and the cumulative number of copied parts is also recorded in the information management area. , And when the total number of the parts exceeds a predetermined value,
An alarm is output to the host device and displayed on the display of the host device, and if there is a request from the host device, it is copied.
A method for controlling a flexible disk device, comprising transmitting the number of copied parts and copy data to the host device.
【請求項2】 請求項1に記載のフレキシブルディスク
装置の制御方法において、前記情報管理エリアに、記録
媒体を挿入した時のチャッキング動作の累計回数を記録
して、記録する毎に該累計回数が予め定めた値を越えた
か否かを判定し、予め定めた値を越えた時には、上位装
置にアラ−ムを出力して該上位装置の表示器に表示する
とともに、該上位装置から要求があれば、チャッキング
動作の累計回数が予め定めた値を越えたことを報告する
ことを特徴とするフレキシブルディスク装置の制御方
法。
2. The flexible disk drive control method according to claim 1, wherein the cumulative number of chucking operations when a recording medium is inserted is recorded in the information management area, and the cumulative number of times is recorded for each recording. Exceeds a predetermined value, and when it exceeds the predetermined value, an alarm is output to the upper device and displayed on the display of the upper device, and a request from the upper device is issued. If there is, a flexible disk drive control method is characterized in that the total number of chucking operations exceeds a predetermined value.
【請求項3】 請求項1に記載のフレキシブルディスク
装置の制御方法において、デ−タ読み込み/書き込み動
作中等にエラ−等の障害が発生したとき、該障害が発生
する毎にエラ−情報を生成し、生成した該エラ−情報を
前記情報管理エリアにエラ−情報を順次記録し、上位装
置からエラ−情報収集コマンドを受けたときには、該情
報管理エリアに記録されているエラ−情報を読み出して
転送することを特徴とするフレキシブルディスク装置の
制御方法。
3. The flexible disk drive control method according to claim 1, wherein when a failure such as an error occurs during a data read / write operation, error information is generated each time the failure occurs. Then, the generated error information is sequentially recorded in the information management area, and when an error information collection command is received from the host device, the error information recorded in the information management area is read. A method for controlling a flexible disk device, characterized by transferring.
【請求項4】 請求項1に記載のフレキシブルディスク
装置の制御方法において、前記情報管理エリアに、読み
込み/書き込みの動作モ−ドを記録しておき、フレキシ
ブルディスク装置の電源ON時および記録媒体交換時に
は、該情報管理エリアを読み出して、フレキシブルディ
スク装置の動作モ−ドが記録されているか否かをチェッ
クすることを特徴とするフレキシブルディスク装置の制
御方法。
4. The method for controlling a flexible disk device according to claim 1, wherein a read / write operation mode is recorded in the information management area, and when the flexible disk device is powered on and the recording medium is replaced. At times, the information management area is read to check whether the operation mode of the flexible disk device is recorded or not, and a flexible disk device control method.
JP3815793A 1993-02-26 1993-02-26 Method for controlling flexible disk device Pending JPH06251503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3815793A JPH06251503A (en) 1993-02-26 1993-02-26 Method for controlling flexible disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3815793A JPH06251503A (en) 1993-02-26 1993-02-26 Method for controlling flexible disk device

Publications (1)

Publication Number Publication Date
JPH06251503A true JPH06251503A (en) 1994-09-09

Family

ID=12517579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3815793A Pending JPH06251503A (en) 1993-02-26 1993-02-26 Method for controlling flexible disk device

Country Status (1)

Country Link
JP (1) JPH06251503A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324660B1 (en) 1998-04-27 2001-11-27 Mitsumi Electric Co., Ltd. Defect management method for a magnetic recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6324660B1 (en) 1998-04-27 2001-11-27 Mitsumi Electric Co., Ltd. Defect management method for a magnetic recording medium

Similar Documents

Publication Publication Date Title
JP3847435B2 (en) Magnetic disk unit
US5751947A (en) Magnetic disk apparatus having inspection function of recording medium and method of inspecting recording medium in magnetic disk apparatus
US6263454B1 (en) Storage system
US20020138694A1 (en) Magnetic disc drive, method for recording data, and method for reproducing data
US7228376B2 (en) Recording of information on recording medium having temporary space area
US5894376A (en) Apparatus and method for monitoring read/write reliability of data storage device
US6169710B1 (en) Optical disc recording/reproducing method and apparatus
JP2976780B2 (en) Information recording / reproducing device
JP3860967B2 (en) Method for automatically changing leads and magnetic disk device using the same
KR100391740B1 (en) A management method for reproducing error and a disk drive making use of the management method
JP2003263703A5 (en)
JPH06251503A (en) Method for controlling flexible disk device
US4361855A (en) Fault location method in mass-storage system
JPH07182250A (en) Automatic substituting processing system for magnetic disk
JPH04103082A (en) Information recording system
EP0316867A2 (en) Semiconductor file apparatus
US5583715A (en) Image data communication apparatus
JP3457602B2 (en) Disk unit
JPH02278562A (en) Storage device
JP3356106B2 (en) Magnetic disk device and retry processing method thereof
US20020150009A1 (en) Recording times restricted recording media and recording control method thereof
JPH10187354A (en) Information processor and method for managing recording media applied to the same device
KR100216365B1 (en) Disk error detection and recovery method in electronic exchange
JPH0581789A (en) Optical disk device
JPS6348662A (en) Information recording and reproducing method for optical disk device