JPH04177671A - Controlling method for disk device - Google Patents

Controlling method for disk device

Info

Publication number
JPH04177671A
JPH04177671A JP30258390A JP30258390A JPH04177671A JP H04177671 A JPH04177671 A JP H04177671A JP 30258390 A JP30258390 A JP 30258390A JP 30258390 A JP30258390 A JP 30258390A JP H04177671 A JPH04177671 A JP H04177671A
Authority
JP
Japan
Prior art keywords
format
system information
data
recording medium
command
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
JP30258390A
Other languages
Japanese (ja)
Inventor
Akihiro Senboku
千北 昭宏
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP30258390A priority Critical patent/JPH04177671A/en
Publication of JPH04177671A publication Critical patent/JPH04177671A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To suitably decide system information by discriminating normal end of initialization of a recording medium under the conditions that both form at start/complete flags are set at the time of accessing data. CONSTITUTION:When a format command is received from a host system through a host INF 21, format complete flags FFE are reset for all system parameters of all system information, and a format start flag FFS is set. Then, a predetermined format work for user area of a magnetic disk is conducted. When the format work is finished, the format complete flag FFE is set, and the format work is finished. A controller 20 accesses the disk only when both the FFS and the FFE are set. Thus, data accessing in a state that the initialized state of the disk or system information are incomplete can be prevented to prevent any malfunction from accurring.

Description

【発明の詳細な説明】 [産業上の利用分野コ 本発明は、データ消去可能な円盤状の記録媒体を交換可
能なディスク装置の制御方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of controlling a disk device that is capable of replacing data erasable disk-shaped recording media.

[従来の技術] 一般に、データ消去可能な円盤状の記録媒体を交換可能
なディスク装置、例えば、光磁気ディスク装置や媒体交
換型の磁気ディスク装置では、その記録媒体の所定のシ
ステム領域に、その記録媒体のデータフォーマット形式
をあられす情報や、記録媒体に生じている欠陥領域とそ
れを代替する代替領域との関係をあられす情報(マツピ
ング情報)などのシステム情報を記録している。
[Prior Art] In general, in a disk device in which a disk-shaped recording medium from which data can be erased is exchanged, such as a magneto-optical disk device or a medium-exchangeable magnetic disk device, data is stored in a predetermined system area of the recording medium. It records system information such as information indicating the data format of the recording medium and information indicating the relationship between a defective area on the recording medium and an alternative area to replace it (mapping information).

このシステム情報は、記録媒体を装着した光磁気ディス
ク装置または磁気ディスク装置により読み取られ、記録
媒体の基本的なデータとして、データアクセス時などに
用いられる。
This system information is read by a magneto-optical disk device or a magnetic disk device equipped with a recording medium, and is used as basic data of the recording medium when accessing data.

また、同一内容のシステム情報を記録媒体の複数箇所に
記録することで、工場出荷後に記録媒体に欠陥が生じた
場合でも、適切にシステム情報を得ることができるよう
にしている。
Furthermore, by recording the same system information in multiple locations on the recording medium, even if a defect occurs in the recording medium after it is shipped from the factory, the system information can be appropriately obtained.

[発明が解決しようとする課題] しかしながら、このような従来装置では、次のような不
都合を生じていた。
[Problems to be Solved by the Invention] However, such conventional devices have the following disadvantages.

すなわち、例えば、記録媒体の初期化動作の途中で停電
発生時などの事故が発生し、記録媒体の初期化処理およ
び欠陥領域の代替処理が不完全に終了し、かつ、その後
に記録媒体に欠陥が生じていずれかのシステム情報が読
み出せない状態になった場合、そのシステム情報が初期
化処理が不完全なために読み出せなかったのか、あるい
は、記録媒体に生じた欠陥が原因となって読み出せなか
ったのか判断することができず、適切な回復処理を行な
うことができないという不都合を生じていた。
That is, for example, if an accident such as a power outage occurs during the initialization operation of the recording medium, the initialization process of the recording medium and the replacement process for the defective area are incompletely completed, and the recording medium becomes defective after that. If this occurs and some system information becomes unreadable, the system information may not have been able to be read due to incomplete initialization processing, or it may be due to a defect in the recording medium. It is not possible to determine whether the data could not be read, resulting in the inconvenience that appropriate recovery processing cannot be performed.

また、読み出せたシステム情報が不完全なものであるか
否かを判定することができず、そのために不適切なデー
タアクセスが行なわれるという事態を生じるおそれもあ
る。
Furthermore, it is not possible to determine whether or not the system information that has been read is incomplete, which may lead to inappropriate data access.

本発明は、このような実情に鑑みてなされたものであり
、システム情報を適切に判定することができるディスク
装置の制御方法を提供することを目的としている。
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a method for controlling a disk device that can appropriately determine system information.

[課題を解決するための手段] 本発明は、記録媒体の所定のシステム情報領域に、媒体
初期化処理に関するコマンド実行開始時点でセットされ
るフォーマット開始フラグと、そのコマンド実行終了時
点でセットされるフォーマット完了フラグを形成し、デ
ータアクセス時そのフォーマット開始フラグとフォーマ
ット完了フラグが両方ともセットされていることを条件
に記録媒体の初期化が正常終了していることを判別する
ようにしたものである。
[Means for Solving the Problems] The present invention provides a formatting start flag that is set in a predetermined system information area of a recording medium at the time of starting execution of a command related to medium initialization processing, and a formatting start flag that is set at the end of execution of the command. A format completion flag is formed, and it is determined that the initialization of the recording medium has been completed normally on the condition that both the format start flag and the format completion flag are set when data is accessed. .

[作用コ したがって、初期化処理を正常終了していない状態で形
成されたシステム情報に基づいて、記録媒体をアクセス
することが禁止され、データアクセスの誤動作を防止す
ることができる。
[Effects] Therefore, accessing the recording medium based on system information formed before the initialization process has been completed normally is prohibited, and erroneous data access operations can be prevented.

[実施例コ 以下、添付図面を参照しながら、本発明の実施例を詳細
に説明する。
[Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、本発明の一実施例にかかる磁気ディスクを示
している。
FIG. 1 shows a magnetic disk according to an embodiment of the present invention.

この磁気ディスク1は、図示しないディスクカートリッ
ジに収容された状態で、媒体交換型の磁気ディスク装置
に装着されて、データが記録/再生されるものであり、
その記録面の両面に、同心円状に多数の記録シリンダ(
トラック)が形成されており、その最内周の記録シリン
ダに、磁気ディスク1のシステム情報が記録されている
。また、システム情報は、両面の記録シリンダに同じ内
容が記録される。
This magnetic disk 1 is housed in a disk cartridge (not shown) and is loaded into a medium exchange type magnetic disk device to record/reproduce data.
On both sides of the recording surface, there are many recording cylinders (
A track) is formed, and the system information of the magnetic disk 1 is recorded on the innermost recording cylinder. Furthermore, the same system information is recorded on both recording cylinders.

また、おのおのの記録シリンダのデータフォーマットは
、例えば、第2図に示すように、所定データ長のデータ
セクタを38個配置する態様に設定されており、その最
後のデータセクタは、同一記録シリンダにおいて欠陥領
域として判定されたデータセクタを代替する代替セクタ
に設定されている。
Furthermore, the data format of each recording cylinder is set in such a manner that 38 data sectors of a predetermined data length are arranged, for example, as shown in FIG. It is set as an alternative sector to replace the data sector determined as a defective area.

記録シリンダに1つの欠陥セクタがある場合、その欠陥
セクタは、同一記録シリンダの代替セクタにより代替さ
れる。また、記録シリンダに2つ以上の欠陥セクタがあ
る場合、その1つの欠陥セクタは、同一シリンダの代替
セクタにより代替され、それ以外の欠陥セクタは、順次
次の記録シリンダの代替セクタにより代替される。
If there is one defective sector on a recording cylinder, that defective sector is replaced by a replacement sector on the same recording cylinder. Additionally, if there are two or more defective sectors in a recording cylinder, one defective sector is replaced by a replacement sector from the same cylinder, and the other defective sectors are replaced by replacement sectors from the next recording cylinder in sequence. .

第3図(a)は、最内周記録シリンダに記録されるシス
テム情報の一例を示している。
FIG. 3(a) shows an example of system information recorded on the innermost recording cylinder.

このシステム情報は、記録媒体の初期化の状況および記
録媒体のデータフォーマット形式を記憶した同一内容の
2つのシステムパラメータ、欠陥セクタの一覧情報から
なるパッドリスト、おのおのの欠陥セクタとそれを代替
する代替セクタの関係を記憶した代替テーブル、および
、欠陥が生じている代替セクタの一覧情報からなる代替
セクタパッドリストからなる。
This system information consists of two system parameters with the same contents that store the initialization status of the recording medium and the data format of the recording medium, a pad list consisting of a list of defective sectors, each defective sector and an alternative to replace it. It consists of a replacement table that stores relationships between sectors, and a replacement sector pad list that includes list information of replacement sectors where defects have occurred.

また、システムパラメータは、同図(b)に示すように
、初期化処理やセクタ代替処理などのフォーマットに関
する処理の開始時点でセットされるフォーマット開始フ
ラグFFS、フォーマットに関する処理の終了時点でセ
ットされるフォーマット完了フラグFFE、この記録媒
体のフォーマット形式を記憶するためのフォーマット形
式情報、および、それ以外の所定のパラメータからなる
In addition, as shown in FIG. 5B, the system parameters include a format start flag FFS that is set at the start of format-related processing such as initialization processing and sector replacement processing, and a format start flag FFS that is set at the end of format-related processing. It consists of a format completion flag FFE, format information for storing the format of this recording medium, and other predetermined parameters.

第4図は、本発明の一実施例にかかる媒体交換型の磁気
ディスク装置の概略構成を示している。
FIG. 4 shows a schematic configuration of a medium exchange type magnetic disk device according to an embodiment of the present invention.

同図において、スピンドルモータ2の回転軸3の先端部
には、磁気ディスク1を固定するためのターンテーブル
4が配設されておζノ、磁気ディスクlの両面に形成さ
れている記録面にデータを記録/再生するための磁気ヘ
ッド5,6は、アーム部材7,8を介して、ボイスコイ
ルモータ9に取り付けられているキャリッジ10に搭載
され、このボイスコイルモータ9により、磁気ディスク
1の半径方向に移動される。
In the figure, a turntable 4 for fixing a magnetic disk 1 is disposed at the tip of a rotating shaft 3 of a spindle motor 2. Magnetic heads 5 and 6 for recording/reproducing data are mounted on a carriage 10 attached to a voice coil motor 9 via arm members 7 and 8. radially moved.

また、図示しないローディング機構により、磁気ディス
ク1は、ターンテーブル4に着脱される。
Further, the magnetic disk 1 is attached to and detached from the turntable 4 by a loading mechanism (not shown).

第5図は、第4図に示した磁気ディスク装置の制御系の
一例を示している。
FIG. 5 shows an example of a control system of the magnetic disk device shown in FIG.

同図において、制御部20は、この磁気ディスク装置の
各部の動作を制御するとともに、磁気ディスクを使用す
るパーソナルコンピュータなどのホスト装置(図示路)
と所定のデータをやりとりするものであり、ホストイン
タフェース回路21は、制御部20とホスト装置との間
で種々の情報をやりとりするためのものである。
In the figure, a control unit 20 controls the operation of each part of this magnetic disk device, and also includes a host device (path shown) such as a personal computer that uses a magnetic disk.
The host interface circuit 21 is used to exchange various information between the control unit 20 and the host device.

データ記録回路22は、磁気ヘッド5,6を用いて磁気
ディスク1に記録するデータに対応した記録信号を発生
するためのものであり、その記録信号は、書込用アンプ
23により増幅され、ヘッドスイッチ24を介して磁気
ヘッド5゜6のいずれか一方に加えられる。
The data recording circuit 22 is for generating a recording signal corresponding to data to be recorded on the magnetic disk 1 using the magnetic heads 5 and 6, and the recording signal is amplified by a write amplifier 23 and then sent to the head. The signal is applied to either one of the magnetic heads 5 and 6 via the switch 24.

磁気ヘッド5あるいは磁気ヘッド6がらの再生信号は、
ヘッドスイッチ24を介し、読出用アンプ25に加えら
れて増幅された後に、データ再生回路26に加えられる
。データ再生回路26は、再生信号から再生データを取
り出して、制御部20に出力する。
The reproduction signal from the magnetic head 5 or magnetic head 6 is
The signal is applied to a read amplifier 25 via a head switch 24, amplified, and then applied to a data reproducing circuit 26. The data reproducing circuit 26 extracts reproduced data from the reproduced signal and outputs it to the control section 20.

位置センサ27は、キャリッジ7の磁気ディスク半径方
向の位置を検出するためのものであり、その検出信号S
Pは、制御部20に加えられている。速度センサ28は
、スピンドルモータ2の回転速度を検出するものであり
、その検出信号PSは、制御部2oに加えられている。
The position sensor 27 is for detecting the position of the carriage 7 in the magnetic disk radial direction, and sends a detection signal S.
P is added to the control section 20. The speed sensor 28 detects the rotational speed of the spindle motor 2, and its detection signal PS is applied to the control section 2o.

また、ワークメモリ29は、データバッファなど、制御
部20がワークエリアとして用いるためのものである。
Further, the work memory 29 is used by the control unit 20 as a work area, such as a data buffer.

以上の構成で、ホスト装置よりフォーマットコマンドを
受信すると、制御部20は、第6図に示した処理を実行
する。
With the above configuration, upon receiving a format command from the host device, the control section 20 executes the processing shown in FIG. 6.

すなわち、ホスト装置よりフォーマットコマンドを受信
すると(処理101)、そのコマンド形式を調べて正常
なコマンドであれば(判断102の結果がYES) 、
全てのシステム情報の全てのシステムパラメータについ
て、フォーマット完了フラグFFEをリセットするとと
もに、フォーマット開始フラグFFSをセットする(処
理1o2)。
That is, when a format command is received from the host device (process 101), the command format is checked and if it is a normal command (the result of judgment 102 is YES),
For all system parameters of all system information, the format completion flag FFE is reset and the format start flag FFS is set (processing 1o2).

そして、磁気ディスク1の最内周の記録シリンダ以外の
ユーザ領域について、所定のフォーマット作業を行なう
(処理104)。このフォーマット作業では、欠陥セク
タの発見と、その欠陥セクタを代替する作業も行なう。
Then, a predetermined formatting operation is performed on the user area other than the innermost recording cylinder of the magnetic disk 1 (process 104). This formatting operation also involves finding a defective sector and replacing the defective sector.

このようなフォーマット作業を終了すると、そのときの
作業結果に基づいて、全てのシステム情報の内容を書き
換え(処理105)、全てのシステム情報の全てのシス
テムパラメータについて、フォーマット完了フラグFF
Eをセットして(処理106)、フォーマット作業を終
了する。
When such formatting work is completed, the contents of all system information are rewritten based on the work results at that time (process 105), and the format completion flag FF is set for all system parameters of all system information.
E is set (process 106), and the formatting operation is completed.

また、ホスト装置から受信したフォーマットコマンドが
不正であり、判断102の結果がNOになるときには、
コマンドエラーをあられすエラーステータスを内部にセ
ットして(処理107)、エラー終了する。この場合に
は、ホスト装置に対して、そのエラーステータスを通知
し、フォーマット動作が行なわれなかったことを報告す
る。
Further, when the format command received from the host device is invalid and the result of judgment 102 is NO,
An error status indicating a command error is set internally (processing 107), and the process ends with an error. In this case, the host device is notified of the error status and reports that the formatting operation was not performed.

このようにして、フォーマット作業の開始時点で、シス
テム情報のシステムパラメータに含まれるフォーマット
開始フラグFFSがセットされるとともに、フォーマッ
ト完了フラグFFEがリセットされ、フォーマット作業
を終了した時点でフォーマット完了フラグFFEがセッ
トされる。
In this way, at the start of the formatting work, the formatting start flag FFS included in the system parameters of the system information is set, and the formatting completion flag FFE is reset, and when the formatting work is finished, the formatting completion flag FFE is set. Set.

したがって、このフォーマット開始フラグFFSおよび
フォーマット完了フラグFFEを調べることで、磁気デ
ィスク1のフォーマット作業が正常終了している状態で
あるか否かを判別することができる。
Therefore, by checking the formatting start flag FFS and formatting completion flag FFE, it is possible to determine whether or not the formatting work of the magnetic disk 1 has been completed normally.

第7図は、ホスト装置が発見した欠陥セクタをいずれか
の代替セクタに代替させるときに出力するセクタ代替コ
マンドに関する処理を示している。
FIG. 7 shows processing related to a sector replacement command output when a defective sector found by the host device is replaced with any replacement sector.

まず、セクタ代替コマンドを受信すると(処理201)
、そのコマンド形式を調べて正常なコマンドであれば(
判断202の結果がYES〕、システム情報検査処理(
処理203)を実行する。
First, when a sector replacement command is received (process 201)
, check the command format and if it is a normal command (
If the result of judgment 202 is YES], system information inspection processing (
Process 203) is executed.

システム情報検査処理が正常終了すると、全てのシステ
ム情報の全てのシステムパラメータについて、フォーマ
ット完了フラグFFEをリセットするとともに、フォー
マット開始フラグFFSをセットする(処理204)。
When the system information inspection process ends normally, the format completion flag FFE is reset and the format start flag FFS is set for all system parameters of all system information (process 204).

そして、ホスト装置から指定された欠陥セクタを、対応
する代替セクタに代替する作業を行ない(処理205)
、そのときの作業結果に基づいて、全てのシステム情報
の内容を書き換え(処理206)、全てのシステム情報
の全てのシステムパラメータについて、フォーマット完
了フラグFFEをセットして(処理207)、フォーマ
ット作業を終了する。
Then, a task is performed to replace the defective sector specified by the host device with a corresponding replacement sector (processing 205).
, based on the work results at that time, rewrites the contents of all system information (process 206), sets the format completion flag FFE for all system parameters of all system information (process 207), and performs the formatting work. finish.

また、ホスト装置から受信したフォーマットコマンドが
不正であり、判断202の結果がNOになるときには、
コマンドエラーをあられすエラーステータスを内部にセ
ットして(処理2O8)、エラー終了する。
Further, when the format command received from the host device is invalid and the result of judgment 202 is NO,
An error status indicating a command error is set internally (processing 2O8), and the process ends with an error.

このようにして、セクタ代替作業の開始時点で、システ
ム情報のシステムパラメータに含まれるフォーマット開
始フラグFFSがセットされるとともに、フォーマット
完了フラグFFEがリセットされ、フォーマット作業を
終了した時点でフォーマット完了フラグFFEがセット
される。
In this way, at the start of the sector replacement work, the format start flag FFS included in the system parameters of the system information is set, and the format completion flag FFE is reset, and when the format work is finished, the format completion flag FFE is set. is set.

システム情報検査処理の一例を第8図に示す。FIG. 8 shows an example of the system information inspection process.

このシステム情報検査処理は、上述したように、セクタ
代替コマンド実行直前に行なわれるだけでなく、フォー
マットコマンド以外の他のコマンドを受信した場合にも
実行される。そして、このシステム情報検査処理が正常
終了した場合に限り、指定されたコマンドが実行される
As described above, this system information checking process is performed not only immediately before executing the sector replacement command, but also when a command other than the format command is received. Then, the specified command is executed only when this system information inspection process ends normally.

まず、そのときに既にシステム情報の読み込みが終了し
ているかどうかを調べ(判断301)、判断301の結
果がYESになるときには、この処理を正常終了する。
First, it is checked whether reading of system information has already been completed at that time (determination 301), and if the result of determination 301 is YES, this process is normally terminated.

判断301の結果がNOになるときには、全てのシステ
ム情報を読み出す動作を行ない(処理302)、2つ以
上のシステム情報が読み出せたかどうかを調べる(判断
303)。
When the result of judgment 301 is NO, an operation is performed to read all system information (process 302), and it is checked whether two or more pieces of system information have been read (decision 303).

判断303の結果がYESになるときには、全てのシス
テム情報の内容が一致するかどうかを調べて(判断30
4)、判断304の結果がYESになるときには、この
処理を正常終了する。
When the result of judgment 303 is YES, check whether the contents of all system information match (decision 30).
4) If the result of determination 304 is YES, this process is normally terminated.

判断304の結果がNoになるときには、メディアニラ
−をあられすステータスを内部にセットして(処理30
5)、この処理をエラー終了する。このようにして、エ
ラー終了すると、それ以降は、磁気ディスクlのデータ
アクセスに関する動作を禁止する。
When the result of judgment 304 is No, a status is set internally to alert the media server (processing 30
5), this process ends with an error. In this way, when the process ends with an error, operations related to data access on the magnetic disk I are prohibited from then on.

また、読み出せたシステム情報の数が1あるいは0で、
判断303の結果がNOになるときには、読み出せたシ
ステム情報の数が1であるかどうかを調べ(判断306
)、判断306の結果がNOになるときには、システム
情報が読み出せなかった状態なので、処理305に移行
して、この処理をエラー終了する。
Also, if the number of system information that could be read is 1 or 0,
When the result of judgment 303 is NO, check whether the number of system information that could be read is 1 (decision 306).
), when the result of judgment 306 is NO, it means that the system information could not be read, so the process moves to process 305 and ends with an error.

判断306の結果がYESになるときには、フォーマッ
ト開始フラグFFSがセットされているかどうかを調べ
て(判断307)、判断307の結果がNOになるとき
には、処理305に移行して、この処理をエラー終了す
る。
When the result of judgment 306 is YES, it is checked whether the format start flag FFS is set (judgment 307), and when the result of judgment 307 is NO, the process moves to process 305 and this process ends with an error. do.

判断307の結果がYESになるとき、エラー完了フラ
グFFEがセットされているかどうかを調べて(判断3
08)、判断308の結果がYESになるときには、そ
のときに読み出したシステム情報が正常であるとみなし
て、この処理を正常終了する。
When the result of judgment 307 is YES, it is checked whether the error completion flag FFE is set (judgment 3).
08), when the result of judgment 308 is YES, it is assumed that the system information read at that time is normal, and this process is normally terminated.

また、判断308の結果がNOになるときには、データ
記録動作を禁止するとともに、データ読み出し動作のみ
を許可するステータスを内部にセットして(処理309
)、この処理を正常終了する。
Further, when the result of the judgment 308 is NO, a status is set internally to prohibit the data recording operation and to permit only the data reading operation (processing 309).
), this process ends normally.

このようにして、このシステム情報検査処理では、磁気
ディスク1に記録されているシステム情報を2つ以上読
み込めた場合、それらのシステム情報の内容を比較して
一致した場合に限り、システム情報が正常であると判定
しているので、エラーを含むシステム情報を使用して、
磁気ディスク1のデータアクセスを行なうような事態を
防止できる。
In this way, in this system information inspection process, if two or more pieces of system information recorded on the magnetic disk 1 can be read, the system information is determined to be normal only if the contents of the system information are compared and match. , so using the system information including the error,
A situation in which data is accessed on the magnetic disk 1 can be prevented.

また、磁気ディスクlに記録されているシステム情報を
1つ読み出せた場合、そのフォーマット開始フラグFF
Sとフォーマット完了フラグFFEの両方がセットされ
ている場合に限って、システム情報が正常であると判定
しているので、フォーマット処理またはセクタ代替処理
が不完全に終了した状態で形成されているシステム情報
を用いて、磁気ディスク1のデータアクセスを行なうよ
うな事態を防止できる。
In addition, if one piece of system information recorded on the magnetic disk l can be read, the format start flag FF is
Since the system information is determined to be normal only when both S and format completion flag FFE are set, the system is formed with format processing or sector replacement processing incompletely completed. Using the information, it is possible to prevent a situation where data is accessed on the magnetic disk 1.

ところで、データ記録禁止のステータスがセットされて
いるとき、ホスト装置からデータ読み出しコマンドが指
令されると、指定されたデータ領域をアクセスしてその
データを読み出す動作を行なうが、データ記録コマンド
が指令されると、メディアエラーを応答して、そのコマ
ンドを実行しない。
By the way, when the data recording prohibition status is set and a data read command is issued from the host device, the specified data area is accessed and the data is read out, but when the data recording command is issued, , it responds with a media error and does not execute the command.

したがって、その場合には、磁気ディスク1に記録され
ているデータをある程度まで読み出すことができるので
、ある程度までのデータの保護を行なうことができる。
Therefore, in that case, the data recorded on the magnetic disk 1 can be read to a certain extent, so that the data can be protected to a certain extent.

以上説明したように、本実施例によれば、システム情報
が正常であると判断した場合に限り、磁気ディスクに対
するデータアクセスを行なえるようにしているので、磁
気ディスクの初期化状態あるいはシステム情報が不完全
な状態でのデータアクセスを未然に防止できる。
As explained above, according to this embodiment, data access to the magnetic disk can be performed only when the system information is determined to be normal, so the initialization state of the magnetic disk or the system information is Data access in an incomplete state can be prevented.

ところで、上述した実施例では、媒体交換型の磁気ディ
スク装置について本発明を適用したが、それ以外の媒体
交換型のディスク装置についても、本発明を同様にして
適用することができる。
Incidentally, in the embodiments described above, the present invention is applied to a medium exchange type magnetic disk device, but the present invention can be similarly applied to other medium exchange type disk devices.

また、本発明は、上述したフォーマット形式以外のディ
スク装置についても、同様にして適用することができる
Further, the present invention can be similarly applied to disk devices having formats other than those described above.

[発明の効果コ 以上説明したように、本発明によれば、初期化処理を正
常終了していない状態で形成されたシステム情報に基づ
いて、記録媒体をアクセスすることが禁止され、データ
アクセスの誤動作を防止することができるという効果を
得る。
[Effects of the Invention] As explained above, according to the present invention, it is prohibited to access a recording medium based on system information that is formed before the initialization process has been completed normally, and data access is prohibited. The effect is that malfunctions can be prevented.

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

第1図は磁気ディスクの一例を示す概略図、第2図は記
録シリンダのフォーマット形式を例示した概略図、第3
図(a)はシステム情報の一例を示す概略図、同図(b
)はシステムパラメータの一例を示す概略図、第4図は
本発明の一実施例にかかる媒体交換型の磁気ディスク装
置を示す概略図、第5図は第4図に示した装置の制御系
を例示したブロック図、第6図はフォーマット動作の処
理例を示すフローチャート、第7図はセクタ代替動作の
処理例を示すフローチャート、第8図はシステム情報検
査処理の一例を示すフローチャートである。
Fig. 1 is a schematic diagram showing an example of a magnetic disk, Fig. 2 is a schematic diagram illustrating the format of a recording cylinder, and Fig.
Figure (a) is a schematic diagram showing an example of system information, and Figure (b) is a schematic diagram showing an example of system information.
) is a schematic diagram showing an example of system parameters, FIG. 4 is a schematic diagram showing a medium exchange type magnetic disk device according to an embodiment of the present invention, and FIG. 5 is a schematic diagram showing a control system of the device shown in FIG. 4. FIG. 6 is a flowchart showing an example of formatting operation, FIG. 7 is a flowchart showing an example of sector replacement operation, and FIG. 8 is a flowchart showing an example of system information inspection processing.

Claims (3)

【特許請求の範囲】[Claims] (1)データ消去可能な円盤状の記録媒体を交換可能な
ディスク装置の制御方法において、記録媒体の所定のシ
ステム情報領域に、媒体初期化処理に関するコマンド実
行開始時点でセットされるフォーマット開始フラグと、
そのコマンド実行終了時点でセットされるフォーマット
完了フラグを形成し、データアクセス時そのフォーマッ
ト開始フラグとフォーマット完了フラグが両方ともセッ
トされていることを条件に記録媒体の初期化が正常終了
していることを判別することを特徴とするディスク装置
の制御方法。
(1) In a method for controlling a disk device that is capable of replacing data-erasable disc-shaped recording media, a formatting start flag is set in a predetermined system information area of the recording medium at the time of starting execution of a command related to media initialization processing. ,
A format completion flag is set at the end of the command execution, and the initialization of the recording medium is completed normally on the condition that both the format start flag and format completion flag are set when data is accessed. 1. A method for controlling a disk device, characterized by determining.
(2)前記システム情報領域が複数形成されるとともに
、少なくとも1つのシステム情報領域の内容を読み込め
るとそのシステム情報領域の内容に基づいて記録媒体の
初期化の判定を行なうことを特徴とする請求項1記載の
ディスク装置の制御方法。
(2) A plurality of the system information areas are formed, and when the contents of at least one system information area can be read, the initialization of the recording medium is determined based on the contents of the system information area. 1. The method of controlling a disk device according to 1.
(3)前記媒体初期化処理に関するコマンドは、記録媒
体に生じている欠陥を所定の代替部に置き換える交代処
理コマンドを含むことを特徴とする請求項1記載のディ
スク装置の制御方法。
(3) The method for controlling a disk device according to claim 1, wherein the command related to the medium initialization process includes a replacement process command for replacing a defect occurring in the recording medium with a predetermined replacement part.
JP30258390A 1990-11-09 1990-11-09 Controlling method for disk device Pending JPH04177671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30258390A JPH04177671A (en) 1990-11-09 1990-11-09 Controlling method for disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30258390A JPH04177671A (en) 1990-11-09 1990-11-09 Controlling method for disk device

Publications (1)

Publication Number Publication Date
JPH04177671A true JPH04177671A (en) 1992-06-24

Family

ID=17910728

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30258390A Pending JPH04177671A (en) 1990-11-09 1990-11-09 Controlling method for disk device

Country Status (1)

Country Link
JP (1) JPH04177671A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005322392A (en) * 2004-05-06 2005-11-17 Samsung Electronics Co Ltd Optical recording information storing medium, recording /reproducing method, recording/reproducing apparatus and host device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005322392A (en) * 2004-05-06 2005-11-17 Samsung Electronics Co Ltd Optical recording information storing medium, recording /reproducing method, recording/reproducing apparatus and host device

Similar Documents

Publication Publication Date Title
US20060215307A1 (en) Storage apparatus, control method and program
JPH08297928A (en) Magnetic disk device with recording medium inspecting function
US20040268033A1 (en) Refreshing data in a data storage device
JP2000048496A (en) Optical disk recording/reproducing method, device and medium recording optical disk recording/reproducing program
KR100268096B1 (en) Method and error correcting code apparatus for storing predefined information with ecc in a direct access storage device
JP2003297025A (en) Disk drive
US6263462B1 (en) Testing method and tester
JPH06111479A (en) Information recording and reproducing device
JPH04372776A (en) Medium exchange type magnetic disk device
JPH04177671A (en) Controlling method for disk device
JP3244203B2 (en) Information processing device
JP3289931B2 (en) Information recording / reproducing device
JP2639064B2 (en) Magnetic disk and magnetic disk device
JPH0520789A (en) Recording and reproducing device
JP3264528B2 (en) Information replacement processing method for write-protected information recording medium
JP2635342B2 (en) Replacement processing equipment
JPH11265507A (en) Method for controlling write to disk recording and reproducing device
JPH11224474A (en) Writing device of servo pattern, servo pattern control system, and magnetic disk device
JPH0955035A (en) Disk recording/reproducing device and defect processing method applied to it
US7110203B2 (en) Magnetic disk drive improved in a reliability of data retrieve
JPH01211243A (en) Information recording medium
JP2002133769A (en) Magnetic record reproducing device
JPS61283074A (en) Optical system information device
KR100510444B1 (en) Method for managing the history of test in hard disk drive
JPH025265A (en) Alternation processing system for optical disk device capable of erasion and rerecording