JPH0140416B2 - - Google Patents

Info

Publication number
JPH0140416B2
JPH0140416B2 JP60162487A JP16248785A JPH0140416B2 JP H0140416 B2 JPH0140416 B2 JP H0140416B2 JP 60162487 A JP60162487 A JP 60162487A JP 16248785 A JP16248785 A JP 16248785A JP H0140416 B2 JPH0140416 B2 JP H0140416B2
Authority
JP
Japan
Prior art keywords
floppy disk
data
checksum
disk
accessed
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
Application number
JP60162487A
Other languages
Japanese (ja)
Other versions
JPS6224468A (en
Inventor
Yoshiaki Takagi
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP16248785A priority Critical patent/JPS6224468A/en
Publication of JPS6224468A publication Critical patent/JPS6224468A/en
Publication of JPH0140416B2 publication Critical patent/JPH0140416B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (イ) 産業上の利用分野 本発明は、パーソナルコンピユータやワードプ
ロセツサ等の情報処理装置において、フロツピー
デイスクの入れ替えを検出する方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a method for detecting replacement of a floppy disk in an information processing apparatus such as a personal computer or a word processor.

(ロ) 従来の技術 フロツピーデイスクは、交換可能な記録媒体と
して、パーソナルコンピユータやワードプロセツ
サに広く採用されているが、データ書込み時に、
フロツピーデイスクが誤つて入れ替えられると、
データが破壊する恐れがある。
(b) Conventional technology Floppy disks are widely used in personal computers and word processors as interchangeable recording media, but when writing data,
If the floppy disk is accidentally replaced,
Data may be destroyed.

このようなデータ破壊を防止するため、特開昭
59−132460号公報には、フロツピーデイスクの入
れ替えを検出する方式が開示されている。即ち、
この方式では、フロツピーデイスクのドライブに
対する装填及び取りはずしを検出して、その旨を
CPUに知らせるハードウエアをドライブ側に設
け、このハードウエアからの検出出力により、フ
ロツピーデイスクが装填されたと判断したとき、
フロツピーデイスクのボリユームラベルを読取
り、その名称を検査して、入れ替えの有無を検出
していた。
In order to prevent such data destruction,
Japanese Patent No. 59-132460 discloses a method for detecting replacement of floppy disks. That is,
This method detects when a floppy disk is loaded or unloaded from the drive, and reports this fact.
Hardware is installed on the drive side to notify the CPU, and based on the detection output from this hardware, when it is determined that a floppy disk is loaded,
The volume label of the floppy disk was read and the name was checked to detect whether or not it had been replaced.

(ハ) 発明が解決しようとする問題点 従来の方式においては、フロツピーデイスクの
入れ替えを検出するために、装填及び取りはずし
を検出するハードウエア等、特別なハードウエア
を必ず設ける必要があり、このようなハードウエ
アを備えていないドライブにおいては、入れ替え
の検出を行なうことは不可能であつた。
(c) Problems to be solved by the invention In the conventional system, in order to detect replacement of floppy disks, it is necessary to install special hardware such as hardware to detect loading and unloading. In drives that are not equipped with such hardware, it has been impossible to detect replacement.

又、比較すべきデイスクのラベルもしくはデイ
スク識別子は、当然の事ながら、使用する全ての
デイスクについて各々異なるように付す必要があ
り、従つて、これらラベルもしくは識別子を予め
書き込んだフロツピーデイスクのみを用いる特殊
なシステムにおいては、従来の方式は可能であつ
たが、使用するフロツピーが限定されていないパ
ーソナルコンピユータ等の汎用システムにおいて
は、これらラベルもしくは識別子の比較を用いた
入れ替え検出方式は、事実上不可能であつた。
In addition, it goes without saying that the labels or disk identifiers of the disks to be compared must be assigned differently for all the disks used. Therefore, only floppy disks on which these labels or identifiers have been written in advance are used. Although the conventional method was possible in special systems, in general-purpose systems such as personal computers where the floppies used are not limited, the replacement detection method using label or identifier comparison is virtually impossible. It was possible.

(ニ) 問題点を解決するための手段 本発明は、フロツピーデイスクのアクセス時
に、アクセスしたトラツク番号及びセクタ番号と
データのチエツクサムを記憶し、次のデイスクア
クセス時に、前記記憶したトラツク番号及びセク
タ番号のデータをフロツピーデイスクから読み、
該データのチエツクサムを前記記憶したチエツク
サムと比較することにより、フロツピーデイスク
の入れ替えを検出するようにしたものである。
(d) Means for Solving Problems The present invention stores the accessed track number, sector number, and data checksum when accessing a floppy disk, and stores the track number and sector number that were accessed when the next disk access is made. Read the number data from the floppy disk,
By comparing the checksum of the data with the stored checksum, replacement of the floppy disk is detected.

(ホ) 作 用 本発明では、前のデイスクアクセス時に記憶さ
れたトラツク番号及びセクタ番号のデータが、次
のデイスクアクセス時にフロツピーデイスクから
読み出され、読み出されたデータのチエツクサム
と前のアクセス時に記憶されたチエツクサムとが
比較されるので、フロツピーデイスクが入れ替え
られていれば、比較結果は不一致となり、入れ替
えられていなければ、比較結果は等しくなる。従
つて、比較結果により、フロツピーデイスクの入
れ替えが検出される。
(E) Function In the present invention, the track number and sector number data stored during the previous disk access are read from the floppy disk during the next disk access, and the checksum of the read data and the previous access are read out from the floppy disk during the next disk access. Since the checksums stored at the time are compared, if the floppy disks have been replaced, the comparison result will be a mismatch; if the floppy disks have not been replaced, the comparison results will be equal. Therefore, based on the comparison result, replacement of the floppy disk is detected.

(ヘ) 実施例 第1図は、情報処理装置の概略ブロツク図を示
し、1はキーボードKB、2はCRTデイスプレイ
DISP、3はCPU、4はRAM、5はフロツピー
デイスクFD6が装填されるフロツピーデイスク
ドライブFDD、7はフロツピーデイスクコント
ローラFDCであつて、本発明の方式を実現する
制御プログラムとメインプログラムは、RAM4
のプログラムエリアにロードされている。
(F) Embodiment Figure 1 shows a schematic block diagram of an information processing device, where 1 is a keyboard KB, 2 is a CRT display.
DISP, 3 is a CPU, 4 is a RAM, 5 is a floppy disk drive FDD loaded with a floppy disk FD6, 7 is a floppy disk controller FDC, and the control program and main program for realizing the method of the present invention are , RAM4
is loaded into the program area.

以下、本発明を第2図のフローチヤートを参照
しながら説明する。
Hereinafter, the present invention will be explained with reference to the flowchart shown in FIG.

本発明では、フロツピーデイスク6のアクセス
時、常に、第2図のフローチヤートに示す処理を
行なう。
In the present invention, when the floppy disk 6 is accessed, the process shown in the flowchart of FIG. 2 is always performed.

即ち、初めてのフロツピーデイスク6のアクセ
ス時には、データの読出しあるいは書込み等メイ
ンプログラムにより指定された仕事を実行し、こ
のときアクセスしたトラツク番号及びセクタ番号
と、このセクタのデータのチエツクサムとを、
RAM4の所定位置に記憶する。
That is, when accessing the floppy disk 6 for the first time, the work specified by the main program, such as data reading or writing, is executed, and the track number and sector number accessed at this time, as well as the checksum of the data in this sector, are
Store it in a predetermined location in RAM4.

次のデイスクアクセス時には、前のアクセス時
にRAM4に記憶されたトラツク番号及びセクタ
番号のデータを、フロツピーデイスク6から読出
し、このデータのチエツクサムを取る。そして、
このチエツクサムとRAM4に記憶したチエツク
サムとを比較する。
At the next disk access, the track number and sector number data stored in the RAM 4 during the previous access are read from the floppy disk 6, and a checksum of this data is taken. and,
This checksum is compared with the checksum stored in RAM4.

仮に、フロツピーデイスク6が入れ替えられて
いないとすれば、同一トラツク番号及びセクタ番
号のデータは必ず同一であるので、比較結果は一
致し、フロツピーデイスクの入れ替えは無かつた
と判断され、メインプログラムにより指定された
仕事を実行し、前述と同様、アクセスしたトラツ
ク番号及びセクタ番号と、このセクタのデータの
チエツクサムとをRAM4の所定位置に記憶す
る。
If the floppy disk 6 has not been replaced, the data with the same track number and sector number will always be the same, so the comparison results will match, and it will be determined that the floppy disk has not been replaced, and the main program will The track number and sector number accessed and the checksum of the data of this sector are stored in a predetermined location in the RAM 4, as described above.

フロツピーデイスク6が入れ替えられていれ
ば、前のアクセス時と同一のトラツク及びセクタ
であつても、データ内容は通常異なるので、その
チエツクサムも異なる。このため、比較結果は不
一致となり、入れ替えが有つたことが判断され
る。この場合入れ替えが有つたことをCRTデイ
スプレイ2で表示すれば、オペレータはその旨を
知ることができる。
If the floppy disk 6 has been replaced, even if the track and sector are the same as the previous access, the data content is usually different and the checksum is also different. Therefore, the comparison result is a mismatch, and it is determined that there has been an exchange. In this case, if the CRT display 2 displays the fact that there has been a replacement, the operator can know that.

尚、指定された仕事において、フロツピーデイ
スク6を連続アクセスするときは、最終にアクセ
スしたトラツク番号、セクタ番号、データのチエ
ツクサムを記憶すれば良い。
Incidentally, when the floppy disk 6 is accessed continuously in a designated task, it is sufficient to memorize the track number, sector number, and data checksum that were last accessed.

ところで、初期設定において、フラグ8をオン
しておき、フロツピーデイスク6へのアクセスが
一度でも行なわれれば、のフラグ8をオンするよ
うにしておけば、このフラグ8をチエツクするこ
とにより、デイスクアクセスが初めてであるか否
かを判定できる。
By the way, if flag 8 is turned on in the initial settings, and if the floppy disk 6 is accessed even once, flag 8 is turned on. It can be determined whether the access is for the first time or not.

上述の説明は、ドライブが1台の場合であつた
が、複数台数接続するときは、ドライブ番号も合
わせて記憶すれば良い。
The above explanation was based on the case of one drive, but when a plurality of drives are connected, the drive number may also be stored.

本発明では、前にアクセスしたトラツク及びセ
クタのデータを、次のアクセス時に読むので、ヘ
ツドを移動させる必要がなく、このため、デイス
クアクセスの都度、第2図のフローチヤートに示
す処理を行なつても十分実用に適する。
In the present invention, the data of the previously accessed track and sector is read at the next access, so there is no need to move the head. Therefore, the process shown in the flowchart in FIG. 2 is performed each time the disk is accessed. However, it is suitable for practical use.

(ト) 発明の効果 本発明に依れば、特別なハードウエアを設ける
ことなく、ソフトウエアでフロツピーデイスクの
入れ替えが確実に検出でき、従つて、全てのフロ
ツピーデイスクドライブに適用可能である。
(G) Effects of the Invention According to the present invention, replacement of floppy disks can be reliably detected by software without the need for special hardware, and therefore it is applicable to all floppy disk drives. .

更に、個々のデイスクを識別するためのラベル
もしくは識別子を、使用する全てのフロツピーデ
イスクに予め付しておく必要がないので、使用す
るフロツピーデイスクが限定されていない汎用シ
ステムにおいても、フロツピーデイスクの入れ替
え検出が可能となる。
Furthermore, since there is no need to attach a label or identifier to each floppy disk in advance to identify each floppy disk, even in a general-purpose system where the number of floppy disks used is not limited, floppy disks can be used easily. It becomes possible to detect disk replacement.

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

第1図は情報処理装置の概略ブロツク図、第2
図は本発明の方式を示すフローチヤートである。 主な図番の説明 3……CPU、4……RAM、
5……フロツピーデイスクドライブ、6……フロ
ツピーデイスク。
Figure 1 is a schematic block diagram of the information processing device;
The figure is a flowchart showing the method of the present invention. Explanation of main drawing numbers 3...CPU, 4...RAM,
5... Floppy disk drive, 6... Floppy disk.

Claims (1)

【特許請求の範囲】[Claims] 1 フロツピーデイスクのアクセス時に、アクセ
スしたトラツク番号及びセクタ番号とデータのチ
エツクサムを記憶し、次のデイスクアクセス時
に、前記記憶したトラツク番号及びセクタ番号の
データをフロツピーデイスクから読み、該データ
のチエツクサムを前記記憶したチエツクサムと比
較することにより、フロツピーデイスクの入れ替
えを検出するようにしたことを特徴とするフロツ
ピーデイスク入れ替え検出方式。
1. When accessing a floppy disk, the accessed track number, sector number, and checksum of the data are memorized, and the next time the disk is accessed, the data of the stored track number and sector number is read from the floppy disk, and the checksum of the data is stored. A floppy disk replacement detection method is characterized in that replacement of a floppy disk is detected by comparing the check sum with the stored checksum.
JP16248785A 1985-07-23 1985-07-23 Detection system for floppy disc interchange Granted JPS6224468A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16248785A JPS6224468A (en) 1985-07-23 1985-07-23 Detection system for floppy disc interchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16248785A JPS6224468A (en) 1985-07-23 1985-07-23 Detection system for floppy disc interchange

Publications (2)

Publication Number Publication Date
JPS6224468A JPS6224468A (en) 1987-02-02
JPH0140416B2 true JPH0140416B2 (en) 1989-08-29

Family

ID=15755546

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16248785A Granted JPS6224468A (en) 1985-07-23 1985-07-23 Detection system for floppy disc interchange

Country Status (1)

Country Link
JP (1) JPS6224468A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2686670B2 (en) * 1990-04-02 1997-12-08 キヤノン株式会社 Recording material for inkjet

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55139673A (en) * 1979-04-13 1980-10-31 Fujitsu Ltd Mount state supervisory system of floppy disk unit
JPS59119572A (en) * 1982-12-23 1984-07-10 インタ−ナシヨナル ビジネス マシ−ンズ コ−ポレ−シヨン Identity inspection for recording disc

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55139673A (en) * 1979-04-13 1980-10-31 Fujitsu Ltd Mount state supervisory system of floppy disk unit
JPS59119572A (en) * 1982-12-23 1984-07-10 インタ−ナシヨナル ビジネス マシ−ンズ コ−ポレ−シヨン Identity inspection for recording disc

Also Published As

Publication number Publication date
JPS6224468A (en) 1987-02-02

Similar Documents

Publication Publication Date Title
JPS60107155A (en) Data protection system of storage volume
JPH0140416B2 (en)
JPS6224469A (en) Detection system for floppy disc interchange
JPS6240556A (en) Information processor
US4916703A (en) Handling errors in the C bit of a storage key
JPH01108634A (en) System for preventing erroneous usage of external recording medium
JPH0581789A (en) Optical disk device
JP2002278798A (en) Device and method for monitoring failure and storage medium
JP3107552B2 (en) Information processing device
JPS62192821A (en) Connection confirmation system for external storage device
JPH05274093A (en) Volume fault prevention control system
JPH0578107B2 (en)
JPH07319779A (en) Information processor
JPH05216718A (en) Debugging method
JPH09161415A (en) Control method for magnetic tape apparatus
JPS6297104A (en) Discoid recording medium
JPH02178723A (en) System for checking data transfer of auxiliary memory device
JPH07200185A (en) File controller
JPS62293582A (en) Memory device
JPH01319177A (en) Information recording device
JPH0778095A (en) Program abnormality cause analytic device
JPH08263223A (en) Computer system
JPH04148393A (en) Card terminal system
JPH02206082A (en) Storage system
JPH0612251A (en) Program starting device