JPH05290514A - Recording and reproducing device - Google Patents

Recording and reproducing device

Info

Publication number
JPH05290514A
JPH05290514A JP8685892A JP8685892A JPH05290514A JP H05290514 A JPH05290514 A JP H05290514A JP 8685892 A JP8685892 A JP 8685892A JP 8685892 A JP8685892 A JP 8685892A JP H05290514 A JPH05290514 A JP H05290514A
Authority
JP
Japan
Prior art keywords
initialization
sector
file system
recording medium
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP8685892A
Other languages
Japanese (ja)
Inventor
Takashi Eguchi
隆 江口
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP8685892A priority Critical patent/JPH05290514A/en
Publication of JPH05290514A publication Critical patent/JPH05290514A/en
Pending legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

PURPOSE:To always recover a previous condition even though an initialization is performed provided that no writing is performed to a file, by recovering an FD control work region copied in a non-control region of a file system during an initialization operation. CONSTITUTION:Assume one inadvertently initializes a necessary recording medium (FD) 1, finds his error and wishes to bring it back to the previous condition. If it is right after the initialization and no writing has been done to a file, the FD1 control work region copied in a non-control region of the file system is read by a reading circuit 2 in the initialization operation and the condition is recovered through a writing circuit 4 to the original condition. And by reading a sector header, checking the possibility of performing sector read and write and keeping the contents of the sector data, the original condition is recovered right after the initialization work.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、データを記録再生する
記録再生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a recording / reproducing apparatus for recording / reproducing data.

【0002】[0002]

【従来の技術】データを記憶する装置として、FD(フ
ロッピィディスク)が最近多く使われている。FDは、
使用される機器に応じて機器が読み書きするために前段
階として初期化を行う。この初期化動作では、FDを細
かく分割するセクタと呼ぶブロックに分けるためと、デ
ータをファイルとして管理するための管理作業領域の作
成を行う。
2. Description of the Related Art An FD (floppy disk) has been widely used recently as a device for storing data. FD is
Initialization is performed as a pre-stage so that the device can read and write according to the device used. In this initialization operation, the FD is divided into blocks that are finely divided, and a management work area for managing data as a file is created.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、この初
期化を行うと、以前に書き込まれていたセクタ内のデー
タやファイルがすべて消去されてしまうという問題点を
有していた。
However, when this initialization is performed, there is a problem that all the data and files in the previously written sector are erased.

【0004】本発明は上記問題点を解決するもので、初
期化を行ってもファイルを書き込まなければ、常に以前
の状態に復元できる記録再生装置を提供することを目的
とする。
The present invention solves the above problems, and an object of the present invention is to provide a recording / reproducing apparatus which can always restore the previous state if a file is not written even after initialization.

【0005】[0005]

【課題を解決するための手段】この目的を達成するため
に本発明の記録再生装置は、記録媒体からデータを読み
だす読みとり手段と、前記記録媒体にデータを書き込む
書き込み手段と、データを一時記憶するメモリ手段と、
プログラムを格納するメモリ手段と、前記プログラムに
基づいて演算する演算手段とを備え、前記プログラム
は、記録媒体の初期化時に、ファイルの管理作業領域を
ファイルシステムの非管理領域に保存する、あるいは保
存した内容を元に書き戻す、及び前記記録媒体を細かく
分割したセクタの読み書きを行う構成としたものであ
る。
In order to achieve this object, a recording / reproducing apparatus of the present invention comprises a reading means for reading data from a recording medium, a writing means for writing data on the recording medium, and a temporary storage of data. Memory means to
The program includes memory means for storing a program and operation means for performing an operation based on the program, and the program saves a management work area of a file in a non-management area of a file system at the time of initialization of a recording medium, or saves it. The recorded contents are written back to the original, and the sectors are divided into finely divided areas of the recording medium to be read and written.

【0006】[0006]

【作用】本発明は、初期化動作時に、FDの管理作業領
域をファイルシステムの非管理領域にコピーを行い、セ
クタ内のデータは削除しないでデータが読めることを確
認するだけで、また、FDの管理領域のデータを初期化
することで、初期化以前の状態に復帰できる。
According to the present invention, during the initialization operation, the management work area of the FD is copied to the non-management area of the file system, the data in the sector is not deleted, and it is confirmed that the data can be read. By initializing the data in the management area of, the state before the initialization can be restored.

【0007】[0007]

【実施例】以下、本発明の一実施例について、図面を参
照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings.

【0008】図2は上記したFDの構成例を示す。FD
の内周部には、機器で使われるファイルシステムの管理
領域と、外周部には物理的に読み書きできる領域のファ
イルシステムの非管理領域がある。機器で使われるファ
イルシステムの代表例としては、MS−DOS(米国マ
イクロソフト社の登録商標)が挙げられる。
FIG. 2 shows an example of the structure of the FD described above. FD
In the inner peripheral portion, there is a management area of the file system used in the device, and in the outer peripheral portion, there is a non-management area of the file system which is a physically readable / writable area. A typical example of the file system used in the device is MS-DOS (registered trademark of Microsoft Corporation, USA).

【0009】FDの読み書き領域は、データが同心円状
であり、これをトラックと呼ぶ。このトラックには、い
くつかの細かいブロックに分けた上記のセクタと呼ばれ
る領域に分割される。さらにFDは、表面と裏面にも読
み書きできる。この表裏面の同一トラック部分をシリン
ダと呼ぶ。MS−DOSの管理領域例では、シリンダナ
ンバーが0から76まで、トラックナンバーが0から1
53まで、セクタナンバーが1から8まである。また、
一般に機器あるいはFD自体は、シリンダナンバーが0
から79まで、トラックナンバーが0から159まで、
セクタナンバーが1から9まで可能である。このシリン
ダナンバーの77から79までの3シリンダ分、トラッ
クナンバーの154から159までの6トラック分、セ
クタナンバー9がファイルシステムの非管理領域とな
る。
In the FD read / write area, data is concentric and is called a track. This track is divided into areas called sectors, which are divided into several fine blocks. Further, the FD can read and write on the front and back sides. The same track portion on the front and back sides is called a cylinder. In the example of the management area of MS-DOS, the cylinder number is 0 to 76 and the track number is 0 to 1.
Up to 53, the sector numbers are from 1 to 8. Also,
Generally, the equipment or FD itself has a cylinder number of 0.
To 79, track numbers 0 to 159,
Sector numbers from 1 to 9 are possible. Three cylinders of the cylinder numbers 77 to 79, six tracks of the track numbers 154 to 159, and the sector number 9 are non-management areas of the file system.

【0010】また、ファイルシステムの管理領域の先頭
部には、ファイルシステムの作業領域がある。ここは、
ファイルの名前や作成日時やサイズ、そして管理領域の
どの部分に書かれているかの情報などが記録されている
領域である。
A work area for the file system is provided at the head of the management area for the file system. here,
This is an area in which the name of the file, the date and time of creation, the size, and information about which part of the management area is written are recorded.

【0011】従来の装置での初期化では、ファイルシス
テムの管理領域のセクタのデータ初期化とファイルシス
テムの作業領域部分のデータの初期化とが行われて、全
てのデータが削除されていた。
In the initialization in the conventional apparatus, the initialization of the data in the sector of the management area of the file system and the initialization of the data in the work area of the file system were performed, and all the data were deleted.

【0012】図1は本発明の記録再生装置の構成例を示
す。1は記録媒体、2は読みとり回路、3はメモリ、4
は書き込み回路、5は演算器、6はプログラムを格納す
るROM(読みだし専用メモリ)である。記録媒体1の
初期化のプログラムは、プログラムROM6に格納され
ていて、加減算、乗除算、メモリ3の読み書き制御を行
う演算器5を利用して行う。
FIG. 1 shows an example of the structure of a recording / reproducing apparatus of the present invention. 1 is a recording medium, 2 is a reading circuit, 3 is a memory, 4
Is a writing circuit, 5 is a computing unit, and 6 is a ROM (read-only memory) for storing programs. The program for initializing the recording medium 1 is stored in the program ROM 6 and is executed by using the arithmetic unit 5 that performs addition / subtraction, multiplication / division, and read / write control of the memory 3.

【0013】まず、初期化作業の(1)番目として、上
記例のファイルシステムの非管理領域であるトラック1
54からトラック159を、セクタ1から8として物理
的に読み書きが可能なように各トラック、セクタナンバ
ーを書き込み回路4を通して記録媒体1に書き込む。こ
れは、図3のように、各セクタデータにセクタヘッダが
付随していて、ヘッダの中に、トラックナンバーやセク
タナンバーが記録される。この部分を読みとって指定の
トラック、セクタのデータを読み書きする。
First, as the (1) -th step of the initialization work, the track 1 which is the non-management area of the file system of the above example.
Tracks 54 to 159 are written in the recording medium 1 through the write circuit 4 so that the tracks and sector numbers can be physically read and written as sectors 1 to 8. As shown in FIG. 3, each sector data is accompanied by a sector header, and a track number and a sector number are recorded in the header. By reading this part, the data of the specified track and sector is read and written.

【0014】(2)番目に、記録媒体1からファイルシ
ステムの作業領域を読みとり回路2を通してメモリ3に
読み込む。そして、この内容を書き込み回路4を通して
記録媒体1のファイルシステムの非管理領域に書き込
む。作業領域が、2トラック分であるとすると、トラッ
ク0の内容はトラック154へ、トラック1の内容はト
ラック155へそれぞれ、(2)番目の内容を繰り返し
て行う。
(2) Secondly, the work area of the file system is read from the recording medium 1 and read into the memory 3 through the circuit 2. Then, this content is written into the non-management area of the file system of the recording medium 1 through the writing circuit 4. Assuming that the work area is for two tracks, the contents of track 0 are written to track 154, the contents of track 1 are written to track 155, and the (2) th contents are repeated.

【0015】(3)番目には、このファイルシステムの
作業領域を機器の所定のフォーマットでデータを読み書
き回路4を通して書き込んで各セクタ内容を初期化す
る。
(3) Thirdly, the work area of this file system is written in a predetermined format of the device through the read / write circuit 4 to initialize the contents of each sector.

【0016】(4)番目には、シリンダ0から76ま
で、すなわち表裏面のトラック0からトラック153ま
でのセクタヘッダを読みとって、セクタデータ内容が読
み書きできるかをチェックする。この時に、セクタヘッ
ダが正しく読めない場合は、(1)番目の内容と同様
に、該トラックを初期化する。この時は、当然ながらセ
クタデータの内容は、削除される。通常は、正しくセク
タヘッダが読めることが多く、セクタデータの内容はそ
のまま保存される。(1)から(4)の動作で記録媒体
1は、初期化が終了する。
(4) Fourth, the sector headers of cylinders 0 to 76, that is, the tracks 0 to 153 on the front and back surfaces are read to check whether the sector data contents can be read or written. At this time, if the sector header cannot be read correctly, the track is initialized as in the case of the (1) th content. At this time, of course, the contents of the sector data are deleted. Usually, the sector header is often readable correctly, and the contents of the sector data are saved as they are. The recording medium 1 is initialized by the operations (1) to (4).

【0017】しかし、必要なFDを誤って初期化したと
気づき再び元に戻したい時には、上記初期化の直後でフ
ァイルを書きこまない状態であれば以下の動作で復元で
きる。まず、ファイルシステムの非管理領域である、ト
ラック154とトラック155のセクタ1から8までを
読み込む。そして、ファイルシステムの作業領域である
トラック0と1のセクタ1から8までに書き込む。それ
以外のファイルシステムの管理領域は、そのまま保存さ
れたままである。
However, when it is found that the necessary FD has been erroneously initialized and it is desired to restore it again, if the file is not written immediately after the initialization, the following operation can restore the FD. First, sectors 1 to 8 of tracks 154 and 155, which are unmanaged areas of the file system, are read. Then, writing is performed in sectors 1 to 8 of tracks 0 and 1 which are the work area of the file system. The other management areas of the file system remain saved.

【0018】以上のように、この実施例によれば、ファ
イルシステムの作業領域であるトラック0と1のセクタ
1から8までを、ファイルシステムの非管理領域である
トラック154と155のセクタ1から8までに書き込
み保存し、その他のセクタは、セクタヘッダを読み込む
ことによりセクタの読み書きが可能かをチェックしてセ
クタデータの内容を保存することによって、初期化作業
の直後には元の状態に復元できる記録再生装置である。
As described above, according to this embodiment, the sectors 1 to 8 of the tracks 0 and 1 which are the work areas of the file system are changed to the sectors 1 of the tracks 154 and 155 which are the non-management areas of the file system. By writing up to 8, the other sectors are restored to their original state immediately after the initialization by checking whether the sector can be read and written by reading the sector header and saving the contents of the sector data. It is a recording / reproducing device that can be used.

【0019】[0019]

【発明の効果】以上説明したように、本発明によれば、
必要なFDを誤って初期化したと気づき再び元に戻した
い時には、上記初期化の直後でファイルを書きこまない
状態で有れば、初期化動作時に、FDの管理作業領域を
ファイルシステムの非管理領域にコピーを行った部分を
元に戻すだけで、初期化以前の状態に復帰でき、その実
用的効果は大きい。
As described above, according to the present invention,
If you find that you have accidentally initialized the necessary FD and want to restore it to the original state again, if you do not write the file immediately after the above initialization, the management work area of the FD will not be saved in the file system after initialization. It is possible to return to the state before the initialization by simply returning the copied portion to the management area, and the practical effect is great.

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

【図1】本発明の実施例における記録再生装置の構成を
示すブロック図
FIG. 1 is a block diagram showing a configuration of a recording / reproducing apparatus in an embodiment of the present invention.

【図2】記録媒体の構成例を示す模式図FIG. 2 is a schematic diagram showing a configuration example of a recording medium.

【図3】記録媒体のトラックの構成例を示す模式図FIG. 3 is a schematic diagram showing a configuration example of tracks on a recording medium.

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

1 記録媒体 2 読みとり回路 3 メモリ 4 書き込み回路 5 演算器 6 プログラムROM 1 recording medium 2 reading circuit 3 memory 4 writing circuit 5 computing unit 6 program ROM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 記録媒体からデータを読みだす読みとり
手段と、 前記記録媒体にデータを書き込む書き込み手段と、 データを一時記憶するメモリ手段と、 プログラムを格納するプログラムメモリ手段と、 前記プログラムに基づいて演算する演算手段とを備え、 前記プログラムは、記録媒体の初期化時に、ファイルの
管理作業領域をファイルシステムの非管理領域に保存す
る、あるいは上記非管理領域に保存した内容を上記管理
作業領域に書き戻す、かつ前記記録媒体を細かく分割し
たセクタの読みとり及び書き込みを行うことを特徴とす
る記録再生装置。
1. A reading means for reading data from a recording medium, a writing means for writing data to the recording medium, a memory means for temporarily storing data, a program memory means for storing a program, and a program memory based on the program. The program stores a management work area of a file in a non-management area of a file system at the time of initialization of a recording medium, or contents stored in the non-management area in the management work area. A recording / reproducing apparatus, which writes back data, and reads and writes sectors that are obtained by finely dividing the recording medium.
JP8685892A 1992-04-08 1992-04-08 Recording and reproducing device Pending JPH05290514A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8685892A JPH05290514A (en) 1992-04-08 1992-04-08 Recording and reproducing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8685892A JPH05290514A (en) 1992-04-08 1992-04-08 Recording and reproducing device

Publications (1)

Publication Number Publication Date
JPH05290514A true JPH05290514A (en) 1993-11-05

Family

ID=13898516

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8685892A Pending JPH05290514A (en) 1992-04-08 1992-04-08 Recording and reproducing device

Country Status (1)

Country Link
JP (1) JPH05290514A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097718A (en) * 2006-10-12 2008-04-24 Matsushita Electric Ind Co Ltd Data processing device, method, and program
EP1933321A2 (en) 2006-12-12 2008-06-18 Funai Electric Co., Ltd. Optical disc apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008097718A (en) * 2006-10-12 2008-04-24 Matsushita Electric Ind Co Ltd Data processing device, method, and program
EP1933321A2 (en) 2006-12-12 2008-06-18 Funai Electric Co., Ltd. Optical disc apparatus
EP1933321A3 (en) * 2006-12-12 2008-07-23 Funai Electric Co., Ltd. Optical disc apparatus

Similar Documents

Publication Publication Date Title
US5265230A (en) Method and apparatus for determining sector status in a data storage device by writing a status of read-only, writable, or obliterated in an error recovery area of each sector
US20140337575A1 (en) Tape emulating disk based storage system and method with automatically resized emulated tape capacity
JPH08123735A (en) Devices for restoring and copying contents recorded in auxiliary storage device
JP2804974B2 (en) Method and apparatus for maintaining data integrity of a magneto-optical disk
JP3133755B2 (en) Data storage device
JPH05290514A (en) Recording and reproducing device
JPH04315232A (en) Disk device and file managing method therefor
JP4607504B2 (en) Data medium with variable control field in data unit
JPH03222158A (en) Additionally writing method for data
JPS60215232A (en) System for preventing wrong use of information
JP2638451B2 (en) Information processing device
JPH0793101A (en) Data backup device
JPS6391887A (en) Data recording system
JPH04223520A (en) Magnetic disk device backup method
JPS6313188A (en) Disk file device
JP4334902B2 (en) Recorded content copying device
JPS6369072A (en) Directory format
JPH0574100B2 (en)
JPH06124218A (en) Disk content destruction factor estimation supporting method and information processing system with disk content destruction factor estimation supporting function
JP2630932B2 (en) Program recording method for disk-shaped recording medium
JPH0574052A (en) Method for managing information of information recording medium
KR970066825A (en) Detection and recovery method of disk error in electronic exchanger
JPH0371351A (en) Data maintenance system
JPH02242473A (en) Storage control method
JPS63292251A (en) Volume condense processing system