JP3605824B2 - Recording management method, recording area setting method, and data recording method - Google Patents

Recording management method, recording area setting method, and data recording method Download PDF

Info

Publication number
JP3605824B2
JP3605824B2 JP2003141947A JP2003141947A JP3605824B2 JP 3605824 B2 JP3605824 B2 JP 3605824B2 JP 2003141947 A JP2003141947 A JP 2003141947A JP 2003141947 A JP2003141947 A JP 2003141947A JP 3605824 B2 JP3605824 B2 JP 3605824B2
Authority
JP
Japan
Prior art keywords
data
recording
area
recorded
block
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.)
Expired - Fee Related
Application number
JP2003141947A
Other languages
Japanese (ja)
Other versions
JP2004005976A (en
Inventor
卓也 五十嵐
克之 寺西
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP2003141947A priority Critical patent/JP3605824B2/en
Publication of JP2004005976A publication Critical patent/JP2004005976A/en
Application granted granted Critical
Publication of JP3605824B2 publication Critical patent/JP3605824B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Management Or Editing Of Information On Record Carriers (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、例えば、本来デジタルオーディオデータを圧縮して記録する光磁気ディスクに、コンピュータで処理するデジタルデータを記録再生する場合に用いて好適な記録管理方法、記録領域設定方法、およびデータ記録方法に関する。
【0002】
【従来の技術】
最近、光磁気ディスクにデジタルオーディオデータを圧縮して記録し、伸長して再生するミニディスク(MD)(商標)が普及しつつある。図29は、このミニディスクにおける記録フォーマットを表している。同図に示すように、ミニディスクは、その1周が複数のセクタに区分されている。そして、36個のセクタにより1クラスタを構成し、このクラスタを単位として、圧縮されたデジタルオーディオデータが記録されるようになされている。
【0003】
録音用のミニディスクの場合、1クラスタ(=36セクタ)の中で、先頭の3セクタがリンクセクタとされ、次の1セクタはサブデータセクタとされる。このサブデータセクタには、オーディオデータ以外のサブデータが配置される。リンクセクタは前後のクラスタを結合するための領域とされ、オーディオデータは実質的に、リンクセクタとサブデータセクタ以外の32セクタにのみ記録される。
【0004】
一方、再生専用のミニディスクにおいては、データが連続して記録されており(離散的に記録されておらず)、リンク領域の3セクタは不要となる。そこで、この場合においては、この3セクタもサブデータセクタとされる。
【0005】
1セクタは、2352バイト(データ用に2332バイト)とされ、2つの連続するセクタに11個のサウンドグループが配置される。1サウンドグループは424バイトとされ、そこには、左チャンネルと右チャンネルのオーディオデータが合計512サンプル(11.61ms)分配置される。デジタルオーディオデータは、このサウンドグループを単位として記録が行われる。
【0006】
【発明が解決しようとする課題】
このようなミニディスクを、例えばコンピュータの記憶装置として用いることが考えられる。この場合、コンピュータのデータをファイルとして管理するには、クラスタ(36セクタ)は単位として大きすぎるため、クラスタより小さい単位(例えばセクタ単位)でデータを記録することができるようにすることが好ましい。しかしながら、上述したように、ミニディスクは1クラスタを単位としてデータを記録することが規格上定められているため、1クラスタより小さい単位(例えばセクタ単位)でデータを記録することができない課題を有している。
【0007】
また、例えば、1枚のミニディスクにコンピュータのデータとオーディオデータの両方を記録する場合、ハードディスクにおける場合と同様に、データを記録する領域を予め区分することが考えられる。
【0008】
例えば図30に示すように、クラスタ0からクラスタ2199までの2200個のクラスタが1枚のミニディスク上に存在する場合、クラスタ0からクラスタ650までの領域(A)、クラスタ651からクラスタ1100までの領域(B)、およびクラスタ1101からクラスタ2199までの領域(C)に区分し、各領域(パーティション)のうち、例えばパーティションAとCにオーディオデータを記録し、パーティションBにコンピュータのデータを記録するようにすることができる。
【0009】
しかしながら、このように、データの種類に対応して、記録領域を予め区分すると、例えば記録すべきコンピュータのデータがパーティションBの容量以上になったとき、たとえパーティションAとパーティションCに空き領域が存在していたとしても、もはやコンピュータのデータをそのミニディスクに記録することができなくなる課題があった。また、逆に、パーティションAとパーティションCが一杯になると、パーティションBに空き領域が存在していても、オーディオデータをそれ以上記録することができない。
【0010】
さらに、このようにパーティションに区分する管理方法は、クラスタを単位とする管理方法とは基本的に異なる管理方法となり、例えば、複数のパーティションに区分され、所定のパーティションにコンピュータのデータが記録されており、他のパーティションにオーディオデータが記録されている1枚のミニディスクを、オーディオデータ再生専用の装置で再生したとき、そのオーディオデータを再生することができなくなってしまう恐れがある。即ち、互換性を保証することが困難になる。
【0011】
本発明はこのような状況に鑑みてなされたものであり、クラスタを単位としてデータを記録することが規格化されているミニディスクに対して、クラスタより小さい、例えばセクタ単位でデータを記録することができるようにするものである。
【0012】
また、空き領域が存在する場合においては、コンピュータデータとオーディオデータのいずれをも必要に応じて随時記録することができるようにするものである。
【0013】
さらに、通常のミニディスクとの互換性も確保するものである。
【0014】
【課題を解決するための手段】
本発明の記録管理方法は、第1のデータ量単位(例えばクラスタ)とは異なる第2のデータ量単位(例えばブロック)でデータを記録する場合に第2の管理データ(例えば図3のLOFATまたは図12のボリュームマネジメントエリア)に基づいて第2のデータ量単位のデータが記録される領域(例えば図6のクラスタ16乃至クラスタ27からなるセグメントまたは図11のデータトラック)を第1の管理データ(例えば図3におけるU−TOCの管理テーブル)に設定し、第2の管理データに基づいて第2のデータ量単位のデータが記録される領域に第2のデータ量単位で管理する第3の管理データ(例えば図7のFATまたは図25のビットマップ)に基づいて第2のデータ量単位でデータを記録することを特徴とする。
【0015】
本発明の記録領域設定方法は、記録媒体(例えば図2のミニディスク1)にデジタルデータを記録するため記録領域を設定する記録領域設定方法において、第1の単位(例えばクラスタ)でデジタルデータの記録状態を管理する第1のテーブル(例えば図24のU−TOCの管理テーブル)のデータから記録媒体の空き領域を検出し、第1のテーブルに空き領域をデジタルデータ用のトラックとすることを示すデータ(例えば図24のトラックモード)を記録し、デジタルデータ用のトラックとされた空き領域の先頭に第1の単位以下の第2の単位(例えばブロック)で記録媒体のデータの記録状態を示す第2のテーブル(例えば図25のビットマップ)を作成することを特徴とする。
【0016】
本発明のデータ記録方法は、デジタルデータを記録媒体(例えば図2のミニディスク1)に記録する際のデータ記録方法において、第1の単位(例えばクラスタ)でデジタルデータの記録状態を管理する第1のテーブル(例えば図24のU−TOCの管理テーブル)のデータに基づいて記録媒体のデジタルデータ用のトラックから第1の単位以下の第2の単位(例えばブロック)でデジタルデータの記録状態を管理する第2のテーブル(例えば図25のビットマップ)を読み出し、第2のテーブルから使用可能ブロックを示す情報(例えば00)を検出し、使用可能ブロックを示す情報に対応するデジタルデータ用のトラックのブロックにデジタルデータを記録し、第2のテーブルの使用可能ブロックを示す情報を使用不可能を示す情報(例えば01)に書き換えることを特徴とする。
【0022】
上記構成の記録管理方法においては、U−TOCの管理テーブルで管理される範囲の中から所定の範囲が指定され、その指定された範囲がFATやビットマップで管理される。従って、クラスタより小さいブロックを単位として、指定した範囲においてコンピュータデータを記録することができる。また、この指定を必要に応じて追加することにより、空き領域が存在する限りにおいて、デジタルオーディオデータはもとより、コンピュータデータを追加記録することができる。さらに、通常のオーディオデータのみが記録されているミニディスクとの互換性も確保される。
【0023】
上記構成の記録領域設定方法においては、U−TOCの管理テーブルからミニディスク1の空き領域が検出され、その空き領域がデジタルデータ用のトラックとされる。そして、そのトラックの先頭に、ミニディスク1のデータの記録状態を示すビットマップが作成される。従って、ミニディスク1の使用開始時において、デジタルデータを記録するためのトラックを確実に確保し、管理することが可能となる。
【0024】
上記構成のデータ記録方法においては、U−TOCの管理テーブルのデータからビットマップの記録位置が検出され、ビットマップが読み出される。そして、ビットマップから使用可能ブロックが検出され、そこにデジタルデータが記録される。そのブロックに対応するビットマップの情報は、使用可能を示す情報00から使用不可能を示す情報01に書き換えられる。従って、確実に、ブロック単位で記録データを管理することが可能となる。
【0030】
【発明の実施の形態】
図1は、本発明の記録媒体管理方法を応用したミニディスク装置の一実施例の外観構成を示している。ディスクカートリッジ1aには、ミニディスク1(図2)が内部に収容されており、このカートリッジ1aは、挿入口42から本体41に対して装填することができるようになされている。本体41の右側下方には、電源釦19aとイジェクト釦19bなどを含む操作入力部19が設けられている。電源釦19aは、電源をオンまたはオフするとき操作され、イジェクト釦19bは、カートリッジ1aをイジェクトするとき操作される。また、本体41の上面中央部には、表示部18が配置されている。本体41は、SCSIバス30を介してホストCPU31(図2)に接続されている。
【0031】
図2は、本体41の内部構成を示している。同図において、例えば複数の楽曲(オーディオデータ)とコンピュータデータの両方、またはコンピュータデータのみが記録されているミニディスク(光磁気ディスク)1は、スピンドルモータ2により回転駆動される。光学ヘッド3は、ミニディスク1に対して記録/再生時にレーザ光を照射する。即ち、記録時には、記録トラックをキュリー温度まで加熱するための高レベルのレーザ光が出力され、また再生時には、磁気カー効果により反射光からデータを検出するための比較的低レベルのレーザ光が出力される。
【0032】
このため、光学ヘッド3は、レーザ光を出力するレーザダイオード、偏光ビームスプリッタ、対物レンズ等からなる光学系、および反射光を検出するためのディテクタを有している。このうち、対物レンズ3aは、2軸機構4によって、ディスク半径方向(トラッキング方向)およびディスクに接離する方向(フォーカス方向)に変位可能に保持されており、また、光学ヘッド3の全体は、スレッド機構5によりディスク半径方向に移動可能とされている。
【0033】
また、磁気ヘッド6は、供給されたデータによって変調された磁界をミニディスク1に印加するように、ミニディスク1を挟んで光学ヘッド3と対向する位置に配置されている。
【0034】
再生動作によって、光学ヘッド3によりミニディスク1から検出された情報はRFアンプ7に供給される。RFアンプ7は、供給された情報の演算処理により、再生RF信号、トラッキングエラー信号、フォーカスエラー信号、ATIP情報(ミニディスク1にプリグルーブ(ウォブリンググルーブ)として記録されている絶対時間情報)、アドレス情報、サブコード情報、フォーカスモニタ信号等を抽出する。
【0035】
そして、抽出された再生RF信号はエンコーダ/デコーダ部8に供給される。また、トラッキングエラー信号、フォーカスエラー信号は、サーボ回路9に供給され、アドレス情報はアドレスデコーダ10に供給される。さらに、ATIP情報、フォーカスモニタ信号は、例えばマイクロコンピュータ(CPU)によって構成されるシステムコントローラ11に供給される。
【0036】
サーボ回路9は、RFアンプ7より供給されたトラッキングエラー信号、フォーカスエラー信号、システムコントローラ11からのトラックジャンプ指令、シーク指令、回転速度検出情報等により各種サーボ駆動信号を発生させ、2軸機構4およびスレッド機構5を制御して、フォーカスおよびトラッキング制御を行わせ、またスピンドルモータ2を一定角速度(CAV)または一定線速度(CLV)に制御する。
【0037】
再生RF信号は、エンコーダ/デコーダ部8でEFM復調され、さらにCIRC等のデコード処理がなされた後、メモリコントローラ12によって一旦バッファRAM13に書き込まれる。尚、光学ヘッド3によるミニディスク1からのデータの読み取り、および光学ヘッド3からバッファRAM13までの再生データの転送は、1.41Mbit/secの転送レートで行われる。
【0038】
バッファRAM13に書き込まれたデータは、SCSIインタフェース14を介してホストCPU31に供給される。
【0039】
また、アドレスデコーダ10から出力されるアドレス情報は、エンコーダ/デコーダ部8を介してシステムコントローラ11に供給され、各種の制御動作に用いられる。
【0040】
さらに、記録/再生動作のビットクロックを発生させるPLL回路のロック検出信号、および再生データのフレーム同期信号の欠落状態のモニタ信号も、システムコントローラ11に供給される。
【0041】
ミニディスク1に対して記録動作が実行される際には、記録データが、ホストCPU31よりSCSIインタフェース14を介してメモリコントローラ12に供給される。そして、メモリコントローラ12によって一旦バッファRAM13に書き込まれ、また所定のタイミングで読み出されて、エンコーダ/デコーダ部8に送られる。そして、エンコーダ/デコーダ部8でCIRCエンコード、EFM変調等のエンコード処理が施された後、磁気ヘッド駆動回路15に供給される。
【0042】
磁気ヘッド駆動回路15は、エンコード処理された記録データに応じて、磁気ヘッド6に磁気ヘッド駆動信号を供給する。つまり、ミニディスク1に対して磁気ヘッド6によるNまたはSの磁界印加を実行させる。また、このとき、システムコントローラ11は、光学ヘッド3に対して、記録レベルのレーザ光を出力するように制御信号を供給する。
【0043】
例えば、液晶ディスプレイによって構成される表示部18には、システムコントローラ11からの指令に対応して、所定の文字等が表示される。操作入力部19は、上述した電源釦19a、イジェクト釦19bの他、再生キー、停止キー、AMSキー、サーチキー等を有し、その操作に対応する信号をシステムコントローラ11に入力する。
【0044】
RAM(以下、TOCメモリという)16は、ミニディスク1におけるTOC情報を保持する。ミニディスク1が装填された時点、あるいは記録または再生動作の直前において、システムコントローラ11は、スピンドルモータ2および光学ヘッド3を駆動させ、ミニディスク1の例えば最内周側に設定されているTOC領域のデータを抽出させる。そして、RFアンプ7、エンコーダ/デコーダ部8を介してシステムコントローラ11に供給されたTOC情報は、TOCメモリ16に蓄えられ、以後、そのミニディスク1に対する記録/再生動作の制御に用いられる。メモリ17は、後述するFAT(File Allocation Table)情報、またはビットマップを記憶する。
【0045】
ホストCPU31は、コンピュータデータの送受信の制御だけでなく、FAT情報またはビットマップの送受信や更新を制御する。尚、メモリ17は、本体41側に設けることもできる。
【0046】
書き込み可能なミニディスク1にはまた、一連の楽曲を、1または複数に分割したセグメント(パーツ)として離散的に(勿論、連続的でもよいが)記録/再生できるようにするためのセグメント管理データが記録されている。つまり記録データ領域の管理のために、データの記録や消去に応じて内容が書き換えられるユーザTOC(以下、U−TOCという)が、例えば図3に示すようなデータ構造で記録されている。
【0047】
このU−TOCは、データ領域中の、例えば4バイト×587の領域に記録され、その領域には、先頭位置に、オール0ビットまたはオール1ビットの1バイトデータよりなる同期パターンを有するヘッダが設けられている。
【0048】
また、所定アドレス位置に、このミニディスク1に記録されている最初の楽曲の曲番(First TNO)、最後の楽曲の曲番(Last TNO)、セクタ使用状況、ディスクID等のデータが記録される。さらに、記録されている各楽曲等を後述する管理テーブルに対応させる各種の対応テーブル指示データ(P−DFA〜P−TNO255)を記録する領域が用意されている。
【0049】
一方、管理テーブルとして、番号(01h)〜(FFh)までの255個のパーツテーブルが設けられ、それぞれのパーツテーブルには、あるセグメントについて起点となるスタートアドレス、終端となるエンドアドレス、そのセグメント(トラック)のモード情報、およびそのセグメントが他のセグメントへ続いて連結される場合は、その連結されるセグメントのスタートアドレスおよびエンドアドレスが記録されているパーツテーブルを示すリンク情報が記録できるようになされている。
【0050】
トラックのモード情報とは、そのトラックが、例えばオーバライト禁止やデータ複写禁止に設定されているのか否かの情報、オーディオ情報、コンピュータ情報などの種類を表す情報、モノラル/ステレオの種別を示す情報などである。リンク情報は、例えば各パーツテーブルに与えられた番号(01h)〜(FFh)によって、連結すべきパーツテーブルを指定している。
【0051】
つまり管理テーブルにおいては、1つのパーツテーブルが1つのセグメントを表現しており、例えば3つのセグメントが連結されて構成される楽曲については、リンク情報によって連結される3つのパーツテーブルによって、そのセグメント位置の管理がなされる。尚、このため、パーツテーブルの番号(01h)〜(FFh)は、そのままセグメント(パーツ)番号とすることができる。
【0052】
管理テーブルにおける(01h)〜(FFh)までの各パーツテーブルは、対応テーブル指示データ(P−DFA〜P−TNO255)によって、そのセグメントの内容が 示される。
【0053】
P−DFAは、ミニディスク1上の欠陥領域を示しており、傷などによる欠陥領域となるトラック部分(=セグメント)が示された1つのパーツテーブル、または複数のパーツテーブル内の先頭のパーツテーブルを指定している。つまり、欠陥セグメントが存在する場合、対応テーブル指示データP−DFAに、(01h)〜(FFh)のいずれかが記録されており、それに対応するパーツテーブルには、欠陥セグメントがスタートおよびエンドアドレスによって示されている。また、他にも欠陥セグメントが存在する場合は、そのパーツテーブルにおけるリンク情報として、他のパーツテーブルが指定され、そのパーツテーブルにも欠陥セグメントが示されている。そして、そのセグメントが最後の欠陥セグメントである場合は、リンク情報は、例えば(00h)とされ、それ以降にセグメントがリンクされていないことが表される。
【0054】
P−EMPTYは、管理テーブルにおける1または複数の未使用のパーツテーブルの先頭のパーツテーブルを示すものであり、未使用のパーツテーブルが存在する場合は、対応テーブル指示データP−EMPTYとして、(01h)〜(FFh)のいずれかが記録される。未使用のパーツテーブルが複数存在する場合は、対応テーブル指示データP−EMPTYによって指定されたパーツテーブルから、リンク情報によって順次パーツテーブルが指定されていき、全ての未使用のパーツテーブルが管理テーブル上で連結(リンク)される。
【0055】
例えば、全く記録がなされておらず、欠陥もない光磁気ディスクであれば、パーツテーブルは全て使用されていないため、例えば対応テーブル指示データP−EMPTYによってパーツテーブル(01h)が指定され、また、パーツテーブル(01h)のリンク情報としてパーツテーブル(02h)が指定され、パーツテーブル(02h)のリンク情報としてパーツテーブル(03h)が指定され、というように、パーツテーブル(FFh)まで連結される。この場合、パーツテーブル(FFh)のリンク情報は、それ以降に連結がないことを示す(00h)とされる。
【0056】
P−FRAは、ミニディスク1上のデータの未記録領域(消去領域を含む)を示しており、未記録領域となるトラック部分(=セグメント)が示された、1または複数のパーツテーブル内の先頭のパーツテーブルを指定している。つまり、未記録領域が存在する場合、対応テーブル指示データP−FRAに、(01h)〜(FFh)のいずれかが記録されており、それに対応するパーツテーブルには、未記録領域であるセグメントが、スタートおよびエンドアドレスによって示されている。また、このようなセグメントが複数個ある場合、つまりパーツテーブルが複数個ある場合は、リンク情報により、リンク情報が(00h)となるパーツテーブルまで順次指定されている。
【0057】
図4に、未記録領域となるセグメントのパーツテーブルによる管理状態を模式的に示す。これは、スタートアドレスとエンドアドレスが、それぞれ、(S03h,E03h),(S18h,E18h),(S1Fh,E1Fh),(S2Bh,E2Bh),(SE3h,EE3h)で表されるセグメントが未記録領域とされているとき、この状態が対応テーブル指示データP−FRAに引き続き、パーツテーブル(03h),(18h),(1Fh),(2Bh),(E3h)のリンクによって表現されている状態を示している。尚、上記した欠陥領域や、未使用パーツテーブルの管理形態も、これと同様となる。
【0058】
P−TNO1〜P−TNO255は、ミニディスク1上に記録された、それぞれの楽曲(トラック)について示しており、例えば対応テーブル指示データP−TNO1では、1曲目のデータが記録された、1または複数のセグメントのうちの時間的に先頭となるセグメントが示されたパーツテーブルを指定している。
【0059】
例えば、1曲目とされた楽曲がディスク上でトラックが分断されずに(つまり1つのセグメントで)記録されている場合は、その1曲目の記録領域は、対応テーブル指示データP−TNO1で示されるパーツテーブルにおけるスタートおよびエンドアドレスとして記録されている。
【0060】
また、例えば2曲目とされた楽曲がディスク上で複数のセグメントに離散的に記録されている場合は、その楽曲の位置を示すため、各セグメントが時間的な順序に従って指定(リンク)される。つまり、対応テーブル指示データP−TNO2に指定されたパーツテーブルから、さらにリンク情報によって他のパーツテーブルが順次時間的な順序に従って指定されて、リンク情報が(00h)となるパーツテーブルまで連結される(上記、図4と同様の形態)。
【0061】
このように、例えば2曲目を構成するデータが記録された全セグメントが順次指定、記憶されていることにより、このU−TOCデータを用いて、2曲目の再生時や、その2曲目の領域へのオーバライトを行う際に、光学ヘッド3および磁気ヘッド6をアクセスさせ、離散的なセグメントから連続的な音楽情報を取り出したり、記録エリアを効率使用した記録が可能になる。
【0062】
このように、ミニディスク1に記録されているU−TOCデータが読み出され、TOCメモリ16に記憶される。そして、TOCメモリ16に読み込んだU−TOCデータを用いて、ディスク上の記録領域の管理を行って記録再生動作を制御することができる。
【0063】
以上のU−TOCデータは、通常の楽曲を記録するミニディスクにおいても同様に記録されるものである。そして、本実施例のミニディスクにおいては、オーディオデータ(楽曲)以外に、例えばコンピュータデータを記録することができるように、LOFAT(Location of FAT)が16ビットのデータとして記録さ れるようになされている。このLOFATについては後述する。
【0064】
図5は、U−TOCの管理テーブル(パーツテーブル)と、ミニディスク1のデータ記録領域のクラスタとの関係を模式的に表している。この実施例は、ミニディスク1上におけるデータの未記録領域を表している。未記録領域の先頭クラスタを示すパーツテーブル番号は、対応テーブル指示データP−FRAに(01h)として規定されている。即ち、データの未記録領域としての先頭のセグメントの位置が、パーツテーブル(01h)に記述されていることになる。
【0065】
そこで、この番号(01h)のパーツテーブルを参照すると、そのスタートアドレスはクラスタ9とされ、エンドアドレスはクラスタ12とされている。このことから、データ記録領域のクラスタ9からクラスタ12までが、連続して未記録領域とされていることがわかる。そして、この番号(01h)のパーツテーブルには、リンク情報として、(0Ah)が記述されている。このことは、クラスタ9からクラスタ12までのセグメントに続く未記録領域のセグメントに関するデータが、番号(0Ah)のパーツテーブルに記述されていることを表している。
【0066】
そこで、番号(0Ah)のパーツテーブルを見ると、そのスタートアドレスはクラスタ29とされ、エンドアドレスはクラスタ30とされている。即ち、クラスタ29からクラスタ30までのセグメントが、データ記録領域中に未記録領域として存在していることがわかる。
【0067】
また、この番号(0Ah)のリンク情報としては、(04h)が記述されている。そこで、この(04h)の番号のパーツテーブルを見ると、そのスタートアドレスはクラスタ104とされ、エンドアドレスはクラスタ105とされている。即ち、クラスタ29とクラスタ30に続く第3のセグメントとして、クラスタ104とクラスタ105からなる未記録領域が存在することがわかる。
【0068】
さらに、この(04h)のパーツテーブルには、(07h)のリンク情報が記述されている。そこで、(07h)のパーツテーブルを見ると、そのスタートアドレスはクラスタ82とされ、エンドアドレスはクラスタ87とされている。即ち、クラスタ82からクラスタ87までの第4番目のセグメントが未記録領域とされている。そして、この(07h)のパーツテーブルのリンク情報には、(00h)が記述されているため、この第4番目のセグメントが未記録領域の最後のセグメントであることがわかる。
【0069】
上述したように、データ記録領域の各クラスタには、基本的にはデジタルオーディオデータが記録されるのであるが、その所定の範囲(クラスタ)にデジタルオーディオデータではなく、コンピュータデータを記録する場合、例えば図6に示すように、まずコンピュータデータを記録する範囲がホストCPU31によりクラスタを単位として指定される。
【0070】
図6の実施例においては、クラスタ16からクラスタ27までの12クラスタよりなるセグメントが、コンピュータデータを記録するためのセグメントとして指定されている。そして、このセグメントは5番目のセグメントなので、上述したU−TOCの対応テーブル指示データP−TNO5には、コンピュータデータ記録用の先頭のセグメントに関するパーツテーブルの番号として(02h)が記述される。そこで、この(02h)のパーツテーブルを見ると、スタートアドレスとしてクラスタ16が記述され、エンドアドレスとしてクラスタ27が記述されている。そして、そのリンク情報としては、(00h)が記述されているため、クラスタ16からクラスタ27までの12クラスタからなる1つのセグメントだけが、コンピュータデータ記録用として用意されていることがわかる。
【0071】
このように、管理テーブル(パーツテーブル)にコンピュータデータを記録する領域が指定されると、図7に示すような、コンピュータデータを記録するファイルを管理するテーブルとしてのFATが、ミニディスク1上のデータ記録領域の所定のトラックに形成される。例えば図6に示すように、クラスタ16からクラスタ27までの、コンピュータデータ記録用の領域の先頭のクラスタ16にFATを記録する(勿論、FATは、例えばU−TOC領域に記録することもできる)。また、このとき、FATの記録位置がわかるように、LOFATに(02h)が記述される。
【0072】
FATの1つのブロックは、2バイトにより構成され、各ブロックは、データ記録領域の所定の大きさの領域(例えばクラスタ)に対応している。即ち、図6に示した実施例においては、データ記録領域中のクラスタ16乃至27までのセグメントが、コンピュータデータ記録領域として指定されたため、FATにおいては、このクラスタ16乃至27に対応するブロック16乃至27に、使用可能未使用ブロックであることを示すデータ(FFEh)が記述される。但し、クラスタ16にFATが記録されたときは、このクラスタに対応するFATのブロック16に、(FFDh)が記録される。これは、そこ(対応するクラスタ16)にデータが記録されており、そのデータは、そこ(対応するクラスタ16)で終了していることを表している。
【0073】
データ記録領域のクラスタ16乃至27以外の各クラスタは、コンピュータデータを記録する領域として指定されていないため、換言すれば、コンピュータデータを記録する領域として使用することが禁止されているため、使用禁止ブロックであることを表すデータ(FFFh)が記述される。
【0074】
図8は、このようにして確保したクラスタ16乃至27の所定の範囲に、コンピュータデータを記録した状態におけるFATを示している。この実施例においては、クラスタ17に対応するブロック17には、ブロック18の番号が記述され、ブロック18には、ブロック19の番号が記述され、ブロック19にはブロック20の番号が記述され、さらにブロック20には、セグメントの最後のブロックであることを表すデータ(FFDh)が記述されている。従って、クラスタ17からクラスタ20までの4つのクラスタからなるセグメントに、一連のコンピュータデータが記録されていることがわかる。
【0075】
さらに、ブロック21にはブロック番号22が、ブロック22にはブロック番号23が、ブロック23にはブロック番号24が、ブロック24にはブロック番号25が、そしてブロック25には(FFDh)が記述されている。即ち、クラスタ21からクラスタ25までの5個のクラスタに、一連のコンピュータデータが記録されていることになる。
【0076】
尚、ブロック26とブロック27のデータは、(FFEh)のままであるため、クラスタ26とクラスタ27は、まだコンピュータデータが記録されていない未使用領域のままとされていることになる。
【0077】
図9は、コンピュータデータを記録再生するためのミニディスク装置の本体41にミニディスク1(カートリッジ1a)を装着し、初期化を指令したとき、ホストCPU31が行う処理の例を示している。最初にステップS1において、ミニディスク1のU−TOCのLOFATに所定の管理テーブル上のパーツテーブルを示す番号が記述されているか否かが判定される。LOFATに所定のパーツテーブルの番号が記述されている場合、既にコンピュータデータを記録するための初期化が完了している(記録領域が確保されている)ため、初期化処理は終了される。
【0078】
ステップS1において、LOFATに所定の番号が記述されていないと判定された場合、ステップS2に進み、U−TOCの中から空き領域(空きパーツテーブル)が確保される(データトラックが確保される)。例えば図6に示すように、データ記録領域中の空き領域(空き領域か否かは、U−TOCのP−TNO1〜P−TNO255からわかる)の中から、所定の12クラスタ(図6においては、クラスタ16からクラスタ27までの12クラスタ)が、コンピュータデータ記録用トラックとして確保される。そして、このセグメントがP−TNO5に登録され、そのスタートアドレスとエンドアドレスが、パーツテーブル(02h)に登録される。
【0079】
次にステップS3に進み、ステップS2で確保したデータトラックの領域内の(12クラスタ中の)任意のクラスタ(例えば、先頭のクラスタ16)に、図7に示したようなFATが書き込まれる。そして、FATにおいては、図7に示すように、FATの書き込まれたクラスタ16に対応するブロック16に、使用ブロックであり、かつ、リンクするブロックが存在しないことを表すデータ(FFDh)が記録される。FATが記録されていないクラスタ17乃至27に対応するFATのブロック17乃至27には、使用可能未使用ブロックとしてデータ(FFEh)が記録される。さらに、それ以外のクラスタに対応するFATのブロックには、使用禁止ブロックとして、データ(FFFh)が記録される。
【0080】
次にステップS4に進み、U−TOCのLOFATに、FATを記録したクラスタに対応するパーツテーブルの番号を記述する。
【0081】
尚、FATデータは、一旦メモリ17に記憶され、所定のタイミングでミニディスク1上のFATに記録される。
【0082】
次に図10は、ミニディスク1にコンピュータデータを記録する場合のホストCPU31が行う処理例について表している。最初にステップS11において、ホストCPU31は、ミニディスク1に記録されているU−TOCのLOFATが示すFAT(図6のデータ記録領域のクラスタ16のFAT)を読み込む。このデータは、メモリ17に一旦記憶され、ホストCPU31は、このデータを、所定のタイミングで読み込むことになる。
【0083】
次にステップS12に進み、いま読み込んだFATのエントリに使用可能な未使用ブロックがあるか否かが判定される。初めてコンピュータデータを記録する場合、使用可能未使用ブロックが存在するため、ステップS12からステップS15に進む。ステップS15では、未使用ブロックから1つのブロック(例えば、図8のFATのブロック17)を選択し、このブロックを、いまデータを書き込もうとしているファイルに対応させる。そして、そのブロックが対応するクラスタ(例えば、図6のデータ記録領域のクラスタ17)に、実際にデータが書き込まれる。
【0084】
次にステップS16に進み、いま割り当てられたブロックの前に、そのファイルに割り当てたブロックが存在するか否かが判定される。初めての記録である場合、以前に割り当てたブロックは存在しないため、ステップS16からステップS18に進む。ステップS18では、全てのデータの書込が終了したか否かが判定され、終了していなければ、ステップS12に戻る。
【0085】
以上のような動作が繰り返される。2回目以降の処理においては、ステップS16において、以前にファイルに割り当てたブロックが存在すると判定されるため、この場合、ステップS16からステップS17に進み、前のブロックのFATのエントリに、現在のブロック番号を登録する。即ち、図8を参照して説明したように、例えばブロック17に、現在のブロック番号18を登録する。そして、同様に、ブロック18にブロック番号19が、ブロック19にブロック番号20が、それぞれ記録される。
【0086】
また、以上の動作を繰り返すうちに、確保した領域が一杯になり、ステップS12においてFATのエントリに使用可能な未使用ブロックが存在しないと判定された場合においては、即ち、コンピュータデータを記録する空き領域がなくなったときは、ステップS13に進み、U−TOCの空き領域を確保し、その空き領域をコンピュータデータを記録するデータトラックとして追加する。そして、ステップS14に進み、データトラック追加した領域のブロックを使用可能未使用ブロックとしてFATのエントリに登録する。即ち、図9の初期化処理におけるステップS2,S3と同様の処理を行い、新たに12クラスタのデータ記録領域を確保(追加)する。但し、FATは既に作成されているため、新たに作成せず、そのデータのみを更新する。
【0087】
このステップS13,S14の処理を行うことにより、ミニディスク1上の空き領域が随時コンピュータデータを記録するためのデータトラックとして追加される。従って、パーティションとして予め所定の範囲を区分する場合のように、ディスクに空き領域が存在するにも拘らず、コンピュータデータを記録することができなくなるようなことが防止される。
【0088】
ステップS18において、全てのデータの書込が終了したと判定された場合においては、ステップS19に進み、現在のブロックのFATエントリを最終ブロックとして登録し、FATを更新する。即ち、図8のFATのブロック20における場合のように、当該ブロックにデータ(FFDh)を記録する。
【0089】
尚、以上においては、LOFATにパーツテーブルの番号(01h)〜(FFh)を記述するようにしたが、LOFATは16ビット確保してあるため、データ記録領域中のアドレスを直接記録させるようにすることもできる。
【0090】
例えば、いま、ミニディスク1の領域全体のクラスタ数を2200とし、1クラスタの容量を64kバイトとすると、ミニディスク1全体の容量は、140Mバイト(=2200×64kバイト)となる。
【0091】
FATの1個のブロックに、記録データ領域の8kバイトの範囲を対応させると、FATのブロックの個数(エントリ数)は、17,600(=140Mバイト/8kバイト)個必要となる。1つのエントリ(ブロック)を2バイト(16ビット)で形成すると、FATの容量としては、約35kバイト(=17,600×2バイト)必要となる。結局、FATの1ブロックに、データ記録領域における8kバイト(1クラスタである64kバイトの1/8の範囲)を対応させると、ディスク1枚の全体の範囲を管理するのに、35kバイトの容量のFATが必要となる。
【0092】
FATの1ブロックの割当量が、データ記録の単位となる。上述したように、この割当量を64kバイト(1クラスタ)とすると、通常のミニディスクと同様の書込が可能となる。しかしながら、コンピュータデータを効率的に転送することを考えると、64kバイトより小さい8kバイト程度にするのが好ましい。また、このようにすると、クラスタより小さい単位でデータの記録が可能になる。
【0093】
但し、8kバイト単位でデータを記録する場合、一旦ミニディスク1から、その8kバイトのブロックを含む1クラスタ分のデータが読み出され、RAM13に記憶される。次に、RAM13に記憶された1クラスタ分のデータのうち、その8kバイトに相当するデータが新たに記憶される。そして、ミニディスク1には、その1クラスタ分のデータが書き込まれる。即ち、実質的に、その8kバイトのみの記録が行われることになる。また、再生時においては、ホストCPU31は、1セクタ単位でデータを読み取る。
【0094】
このようにして、コンピュータデータ(勿論、その他のデータでもよい)がオーディオデータとともに混在するように記録されたミニディスクを、通常の楽曲用のミニディスク装置に装着した場合、コンピュータデータは再生不能であるが、オーディオデータは再生可能である。また、空き領域があれば、オーディオデータを追加記録することができる。
【0095】
以上の実施例においては、FATを用いてデータトラックを管理するようにしたが、FATを用いないでデータトラックを管理する実施例について、次に説明する。
【0096】
図11は、この実施例を実現する場合における書き込み可能なミニディスク1の記録フォーマットを表している。同図に示すように、最内周(図中、左側)から最外周(図中、右側)までのインフォメーションエリア(Information area)のうち、最内周側と最外周側に、それぞれリードインエリア(Lead−in area)とリードアウトエリア(Lead−out area)が設けられている。このリードインエリアとリードアウトエリアには、TOC(Table of Contents)データなどが必要に応じて記録される。これらの領域には、一般の使用者は情報を記録することができない。
【0097】
インフォメーションエリアのうち、リードインエリアとリードアウトエリアを除くエリアが、レコーダブルエリア(Recordable area)とされ、そこに一般の使用者がデータを記録または再生することができるようになされている。レコーダブルエリアの最内周側には、UTOC(User TOC)エリアが設けられ、その外側にプログラムエリア(Program area)が設けられている。UTOCエリアには、上述したU−TOCデータが記録される。プログラムエリアには、オーディオデータやコンピュータで処理するデータ、その他のデータを記録することができるようになされている。
【0098】
プログラムエリアにおいては、各データは離散的に記録される。図11の実施例においては、トラックTrk1にオーディオデータが記録されている。即ち、このトラックは、オーディオトラックとされている。このトラックTrk1は、2つのパーツ(Trk1−1,Trk1−2)から構成されている。パーツ(トラック)Trk1−1とTrk1−2は、ディスク上において離れた位置に形成されているが、例えば、そのデータを再生するとき、パーツTrk1−1の再生が終了したとき、光学ヘッド3は、パーツTrk1−2にシークし、そこを再生する。このため、再生データは、連続して得ることができる。
【0099】
この実施例においては、この他、オーディオトラックTrk2−1とTrk4−1が、それぞれ1つのパーツで構成され、オーディオデータが記録されている。
【0100】
さらに、この実施例においては、パーツTrk3−1乃至3−3から構成されるトラックTrk3が形成され、そこには、ホストCPU31により処理されるデータが記録されている。
【0101】
EFM・CIRCエンコーダ/デコーダ8は、プログラムエリアの各トラックに対して、クラスタ(64キロバイト)を単位としてデータが記録再生されるように処理する。
【0102】
データトラックは、ボリュームマネジメントエリア(Volume Management Area)とイクステントエリア(Extent Area)により構成されている。ボリュームマネジメントエリアは、プログラムエリアに最初に形成されたデータトラックの先頭に形成される。イクステントエリアは、それ以外の領域とされる。
【0103】
ボリュームマネジメントエリアとイクステントエリアのデータの割当単位(Allocation Block)は単独の管理とされ、前者は、2キロバイトとされ、後者は、4キロバイト、8キロバイト、16キロバイト、32キロバイト、または64キロバイトのいずれかの値(例えば8キロバイト)とされる。
【0104】
ボリュームマネジメントエリアは、図12に示すように、16個のクラスタより構成される。ボリュームマネジメントエリアの1クラスタ前には、必要に応じて、ブートクラスタ(Boot−Cluster)が配置される。
【0105】
図13は、ボリュームマネジメントエリアのフォーマットを表している。ボリュームマネジメントエリアは、16クラスタから構成され、1クラスタは64キロバイトにより構成されるため、ボリュームマネジメントエリアには、2キロバイトのブロックが1024個形成されることになる。
【0106】
最初の番号0のブロックには、ボリュームディスクリプタVD(VolumeDescriptor)が記録される。このボリュームディスクリプタには、例えばルートディレクトリが記録されているブロックの番号(0乃至1023のいずれかの値(この実施例の場合、4))や、ボリュームスペースビットマップの位置情報等が記録される。
【0107】
番号1のブロックには、ボリュームスペースビットマップ(Volume Space Bitmap(VSB))が配置される。このVSBには、ミニディスク1全体の使用状態を表すビットマップが記録される。このビットマップについては後述する。
【0108】
番号2と番号3の合計4キロバイトのブロックには、マネージメントテーブル(Management Table(MT))が配置される。このMTには、ボリュームマネジメントエリアの使用状態が記録される。
【0109】
図14は、番号2と番号3の2つのブロックにより構成されるマネージメントテーブルを模式的に表している。同図に示すように、0乃至1023の番号で示す4バイトの大きさの各ブロックは、図13における0乃至1023のブロックの番号で示す2キロバイトのブロックに対応している。図13において、番号0乃至3のブロックは、予め規格により定められているものであるため、図14のマネージメントテーブル上の対応する領域(ブロック)には、特にデータは記録されない(Reservedとされている)。
【0110】
図13に示すように、番号4以降のブロックには、ディレクトリレコードブロック(Directory Records Block(DRB))またはイクステントレコードブロック(Extent Records Block(ERB))が配置されている。
【0111】
このディレクトリレコードブロックDRBには、次のような情報(ディレクトリ管理情報とファイル管理情報)が記録される。
Directory (Name, Index to DRB, ID, Size, Date, etc.)
File(Name, Index to ER(Index to ERB, Offset of ER), Extent start Location, Number of Blocks, ID, Size, Date, etc.)
【0112】
このディレクトリレコードブロックDRBのデータを記録するためのマネージメントテーブルのディレクトリレコードブロックエントリ(DirectoryRecords Block Entry)は、図15または図16乃至図18に示すように構成される。
【0113】
図15に示すフォーマットは、ディレクトリレコードブロックDRBが単独である場合におけるフォーマットを表している。この場合、4バイトのデータのうちの最初のビット31に0がセットされ、残りのビット30からビット0までの31ビットにIDが記録される。例えば、図14の番号4のブロックに対応するディレクトリレコードブロックエントリは、このフォーマットで構成されている。この実施例の場合、IDとして、00000002が記録されている。このIDはルートディレクトリを表している。
【0114】
ディレクトリレコードブロックDRBが複数のブロックで構成される場合においては、最初のディレクトリレコードブロックエントリが図16に示すようなフォーマットで構成され、最後のエントリが図18に示すようなフォーマットで構成され、その間のエントリは、図17に示すようなフォーマットで構成される。
【0115】
図16のフォーマットにおいては、最初の1バイトにF0が記録され、次の1バイトに、4バイトのIDのうちのMSB側の1バイトのIDが記録される。そして次の2バイトには、次のDRBへのインデックス(Index to Next DRB)が配置されている。
【0116】
図17のエントリにおいては、最初の1バイトにFEが配置され、次の1バイトは未使用とされている。そして、残りの2バイトに次のDRBへのインデックスが配置されている。
【0117】
また、図18のエントリにおいては、最初の1バイトにFFが配置され、残りの3バイトに、図16の2バイト目に記録した1バイトのMSBを除く、残りの3バイトのIDが記録されるようになされている。
【0118】
図14の番号7、番号8または番号10で示すエントリが、この図16、図17または図18で示すフォーマットで規定されている。ブロック番号7に対応するエントリの最後の2バイトには0008が記録され、これは、関連するデータが記録されている次のDRBが、番号8で表されるディレクトリレコードブロックDRBであることを表している。また、番号8に対応するブロックのエントリの最後の2バイトにおいては、000A(16進)が記録されており、これは番号10(16進数のAに対応する10進法による値)のディレクトリレコードブロックが続いていることを表している。
【0119】
そして、番号7の2番目のバイトに00が記録されており、番号10のブロックに対応するエントリに000005のIDが記録されているため、結局、この3つのブロックにより規定されるディレクトリのIDは、00000005であることが判る。
【0120】
図19は、図14のマネージメントテーブルのイクステントレコードブロックエントリ(Extent Records Block Entry)のフォーマットを表している。このフォーマットにおいては、最初の1バイトに80が配置され、残りの2バイトは未使用とされ、最後の1バイトには、ユーズドカウント(Used Count)が配置されている。このユーズドカウントは、後述する図20のイクステントレコードブロック(Extent Records Block)の0乃至63の番号に対応するレコードのうち、使用済みのイクステントレコードの数を表すようになされている。
【0121】
図14のマネージメントテーブルにおいては、番号5で表すブロックに対応するエントリが、図19で示すイクステントレコードブロックエントリのフォーマットで表されている。その一番最後の1バイトには、04の値が記録されている。これは、図20に示すイクステントレコードブロックの0乃至63の64個の番号で表されるイクステントレコードERのうち、使用済みのイクステントレコードの数が4(番号0,1,2,4の各イクステントレコードが使用済み)であることを表している。
【0122】
図13に示したイクステントレコードブロックERBは、例えば図20に示すように構成されている。同図に示すように、2キロバイトのイクステントレコードブロックERBは、それぞれが、32バイトの、番号0から番号63で表される64個のイクステントレコードERにより構成される。
【0123】
各イクステントレコードERは、最初の1バイトにFFFFが記録された4バイトのデータと、図21に示すイクステントレコードインデックス(Extent Record Index)が7個集められて構成されるか、あるいはまた、図22に示す4バイトのイクステントディスクリプタ(Extent Descriptor)が8個集められて構成されている。
【0124】
図21に示すように、イクステントレコードインデックスの最初の2バイトには、ロジカルブロックオフセット(Logical Block Offset)が配置され、次の2バイトには、インデックストゥERB(Index toERB)が配置され、最後の1バイトには、オフセットオブER(Offset of ER)が配置されている。
【0125】
イクステントエリアにおいては、アロケーションブロックを割当の最小単位としてデータが記録される。ロジカルブロックオフセットは、インデックスによって示されるデータがファイル中で先頭からどの位のところに位置しているかを表している。また、インデックストゥERBは、10ビットの構成とされ、イクステントレコードブロックERBへのインデックスを、番号0乃至1023のいずれかの値により表すようになされている。また、オフセットオブERは、6ビットにより構成され、0乃至63のいずれかの番号により、図20に示すイクステントレコードブロックの64個のイクステントレコードのうちのいずれかを表している。
【0126】
図22に示すように、イクステントディスクリプタのうち、最初の2バイトには、イクステントスタートロケーション(Extent Start Location)が配置され、残りの2バイトには、ナンバオブブロック(Number of Blocks)が配置されている。このイクステントスタートロケーションは、イクステントエリアに記録されているファイルのスタート位置を表している。また、ナンバオブブロックは、そのスタート位置よりスタートするファイルのブロックの数を表している。
【0127】
図20において、番号1で表される32バイトのイクステントレコードは、インデックスを表している。最初の4バイトのうちの先頭の2バイトには、FFFFが記録されている。そして、この実施例の場合、次のイクステントレコードインデックスには、最初の2バイトにロジカルブロックオフセットとして、0000が配置され、インデックストゥERBとして5が、また、オフセットオブERとして2が、それぞれ記憶されている。
【0128】
オフセットオブERが2であるということは、図20において、番号2で表されるイクステントレコードが存在することを示している。そして、そのロジカルブロックオフセットは、0000であるが、これは、番号2で表されるイクステントレコードに表されているファイルの最初のブロックの番号は、0000である(即ち、一番最初のブロックである)ことを表している。そして、番号2のイクステントレコードには、例えば、その先頭(図中、左側)に、データトラック上の絶対的な位置(イクステントスタートロケーション)で15番目のブロックに、1個のブロックが存在することが示されている。
【0129】
尚、インデックストゥERBが5であるということは、その(図20に示す)イクステントレコードブロックの番号が5であることを示している。
【0130】
次のオフセットオブERが4であるということは、番号が4で表されるイクステントレコードのデータが存在することを示している。そして、この場合、ロジカルブロックオフセットが000B(10進数で11)である。即ち、この実施例においては、番号2で表されるイクステントレコードのブロック数の合計が11(=1+1+2+1+1+1+3+1)となる。このため、番号4で表されるイクステントレコードに記録されているミニディスク1上の絶対的位置としてのイクステントスタートロケーションが053Cである位置には、第12個目(ブロック番号11)から始まるファイルが存在する。
【0131】
尚、図20に示すように、1つのイクステントレコードインデックスにより、7つのイクステントレコードしか表すことができないが、イクステントレコードがそれ以上増えた場合においては、さらに他のイクステントレコードインデックスが生成され、複数のイクステントレコードインデックスをまとめるインデックスがさらに生成される。
【0132】
図23は、イクステントレコードブロックに記録されているインデックスとイクステントレコードの関係を模式的に表している。同図に示すように、所定のディレクトリレコードブロックのディレクトリレコードから所定のイクステントレコードブロックERBのインデックスが指定される(Index to ER)。そして、指定したインデックスには、最大7個のインデックスが記録されている。
【0133】
そして、各インデックスには、最大8個のファイルのスタート位置(イクステントスタートロケーション)と、そのファイルを構成するブロックの数(ナンバオブブロック)が記録されている。
【0134】
この実施例においては、図7に示したようなFATは用いられない。このため、この実施例におけるU−TOCは、例えば図24に示すように構成される。図24を図3と比較して明らかなように、図24のU−TOCには、図3に示したLOFATが記録されないようになされている。U−TOCのその他のフォーマットは、図3に示した場合と同様である。
【0135】
この実施例においては、FATに代えて、図25に示すようなビットマップが用いられる。このビットマップは、図13のVSBに記録されるものである。
【0136】
この実施例においては、ビットマップの1エントリが2ビットにより構成される。各エントリは、図7に示したFATにおける場合と同様に、ミニディスク1上の所定の大きさのブロック(4キロバイト、8キロバイト、16キロバイト、32キロバイト、または64キロバイト)に対応している。従って、このエントリの数は、ミニディスク1の記録容量に対応する数だけ形成される。
【0137】
ビットマップの2ビットの各エントリには、00,01,10または11のいずれかの2ビットのデータが記録される。00は、ミニディスク1上の対応するブロックが使用可能であり、かつ、未使用のブロックであることを表している。01は、ミニディスク1上の対応するブロックが、既にデータが記録されている使用済みのブロックであることを表している。10は、ミニディスク1上の対応するブロックが、何らかの欠陥を有しているブロックであることを表している。また、11は、ミニディスク1上の対応するブロックが、その使用を禁止されているブロックであることを表している。
【0138】
このように、ビットマップには、図7と図8に示したFATとは異なり、FFDh、あるいは、リンクすべきブロックの番号といったようなリンク情報は、記録されないようになされている。これらのリンク情報は、上述したディレクトリ情報あるいはファイル情報(特にイクステントレコードER)により管理される。
【0139】
図26は、この実施例において、コンピュータデータを記録再生するためのミニディスク装置の本体41にミニディスク1(カートリッジ1a)を装着し、初期化を指令したとき、ホストCPU31が行う処理の例を示している。最初にステップS31において、ミニディスク1に、データトラックが形成されているか否かが判定される。データトラックが形成されているか否かは、U−TOCのトラックモードから判別することができる。データトラックが存在する場合、既にコンピュータデータを記録するための初期化が完了している(記録領域が確保されている)ため、初期化処理は終了される。
【0140】
ステップS31において、データトラックが形成されていないと判定された場合、ステップS32に進み、U−TOCの中から空き領域(空きパーツテーブル)が確保される(データトラックが確保される)。例えば、プログラムエリア中の空き領域(空き領域か否かは、U−TOCのP−TNO1〜P−TNO255から判る)の中から、所定の数のブロックが、コンピュータデータ記録用のデータトラックとして確保される。即ち、このパーツが、例えばP−TNO5に登録され、そのスタートアドレスとエンドアドレスが、パーツテーブルに登録される。さらに、パーツテーブルのトラックモードにコンピュータデータ記録用であることを示すデータが登録される。また、U−TOCのP−FRAが更新される。
【0141】
上述したように、データトラックの先頭の16クラスタは、VMAとされ、それに続くイクステントエリアに実際のデータが記録される(図12)。このイクステントエリアの大きさを、例えば10クラスタ分確保すると、合計26クラスタ(=16+10)分の領域が、データトラックとされる。
【0142】
次にステップS33に進み、ステップS32で確保したデータトラックの先頭の16クラスタにより構成されるVMA(図12)のVSB(図13)に、ビットマップが書き込まれる。そして、ビットマップにおいては、図25に示すように、データが書き込まれる。
【0143】
即ち、VMAが書き込まれる16クラスタ分に対応するエントリには、使用済ブロックであることを表すデータ(01)が記録される。また、それに続く、イクステントエリア上の50クラスタ(本来のコンピュータデータを記録するための領域)に対応するビットマップのエントリには、使用可能未使用ブロックを意味するデータ(00)が記録される。さらに、それ以外のイクステントエリア上のブロックに対応するビットマップのエントリには、使用禁止ブロックを意味するデータ(11)が記録される。
【0144】
尚、ビットマップデータをデータトラックの管理に用いる場合、ビットマップデータは、図2のメモリ17に記憶され、所定のタイミングでミニディスク1上のビットマップに記録される。
【0145】
次に図27は、ミニディスク1にコンピュータデータを記録する場合のホストCPU31が行う処理例について表している。最初にステップS41において、ホストCPU31は、ミニディスク1に記録されているビットマップのデータを読み込む。
【0146】
上述したように、ビットマップのデータを含むボリュームマネジメントエリアは、プログラムエリアに最初に形成されたデータトラックの先頭に形成されている。よって、U−TOCから、最初に形成されたデータトラックの先頭に対応するパーツテーブルのスタートアドレスを検出し、このスタートアドレスに基づいて、ボリュームディスクリプタを読み出し、そこに記録されたビットマップの位置情報基づいてビットマップを読み出すことにより、ホストCPU31にビットマップを読み込むことができる。このビットマップデータは、メモリ17に一旦記憶され、ホストCPU31は、このデータを所定のタイミングで読み込むことになる。
【0147】
次にステップS42に進み、いま読み込んだビットマップに使用可能な未使用のエントリ(00のブロック)があるか否かが判定される。初めてコンピュータデータを記録する場合、使用可能未使用ブロックが存在するため、ステップS42からステップS45に進む。ステップS45では、未使用ブロックから1つのエントリ(例えば、図28のビットマップのエントリ80)を選択し、このエントリを、いまデータを書き込もうとしているファイルに対応させる。そして、そのエントリが対応するイクステントエリア上のブロックに、実際にデータが書き込まれる。
【0148】
次にステップS46に進み、記録が行われたイクステントエリアのブロックに対応するビットマップのエントリに、使用領域を表すデータ(01)が記録される(図28)。さらにステップS47に進み、そのイクステントエリアのブロックをイクステントレコードER(図13、図20)に登録する。
【0149】
次にステップS47からステップS48に進む。ステップS48では、全てのデータの書込が終了したか否かが判定され、終了していなければ、ステップS42に戻る。以上のような動作が繰り返される。
【0150】
図28には、以上のようにして、ビットマップ上のエントリ80乃至89に対応するイクステントエリアのブロックにデータが記録された場合のビットマップの状態が表されている。
【0151】
また、以上の動作を繰り返すうちに、確保した領域が一杯になり、ステップS42において、ビットマップに使用可能な未使用ブロックを示すエントリが存在しないと判定された場合においては、即ち、コンピュータデータを記録する空き領域がなくなったときは、ステップS43に進み、U−TOCの空き領域を確保し、その空き領域を、コンピュータデータを記録するデータトラックとして追加する。そしてステップS44に進み、データトラックの追加した領域のブロックを使用可能未使用ブロックとしてビットマップに登録する。即ち、図26の初期化処理におけるステップS32,S33と同様の処理を行い、新たに12ブロックのデータ記録領域を確保(追加)する。尚、このとき追加するブロックの数は、任意である。但し、ビットマップは既に作成されているため、新たに作成せず、そのデータのみを更新する。
【0152】
ステップS48において、全てのデータの書込が終了したと判定された場合においては、処理を終了する。
【0153】
尚、以上の各実施例において、FATまたはビットマップで管理する単位を1クラスタより小さい値にした場合、1つの単位に対してデータを記録するには、本体41は、一旦ミニディスク1からその単位を含む1クラスタ分のデータを読み出し、RAM13に記憶する。次に、その単位に相当するデータが、ホストCPU31から転送され、新たにRAM13に記憶される。そして、RAM13から読み出された1クラスタ分のデータがミニディスク1に書き込まれる。即ち、実質的に、1クラスタより小さい単位での記録が可能となる。一方、再生は、セクタ単位で行われる。
【0154】
尚、上記実施例においては、書き込み可能なミニディスク1についての記録データの管理を説明したが、上述の実施例の記録データ管理は、読み出し専用のミニディスク1についても適用することができる。但し、読み出し専用のミニディスク1については、U−TOCエリアは設けられない。よって、上述の実施例のU−TOCとほぼ同様の構成のテーブルをTOCエリアに設定し、プログラムエリアに上述の実施例と同様のVMAを設定することにより、上述の記録データ管理を実現する。
【0155】
【発明の効果】
以上の如く本発明の記録管理方法によれば、第1の管理データに従って管理される記録媒体の範囲の中から所定の範囲を指定し、その指定された範囲について、第2のデータ量単位を基準とするデータの記録媒体への記録状態を第3の管理データに従って管理するようにしたので、第1のデータ単位を基準としてデータが記録された記録媒体との互換性を確保することができ、また、記録媒体に空き領域があれば、そこにデータを追加して記録することが可能となる。
【0156】
さらにまた、第2のデータ量単位を第1のデータ量単位より小さくすれば、予め設定されている処理単位より小さい処理単位でデータを記録することが可能となる。
【0158】
本発明の記録領域設定方法によれば、第1の単位でデジタルデータの記録状態を管理する第1のテーブルのデータから記録媒体の空き領域が検出され、そこに、その領域をデジタルデータ用のトラックとするデータが記録される。そして、デジタルデータ用のトラックとされた空き領域の先頭に、第1の単位以下の第2の単位で記録媒体のデータの記録状態を管理する第2のテーブルが作成される。従って、記録媒体に対して、デジタルデータを記録する領域を確実に確保することが可能となる。
【0159】
本発明のデータ記録方法によれば、第1の単位でデジタルデータの記録状態を管理する第1のテーブルのデータを用いて第1の単位以下の第2の単位でデジタルデータの記録状態を管理する第2のテーブルが読み出され、第2のテーブルから使用可能ブロックが検出され、その使用可能ブロックにデジタルデータが記録される。そして、デジタルデータが記録されたブロックの第2のテーブル上の情報が、使用不可能を示す情報に書き換えられる。従って、ブロック単位で、デジタルデータを確実に記録することが可能となる。
【図面の簡単な説明】
【図1】本発明の記録媒体管理方法を応用したミニディスク装置の外観構成を示す図である。
【図2】図1の実施例の本体41の内部構成を示すブロック図である。
【図3】図2のミニディスク1のU−TOCのフォーマットを説明する図である。
【図4】図3の管理テーブルのリンクを説明する図である。
【図5】管理テーブルとデータ記録領域の関係を説明する図である。
【図6】コンピュータデータを記録する領域を確保したときの管理テーブルとデータ記録領域の関係を説明する図である。
【図7】FATを説明する図である。
【図8】コンピュータデータを記録した状態におけるFATを説明する図である。
【図9】図2の実施例においてミニディスク1を初期化する動作を説明するフローチャートである。
【図10】図2の実施例においてミニディスク1にコンピュータデータを記録する場合の動作を説明する図である。
【図11】本発明の記録媒体管理方法の他の実施例におけるミニディスク1のフォーマットを説明する図である。
【図12】図11のデータトラックのフォーマットを説明する図である。
【図13】図12のボリュームマネジメントエリアのフォーマットを説明する図である。
【図14】図13のマネジメントテーブルのフォーマットを説明する図である。
【図15】図13のディレクトリレコードブロックエントリのフォーマットを説明する図である。
【図16】図13のディレクトリレコードブロックエントリのフォーマットを説明する図である。
【図17】図13のディレクトリレコードブロックエントリのフォーマットを説明する図である。
【図18】図13のディレクトリレコードブロックエントリのフォーマットを説明する図である。
【図19】図13のイクステントレコードブロックエントリのフォーマットを説明する図である。
【図20】図13のイクステントレコードブロックの構成例を示す図である。
【図21】イクステントレコードインデックスのフォーマットを説明する図である。
【図22】イクステントディスクリプタのフォーマットを説明する図である。
【図23】インデックスとイクステントレコードとの関係を説明する図である。
【図24】U−TOCの他の構成例を示す図である。
【図25】ビットマップの構成を説明する図である。
【図26】ミニディスク1を初期化する他の動作を説明するフローチャートである。
【図27】ミニディスク1にコンピュータデータを記録する場合の他の動作を説明するフローチャートである。
【図28】コンピュータデータを記録した状態におけるビットマップを説明する図である。
【図29】ミニディスクのフォーマットを説明する図である。
【図30】パーティションの概念を説明する図である。
【符号の説明】
1 ミニディスク
2 スピンドルモータ
3 光学ヘッド
3a 対物レンズ
4 2軸機構
5 スレッド機構
6 磁気ヘッド
7 RFアンプ
8 エンコーダ/デコーダ部
9 サーボ回路
10 アドレスデコーダ
11 システムコントローラ
12 メモリコントローラ
13 RAM
14 SCSIインタフェース
15 磁気ヘッド駆動回路
16 TOCメモリ
17 メモリ
18 表示部
19 操作入力部
30 SCSIバス
31 ホストCPU
41 本体
42 挿入口
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention is, for example, a recording management method, a recording area setting method suitable for use when recording and reproducing digital data processed by a computer on a magneto-optical disk that originally records digital audio data by compression, And data recording method About.
[0002]
[Prior art]
2. Description of the Related Art Recently, a mini disk (MD) (trademark) for compressing and recording digital audio data on a magneto-optical disk, and expanding and reproducing the digital audio data has been spreading. FIG. 29 shows a recording format of the mini disc. As shown in FIG. 1, one round of the mini disk is divided into a plurality of sectors. One cluster is composed of 36 sectors, and compressed digital audio data is recorded in units of this cluster.
[0003]
In the case of a mini disc for recording, in one cluster (= 36 sectors), the first three sectors are set as link sectors, and the next one sector is set as a sub data sector. In this sub data sector, sub data other than audio data is arranged. The link sector is an area for joining the preceding and succeeding clusters, and audio data is substantially recorded only in 32 sectors other than the link sector and the sub data sector.
[0004]
On the other hand, in a read-only mini-disc, data is continuously recorded (not discretely recorded), and three sectors in the link area are not required. Therefore, in this case, these three sectors are also sub data sectors.
[0005]
One sector is 2352 bytes (2332 bytes for data), and 11 sound groups are arranged in two consecutive sectors. One sound group has 424 bytes, in which audio data of the left channel and the right channel is arranged for a total of 512 samples (11.61 ms). Digital audio data is recorded in units of this sound group.
[0006]
[Problems to be solved by the invention]
It is conceivable to use such a mini disc as, for example, a storage device of a computer. In this case, in order to manage the data of the computer as a file, the cluster (36 sectors) is too large as a unit. Therefore, it is preferable that data can be recorded in a unit smaller than the cluster (for example, a sector unit). However, as described above, mini discs have a problem that data cannot be recorded in units smaller than one cluster (for example, in sector units) because the standard defines that data is recorded in units of one cluster. are doing.
[0007]
Further, for example, when recording both computer data and audio data on a single mini-disc, it is conceivable to pre-divide the data recording area in the same manner as on a hard disc.
[0008]
For example, as shown in FIG. 30, when 2200 clusters from cluster 0 to cluster 2199 exist on one minidisk, the area (A) from cluster 0 to cluster 650 and the area from cluster 651 to cluster 1100 It is divided into an area (B) and an area (C) from the cluster 1101 to the cluster 2199, of which audio data is recorded in, for example, partitions A and C, and computer data is recorded in the partition B. You can do so.
[0009]
However, as described above, if the recording area is divided in advance according to the type of data, for example, when the data of the computer to be recorded exceeds the capacity of the partition B, even if there is an empty area in the partitions A and C, Even if it did, there was a problem that the data of the computer could no longer be recorded on the mini-disc. Conversely, when the partition A and the partition C are full, even if there is a free space in the partition B, no more audio data can be recorded.
[0010]
Furthermore, the management method of partitioning in this way is basically a different management method from the management method of a cluster unit. For example, the management method is divided into a plurality of partitions, and computer data is recorded in a predetermined partition. In addition, when one mini-disc in which audio data is recorded in another partition is reproduced by a device dedicated to reproducing audio data, there is a possibility that the audio data cannot be reproduced. That is, it is difficult to guarantee compatibility.
[0011]
The present invention has been made in view of such a situation, and records data in a smaller size than a cluster, for example, in units of a sector, on a minidisk in which recording of data in units of clusters is standardized. Is to be able to do.
[0012]
Further, when there is a free area, both computer data and audio data can be recorded as needed.
[0013]
Furthermore, compatibility with a normal mini-disc is also ensured.
[0014]
[Means for Solving the Problems]
According to the recording management method of the present invention, when recording data in a second data amount unit (for example, a block) different from the first data amount unit (for example, a cluster), the second management data (for example, LOFAT or FIG. Based on the volume management area in FIG. 12, an area (for example, a segment including clusters 16 to 27 in FIG. 6 or a data track in FIG. 11) in which data in the second data amount unit is recorded is stored in the first management data ( For example, the third management is set in the U-TOC management table in FIG. 3, and is managed in the second data amount unit in the area where the data in the second data amount unit is recorded based on the second management data. It is characterized in that data is recorded in units of a second data amount based on data (for example, the FAT in FIG. 7 or the bitmap in FIG. 25).
[0015]
The recording area setting method according to the present invention includes a recording area setting method for setting a recording area for recording digital data on a recording medium (for example, the mini-disc 1 in FIG. 2). Managing the recording state of digital data in a first unit (for example, a cluster) An empty area of the recording medium is detected from data of a first table (for example, the U-TOC management table of FIG. 24), and data indicating that the empty area is a track for digital data (for example, FIG. 24 track modes), and records them at the beginning of a free area that is a track for digital data. In the second unit (for example, block) below the first unit A second table (for example, a bit map in FIG. 25) indicating a recording state of data on a recording medium is created.
[0016]
Of the present invention Data recording method Is a data recording method for recording digital data on a recording medium (for example, the mini-disc 1 in FIG. 2). Managing the recording state of digital data in a first unit (for example, a cluster) Based on the data in the first table (for example, the U-TOC management table in FIG. 24), the digital data track on the recording medium The recording state of digital data is managed in a second unit (for example, a block) below the first unit. The second table (for example, the bit map in FIG. 25) is read, information (for example, 00) indicating an available block is detected from the second table, and a block of a track for digital data corresponding to the information showing the available block is detected. The digital data is recorded in the second table, and the information indicating the usable blocks in the second table is rewritten to the information (for example, 01) indicating that the blocks cannot be used.
[0022]
In the recording management method having the above configuration, a predetermined range is specified from the range managed in the U-TOC management table, and the specified range is managed by the FAT or the bitmap. Therefore, computer data can be recorded in a specified range in units of blocks smaller than clusters. Also, by adding this designation as needed, not only digital audio data but also computer data can be additionally recorded as long as there is an empty area. Further, compatibility with a mini-disc in which only normal audio data is recorded is ensured.
[0023]
In the recording area setting method having the above configuration, an empty area of the mini disc 1 is detected from the U-TOC management table, and the empty area is used as a track for digital data. Then, a bit map indicating the recording state of the data on the mini disc 1 is created at the beginning of the track. Therefore, at the start of use of the mini disc 1, it is possible to reliably secure and manage tracks for recording digital data.
[0024]
Of the above configuration Data recording method In, the recording position of the bitmap is detected from the data of the management table of the U-TOC, and the bitmap is read. Then, a usable block is detected from the bitmap, and digital data is recorded therein. The information of the bitmap corresponding to the block is rewritten from information 00 indicating availability to information 01 indicating unusability. Therefore, it is possible to reliably manage the recording data in block units.
[0030]
BEST MODE FOR CARRYING OUT THE INVENTION
FIG. 1 shows an external configuration of an embodiment of a mini disc device to which a recording medium management method of the present invention is applied. The disk cartridge 1a houses a mini disk 1 (FIG. 2) therein, and the cartridge 1a can be loaded into the main body 41 from the insertion port. An operation input unit 19 including a power button 19a, an eject button 19b, and the like is provided below the right side of the main body 41. The power button 19a is operated when the power is turned on or off, and the eject button 19b is operated when the cartridge 1a is ejected. The display unit 18 is arranged at the center of the upper surface of the main body 41. The main body 41 is connected to the host CPU 31 (FIG. 2) via the SCSI bus 30.
[0031]
FIG. 2 shows the internal configuration of the main body 41. In FIG. 1, for example, a mini disk (magneto-optical disk) 1 on which both a plurality of music pieces (audio data) and computer data or only computer data are recorded is driven to rotate by a spindle motor 2. The optical head 3 irradiates the mini disc 1 with a laser beam during recording / reproduction. That is, at the time of recording, a high-level laser beam for heating the recording track to the Curie temperature is output, and at the time of reproduction, a relatively low-level laser beam for detecting data from reflected light by the magnetic Kerr effect is output. Is done.
[0032]
Therefore, the optical head 3 has an optical system including a laser diode that outputs laser light, a polarizing beam splitter, an objective lens, and the like, and a detector for detecting reflected light. Among them, the objective lens 3a is held by the biaxial mechanism 4 so as to be displaceable in a disk radial direction (tracking direction) and in a direction approaching / separating from the disk (focus direction). The sled mechanism 5 can move in the disk radial direction.
[0033]
The magnetic head 6 is arranged at a position facing the optical head 3 with the mini disc 1 interposed therebetween so that a magnetic field modulated by the supplied data is applied to the mini disc 1.
[0034]
The information detected from the mini-disc 1 by the optical head 3 by the reproducing operation is supplied to the RF amplifier 7. The RF amplifier 7 performs an arithmetic operation on the supplied information to reproduce an RF signal, a tracking error signal, a focus error signal, ATIP information (absolute time information recorded as a pre-groove (wobbling groove) on the mini disc 1), an address. Information, subcode information, focus monitor signal, etc. are extracted.
[0035]
Then, the extracted reproduction RF signal is supplied to the encoder / decoder unit 8. The tracking error signal and the focus error signal are supplied to a servo circuit 9, and the address information is supplied to an address decoder 10. Further, the ATIP information and the focus monitor signal are supplied to a system controller 11 constituted by, for example, a microcomputer (CPU).
[0036]
The servo circuit 9 generates various servo drive signals based on a tracking error signal and a focus error signal supplied from the RF amplifier 7, a track jump command, a seek command, rotation speed detection information, and the like from the system controller 11. And the sled mechanism 5 to perform focus and tracking control, and also controls the spindle motor 2 to a constant angular velocity (CAV) or a constant linear velocity (CLV).
[0037]
The reproduced RF signal is subjected to EFM demodulation by the encoder / decoder section 8 and further subjected to decoding processing such as CIRC, and then temporarily written to the buffer RAM 13 by the memory controller 12. The reading of data from the mini disc 1 by the optical head 3 and the transfer of reproduced data from the optical head 3 to the buffer RAM 13 are performed at a transfer rate of 1.41 Mbit / sec.
[0038]
The data written in the buffer RAM 13 is supplied to the host CPU 31 via the SCSI interface 14.
[0039]
The address information output from the address decoder 10 is supplied to the system controller 11 via the encoder / decoder unit 8 and used for various control operations.
[0040]
Further, a lock detection signal of a PLL circuit for generating a bit clock of the recording / reproducing operation and a monitor signal of a missing state of a frame synchronization signal of reproduced data are also supplied to the system controller 11.
[0041]
When a recording operation is performed on the mini disc 1, recording data is supplied from the host CPU 31 to the memory controller 12 via the SCSI interface 14. Then, the data is temporarily written into the buffer RAM 13 by the memory controller 12, read out at a predetermined timing, and sent to the encoder / decoder unit 8. Then, after being subjected to encoding processing such as CIRC encoding and EFM modulation in the encoder / decoder section 8, it is supplied to the magnetic head drive circuit 15.
[0042]
The magnetic head drive circuit 15 supplies a magnetic head drive signal to the magnetic head 6 according to the encoded recording data. That is, the application of the N or S magnetic field to the mini disk 1 by the magnetic head 6 is performed. At this time, the system controller 11 supplies a control signal to the optical head 3 so as to output a recording level laser beam.
[0043]
For example, predetermined characters and the like are displayed on the display unit 18 configured by a liquid crystal display in response to a command from the system controller 11. The operation input unit 19 has a reproduction key, a stop key, an AMS key, a search key, and the like in addition to the power button 19a and the eject button 19b described above, and inputs a signal corresponding to the operation to the system controller 11.
[0044]
A RAM (hereinafter, referred to as a TOC memory) 16 holds TOC information in the mini disc 1. At the time when the mini-disc 1 is loaded, or immediately before the recording or reproducing operation, the system controller 11 drives the spindle motor 2 and the optical head 3 and, for example, the TOC area set on the innermost side of the mini-disc 1 To extract the data. Then, the TOC information supplied to the system controller 11 via the RF amplifier 7 and the encoder / decoder unit 8 is stored in the TOC memory 16 and thereafter used for controlling the recording / reproducing operation for the mini disc 1. The memory 17 stores FAT (File Allocation Table) information described later or a bitmap.
[0045]
The host CPU 31 controls not only transmission and reception of computer data but also transmission and reception and updating of FAT information or a bitmap. Note that the memory 17 can be provided on the main body 41 side.
[0046]
The writable mini-disc 1 also has segment management data for enabling a series of music pieces to be recorded / reproduced discretely (or, of course, continuously) as one or a plurality of divided segments (parts). Is recorded. That is, a user TOC (hereinafter, referred to as a U-TOC) whose content is rewritten in accordance with data recording or erasing for management of a recording data area is recorded in a data structure as shown in FIG. 3, for example.
[0047]
The U-TOC is recorded in, for example, an area of 4 bytes × 587 in the data area. In the area, a header having a synchronization pattern consisting of all 0 bits or all 1 bits of 1 byte data is provided at the head position. Is provided.
[0048]
In addition, at a predetermined address position, data such as the music number (First TNO) of the first music piece, the last music piece number (Last TNO) of the last music piece, the sector usage status, and the disk ID recorded on the mini disc 1 are recorded. You. Further, there is provided an area for recording various correspondence table instruction data (P-DFA to P-TNO 255) for associating each recorded music or the like with a management table described later.
[0049]
On the other hand, 255 part tables from number (01h) to (FFh) are provided as a management table, and each part table has a start address as a starting point, an end address as an end, and a segment ( When the segment is successively linked to another segment, link information indicating a part table in which a start address and an end address of the linked segment are recorded can be recorded. ing.
[0050]
The mode information of a track is, for example, information indicating whether the track is set to prohibit overwriting or data copying, information indicating the type of audio information and computer information, and information indicating the type of monaural / stereo. And so on. The link information specifies a part table to be connected, for example, by numbers (01h) to (FFh) given to each part table.
[0051]
In other words, in the management table, one part table represents one segment. For example, for a song composed of three segments connected, the segment position is determined by the three parts tables connected by link information. Is managed. For this reason, the numbers (01h) to (FFh) of the parts table can be directly used as segment (part) numbers.
[0052]
In each of the parts tables from (01h) to (FFh) in the management table, the contents of the segment are indicated by the corresponding table instruction data (P-DFA to P-TNO255).
[0053]
The P-DFA indicates a defective area on the mini-disc 1, and is a single part table indicating a track portion (= segment) serving as a defective area due to a scratch or the like, or a leading part table in a plurality of part tables. Is specified. That is, when a defective segment exists, one of (01h) to (FFh) is recorded in the correspondence table instruction data P-DFA, and the defective segment is indicated by the start and end addresses in the corresponding part table. It is shown. If another defective segment exists, another part table is specified as link information in the part table, and the defective segment is also shown in the part table. If the segment is the last defective segment, the link information is set to, for example, (00h), which indicates that the segment is not linked after that.
[0054]
The P-EMPTY indicates the head part table of one or more unused part tables in the management table. If an unused part table exists, (01h) is set as the corresponding table instruction data P-EMPTY. ) To (FFh) are recorded. When there are a plurality of unused part tables, the part tables are sequentially specified by the link information from the part table specified by the corresponding table instruction data P-EMPTY, and all the unused part tables are stored in the management table. Is linked.
[0055]
For example, in the case of a magneto-optical disk on which no recording is made and there is no defect, all the part tables are not used. For example, the part table (01h) is designated by the correspondence table instruction data P-EMPTY, and The parts table (02h) is specified as the link information of the parts table (01h), the parts table (03h) is specified as the link information of the parts table (02h), and so on. In this case, the link information of the parts table (FFh) is set to (00h) indicating that there is no subsequent connection.
[0056]
The P-FRA indicates an unrecorded area (including an erased area) of data on the mini disc 1, and a track portion (= segment) serving as an unrecorded area is indicated in one or a plurality of parts tables. The first parts table is specified. That is, when there is an unrecorded area, any one of (01h) to (FFh) is recorded in the correspondence table instruction data P-FRA, and the corresponding part table contains a segment that is an unrecorded area. , Start and end addresses. In addition, when there are a plurality of such segments, that is, when there are a plurality of parts tables, the link information sequentially designates the parts table whose link information is (00h).
[0057]
FIG. 4 schematically shows a management state of a segment to be an unrecorded area by the parts table. This is because the start address and the end address are (S 03h , E 03h ), (S 18h , E 18h ), (S 1Fh , E 1Fh ), (S 2Bh , E 2Bh ), (S E3h , E E3h ) Is an unrecorded area, this state follows the correspondence table designation data P-FRA, followed by the parts tables (03h), (18h), (1Fh), (2Bh), and (E3h). The state represented by the link of FIG. The above-described management of the defective area and the unused parts table is the same.
[0058]
P-TNO1 to P-TNO255 indicate respective songs (tracks) recorded on the mini-disc 1. For example, in the correspondence table instruction data P-TNO1, 1 or The part table indicating the temporally leading segment of the plurality of segments is specified.
[0059]
For example, when the first music piece is recorded on the disc without dividing the tracks (that is, in one segment), the recording area of the first music piece is indicated by the correspondence table instruction data P-TNO1. It is recorded as a start and end address in the parts table.
[0060]
Further, for example, when the second music piece is discretely recorded in a plurality of segments on the disc, each segment is designated (linked) in a temporal order to indicate the position of the music piece. In other words, from the part table specified in the correspondence table instruction data P-TNO2, another part table is sequentially specified in the temporal order by the link information, and linked to the part table in which the link information is (00h). (Same form as above, FIG. 4).
[0061]
In this way, for example, all the segments in which the data making up the second music are recorded are sequentially designated and stored, so that the U-TOC data can be used to play back the second music or to the area of the second music. When the overwriting is performed, the optical head 3 and the magnetic head 6 are accessed so that continuous music information can be extracted from discrete segments, and recording can be performed using the recording area efficiently.
[0062]
Thus, the U-TOC data recorded on the mini disc 1 is read out and stored in the TOC memory 16. Then, by using the U-TOC data read into the TOC memory 16, the recording area on the disc can be managed and the recording / reproducing operation can be controlled.
[0063]
The U-TOC data described above is also recorded on a mini-disc for recording ordinary music. In the mini-disc of this embodiment, LOFAT (Location of FAT) is recorded as 16-bit data so that, for example, computer data can be recorded in addition to audio data (songs). I have. This LOFAT will be described later.
[0064]
FIG. 5 schematically shows the relationship between the management table (parts table) of the U-TOC and the clusters of the data recording area of the mini disc 1. In this embodiment, an unrecorded area of data on the mini disc 1 is shown. The part table number indicating the head cluster of the unrecorded area is defined as (01h) in the correspondence table instruction data P-FRA. That is, the position of the first segment as an unrecorded area of data is described in the parts table (01h).
[0065]
Therefore, referring to the parts table of this number (01h), the start address is set to the cluster 9 and the end address is set to the cluster 12. This indicates that the clusters 9 to 12 in the data recording area are continuously unrecorded areas. In the parts table of this number (01h), (0Ah) is described as link information. This means that the data regarding the segment of the unrecorded area following the segment from the cluster 9 to the cluster 12 is described in the part table of the number (0Ah).
[0066]
Therefore, looking at the part table of the number (0Ah), the start address is set to the cluster 29 and the end address is set to the cluster 30. That is, it is understood that the segment from the cluster 29 to the cluster 30 exists as an unrecorded area in the data recording area.
[0067]
Also, (04h) is described as the link information of this number (0Ah). Therefore, looking at the parts table of the number (04h), the start address is set to the cluster 104 and the end address is set to the cluster 105. That is, it can be seen that an unrecorded area including the cluster 104 and the cluster 105 exists as the third segment following the cluster 29 and the cluster 30.
[0068]
Further, in the parts table of (04h), link information of (07h) is described. Therefore, looking at the parts table of (07h), the start address is a cluster 82 and the end address is a cluster 87. That is, the fourth segment from cluster 82 to cluster 87 is an unrecorded area. Since (00h) is described in the link information of the parts table of (07h), it can be seen that this fourth segment is the last segment of the unrecorded area.
[0069]
As described above, digital audio data is basically recorded in each cluster of the data recording area. However, when computer data is recorded instead of digital audio data in a predetermined range (cluster), For example, as shown in FIG. 6, first, a range in which computer data is recorded is specified by the host CPU 31 in units of clusters.
[0070]
In the embodiment of FIG. 6, a segment consisting of 12 clusters from cluster 16 to cluster 27 is designated as a segment for recording computer data. Since this segment is the fifth segment, (02h) is described in the above-mentioned U-TOC correspondence table instruction data P-TNO5 as the number of the parts table relating to the first segment for computer data recording. Therefore, looking at this (02h) parts table, the cluster 16 is described as the start address, and the cluster 27 is described as the end address. Since (00h) is described as the link information, it can be seen that only one segment including 12 clusters from cluster 16 to cluster 27 is prepared for computer data recording.
[0071]
As described above, when the area for recording computer data is specified in the management table (parts table), the FAT as a table for managing files for recording computer data as shown in FIG. It is formed on a predetermined track of the data recording area. For example, as shown in FIG. 6, the FAT is recorded in the first cluster 16 of the computer data recording area from the cluster 16 to the cluster 27 (of course, the FAT can also be recorded in the U-TOC area, for example). . At this time, (02h) is described in LOFAT so that the recording position of FAT can be known.
[0072]
One block of the FAT is composed of 2 bytes, and each block corresponds to an area (for example, a cluster) of a predetermined size in the data recording area. That is, in the embodiment shown in FIG. 6, since the segments up to the clusters 16 to 27 in the data recording area are specified as the computer data recording area, the FAT corresponds to the blocks 16 to 27 corresponding to the clusters 16 to 27. 27, data (FFEh) indicating a usable unused block is described. However, when the FAT is recorded in the cluster 16, (FFDh) is recorded in the block 16 of the FAT corresponding to this cluster. This indicates that data is recorded there (corresponding cluster 16), and that the data ends there (corresponding cluster 16).
[0073]
Each cluster other than the clusters 16 to 27 in the data recording area is not designated as an area for recording computer data. In other words, it is prohibited to use it as an area for recording computer data. Data (FFFh) representing a block is described.
[0074]
FIG. 8 shows a FAT in a state where computer data is recorded in a predetermined range of the clusters 16 to 27 secured in this way. In this embodiment, the block 17 corresponding to the cluster 17 describes the number of the block 18, the block 18 describes the number of the block 19, the block 19 describes the number of the block 20, In the block 20, data (FFDh) representing the last block of the segment is described. Therefore, it is understood that a series of computer data is recorded in the segment including the four clusters from the cluster 17 to the cluster 20.
[0075]
Further, the block 21 has a block number 22, the block 22 has a block number 23, the block 23 has a block number 24, the block 24 has a block number 25, and the block 25 has (FFDh). I have. That is, a series of computer data is recorded in five clusters from the cluster 21 to the cluster 25.
[0076]
Since the data of the blocks 26 and 27 remain (FFEh), the clusters 26 and 27 remain unused areas in which computer data has not yet been recorded.
[0077]
FIG. 9 shows an example of processing performed by the host CPU 31 when the mini disc 1 (cartridge 1a) is mounted on the main body 41 of the mini disc apparatus for recording and reproducing computer data and an initialization command is issued. First, in step S1, it is determined whether or not the number indicating the parts table on the predetermined management table is described in the LO-FAT of the U-TOC of the mini disc 1. When the predetermined part table number is described in the LOFAT, the initialization for recording the computer data has already been completed (the recording area has been secured), and thus the initialization processing ends.
[0078]
If it is determined in step S1 that the predetermined number is not described in LOFAT, the process proceeds to step S2, where an empty area (empty parts table) is secured from the U-TOC (data track is secured). . For example, as shown in FIG. 6, predetermined 12 clusters (in FIG. 6, in FIG. 6, in the U-TOC, P-TNO1 to P-TNO255) out of a free area in the data recording area. , Clusters 16 to 27) are secured as computer data recording tracks. Then, this segment is registered in the P-TNO 5, and its start address and end address are registered in the parts table (02h).
[0079]
Next, the process proceeds to step S3, and the FAT as shown in FIG. 7 is written in an arbitrary cluster (for example, the first cluster 16) in the area of the data track secured in step S2 (of the 12 clusters). In the FAT, as shown in FIG. 7, data (FFDh) indicating that the block is a used block and that there is no linked block is recorded in a block 16 corresponding to the cluster 16 in which the FAT is written. You. Data (FFEh) is recorded as usable unused blocks in FAT blocks 17 to 27 corresponding to clusters 17 to 27 in which no FAT is recorded. Further, data (FFFh) is recorded as a use-prohibited block in the FAT block corresponding to the other clusters.
[0080]
Next, proceeding to step S4, the part table number corresponding to the cluster in which the FAT is recorded is described in LOFAT of the U-TOC.
[0081]
The FAT data is temporarily stored in the memory 17 and recorded on the FAT on the mini disc 1 at a predetermined timing.
[0082]
Next, FIG. 10 shows an example of processing performed by the host CPU 31 when computer data is recorded on the mini-disc 1. First, in step S11, the host CPU 31 reads the FAT (the FAT of the cluster 16 in the data recording area in FIG. 6) indicated by the U-TOC LOFAT recorded on the mini disc 1. This data is temporarily stored in the memory 17, and the host CPU 31 reads this data at a predetermined timing.
[0083]
Next, the process proceeds to step S12, where it is determined whether or not there is an unused block that can be used in the entry of the FAT that has just been read. When computer data is recorded for the first time, the process proceeds from step S12 to step S15 because usable unused blocks exist. In step S15, one block (for example, the FAT block 17 in FIG. 8) is selected from the unused blocks, and this block is made to correspond to the file in which data is to be written. Then, data is actually written in the cluster corresponding to the block (for example, cluster 17 in the data recording area in FIG. 6).
[0084]
Next, the process proceeds to step S16, where it is determined whether or not there is a block allocated to the file before the block currently allocated. If this is the first recording, there is no previously allocated block, so the process proceeds from step S16 to step S18. In step S18, it is determined whether or not all data has been written, and if not, the process returns to step S12.
[0085]
The above operation is repeated. In the second and subsequent processes, it is determined in step S16 that there is a block previously allocated to the file. In this case, the process proceeds from step S16 to step S17, where the FAT entry of the previous block includes the current block. Register the number. That is, as described with reference to FIG. 8, for example, the current block number 18 is registered in the block 17. Similarly, the block number 19 is recorded in the block 18 and the block number 20 is recorded in the block 19.
[0086]
When the above operation is repeated, the reserved area becomes full, and when it is determined in step S12 that there is no unused block that can be used in the FAT entry, that is, when there is no free space for recording computer data, If there is no more area, the process proceeds to step S13 to secure an empty area of the U-TOC and add the empty area as a data track for recording computer data. Then, the process proceeds to step S14, and the block in the area to which the data track is added is registered in the FAT entry as a usable unused block. That is, the same processing as steps S2 and S3 in the initialization processing of FIG. 9 is performed, and a data recording area of 12 clusters is newly secured (added). However, since the FAT has already been created, it is not newly created, and only its data is updated.
[0087]
By performing the processing of steps S13 and S14, a free area on the mini disk 1 is added as a data track for recording computer data as needed. Therefore, it is possible to prevent the computer data from being unable to be recorded despite the presence of a free space in the disk, as in the case where a predetermined range is previously partitioned as a partition.
[0088]
If it is determined in step S18 that all data has been written, the process proceeds to step S19, where the FAT entry of the current block is registered as the last block, and the FAT is updated. That is, data (FFDh) is recorded in the block, as in the case of the block 20 of the FAT in FIG.
[0089]
In the above description, the part table numbers (01h) to (FFh) are described in the LOFAT. However, since the LOFAT has 16 bits, the address in the data recording area is directly recorded. You can also.
[0090]
For example, assuming now that the number of clusters in the entire area of the minidisk 1 is 2200 and the capacity of one cluster is 64 kbytes, the total capacity of the minidisk 1 is 140 Mbytes (= 2200 × 64 kbytes).
[0091]
If one FAT block corresponds to a range of 8 kbytes in the recording data area, the number of FAT blocks (the number of entries) requires 17,600 (= 140 Mbytes / 8 kbytes). If one entry (block) is formed by 2 bytes (16 bits), the FAT capacity requires approximately 35 kbytes (= 17,600 × 2 bytes). After all, if one block of the FAT corresponds to 8 kbytes in the data recording area (a range of 1/8 of 64 kbytes as one cluster), a capacity of 35 kbytes is required to manage the entire range of one disk. FAT is required.
[0092]
The allocation amount of one block of the FAT is a unit of data recording. As described above, if the allocated amount is 64 kbytes (one cluster), writing can be performed in the same manner as a normal mini disk. However, considering efficient transfer of computer data, it is preferable that the size be about 8 kbytes, which is smaller than 64 kbytes. In addition, this makes it possible to record data in units smaller than the cluster.
[0093]
However, when recording data in units of 8 kbytes, data for one cluster including the 8 kbyte block is read from the minidisk 1 and stored in the RAM 13. Next, of the data for one cluster stored in the RAM 13, data corresponding to the 8 kbytes is newly stored. Then, the data for one cluster is written to the mini disk 1. That is, the recording of only 8 kbytes is substantially performed. During reproduction, the host CPU 31 reads data in units of one sector.
[0094]
In this way, when a mini disc in which computer data (or other data, of course) may be recorded together with audio data is mounted on a normal music mini disc device, the computer data cannot be reproduced. However, audio data is reproducible. If there is a free area, audio data can be additionally recorded.
[0095]
In the above embodiment, the data track is managed using the FAT. However, an embodiment in which the data track is managed without using the FAT will be described below.
[0096]
FIG. 11 shows a recording format of the writable mini-disc 1 when this embodiment is realized. As shown in the drawing, in the information area from the innermost circumference (left side in the figure) to the outermost circumference (right side in the figure), the lead-in area is provided on the innermost side and the outermost side, respectively. (Lead-in area) and a lead-out area (Lead-out area) are provided. In the lead-in area and the lead-out area, TOC (Table of Contents) data and the like are recorded as needed. A general user cannot record information in these areas.
[0097]
Of the information area, an area other than the lead-in area and the lead-out area is a recordable area, in which a general user can record or reproduce data. A UTOC (User TOC) area is provided on the innermost peripheral side of the recordable area, and a program area (Program area) is provided outside the UTOC (User TOC) area. The above-mentioned U-TOC data is recorded in the UTOC area. In the program area, audio data, data processed by a computer, and other data can be recorded.
[0098]
In the program area, each data is recorded discretely. In the embodiment of FIG. 11, audio data is recorded on the track Trk1. That is, this track is an audio track. The track Trk1 is composed of two parts (Trk1-1, Trk1-2). The parts (tracks) Trk1-1 and Trk1-2 are formed at separate positions on the disk. For example, when reproducing the data, when the reproduction of the parts Trk1-1 ends, the optical head 3 , Seeks to the parts Trk1-2, and reproduces them. Therefore, reproduction data can be obtained continuously.
[0099]
In this embodiment, the audio tracks Trk2-1 and Trk4-1 are each composed of one part, and audio data is recorded.
[0100]
Further, in this embodiment, a track Trk3 composed of parts Trk3-1 to 3-3 is formed, in which data processed by the host CPU 31 is recorded.
[0101]
The EFM / CIRC encoder / decoder 8 processes each track in the program area so that data is recorded and reproduced in clusters (64 kilobytes).
[0102]
The data track includes a volume management area (Volume Management Area) and an extent area (Extent Area). The volume management area is formed at the head of the data track first formed in the program area. The extent area is the other area.
[0103]
The allocation unit (Allocation Block) of data in the volume management area and the extent area is managed independently. The former is 2 kilobytes, and the latter is 4 kilobytes, 8 kilobytes, 16 kilobytes, 32 kilobytes, or 64 kilobytes. It is set to any value (for example, 8 kilobytes).
[0104]
The volume management area is composed of 16 clusters as shown in FIG. One cluster before the volume management area is provided with a boot cluster (Boot-Cluster) as necessary.
[0105]
FIG. 13 shows the format of the volume management area. Since the volume management area is composed of 16 clusters, and one cluster is composed of 64 kilobytes, 1024 blocks of 2 kilobytes are formed in the volume management area.
[0106]
A volume descriptor VD (Volume Descriptor) is recorded in the first block of number 0. In this volume descriptor, for example, the number of the block in which the root directory is recorded (any value from 0 to 1023 (4 in this embodiment)), the position information of the volume space bitmap, and the like are recorded. .
[0107]
In the block of No. 1, a volume space bitmap (VSB) is arranged. In this VSB, a bitmap indicating the use state of the entire mini disc 1 is recorded. This bitmap will be described later.
[0108]
A management table (Management Table (MT)) is arranged in a block of a total of 4 kilobytes of the numbers 2 and 3. In this MT, the use state of the volume management area is recorded.
[0109]
FIG. 14 schematically shows a management table including two blocks of number 2 and number 3. As shown in the drawing, each block having a size of 4 bytes indicated by a number from 0 to 1023 corresponds to a block of 2 kilobytes indicated by a block number from 0 to 1023 in FIG. In FIG. 13, since the blocks with numbers 0 to 3 are determined in advance by the standard, no data is recorded in the corresponding area (block) on the management table in FIG. 14 (reserved. There).
[0110]
As shown in FIG. 13, a directory record block (Directory Records Block (DRB)) or an Extent Record block (Extent Records Block (ERB)) is arranged in the blocks after the number 4.
[0111]
The following information (directory management information and file management information) is recorded in the directory record block DRB.
Directory (Name, Index to DRB, ID, Size, Date, etc.)
File (Name, Index to ER, Index of ER), Extent start Location, Number of Blocks, ID, Size, Date, etc.
[0112]
The directory record block entry (Directory Records Block Entry) of the management table for recording the data of the directory record block DRB is configured as shown in FIG. 15 or FIG. 16 to FIG.
[0113]
The format shown in FIG. 15 represents a format when the directory record block DRB is alone. In this case, 0 is set in the first bit 31 of the 4-byte data, and the ID is recorded in the remaining 31 bits from bit 30 to bit 0. For example, the directory record block entry corresponding to the block of number 4 in FIG. 14 is configured in this format. In the case of this embodiment, 00000002 is recorded as the ID. This ID represents a root directory.
[0114]
When the directory record block DRB is composed of a plurality of blocks, the first directory record block entry has a format as shown in FIG. 16, and the last entry has a format as shown in FIG. Are configured in a format as shown in FIG.
[0115]
In the format shown in FIG. 16, F0 is recorded in the first byte, and the 1-byte ID on the MSB side of the 4-byte ID is recorded in the next 1 byte. In the next two bytes, an index (Index to Next DRB) for the next DRB is arranged.
[0116]
In the entry of FIG. 17, FE is arranged in the first byte and the next byte is unused. Then, the index to the next DRB is arranged in the remaining two bytes.
[0117]
In the entry of FIG. 18, FF is arranged in the first one byte, and the remaining three bytes record the ID of the remaining three bytes excluding the one-byte MSB recorded in the second byte of FIG. It has been made.
[0118]
The entries indicated by the numbers 7, 8, or 10 in FIG. 14 are defined in the format shown in FIG. 16, FIG. 17, or FIG. 0008 is recorded in the last two bytes of the entry corresponding to the block number 7, which indicates that the next DRB in which the related data is recorded is the directory record block DRB represented by the number 8. ing. In the last two bytes of the entry of the block corresponding to the number 8, 000A (hexadecimal) is recorded, which is the directory record of the number 10 (decimal value corresponding to hexadecimal A). Indicates that a block is continued.
[0119]
Since 00 is recorded in the second byte of the number 7 and the ID of 000005 is recorded in the entry corresponding to the block of the number 10, the directory ID defined by these three blocks is eventually 00000005.
[0120]
FIG. 19 shows the format of an Extent Records Block Entry in the management table of FIG. In this format, 80 is arranged in the first byte, the remaining two bytes are unused, and a used count (Used Count) is arranged in the last byte. The used count indicates the number of used extent records among the records corresponding to the numbers 0 to 63 of the Extent Records Block (Extent Records Block) in FIG. 20 described later.
[0121]
In the management table of FIG. 14, the entry corresponding to the block represented by the number 5 is represented in the format of the extent record block entry shown in FIG. A value of 04 is recorded in the last byte. This is because, among the Extent Records ER represented by 64 numbers 0 to 63 of the Extent Record Block shown in FIG. 20, the number of used Extent Records is 4 (No. 0, 1, 2, 4). Of each extent record has been used).
[0122]
Extent record block ERB shown in FIG. 13 is configured, for example, as shown in FIG. As shown in the figure, a 2-kilobyte extent record block ERB is composed of 32 bytes each of 64 extent records ER represented by numbers 0 to 63.
[0123]
Each extent record ER is composed of four bytes of data in which FFFF is recorded in the first byte and seven extent record indexes (Extent Record Index) shown in FIG. 21, or It is configured by collecting eight 4-byte Extent Descriptors shown in FIG.
[0124]
As shown in FIG. 21, a logical block offset (Logical Block Offset) is arranged in the first two bytes of the extent record index, an index to ERB (Index to ERB) is arranged in the next two bytes, and the last two bytes are arranged. An offset of ER is arranged in one byte of (1).
[0125]
In the extent area, data is recorded using an allocation block as a minimum unit of allocation. The logical block offset indicates where the data indicated by the index is located from the beginning in the file. The index to ERB has a 10-bit configuration, and the index to the extent record block ERB is represented by one of the numbers 0 to 1023. The offset of ER is composed of 6 bits, and any of the numbers 0 to 63 represents any of the 64 extent records of the extent record block shown in FIG.
[0126]
As shown in FIG. 22, the extent start location (Extent Start Location) is arranged in the first two bytes of the extent descriptor, and the number of blocks (Number of Blocks) is arranged in the remaining two bytes. Have been. This extent start location indicates the start position of a file recorded in the extent area. The number of blocks indicates the number of blocks of the file starting from the start position.
[0127]
In FIG. 20, a 32-byte extent record represented by number 1 represents an index. FFFF is recorded in the first two bytes of the first four bytes. In the case of this embodiment, in the next Extent Record Index, 0000 is placed as the logical block offset in the first two bytes, 5 is stored as the index to ERB, and 2 is stored as the offset of ER. Have been.
[0128]
The fact that the offset of ER is 2 indicates that an Extent Record represented by the number 2 exists in FIG. The logical block offset is 0000, which means that the number of the first block of the file represented by the extent record represented by number 2 is 0000 (that is, the first block). ). In the Extent record of No. 2, for example, one block exists at the beginning (left side in the figure) of the 15th block at the absolute position (extent start location) on the data track. It is shown to be.
[0129]
The fact that the index to ERB is 5 indicates that the number of the Extent Record Block (shown in FIG. 20) is 5.
[0130]
The fact that the next offset of ER is 4 indicates that the data of the extent record represented by the number 4 exists. In this case, the logical block offset is 000B (11 in decimal). That is, in this embodiment, the total number of blocks of the extent record represented by the number 2 is 11 (= 1 + 1 + 2 + 1 + 1 + 1 + 3 + 1). Therefore, the position starting from the twelfth block (block number 11) is located at the position where the extent start location as the absolute position on the mini disc 1 recorded in the extent record represented by the number 4 is 053C. File exists.
[0131]
As shown in FIG. 20, one extent record index can represent only seven extent records. However, when the number of extent records increases, another extent record index is generated. Then, an index summarizing the plurality of extent record indexes is further generated.
[0132]
FIG. 23 schematically shows the relationship between the index recorded in the extent record block and the extent record. As shown in the figure, an index of a predetermined extent record block ERB is specified from a directory record of a predetermined directory record block (Index to ER). Then, up to seven indexes are recorded in the designated index.
[0133]
Each index records the start position (extent start location) of up to eight files and the number of blocks (number of blocks) constituting the file.
[0134]
In this embodiment, the FAT as shown in FIG. 7 is not used. Therefore, the U-TOC in this embodiment is configured as shown in FIG. 24, for example. As is clear from the comparison of FIG. 24 with FIG. 3, the LO-FAT shown in FIG. 3 is not recorded in the U-TOC of FIG. Other formats of the U-TOC are the same as those shown in FIG.
[0135]
In this embodiment, a bit map as shown in FIG. 25 is used instead of the FAT. This bitmap is recorded on the VSB in FIG.
[0136]
In this embodiment, one entry of the bitmap is composed of two bits. Each entry corresponds to a block of a predetermined size (4 kilobytes, 8 kilobytes, 16 kilobytes, 32 kilobytes, or 64 kilobytes) on the mini disk 1, as in the case of the FAT shown in FIG. Therefore, the number of entries is formed by the number corresponding to the recording capacity of the mini disc 1.
[0137]
In each 2-bit entry of the bit map, any 2-bit data of 00, 01, 10 or 11 is recorded. 00 indicates that the corresponding block on the mini disc 1 is usable and is an unused block. 01 indicates that the corresponding block on the mini disc 1 is a used block in which data has already been recorded. Numeral 10 indicates that the corresponding block on the mini disc 1 is a block having some defect. Reference numeral 11 indicates that the corresponding block on the mini disc 1 is a block whose use is prohibited.
[0138]
As described above, unlike the FAT shown in FIGS. 7 and 8, link information such as FFDh or the number of a block to be linked is not recorded in the bitmap. The link information is managed by the directory information or the file information (particularly, the extent record ER).
[0139]
FIG. 26 shows an example of processing performed by the host CPU 31 when the mini disc 1 (cartridge 1a) is mounted on the main body 41 of the mini disc apparatus for recording and reproducing computer data and an initialization command is issued in this embodiment. Is shown. First, in step S31, it is determined whether or not data tracks are formed on the mini disc 1. Whether or not a data track is formed can be determined from the U-TOC track mode. If the data track exists, the initialization for recording the computer data has already been completed (the recording area has been secured), and thus the initialization processing ends.
[0140]
If it is determined in step S31 that a data track has not been formed, the process proceeds to step S32, where an empty area (empty parts table) is secured from the U-TOC (data track is secured). For example, a predetermined number of blocks are reserved as data tracks for computer data recording from a free area in the program area (whether or not a free area is determined from P-TNO1 to P-TNO255 of the U-TOC). Is done. That is, this part is registered in, for example, the P-TNO 5, and its start address and end address are registered in the parts table. Further, data indicating that the data is for computer data recording is registered in the track mode of the parts table. Also, the P-FRA of the U-TOC is updated.
[0141]
As described above, the first 16 clusters of the data track are set to the VMA, and the actual data is recorded in the subsequent extent area (FIG. 12). When the size of this extent area is secured, for example, for 10 clusters, an area for a total of 26 clusters (= 16 + 10) is used as a data track.
[0142]
Next, proceeding to step S33, the bitmap is written to the VSB (FIG. 13) of the VMA (FIG. 12) composed of the first 16 clusters of the data track secured in step S32. Then, in the bitmap, data is written as shown in FIG.
[0143]
That is, data (01) indicating that the block is a used block is recorded in an entry corresponding to 16 clusters in which the VMA is written. In the subsequent bitmap entry corresponding to 50 clusters (an area for recording original computer data) on the extent area, data (00) indicating usable unused blocks is recorded. . Further, data (11) indicating an unusable block is recorded in an entry of a bitmap corresponding to a block on the other extent area.
[0144]
When the bitmap data is used for data track management, the bitmap data is stored in the memory 17 of FIG. 2 and recorded in the bitmap on the mini disc 1 at a predetermined timing.
[0145]
Next, FIG. 27 illustrates an example of processing performed by the host CPU 31 when recording computer data on the mini-disc 1. First, in step S41, the host CPU 31 reads bitmap data recorded on the mini disc 1.
[0146]
As described above, the volume management area including the data of the bitmap is formed at the head of the data track formed first in the program area. Therefore, the start address of the parts table corresponding to the head of the data track formed first is detected from the U-TOC, the volume descriptor is read based on this start address, and the position information of the bit map recorded there is read. By reading the bitmap based on the bitmap, the host CPU 31 can read the bitmap. This bitmap data is temporarily stored in the memory 17, and the host CPU 31 reads this data at a predetermined timing.
[0147]
Next, the process proceeds to step S42, where it is determined whether or not there is an unused entry (block 00) that can be used in the bit map just read. When recording computer data for the first time, since there is an available unused block, the process proceeds from step S42 to step S45. In step S45, one entry (for example, the entry 80 of the bitmap in FIG. 28) is selected from the unused blocks, and this entry is made to correspond to the file in which data is to be written. Then, the data is actually written to the block on the extent area corresponding to the entry.
[0148]
Next, the process proceeds to step S46, in which data (01) indicating the used area is recorded in the bitmap entry corresponding to the block in the extent area where the recording was performed (FIG. 28). The process further proceeds to step S47, and the block of the extent area is registered in the extent record ER (FIGS. 13 and 20).
[0149]
Next, the process proceeds from step S47 to step S48. In step S48, it is determined whether or not writing of all data has been completed. If not, the process returns to step S42. The above operation is repeated.
[0150]
FIG. 28 shows the state of the bitmap when data is recorded in the block of the extent area corresponding to the entries 80 to 89 on the bitmap as described above.
[0151]
Further, while the above operation is repeated, the reserved area becomes full, and if it is determined in step S42 that there is no entry indicating an unused block that can be used in the bit map, If there is no free area to be recorded, the process proceeds to step S43, where a free area of the U-TOC is secured, and the free area is added as a data track for recording computer data. Then, the process proceeds to step S44, and the block in the area where the data track is added is registered in the bitmap as a usable unused block. That is, the same processing as steps S32 and S33 in the initialization processing of FIG. 26 is performed, and a data recording area of 12 blocks is newly secured (added). The number of blocks added at this time is arbitrary. However, since the bitmap has already been created, it is not newly created, and only the data is updated.
[0152]
If it is determined in step S48 that the writing of all data has been completed, the process ends.
[0153]
In each of the above embodiments, when the unit managed by the FAT or the bitmap is set to a value smaller than one cluster, the main body 41 temporarily stores the data from the mini disc 1 in order to record data for one unit. Data of one cluster including a unit is read and stored in the RAM 13. Next, data corresponding to the unit is transferred from the host CPU 31 and newly stored in the RAM 13. Then, the data for one cluster read from the RAM 13 is written to the mini disc 1. That is, recording can be substantially performed in units smaller than one cluster. On the other hand, reproduction is performed in sector units.
[0154]
In the above embodiment, the management of the recording data on the writable mini-disc 1 has been described. However, the recording data management of the above-described embodiment can be applied to the read-only mini-disc 1. However, no U-TOC area is provided for the read-only mini-disc 1. Therefore, the above-described recording data management is realized by setting a table having substantially the same configuration as the U-TOC of the above-described embodiment in the TOC area and setting the same VMA in the program area as in the above-described embodiment.
[0155]
【The invention's effect】
As described above, according to the recording management method of the present invention, a predetermined range is specified from the range of the recording medium managed in accordance with the first management data, and the second data amount unit is specified for the specified range. Since the recording state of the reference data on the recording medium is managed according to the third management data, it is possible to ensure compatibility with the recording medium on which the data is recorded based on the first data unit. If there is a free space in the recording medium, data can be additionally recorded there.
[0156]
Furthermore, if the second data amount unit is smaller than the first data amount unit, data can be recorded in a processing unit smaller than a preset processing unit.
[0158]
According to the recording area setting method of the present invention, Manage the recording state of digital data in the first unit An empty area of the recording medium is detected from the data of the first table, and data having that area as a track for digital data is recorded therein. Then, at the beginning of the empty area that is a track for digital data, Manages the recording state of data on the recording medium in a second unit below the first unit A second table is created. Therefore, it is possible to reliably secure an area for recording digital data on the recording medium.
[0159]
Of the present invention Data recording method According to Manage the recording state of digital data in the first unit Using the data in the first table Managing the recording state of digital data in a second unit below the first unit The second table is read, an available block is detected from the second table, and digital data is recorded in the available block. Then, the information on the second table of the block in which the digital data is recorded is rewritten to information indicating that the block is unusable. Therefore, digital data can be reliably recorded in block units.
[Brief description of the drawings]
FIG. 1 is a diagram showing an external configuration of a mini disc device to which a recording medium management method of the present invention is applied.
FIG. 2 is a block diagram showing an internal configuration of a main body 41 of the embodiment of FIG.
FIG. 3 is a diagram illustrating a format of a U-TOC of the mini disc 1 of FIG. 2;
FIG. 4 is a diagram illustrating links in the management table of FIG. 3;
FIG. 5 is a diagram illustrating a relationship between a management table and a data recording area.
FIG. 6 is a diagram illustrating a relationship between a management table and a data recording area when an area for recording computer data is secured.
FIG. 7 is a diagram illustrating a FAT.
FIG. 8 is a diagram illustrating FAT in a state where computer data is recorded.
9 is a flowchart illustrating an operation of initializing the mini disc 1 in the embodiment of FIG.
FIG. 10 is a diagram for explaining an operation when computer data is recorded on the mini disc 1 in the embodiment of FIG.
FIG. 11 is a diagram illustrating a format of a mini disc 1 in another embodiment of the recording medium management method of the present invention.
FIG. 12 is a diagram illustrating a format of the data track of FIG. 11;
FIG. 13 is a diagram illustrating a format of a volume management area in FIG. 12;
FIG. 14 is a diagram illustrating a format of a management table in FIG. 13;
FIG. 15 is a diagram illustrating a format of a directory record block entry of FIG. 13;
FIG. 16 is a diagram illustrating a format of a directory record block entry of FIG. 13;
FIG. 17 is a diagram illustrating a format of a directory record block entry of FIG. 13;
FIG. 18 is a diagram illustrating a format of a directory record block entry of FIG.
FIG. 19 is a diagram illustrating the format of an Extent Record block entry in FIG. 13;
20 is a diagram illustrating a configuration example of an extent record block of FIG. 13;
FIG. 21 is a diagram illustrating a format of an extent record index.
FIG. 22 is a diagram illustrating a format of an extent descriptor.
FIG. 23 is a diagram illustrating a relationship between an index and an extent record.
FIG. 24 is a diagram illustrating another configuration example of the U-TOC.
FIG. 25 is a diagram illustrating a configuration of a bitmap.
FIG. 26 is a flowchart illustrating another operation of initializing the mini disc 1.
FIG. 27 is a flowchart illustrating another operation when recording computer data on the mini-disc 1.
FIG. 28 is a diagram illustrating a bitmap in a state where computer data is recorded.
FIG. 29 is a diagram illustrating a format of a mini disc.
FIG. 30 is a diagram illustrating the concept of a partition.
[Explanation of symbols]
1 mini disk
2 Spindle motor
3 Optical head
3a Objective lens
4 2-axis mechanism
5 Thread mechanism
6 Magnetic head
7 RF amplifier
8 Encoder / decoder part
9 Servo circuit
10 Address decoder
11 System controller
12 Memory controller
13 RAM
14 SCSI interface
15 Magnetic head drive circuit
16 TOC memory
17 Memory
18 Display
19 Operation input section
30 SCSI bus
31 Host CPU
41 body
42 insertion slot

Claims (5)

データが所定の第1のデータ量単位で記録されるとともに前記データの記録を管理するための第1の管理データが記録される記録媒体の記録管理方法において、
前記第1のデータ量単位とは異なる第2のデータ量単位でデータを記録する場合に第2の管理データに基づいて前記第2のデータ量単位のデータが記録される領域を前記第1の管理データに設定し、
前記第2の管理データに基づいて前記第2のデータ量単位のデータが記録される領域に前記第2のデータ量単位で管理する第3の管理データに基づいて前記第2のデータ量単位でデータを記録する
ことを特徴とする記録管理方法。
A recording management method for a recording medium in which data is recorded in a predetermined first data amount unit and first management data for managing the recording of the data is recorded,
When data is recorded in a second data amount unit different from the first data amount unit, an area in which the data in the second data amount unit is recorded based on the second management data is the first data amount. Set to management data,
In the area where the data in the second data amount unit is recorded based on the second management data, the area is recorded in the second data amount unit based on the third management data managed in the second data amount unit. A record management method characterized by recording data.
前記第2のデータ量単位は、前記第1のデータ量単位より小さい
ことを特徴とする請求項1に記載の記録管理方法。
The recording management method according to claim 1, wherein the second data amount unit is smaller than the first data amount unit.
前記第1のデータ量単位はクラスタであり、
前記第2のデータ量単位はブロックである
ことを特徴とする請求項2に記載の記録管理方法。
The first data amount unit is a cluster,
3. The recording management method according to claim 2, wherein the second data amount unit is a block.
記録媒体にデジタルデータを記録するため記録領域を設定する記録領域設定方法において、In a recording area setting method of setting a recording area for recording digital data on a recording medium,
第1の単位で前記デジタルデータの記録状態を管理する第1のテーブルのデータから前記記録媒体の空き領域を検出し、Detecting a free area of the recording medium from data of a first table for managing a recording state of the digital data in a first unit;
前記第1のテーブルに前記空き領域をデジタルデータ用のトラックとすることを示すデータを記録し、Data indicating that the empty area is a track for digital data is recorded in the first table,
前記デジタルデータ用のトラックとされた空き領域の先頭に前記第1の単位以下の第2の単位で前記記録媒体のデータの記録状態を管理する第2のテーブルを作成するA second table for managing a recording state of data on the recording medium in a second unit equal to or smaller than the first unit is created at a head of the free area which is a track for the digital data.
ことを特徴とする記録領域設定方法。A recording area setting method, characterized in that:
デジタルデータを記録媒体に記録する際のデータ記録方法において、In a data recording method for recording digital data on a recording medium,
第1の単位で前記デジタルデータの記録状態を管理する第1のテーブルのデータに基づいて前記記録媒体のデジタルデータ用のトラックから前記第1の単位以下の第2の単位で前記デジタルデータの記録状態を管理する第2のテーブルを読み出し、Recording of the digital data in a second unit equal to or less than the first unit from a digital data track of the recording medium based on data of a first table for managing a recording state of the digital data in a first unit Read a second table that manages the state,
前記第2のテーブルから使用可能ブロックを示す情報を検出し、Detecting information indicating an available block from the second table;
前記使用可能ブロックを示す情報に対応する前記デジタルデータ用のトラックのブロックにデジタルデータを記録し、Record digital data in a block of the track for the digital data corresponding to the information indicating the usable block,
前記第2のテーブルの前記使用可能ブロックを示す情報を使用不可能を示す情報に書き換えるRewriting the information indicating the usable block in the second table with the information indicating unusable
ことを特徴とするデータ記録方法。A data recording method, characterized in that:
JP2003141947A 1993-06-14 2003-05-20 Recording management method, recording area setting method, and data recording method Expired - Fee Related JP3605824B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003141947A JP3605824B2 (en) 1993-06-14 2003-05-20 Recording management method, recording area setting method, and data recording method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP14181993 1993-06-14
JP27009993 1993-10-28
JP2003141947A JP3605824B2 (en) 1993-06-14 2003-05-20 Recording management method, recording area setting method, and data recording method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP13168994A Division JP3446308B2 (en) 1993-06-14 1994-06-14 Data recording device

Related Child Applications (2)

Application Number Title Priority Date Filing Date
JP2004243058A Division JP2004362772A (en) 1993-06-14 2004-08-24 Recording management method
JP2004243059A Division JP3729416B2 (en) 1993-06-14 2004-08-24 Data recording method

Publications (2)

Publication Number Publication Date
JP2004005976A JP2004005976A (en) 2004-01-08
JP3605824B2 true JP3605824B2 (en) 2004-12-22

Family

ID=30448935

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003141947A Expired - Fee Related JP3605824B2 (en) 1993-06-14 2003-05-20 Recording management method, recording area setting method, and data recording method

Country Status (1)

Country Link
JP (1) JP3605824B2 (en)

Also Published As

Publication number Publication date
JP2004005976A (en) 2004-01-08

Similar Documents

Publication Publication Date Title
KR100299400B1 (en) Record Media Management Method
JP3353382B2 (en) Recording or reproducing device and memory control device
JP3560074B2 (en) Recording / reproducing device and memory control device
JP3218743B2 (en) Recording / reproducing apparatus, disk recording / reproducing system, and recording method
JP4304802B2 (en) Dubbing equipment
JP3446308B2 (en) Data recording device
KR100583760B1 (en) How to record compressed audio data on a recording medium and how to send device and compressed audio data
JPH07168749A (en) Information managing method, data recording medium, data recording method, information retrieving method, and information retriever
JP3605824B2 (en) Recording management method, recording area setting method, and data recording method
JP3729416B2 (en) Data recording method
JP3493766B2 (en) Playback device
JP3617107B2 (en) Recording or playback device
JP2004362772A (en) Recording management method
JP3669350B2 (en) Recording / reproducing apparatus and search circuit
JP2002343062A (en) Additional recording control method and additional recording controller
JP3830539B2 (en) Recording device
JP3541785B2 (en) Recording / reproducing apparatus and recording / reproducing method
JP3612754B2 (en) Recording apparatus and reproducing apparatus
JP3794069B2 (en) Editing device
JPH06309121A (en) Memory controller and address generation circuit
JP2004030921A (en) Recording device
JPH09153270A (en) Management information updating device
JP2001043626A (en) Reproducing device
JP2005149676A (en) Recording and reproducing device, file management method and disk recording medium
JPH08235834A (en) Recording and reproducing device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040625

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040824

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040913

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040926

LAPS Cancellation because of no payment of annual fees