JPH07262699A - Disk device - Google Patents

Disk device

Info

Publication number
JPH07262699A
JPH07262699A JP5086994A JP5086994A JPH07262699A JP H07262699 A JPH07262699 A JP H07262699A JP 5086994 A JP5086994 A JP 5086994A JP 5086994 A JP5086994 A JP 5086994A JP H07262699 A JPH07262699 A JP H07262699A
Authority
JP
Japan
Prior art keywords
area
remaining amount
spare area
remaining
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5086994A
Other languages
Japanese (ja)
Inventor
Hiroyuki Onda
浩行 恩田
Tsuguaki Mashita
著明 真下
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.)
Teac Corp
Original Assignee
Teac 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 Teac Corp filed Critical Teac Corp
Priority to JP5086994A priority Critical patent/JPH07262699A/en
Publication of JPH07262699A publication Critical patent/JPH07262699A/en
Pending legal-status Critical Current

Links

Landscapes

  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To obtain the fact that remaining in alternate area is less before the remaining in the alternate area is used up and to enhance reliability related to a disk device. CONSTITUTION:An alternate area remaining calculation part 51 calculates the remaining in the alternate area based on the DMA data read out from a disk. A remaining decision part 52 compares the calculated remaining in the alternate area with a reference value, and decides whether or not the remaining in the alternate area is less than the reference value. An LED flashing on/off control part 53 flashing on/off controls an LED when the remaining in the alternate area is less than the reference value as the result of the decision by the remaining decision part 52.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はディスク装置に係り、特
に、交替領域を有する光磁気ディスク装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a disk device, and more particularly to a magneto-optical disk device having a spare area.

【0002】[0002]

【従来の技術】光磁気ディスク装置に使用する光磁気デ
ィスク(以下ディスクと記す)には、交替領域が設けて
あり、データを記録する際に、記録しようとしている領
域が欠陥であった場合、欠陥領域を使用せずに、交替領
域にデータを記録して、ディスクの信頼性を上げてい
る。
2. Description of the Related Art A magneto-optical disk (hereinafter referred to as a disk) used in a magneto-optical disk device has an alternate area, and when recording data, if the area to be recorded is defective, Data is recorded in the replacement area without using the defective area to improve the reliability of the disc.

【0003】従来の光磁気ディスク装置では、交替領域
の全てを使用していっぱいになった時点で、初めて、ホ
ストコンピュータに対して、交替領域の残量がなくな
り、データの記録が正常に行えなかったことを報告す
る。ユーザーは、この時点でディスクが使用不能になっ
たことを知る。
In the conventional magneto-optical disk apparatus, when the spare area is completely used up, the remaining capacity of the spare area is exhausted to the host computer for the first time, and data cannot be recorded normally. I will report that. The user knows that the disk has become unusable at this point.

【0004】[0004]

【発明が解決しようとする課題】従来の光磁気ディスク
装置では、ユーザーは、ディスクの交替領域の残量がな
くなって初めて、ディスクが使用不能になったことを知
ることができる。このように、前触れなく、突然、ディ
スクが使用不能になり、ディスクの清掃,フォーマット
のやり直し等が必要となるため、ディスクの信頼性に問
題がある。
In the conventional magneto-optical disk device, the user can know that the disk cannot be used until the spare area in the disk is full. In this way, the disk suddenly becomes unusable without prior notice, and the disk needs to be cleaned and reformatted. Therefore, there is a problem in the reliability of the disk.

【0005】本発明は、上記の点に鑑みてなされたもの
で、交替領域の残量がなくなる前に交替領域の残量が少
ないことを知ることができ、信頼性を上げられるディス
ク装置を提供することを目的とする。
The present invention has been made in view of the above points, and it is possible to know that the spare area has a small remaining amount before the spare area runs out, and to provide a disk device with improved reliability. The purpose is to do.

【0006】[0006]

【課題を解決するための手段】請求項1の発明では、欠
陥となった領域の代わりに使用する交替領域と、前記交
替領域を管理するための交替領域管理情報用の領域とを
備えたディスク状記録媒体を用いて、記録再生を行うデ
ィスク装置において、前記ディスク状記録媒体から読み
出した前記交替領域管理情報を基に、前記交替領域の残
量を算出する交替領域残量算出手段と、前記算出された
交替領域の残量と基準値とを比較して、前記交替領域の
残量が基準値より少ないか否かを判定する残量判定手段
と、前記残量判定手段による判定の結果、前記交替領域
の残量が基準値より少ない場合に、警告を生成する警告
生成手段とを有する構成とする。
According to a first aspect of the present invention, there is provided a disk having a spare area used in place of a defective area and a spare area management information area for managing the spare area. In a disk device for recording and reproducing using a recording medium, a spare area remaining amount calculating means for calculating a remaining capacity of the spare area based on the spare area management information read from the disk recording medium; Comparing the calculated remaining amount of the replacement area and the reference value, a remaining amount determination means for determining whether the remaining amount of the replacement area is less than a reference value, the result of the determination by the remaining amount determination means, A warning generation unit that generates a warning when the remaining amount of the replacement area is smaller than a reference value is provided.

【0007】請求項2の発明では、前記交替領域残量算
出手段は、データの書き込み動作時に新たに交替領域が
使用されて前記交替領域管理情報が更新された場合に、
前記交替領域の残量を算出する構成とする。
According to a second aspect of the present invention, the spare area remaining amount calculating means, when the spare area is newly used and the spare area management information is updated during a data write operation,
The remaining amount of the spare area is calculated.

【0008】請求項3の発明では、前記警告生成手段
は、前記交替領域の残量が基準値より少ない場合の警告
としてアクセスランプを点滅制御する。
In the third aspect of the present invention, the warning generation means controls the access lamp to blink as a warning when the remaining amount of the spare area is less than a reference value.

【0009】[0009]

【作用】請求項1の発明では、ディスク状記録媒体から
読み出した前記交替領域管理情報を基に、交替領域の残
量が基準値より少ないかどうかを判定して、基準値より
少ない場合には、警告を生成する。このため、使用者
が、ディスクディスク状記録媒体が使用不能となる前
に、交替領域の残量が少なくなっていることを知ること
を可能とする。
According to the first aspect of the present invention, it is determined whether the remaining amount of the spare area is smaller than the reference value based on the spare area management information read from the disc-shaped recording medium. , Generate a warning. Therefore, it becomes possible for the user to know that the remaining amount of the spare area is low before the disc-shaped recording medium becomes unusable.

【0010】請求項2の発明では、データの書き込み動
作時に欠陥領域が生じて新たな交替領域を使用した場合
にも、交替領域の残量を正しく算出して、警報を生成す
ることを可能とする。
According to the second aspect of the invention, even when a defective area is generated during the data writing operation and a new replacement area is used, the remaining amount of the replacement area can be correctly calculated and an alarm can be generated. To do.

【0011】請求項3の発明では、警告としてアクセス
ランプを点滅させることにより、交替領域の残量が少な
いことを、使用者に簡単、かつ、確実に知らせることを
可能とする。
According to the third aspect of the present invention, by blinking the access lamp as a warning, it is possible to easily and surely notify the user that the remaining amount of the spare area is small.

【0012】[0012]

【実施例】図1は本発明の一実施例の光磁気ディスク装
置(以下ディスク装置と記す)のブロック図である。デ
ィスク状記録媒体である光磁気ディスク(以下、ディス
クと記す)38は、ディスクカートリッジ37に収納さ
れている。
1 is a block diagram of a magneto-optical disk device (hereinafter referred to as a disk device) according to an embodiment of the present invention. A magneto-optical disk (hereinafter referred to as a disk) 38, which is a disk-shaped recording medium, is housed in a disk cartridge 37.

【0013】ディスクカートリッジ37には、シャッタ
があり、図示しないシャッタ開閉機構により、ディスク
装置内に装着されると、シャッタが開かれる。
The disk cartridge 37 has a shutter. When the disk cartridge 37 is mounted in the disk device by a shutter opening / closing mechanism (not shown), the shutter is opened.

【0014】また、ディスクカートリッジ37が装着さ
れると、ディスク38とスピンドルモータ18が、図示
せぬチャッキング機構によりチャッキングされ、ディス
ク38が回転駆動される。
When the disc cartridge 37 is mounted, the disc 38 and the spindle motor 18 are chucked by a chucking mechanism (not shown), and the disc 38 is rotationally driven.

【0015】また、ディスクカートリッジ37が装着さ
れると、マイクロスイッチよりなるディスクインセンサ
27の検出部27aが押されて、スイッチ部27bがオ
ンとなり、ディスクカートリッジ37が装着されたこと
が検出される。
When the disc cartridge 37 is mounted, the detecting portion 27a of the disc-in sensor 27 composed of a micro switch is pushed, the switch portion 27b is turned on, and it is detected that the disc cartridge 37 is mounted. .

【0016】同様に、装着されたディスクカートリッジ
37のライトプロテクトが外れている場合には、ライト
プロテクトセンサ28の検出部28aが押されて、スイ
ッチ部28bがオンとなり、書き込み許可が検出され
る。
Similarly, when the write protection of the mounted disk cartridge 37 is removed, the detection portion 28a of the write protection sensor 28 is pushed, the switch portion 28b is turned on, and the write permission is detected.

【0017】ディスクカートリッジ37のシャッタが開
かれて現れる開口部37aを介して、ピックアップ13
からディスク38にレーザ光が照射され、その反射光が
ピックアップ13のフォトトランジスタで受光され、読
み出し信号が出力される。
The pickup 13 is opened through the opening 37a which appears when the shutter of the disk cartridge 37 is opened.
The disk 38 is irradiated with laser light from the disk, the reflected light is received by the phototransistor of the pickup 13, and a read signal is output.

【0018】ピックアップ13は、ボイスコイルモータ
15,16で、フォーカシング,トラッキング制御がさ
れ、リニアモータ14でアクセス制御がされる。ボイス
コイルモータ15,16、リニアモータ14、及びスピ
ンドルモータ18は、駆動制御回路17により、駆動電
力の制御が行われる。
The pickup 13 is controlled by the voice coil motors 15 and 16 for focusing and tracking, and the linear motor 14 for access control. The drive power of the voice coil motors 15 and 16, the linear motor 14, and the spindle motor 18 is controlled by a drive control circuit 17.

【0019】ピックアップ13から出力されるレーザ光
は、レーザ駆動回路21によって、制御される。
The laser light output from the pickup 13 is controlled by the laser drive circuit 21.

【0020】ピックアップ13内のフォトトランジスタ
からの出力信号は、信号処理回路22により、所定の2
値データに変換されて、マイコン25に供給される。
The output signal from the phototransistor in the pickup 13 is sent to the predetermined 2 by the signal processing circuit 22.
It is converted into value data and supplied to the microcomputer 25.

【0021】また、信号処理回路22により抽出された
2値データは、SCSIインタフェース回路26に供給
される。
The binary data extracted by the signal processing circuit 22 is supplied to the SCSI interface circuit 26.

【0022】マイコン25は、ディスクインセンサ2
7、ライトプロテクトセンサ28から検出信号を供給さ
れる。また、駆動制御回路17、信号処理回路22、S
CSIインタフェース回路26に接続されており、ディ
スク装置全体に関わり、所定の処理を行う。
The microcomputer 25 uses the disc-in sensor 2
7. A detection signal is supplied from the write protect sensor 28. Further, the drive control circuit 17, the signal processing circuit 22, S
It is connected to the CSI interface circuit 26 and is related to the entire disk device and performs predetermined processing.

【0023】また、マイコン25は、LED駆動回路3
1を介して、LED35のオン,オフを制御する。LE
D35は、通常、ディスクアクセスランプとして機能す
る。LED駆動回路31は、バッファアンプ32、トラ
ンジスタQ33、抵抗R33からなる。
Further, the microcomputer 25 uses the LED drive circuit 3
ON / OFF of the LED 35 is controlled via 1. LE
D35 normally functions as a disk access lamp. The LED drive circuit 31 includes a buffer amplifier 32, a transistor Q 33 , and a resistor R 33 .

【0024】図2は、交替領域の管理に関わるマイコン
25の機能ブロック図を示す。ディスク38には、所定
の領域が交替領域として設定されている。また、交替領
域を管理するために、交替領域管理情報用領域としての
DMA(Difect Management Are
a)領域が設けてある。DMA領域には、交替領域管理
情報としてのDMAデータが記録される。DMA領域
は、ディスク38の特定のセクタ番号に対応している。
FIG. 2 shows a functional block diagram of the microcomputer 25 relating to the management of the spare area. A predetermined area is set as a spare area on the disk 38. Further, in order to manage the spare area, a DMA (Difect Management Area) as a spare area management information area is used.
a) Area is provided. DMA data as replacement area management information is recorded in the DMA area. The DMA area corresponds to a specific sector number on the disk 38.

【0025】ピックアップ13で読み出されて信号処理
回路22から供給されるセクタ番号データは、セクタ番
号判定部42に供給される。セクタ番号判定部42は、
内蔵するDMA領域のセクタ番号と、供給されるセクタ
番号とを比較して、DMA領域のセクタ番号であると判
断した場合、DMAデータ格納制御部43に、DMA領
域指示データを供給する。DMAデータ格納制御部43
は、DMA領域指示データを供給されると、信号処理回
路22から供給される読み出しデータを、DMAデータ
と判断して、このDMAデータをDMAデータ格納部4
5に格納させる。DMAデータ格納部45は、マイコン
25内のメモリ上に設けられている。
The sector number data read by the pickup 13 and supplied from the signal processing circuit 22 is supplied to the sector number judging section 42. The sector number determination unit 42
When the sector number of the built-in DMA area is compared with the supplied sector number and it is determined that it is the sector number of the DMA area, the DMA area instruction data is supplied to the DMA data storage control unit 43. DMA data storage control unit 43
When the DMA area instruction data is supplied, the read data supplied from the signal processing circuit 22 is determined to be DMA data, and the DMA data is stored in the DMA data storage unit 4.
Store in 5. The DMA data storage unit 45 is provided on the memory in the microcomputer 25.

【0026】また、セクタ番号判定部42は、現在読み
出し中のセクタ番号とDMA領域のセクタ番号とを比較
して、比較結果のデータをピックアップ駆動命令生成部
41に供給する。ピックアップ駆動命令生成部41は、
セクタ番号判定部42から供給された比較結果のデータ
を基にして、ピックアップ13をDMA領域に位置させ
るように、駆動命令を生成する。
Further, the sector number judging section 42 compares the sector number currently being read with the sector number of the DMA area and supplies the data of the comparison result to the pickup drive command generating section 41. The pickup drive command generation unit 41
Based on the comparison result data supplied from the sector number determination unit 42, a drive command is generated to position the pickup 13 in the DMA area.

【0027】交替領域残量算出手段としての交替領域残
量算部51は、DMAデータ格納部45から読み出した
DMAデータを用いて、交替領域の残量を算出する。D
MAデータとしては、ディスク38の交替領域の最大交
替量についての情報、欠陥として登録されたセクタの情
報があり、この2つの情報から、現在の残りの交替領域
の量を算出することができる。
The spare area remaining amount calculating unit 51 as the spare area remaining amount calculating means calculates the remaining amount of the spare area using the DMA data read from the DMA data storage unit 45. D
The MA data includes information about the maximum replacement amount of the replacement area of the disk 38 and information of the sector registered as a defect, and the current remaining replacement area amount can be calculated from these two pieces of information.

【0028】残量判定手段としての残量判定部52で
は、交替領域残量判定部52から供給された残量データ
と、判定用の基準値とを比較して、交替領域残量が基準
値未満のとき、交替領域の残量が少ないことを示す判定
データを生成する。警告生成手段としてのLED点滅制
御部53は、残量判定部52から交替領域の残量が少な
いことを示す判定データを受けて、LED53の点滅を
制御する。
In the remaining amount determining section 52 as the remaining amount determining means, the remaining amount data supplied from the replacement area remaining amount determining section 52 is compared with the reference value for determination, and the replacement area remaining amount is the reference value. When it is less than, the determination data indicating that the remaining amount of the spare area is small is generated. The LED blinking control unit 53 as a warning generation unit receives the determination data indicating that the remaining amount in the spare area is small from the remaining amount determination unit 52 and controls the blinking of the LED 53.

【0029】次に、マイコン25の制御下で動作するデ
ィスク装置全体の動作について説明する。
Next, the operation of the entire disk device that operates under the control of the microcomputer 25 will be described.

【0030】図3は、マイコン25のメインルーチンの
処理手順を示すフローチャートである。ディスク装置の
電源が投入されて、起動すると、ステップ101で種々
の初期化動作を行う。
FIG. 3 is a flow chart showing the processing procedure of the main routine of the microcomputer 25. When the disk device is powered on and activated, various initialization operations are performed in step 101.

【0031】ステップ102では、ディスクカートリッ
ジ37が装着されているかどうかを、ディスクインセン
サの検出信号をみて判断する。ディスクカートリッジ3
7が装着されていれば、ステップ103に進む。
At step 102, it is judged whether or not the disc cartridge 37 is mounted by observing the detection signal of the disc-in sensor. Disk cartridge 3
If No. 7 is attached, the process proceeds to step 103.

【0032】ステップ103では、DMAデータをメモ
リ内のDMAデータ格納部に読み込む。ステップ103
の詳細を図4のフローチャートに示す。
At step 103, the DMA data is read into the DMA data storage section in the memory. Step 103
Is shown in the flowchart of FIG.

【0033】図4のステップ201では、ピックアップ
13を、ディスク38のDMA領域へシーク開始する。
ステップ202は、セクタ番号判定部42、ピックアッ
プ駆動命令生成部41に相当する。ステップ202で
は、現在のセクタ番号とDMA領域のセクタ番号を比較
し、比較結果に応じてピックアップ駆動命令を生成し
て、ピックアップをDMA領域にシークさせる。
In step 201 of FIG. 4, the pickup 13 starts seeking to the DMA area of the disk 38.
Step 202 corresponds to the sector number determination unit 42 and the pickup drive command generation unit 41. In step 202, the current sector number and the sector number of the DMA area are compared, a pickup drive command is generated according to the comparison result, and the pickup is sought in the DMA area.

【0034】ステップ203では、DMA領域に記録さ
れているDMAデータを読み出す。ステップ204は、
DMAデータ格納制御部43に相当する。ステップ20
4では、読み出したDMAデータをメモリ内のDMAデ
ータ格納部45に格納する。
In step 203, the DMA data recorded in the DMA area is read. Step 204 is
It corresponds to the DMA data storage control unit 43. Step 20
In 4, the read DMA data is stored in the DMA data storage unit 45 in the memory.

【0035】交替領域残量算出部51に相当するステッ
プ205では、DMAデータを用いて、交替領域の残量
を算出する。残量判定部52に相当するステップ206
では、算出された交替領域の残量と判定用基準値とを比
較する。比較の結果、交替領域の残量が基準値以上の場
合は、処理を終え、メインルーチンに戻る。比較の結
果、交替領域の残量が少なく、基準値未満の場合は、ス
テップ207で、LED点滅フラグをセットする。
In step 205 corresponding to the spare area remaining amount calculating section 51, the spare area remaining amount is calculated using the DMA data. Step 206 corresponding to the remaining amount determination unit 52
Then, the calculated remaining amount of the replacement area is compared with the reference value for determination. As a result of the comparison, when the remaining amount of the spare area is equal to or larger than the reference value, the processing is ended and the process returns to the main routine. As a result of the comparison, when the remaining amount in the replacement area is small and is less than the reference value, the LED blinking flag is set in step 207.

【0036】なお、LED点滅制御部53は、LED点
滅フラグをセットするステップと、後述するLED点滅
ルーチンから構成される。
The LED blinking control section 53 comprises a step of setting an LED blinking flag and an LED blinking routine described later.

【0037】図3に戻り、説明を続ける。ステップ10
3で、DMAデータの読み込みが終了すると、ディスク
装置外部からの読み出し指令や書き込み指令に対する準
備が整う。
Returning to FIG. 3, the description will be continued. Step 10
When the reading of the DMA data is completed in 3, the preparation for the read command and the write command from the outside of the disk device is completed.

【0038】ステップ104では、ディスク装置外部か
ら読み出し指令が入ったかどうかを判断する。読み出し
指令が入った場合は、ステップ105にて、所定の読み
出し処理を行う。これにより、ディスク38から読み出
されたデータが、SCSIインタフェース回路26を介
して、ディスク装置外部に出力される。
At step 104, it is judged whether or not a read command is input from the outside of the disk device. When a read command is input, a predetermined read process is performed in step 105. As a result, the data read from the disk 38 is output to the outside of the disk device via the SCSI interface circuit 26.

【0039】ステップ106では、ディスク装置外部か
ら書き込み指令が入ったかどうかを判断する。書き込み
指令が入った場合は、ステップ107にて、所定の書き
込みとベリファイの処理を行う。
At step 106, it is judged whether or not a write command is input from the outside of the disk device. When a write command is input, a predetermined write and verify process is performed in step 107.

【0040】図5は、ステップ107の書き込みとベリ
ファイの詳細のフローチャートを示す。交替領域残量算
出部51に相当するステップ301では、DMAデータ
を用いて、交替領域の残量を算出する。残量判定部52
に相当するステップ302では、算出された交替領域の
残量と判定用基準値とを比較する。比較の結果、交替領
域の残量が基準値以上の場合は、ステップ304に進
む。比較の結果、交替領域の残量が少なく、基準値未満
の場合は、ステップ303で、LED点滅フラグをセッ
トする。
FIG. 5 shows a detailed flowchart of the writing and verifying in step 107. In step 301 corresponding to the spare area remaining amount calculating unit 51, the spare area remaining amount is calculated using the DMA data. Remaining amount determination unit 52
In step 302 corresponding to, the calculated remaining amount of the replacement area is compared with the determination reference value. As a result of the comparison, when the remaining amount of the spare area is equal to or larger than the reference value, the process proceeds to step 304. As a result of the comparison, when the spare area has a small remaining amount and is less than the reference value, the LED blinking flag is set in step 303.

【0041】ステップ304では、交替領域の残量があ
るかどうかを判断する。交替領域の残量が0の場合は、
ステップ305にて、書き込みを不可として、処理を終
了する。
In step 304, it is judged whether or not there is a remaining amount in the spare area. When the remaining amount in the replacement area is 0,
In step 305, writing is disabled and the process ends.

【0042】交替領域の残量がある場合は、ステップ3
06にて、データを書き込む目的のセクタにシークを開
始する。ステップ307では、ピックアップ13が目的
のセクタに到達してシークが完了したかどうかを判断す
る。
If there is a remaining amount of spare area, step 3
At 06, a seek is started to a target sector for writing data. In step 307, it is determined whether the pickup 13 has reached the target sector and the seek has been completed.

【0043】シークが完了した場合は、ステップ308
にて、ディスク装置外部からSCSIインタフェース回
路26を介して受け取ったデータの目的セクタへの書き
込みを行う。なお、下記のベリファイのために、マイコ
ン25内のメモリに、書き込んだデータを格納してお
く。
If the seek is complete, step 308.
Then, the data received from the outside of the disk device via the SCSI interface circuit 26 is written to the target sector. The written data is stored in the memory of the microcomputer 25 for the following verification.

【0044】ステップ309では、書き込みを行ったセ
クタのデータを読み出し、マイコン25内のメモリに格
納しておいたデータとCRCチェックを行う。
In step 309, the data in the written sector is read out, and the CRC stored in the memory in the microcomputer 25 is checked.

【0045】ステップ310では、ベリファイが正常に
終了したかどうかを判断する。ベリファイが正常に終了
した場合は、ステップ311に進む。ステップ311で
は、次に書き込みデータがあるかを判断して、データが
ある場合には、ステップ301に戻り、書き込み処理を
続ける。データが無い場合は、処理を終了して、メイン
ルーチンに戻る。
At step 310, it is determined whether the verification is completed normally. If the verification is completed normally, the process proceeds to step 311. In step 311, it is determined whether there is write data next, and if there is data, the process returns to step 301 and the write processing is continued. If there is no data, the process is terminated and the process returns to the main routine.

【0046】ベリファイが正常に終了しなかった場合
は、ステップ312にて、交替処理を行う。この後、ス
テップ301に戻り、処理を続ける。
If the verification is not normally completed, the replacement process is performed in step 312. After that, the process returns to step 301 to continue the processing.

【0047】図6は、ステップ312の交替処理の詳細
を示すフローチャートである。ステップ401では、メ
モリのDMAデータ格納部45から、DMAデータを読
み出す。ステップ402では、DMAデータを用いて、
欠陥のセクタの代わりに使用する交替セクタのセクタ番
号を取得する。
FIG. 6 is a flow chart showing the details of the replacement process in step 312. In step 401, the DMA data is read from the DMA data storage unit 45 of the memory. In step 402, using the DMA data,
Get the sector number of the replacement sector to use in place of the defective sector.

【0048】ステップ403では、書き込むべきデータ
を、ステップ402で取得したセクタ番号の交替セクタ
に書き込む。
In step 403, the data to be written is written in the replacement sector of the sector number acquired in step 402.

【0049】ステップ404では、新たな交替セクタを
使用したのに対応して、メモリのDMAデータ格納部4
5内のDMAデータを更新し、この後、ディスク38上
のDMA領域のDMAデータを更新する。
In step 404, in response to the use of the new replacement sector, the DMA data storage unit 4 of the memory is
5 is updated, and then the DMA data in the DMA area on the disk 38 is updated.

【0050】交替領域残量算出部51に相当するステッ
プ406では、更新したDMAデータを用いて、交替領
域の残量を算出する。残量判定部52に相当するステッ
プ406では、算出された交替領域の残量と判定用基準
値とを比較する。比較の結果、交替領域の残量が基準値
以上の場合は、処理を終える。比較の結果、交替領域の
残量が少なく、基準値未満の場合は、ステップ407
で、LED点滅フラグをセットし、処理を終了する。
In step 406, which corresponds to the spare area remaining amount calculating section 51, the spare area remaining amount is calculated using the updated DMA data. In step 406 corresponding to the remaining amount determination unit 52, the calculated remaining amount of the replacement area is compared with the determination reference value. As a result of the comparison, if the remaining amount of the spare area is equal to or larger than the reference value, the process ends. As a result of the comparison, if the spare area has a small remaining amount and is less than the reference value, step 407.
Then, the LED blinking flag is set, and the process ends.

【0051】図3に戻り、説明を続ける。書き込みとベ
リファイがステップ107で終了した後、ステップ10
8では、ディスクが排出されたかどうかを判断する。デ
ィスクが排出されていない場合は、ステップ104に戻
り、処理を続ける。ディスクが排出された場合は、ステ
ップ109にて、種々のフラグや変数等を初期化した
後、ステップ102に戻り、処理を続ける。
Returning to FIG. 3, the description will be continued. After writing and verifying are completed in step 107, step 10
At 8, it is determined whether the disc has been ejected. If the disc has not been ejected, the process returns to step 104 to continue the processing. When the disc is ejected, various flags and variables are initialized in step 109, and then the process returns to step 102 to continue the processing.

【0052】図7は、LED点滅制御ルーチンのフロー
チャートを示す。LED点滅制御ルーチンは、タイマ割
り込みにより駆動されるもので、比較的短時間の時間間
隔で、実行される。
FIG. 7 shows a flow chart of the LED blinking control routine. The LED blinking control routine is driven by a timer interrupt, and is executed at relatively short time intervals.

【0053】ステップ501では、LED点滅フラグが
立っているかどうかを判断する。LED点滅フラグが立
っていなければ、処理を終了する。
In step 501, it is determined whether the LED blinking flag is set. If the LED blinking flag is not set, the process ends.

【0054】LED点滅フラグが立っている場合は、ス
テップ502以降で、LED点滅のための処理を行う。
本実施例では、LED点滅制御ルーチンが実行されるご
とに、ループカウンタ用変数をインクリメントして、こ
の変数が所定の基準値に達するごとに、LEDの点灯、
消灯の状態を反転し、同時に変数を初期化して0として
いる。これにより、交替領域の残量が少ないことを示す
警告表示として、一定時間ごとにLEDを点滅させてい
る。
If the LED blinking flag is set, the processing for blinking the LED is performed in step 502 and subsequent steps.
In this embodiment, the loop counter variable is incremented each time the LED blink control routine is executed, and the LED is turned on each time the variable reaches a predetermined reference value.
The off state is reversed, and the variables are initialized to 0 at the same time. As a result, the LED blinks at regular intervals as a warning display indicating that the remaining amount in the spare area is low.

【0055】ステップ502では、メモリ上に設定され
ているループカウンタ用変数をインクリメント(+1)
する。
In step 502, the loop counter variable set in the memory is incremented (+1).
To do.

【0056】ステップ503では、ループカウンタ用変
数が所定の基準値に達しているかどうかを判断する。基
準値に達していない場合は、処理を終了する。基準値に
達している場合は、ステップ504にて、現在、LED
が点灯状態かどうかを判断する。現在、LEDが点灯状
態である場合は、ステップ505にて、マイコン25か
らLED駆動回路31にLレベルの信号を供給させて、
LEDを消灯させる。現在、LEDが消灯状態である場
合は、ステップ506にて、マイコン25からLED駆
動回路31にHレベルの信号を供給させて、LEDを点
灯させる。
In step 503, it is determined whether or not the loop counter variable has reached a predetermined reference value. If it has not reached the reference value, the process ends. If the standard value has been reached, in step 504, the current LED
To determine whether is lit. If the LED is currently turned on, in step 505, the microcomputer 25 supplies an L level signal to the LED drive circuit 31,
Turn off the LED. If the LED is currently off, the microcomputer 25 supplies an H level signal to the LED drive circuit 31 to turn on the LED in step 506.

【0057】即ち、ステップ504〜506にて、LE
Dの点灯,消灯の状態を反転させる。
That is, in steps 504 to 506, LE
Reverse the lighting and extinguishing states of D.

【0058】ステップ507では、ループカウンタ用変
数を初期化して0にし、処理を終了する。
In step 507, the loop counter variable is initialized to 0, and the process is terminated.

【0059】上記のように、本実施例では、ディスクカ
ートリッジ37の装着時、及び、書き込み動作時に、D
MA領域のDMAデータがチェックされ、交替領域の残
量が少ない場合には、LED35を点滅させて、使用者
にその旨を知らせることができる。また、書き込み動作
における交替処理を実行したときに、交替領域が少なく
なると、LED35を点滅させて、使用者にその旨を知
らせることができる。
As described above, in this embodiment, when the disc cartridge 37 is mounted and the writing operation is performed, the D
The DMA data in the MA area is checked, and when the remaining amount in the spare area is small, the LED 35 can be blinked to notify the user of that fact. When the replacement area in the writing operation is reduced and the replacement area becomes small, the LED 35 can be blinked to notify the user of that fact.

【0060】このため、使用者は、交替領域の残量が無
くなる前に、ディスク38の交替領域の残量が少ないこ
とを知ることができ、ディスク38を使用する際の信頼
性を高めることができる。
Therefore, the user can know that the spare area of the disk 38 is low before the spare area runs out, and the reliability in using the disk 38 can be improved. it can.

【0061】また、メーカにて任意に設定できる、SC
SIの「ベンダーユニークコマンド」を用いて、DMA
状況を読み出すDMA読み出しコマンドを設け、ディス
ク装置に接続されたホスト装置から、DMA読み出しコ
マンドにより、DMA状況を知ることができる構成とし
てもよい。
In addition, the SC can be arbitrarily set by the manufacturer.
DMA using SI's "vendor unique command"
A DMA read command for reading the status may be provided so that the host device connected to the disk device can know the DMA status by the DMA read command.

【0062】この場合、交替領域の残量が少ないとき
に、DMA読み出しコマンドをホスト装置から受けたデ
ィスク装置は、交替領域残量の警告をホスト装置に伝え
るようにする。
In this case, when the remaining amount of the spare area is small, the disk device which has received the DMA read command from the host device sends a warning of the spare area remaining amount to the host device.

【0063】[0063]

【発明の効果】上述の如く、請求項1の発明によれば、
ディスク状記録媒体から読み出した前記交替領域管理情
報を基に、交替領域の残量が基準値より少ないかどうか
を判定して、基準値より少ない場合には、警告を生成す
るため、使用者が、ディスクディスク状記録媒体が使用
不能となる前に、交替領域の残量が少なくなっているこ
とを知ることができ、ディスク状記録媒体を使用する際
の信頼性を高めることができる。
As described above, according to the invention of claim 1,
Based on the replacement area management information read from the disc-shaped recording medium, it is determined whether or not the remaining amount of the replacement area is smaller than the reference value. Before the disc-shaped recording medium becomes unusable, it can be known that the spare area has a small remaining amount, and the reliability in using the disc-shaped recording medium can be improved.

【0064】請求項2の発明によれば、データの書き込
み動作時に欠陥領域が生じて新たな交替領域を使用した
場合にも、交替領域の残量を正しく算出して、警報を生
成することができる。
According to the second aspect of the present invention, even when a defective area is generated during the data writing operation and a new replacement area is used, the remaining amount of the replacement area can be correctly calculated and an alarm can be generated. it can.

【0065】請求項3の発明によれば、警告としてアク
セスランプを点滅させることにより、交替領域の残量が
少ないことを、使用者に簡単、かつ、確実に知らせるこ
とができる。
According to the third aspect of the present invention, by blinking the access lamp as a warning, it is possible to easily and surely inform the user that the remaining amount of the spare area is small.

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

【図1】本発明の一実施例の光磁気ディスク装置のブロ
ック図である。
FIG. 1 is a block diagram of a magneto-optical disk device according to an embodiment of the present invention.

【図2】交替領域の管理に関わるマイコンの機能ブロッ
ク図である。
FIG. 2 is a functional block diagram of a microcomputer relating to management of a replacement area.

【図3】マイコンのメインルーチンの処理手順を示すフ
ローチャートである。
FIG. 3 is a flowchart showing a processing procedure of a main routine of a microcomputer.

【図4】DMAデータ読み込みの詳細を示すフローチャ
ートである。
FIG. 4 is a flowchart showing details of reading DMA data.

【図5】書き込みとベリファイ処理の詳細を示すフロー
チャートである。
FIG. 5 is a flowchart showing details of write and verify processing.

【図6】交替処理の詳細を示すフローチャートである。FIG. 6 is a flowchart showing details of a replacement process.

【図7】LED点滅ルーチンのフローチャートである。FIG. 7 is a flowchart of an LED blinking routine.

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

13 ピックアップ 14 リニアモータ 15,16 ボイスコイルモータ 17 駆動制御回路 18 スピンドルモータ 21 レーザ駆動回路 22 信号処理回路 25 マイコン 26 SCSIインタフェース 27 ディスクインセンサ 28 ライトプロテクトセンサ 31 LED駆動回路 35 LED 37 ディスクカートリッジ 38 光磁気ディスク 41 ピックアップ駆動命令生成部 42 セクタ番号判定部 43 DMAデータ格納制御部 45 DMAデータ格納部 51 交替領域残量算出部 52 残量判定部 53 LED点滅制御部 13 pickup 14 linear motor 15,16 voice coil motor 17 drive control circuit 18 spindle motor 21 laser drive circuit 22 signal processing circuit 25 microcomputer 26 SCSI interface 27 disk in sensor 28 write protect sensor 31 LED drive circuit 35 LED 37 disk cartridge 38 optical Magnetic disk 41 Pickup drive command generation unit 42 Sector number determination unit 43 DMA data storage control unit 45 DMA data storage unit 51 Replacement area remaining amount calculation unit 52 Remaining amount determination unit 53 LED blinking control unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 欠陥となった領域の代わりに使用する交
替領域と、前記交替領域を管理するための交替領域管理
情報用の領域とを備えたディスク状記録媒体を用いて、
記録再生を行うディスク装置において、 前記ディスク状記録媒体から読み出した前記交替領域管
理情報を基に、前記交替領域の残量を算出する交替領域
残量算出手段と、 前記算出された交替領域の残量と基準値とを比較して、
前記交替領域の残量が基準値より少ないか否かを判定す
る残量判定手段と、 前記残量判定手段による判定の結果、前記交替領域の残
量が基準値より少ない場合に、警告を生成する警告生成
手段とを有する構成としたことを特徴とするディスク装
置。
1. A disk-shaped recording medium comprising a spare area used in place of a defective area and a spare area management information area for managing the spare area,
In a disk device for recording / reproducing, based on the replacement area management information read from the disk-shaped recording medium, a replacement area remaining amount calculating means for calculating a remaining capacity of the replacement area, and a remaining area of the calculated replacement area. Compare the quantity with the reference value,
A remaining amount determination unit that determines whether or not the remaining amount in the replacement area is less than a reference value, and a warning is generated when the remaining amount in the replacement region is less than a reference value as a result of the determination by the remaining amount determination unit. A disk device having a configuration including:
【請求項2】 前記交替領域残量算出手段は、データの
書き込み動作時に新たに交替領域が使用されて前記交替
領域管理情報が更新された場合に、前記交替領域の残量
を算出することを特徴とする請求項1記載のディスク装
置。
2. The spare area remaining amount calculating means calculates the remaining area of the spare area when the spare area is newly used during the data write operation and the spare area management information is updated. The disk device according to claim 1, wherein the disk device is a disk device.
【請求項3】 前記警告生成手段は、前記交替領域の残
量が基準値より少ない場合の警告としてアクセスランプ
を点滅制御することを特徴とする請求項1又は請求項2
記載のディスク装置。
3. The warning generation means controls blinking of an access lamp as a warning when the remaining amount of the spare area is smaller than a reference value.
The disk device described.
JP5086994A 1994-03-22 1994-03-22 Disk device Pending JPH07262699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5086994A JPH07262699A (en) 1994-03-22 1994-03-22 Disk device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5086994A JPH07262699A (en) 1994-03-22 1994-03-22 Disk device

Publications (1)

Publication Number Publication Date
JPH07262699A true JPH07262699A (en) 1995-10-13

Family

ID=12870738

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5086994A Pending JPH07262699A (en) 1994-03-22 1994-03-22 Disk device

Country Status (1)

Country Link
JP (1) JPH07262699A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7380159B2 (en) 1998-07-28 2008-05-27 Lg Electronics, Inc. Method and apparatus of recording data in the optical recording medium
US7430155B2 (en) 1998-07-01 2008-09-30 Lg Electronics Inc. Defect area management system and method for optical storage medium
JP2008293562A (en) * 2007-05-23 2008-12-04 Hitachi Ltd Recording and reproducing system and method for recording and reproducing
US7539103B2 (en) 1998-07-29 2009-05-26 Lg Electronics Inc. Method for real time recording/playback of data to/from and optical recording medium and method for managing files thereof
JP2019034169A (en) * 2018-10-11 2019-03-07 株式会社オリンピア Game machine

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7430155B2 (en) 1998-07-01 2008-09-30 Lg Electronics Inc. Defect area management system and method for optical storage medium
US7525882B2 (en) 1998-07-01 2009-04-28 Lg Electronics Inc. Defect area management system and method for optical storage medium
US7558163B2 (en) 1998-07-01 2009-07-07 Lg Electronics Inc. Defect area management system and method for optical storage medium
US7380159B2 (en) 1998-07-28 2008-05-27 Lg Electronics, Inc. Method and apparatus of recording data in the optical recording medium
US7380162B2 (en) 1998-07-28 2008-05-27 Lg Electronics Inc. Method and apparatus of recording data in the optical recording medium
US7441149B2 (en) 1998-07-28 2008-10-21 Lg Electronics Inc. Method and apparatus of recording data in the optical recording medium
US7603584B2 (en) 1998-07-28 2009-10-13 Lg Electronics Inc. Method and apparatus of recording data in the optical recording medium
US7711982B2 (en) 1998-07-28 2010-05-04 Lg Electronics, Inc. Method and apparatus of recording data in the optical recording medium
US7539103B2 (en) 1998-07-29 2009-05-26 Lg Electronics Inc. Method for real time recording/playback of data to/from and optical recording medium and method for managing files thereof
US7599269B2 (en) 1998-07-29 2009-10-06 Lg Electronics Inc. Method for real time recording/playback of data to/from an optical recording medium and method for managing files thereof
JP2008293562A (en) * 2007-05-23 2008-12-04 Hitachi Ltd Recording and reproducing system and method for recording and reproducing
JP2019034169A (en) * 2018-10-11 2019-03-07 株式会社オリンピア Game machine

Similar Documents

Publication Publication Date Title
KR100565924B1 (en) Data management information obtaining method for obtaining data management information including information concerning part of data areas as information concerning a pseudo area
JP2002015507A (en) Method for recording data and disk drive
KR100323319B1 (en) Disc recorder, disc player and disc recorder
JPH08329597A (en) Disk inspection method
JPH07262699A (en) Disk device
JPH09231586A (en) Optical disk device
JPH06302092A (en) Method for eliminating unauthorized copy
US5469419A (en) Information processing apparatus with recording medium discharging mechanism for preventing change or loss of information of recording medium by temperature increase of the apparatus
JPH0668588A (en) Exchangeable medium recording and reproducing device
JPH11134778A (en) Optical disk device and information reading method of its device
US5473589A (en) Information recording/reproducing apparatus capable of performing ready operation in response to external loading request
JP2002203327A (en) Optical disk device, its cleaning device and method
JPH10143976A (en) Optical disk drive device
JP3046793U (en) Optical disk drive
JPH09251709A (en) Optical disk device
JPH08203211A (en) Optical disk apparatus
JP2004005764A (en) Program and recording medium, and disk discriminating method and optical disk device
KR101114943B1 (en) Method and apparatus for controlling reproducing speed of a disk recording medium
JPH10134479A (en) Optical disk device
JP3689128B2 (en) Information recording / reproducing device
JP3945449B2 (en) Optical disc apparatus and optical disc reproducing method
JP2536980B2 (en) Optical disc drive and method for controlling an optical disc drive
JPH08161751A (en) Optical disk device
JPH09265651A (en) Recording/reproducing device for disk-like recording medium and recording/reproducing method therefor
JPH0476861A (en) Information storage device