JPH05341915A - Interface device - Google Patents
Interface deviceInfo
- Publication number
- JPH05341915A JPH05341915A JP15375092A JP15375092A JPH05341915A JP H05341915 A JPH05341915 A JP H05341915A JP 15375092 A JP15375092 A JP 15375092A JP 15375092 A JP15375092 A JP 15375092A JP H05341915 A JPH05341915 A JP H05341915A
- Authority
- JP
- Japan
- Prior art keywords
- logical
- format
- operating system
- sectors
- external storage
- 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
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 9
- 230000010365 information processing Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 11
- 230000015654 memory Effects 0.000 description 6
- 238000011989 factory acceptance test Methods 0.000 description 5
- 238000012949 factory acceptance testing Methods 0.000 description 5
- 239000003925 fat Substances 0.000 description 5
- 238000000034 method Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 238000013523 data management Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、パーソナルコンピュー
タと例えばディスク装置などの外部記憶装置とを接続す
るためのインターフェイス装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an interface device for connecting a personal computer to an external storage device such as a disk device.
【0002】[0002]
【従来の技術】マイクロプロセッサの発達に伴い、情報
処理を行なうためのコンピュータとしてパーソナルコン
ピュータが用いられるようになってきた。このパーソナ
ルコンピュータを用いたアプリケーション・ソフトは、
例えばキーボードからの入力データの受付、入力データ
の画面上への表示、磁気ディスクへのデータの保存また
は再生などの基本的な機能を有している。2. Description of the Related Art With the development of microprocessors, personal computers have come to be used as computers for performing information processing. The application software using this personal computer is
For example, it has basic functions of accepting input data from a keyboard, displaying the input data on a screen, and saving or reproducing the data on a magnetic disk.
【0003】このようなパーソナルコンピュータのプロ
グラムの中で、上記機能を担当する部分をオペレーティ
ングシステム(OS)と呼ぶが、このOSとしては、最
近では米国マイクロソフト社が開発した16ビットパソコ
ン用としてMS−DOS(Microsoft Disk Operating S
ystem)が用いられてきた。現在16ビットパソコン用で
起動するアプリケーション・ソフトとしては、ほとんど
がMS−DOSの元で使用するようになっている。In such a program of a personal computer, a portion in charge of the above functions is called an operating system (OS). As this OS, recently, MS-for a 16-bit personal computer developed by Microsoft Corp. DOS (Microsoft Disk Operating S
ystem) has been used. Currently, most of the application software started up for 16-bit personal computers are used under MS-DOS.
【0004】さらに、年々MS−DOSもバージョンア
ップして、例えばMS−DOS3.XからMS−DOS
4.Xへ、さらにはMS−DOS4.XからMS−DO
S5.Xへと新しいバージョンに移行するにつれて機能
が増加しつつある。Furthermore, the MS-DOS is upgraded year by year, for example, MS-DOS3. X to MS-DOS
4. X, and further MS-DOS4. X to MS-DO
S5. Features are increasing as we move to newer versions of X.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、MS−
DOSの新バージョンと旧バージョンとを比較した場合
に、機能の関係上から、磁気ディスクなどに記憶したデ
ータのフォーマット形式が異なっていた。このため、新
バージョンで記憶した磁気ディスクを、旧バージョンの
MS−DOSの元でのパーソナルコンピュータに接続し
ても、フォーマット形式が異なるため、新バージョンの
磁気ディスクに格納されたデータを読み出すことができ
なかった。However, MS-
When the new version and the old version of DOS were compared, the format format of the data stored in the magnetic disk etc. was different due to the functional relationship. Therefore, even if the magnetic disk stored in the new version is connected to the personal computer based on the old version of MS-DOS, the format format is different, and the data stored in the new version of the magnetic disk can be read. could not.
【0006】例えばMS−DOS4.0以降の場合に
は、管理できるセクタ数は2の32乗個であるが、MS
−DOS3.X以降の場合には、管理できるセクタ数が
2の16乗個までであるため、一般的には、MS−DO
S4.0以降用に作成されたメディアは、MS−DOS
3.Xでは、データを読み書きできなかった。[0006] For example, in the case of MS-DOS 4.0 or later, the number of sectors that can be managed is 2 to the 32nd power.
-DOS3. In the case of X and later, since the number of sectors that can be managed is up to 2 to the 16th power, MS-DO is generally used.
Media created for S4.0 or later is MS-DOS.
3. X couldn't read or write data.
【0007】また、従来のMS−DOS3.XとMS−
DOS4.Xとによる磁気ディスク上のフォーマットの
比較を行なうと、(a)パーソナルコンピュータ本体1
の使用するOSがMS−DOS3.Xの場合には、例え
ば3.5インチ光磁気ディスクに対して管理するデータエ
リア(File Alocation Table,FAT)サイズが64Kバ
イトになるので、32K個のクラスタを管理できる。Further, the conventional MS-DOS3. X and MS-
DOS4. Comparing the formats on the magnetic disk with X, (a) personal computer main body 1
OS used by MS-DOS3. In the case of X, for example, the data area (File Alocation Table, FAT) size to be managed for the 3.5-inch magneto-optical disk is 64 Kbytes, so that 32K clusters can be managed.
【0008】128Mバイトの3.5インチ光磁気ディスクを
使用する場合には、何通りにも管理する方法が考えられ
るが、効率を考慮すると、以下のようになる。前記クラ
スタ領域におけるクラスタ数は32K個で、クラスタサイ
ズは4096バイト(論理セクタ×2)である。論理セクタ
サイズは2048バイト(物理セクタ×4)で、物理セクタ
サイズは512バイトで、FATサイズは64Kバイトであ
る。 (b)これに対して、パーソナルコンピュータ本体1の
使用するOSがMS−DOS4.X以降の場合には、3.
5インチ光磁気ディスクに対して管理するデータエリア
サイズが128Kバイトになるので、64K個のクラスタを
管理できる。In the case of using a 3.5-inch magneto-optical disk of 128 Mbytes, various management methods can be considered. However, considering efficiency, the method is as follows. The number of clusters in the cluster area is 32K and the cluster size is 4096 bytes (logical sector × 2). The logical sector size is 2048 bytes (physical sector × 4), the physical sector size is 512 bytes, and the FAT size is 64 Kbytes. (B) On the other hand, the OS used by the personal computer main body 1 is MS-DOS4. If X or later, 3.
Since the data area size managed for a 5-inch magneto-optical disk is 128 Kbytes, 64K clusters can be managed.
【0009】128Mバイトの3.5インチ光磁気ディスク3
を使用する場合には、何通りにも管理する方法が考えら
れるが、効率を考慮すると、以下の2通りを選択するこ
とができる。 (b−1)クラスタ数は64K個で、クラスタサイズは20
48バイト(論理セクタ×4)である。論理セクタサイズ
は512バイト(物理セクタ×1)で、物理セクタサイズは
512バイトで、FATサイズは128Kバイトである。 (b−2)クラスタ数は32K個で、クラスタサイズは40
96バイト(論理セクタ×8)である。論理セクタサイズ
は512バイト(物理セクタ×1)で、物理セクタサイズは
512バイトで、FATサイズは64Kバイトである。A 128-Mbyte 3.5-inch magneto-optical disk 3
When using, there are many possible management methods, but in consideration of efficiency, the following two methods can be selected. (B-1) The number of clusters is 64K and the cluster size is 20
It is 48 bytes (logical sector x 4). The logical sector size is 512 bytes (physical sector x 1), and the physical sector size is
It is 512 bytes and the FAT size is 128 Kbytes. (B-2) The number of clusters is 32K and the cluster size is 40
It is 96 bytes (logical sector x 8). The logical sector size is 512 bytes (physical sector x 1), and the physical sector size is
It is 512 bytes and the FAT size is 64 Kbytes.
【0010】MS−DOS3.X,4.X,5.X間に
おいて、データの管理を同一にすれば、その間でデータ
の互換が取れるが、MS−DOS間で管理できる論理セ
クタサイズの違いにより、全てのサイズを同一にはでき
なかった。MS-DOS3. X, 4. X, 5. If data management is the same between X and X, data compatibility can be achieved between them, but all sizes cannot be made the same due to the difference in logical sector size that can be managed between MS-DOS.
【0011】すなわち、各パーソナルコンピュータ間
で、データの互換性がないため、情報処理を効率よく行
なうことができなかった。本発明は、このような点に鑑
みてなされたもので、その目的とするところは、MS−
DOSを用いた各パーソナルコンピュータ間でデータの
交換が行え、情報処理を効率良く行うことのできるイン
ターフェイス装置を提供することにある。That is, since there is no data compatibility between the personal computers, information processing cannot be performed efficiently. The present invention has been made in view of the above points, and an object of the present invention is to provide an MS-
An object of the present invention is to provide an interface device capable of exchanging data between personal computers using DOS and efficiently performing information processing.
【0012】[0012]
【課題を解決するための手段】本発明は、上記課題を解
決し目的を達成するために下記の構成とした。図1は本
発明の原理図である。図1に示すように、インターフェ
イス装置は、上位オペレーティングシステム又は下位オ
ペレーティングシステムを備えたパーソナルコンピュー
タ本体と前記いずれかのオペレーティングシステムによ
り管理される外部記憶装置とを接続する。In order to solve the above problems and achieve the object, the present invention has the following constitution. FIG. 1 shows the principle of the present invention. As shown in FIG. 1, the interface device connects a main body of a personal computer having an upper operating system or a lower operating system and an external storage device managed by any one of the operating systems.
【0013】フォーマット処理部は、MS−DOS3.
Xの論理フォーマットをMS−DOS4.Xの論理フォ
ーマットに変換し変換された論理フォーマットで前記外
部記憶装置をフォーマットする。The format processing unit uses the MS-DOS3.
X logical format is MS-DOS4. The external storage device is formatted with the converted logical format.
【0014】フォーマット変換部は、下位オペレーティ
ングシステムを用いたパーソナルコンピュータ本体がフ
ォーマット処理部によってフォーマットされた前記外部
記憶装置をアクセスする場合に、外部記憶装置上の論理
フォーマットを前記下位オペレーティングシステムの論
理フォーマットに変換するよう構成される。When the personal computer body using the lower operating system accesses the external storage device formatted by the format processing unit, the format converting unit sets the logical format on the external storage device to the logical format of the lower operating system. Is configured to convert to.
【0015】オペレーティングシステムは、マイクロソ
フト社のMS−DOSであり、下位オペレーティングシ
ステムは例えばMS−DOS3.Xであり、上位オペレ
ーティングシステムは例えばMS−DOS4.Xであ
る。The operating system is Microsoft's MS-DOS, and the subordinate operating system is MS-DOS3. X, and the upper operating system is, for example, MS-DOS4. It is X.
【0016】外部記憶装置は、例えばハードディスク、
光磁気ディスク、カートリッジディスク、カセットスト
リーマテープ、コンパクトディスクリードオンリーメモ
リなどである。The external storage device is, for example, a hard disk,
These include magneto-optical disks, cartridge disks, cassette streamer tapes, compact disk read-only memories, and so on.
【0017】また、フォーマット処理部は、外部記憶装
置の総物理セクタ数をある係数で割ったときの値が下位
オペレーティングシステムのセクタ数に最も近くなるよ
うな前記係数を求め、前記値を総論理セクタ数とし、物
理セクタサイズに前記係数を掛けた値を論理セクタサイ
ズとし、これら総論理セクタ数及び論理セクタサイズを
用いてその他の論理フォーマットのパラメータを求め、
前記係数を用いて前記上位オペレーティングシステムの
論理フォーマットへの変換を行なうよう構成される。Further, the format processing unit obtains the coefficient such that the value obtained by dividing the total number of physical sectors of the external storage device by a certain coefficient is the closest to the number of sectors of the lower operating system, and the value is the total logical value. The number of sectors, the value obtained by multiplying the physical sector size by the coefficient is defined as the logical sector size, and the parameters of other logical formats are obtained using the total number of logical sectors and the logical sector size,
The coefficient is used to perform conversion into the logical format of the higher level operating system.
【0018】さらに、フォーマット変換部は、前記上位
オペレーティングシステムを用いたパーソナルコンピュ
ータ本体が前記フォーマット処理部によってフォーマッ
トされた前記外部記憶装置をアクセスする場合に、前記
外部記憶装置上の論理フォーマットの変換を行わないよ
う構成する。Further, the format conversion unit converts the logical format on the external storage device when the personal computer main body using the host operating system accesses the external storage device formatted by the format processing unit. Configure not to do.
【0019】[0019]
【作用】本発明によれば、フォーマット処理部4は、M
S−DOS3.Xの論理フォーマットをMS−DOS
4.Xの論理フォーマットに変換しその論理フォーマッ
トを外部記憶装置に書き込んでおく。According to the present invention, the format processing section 4 is
S-DOS3. X logical format is MS-DOS
4. It is converted to the X logical format and the logical format is written in the external storage device.
【0020】そして、下位オペレーティングシステムを
用いたパーソナルコンピュータ本体が上位オペレーティ
ングシステムによってフォーマットされた外部記憶装置
をアクセスする場合に、インターフェイス装置に備えた
フォーマット変換部が、外部記憶装置上のデータの論理
フォーマットを下位オペレーティングシステムによるデ
ータの論理フォーマットに変換する。When the main body of the personal computer using the lower operating system accesses the external storage device formatted by the upper operating system, the format conversion unit provided in the interface device causes the logical format of the data on the external storage device. To the logical format of the data by the lower operating system.
【0021】従って、下位オペレーティングシステムで
あっても、上位オペレーティングシステムで作成された
外部記憶装置のデータをアクセスすることができ、よっ
てデータの互換が行える。Therefore, even the lower operating system can access the data of the external storage device created by the upper operating system, and the data can be compatible.
【0022】[0022]
【実施例】以下、本発明の具体的な実施例を説明する。
図2は本発明に係るインターフェイス装置を含む周辺装
置の実施例の構成ブロック図である。EXAMPLES Specific examples of the present invention will be described below.
FIG. 2 is a configuration block diagram of an embodiment of a peripheral device including an interface device according to the present invention.
【0023】図2において、インターフェイス装置2
は、パーソナルコンピュータ本体1と光磁気ディスク3
とを接続している。パーソナルコンピュータ本体1に
は、中央処理装置としてのマイクロプロセッサ11、O
S部12、データやコマンドなどを入力するためのキー
ボード13、データを表示するためのディスプレイ装置
14が設けられている。OSは、マイクロソフト社の登
録商標であるマイクロソフトディスクオペレーティング
システムMS−DOS3.X,4.Xなどである。In FIG. 2, the interface device 2
Is a personal computer body 1 and a magneto-optical disk 3
And are connected. The personal computer main body 1 includes a microprocessor 11, O as a central processing unit.
An S section 12, a keyboard 13 for inputting data and commands, and a display device 14 for displaying data are provided. The OS is Microsoft disk operating system MS-DOS3. X, 4. X and the like.
【0024】図3はオペレーティングシステムユーザメ
モリの構成図である。このオペレーティングシステムユ
ーザメモリは、前述したOS部12に設けられており、
1Mバイトからなっている。すなわち、オペレーティン
グシステムの利用できるメモリ空間は最大で1Mバイト
であり、図3に示すように1MBのメモリ空間に、少な
くともアプリケーションプログラムとOSカーネルとシ
ステムプログラムとを格納する構成になっている。FIG. 3 is a block diagram of the operating system user memory. This operating system user memory is provided in the above-mentioned OS section 12,
It consists of 1 MB. That is, the maximum memory space that can be used by the operating system is 1 Mbytes, and as shown in FIG. 3, at least the application program, the OS kernel, and the system program are stored in the 1 MB memory space.
【0025】システムプログラムは、常駐型のCOMM
AND.COM等から構成され、コンピュータとユーザ
とをインタフェイスする部分である。DOSカーネルは
MS−DOS自身を示し、システムを初期化中にMS−
DOS.SYSから読み込まれる。The system program is a resident COMM.
AND. It is composed of COM and the like, and is a portion that interfaces a computer and a user. The DOS kernel indicates the MS-DOS itself, MS-DOS during system initialization.
DOS. Read from SYS.
【0026】光磁気ディスク3は、3.5インチの大きさ
からなり、命令を順次並べたプログラムとデータとを格
納している。図4は光磁気ディスク3上の各領域の配置
を示す図である。図4において、光磁気ディスク3上に
は、ファイルの本体を書き込むためのデータ領域(クラ
スタ領域)、ファイルの読み出し及び書き込みを管理す
るためのルートディレクトリ領域、ファイルアロケーシ
ョン・テーブル(FAT)領域が配置されており、さら
にMS−DOSを起動するためのブートプログラムを有
するシステム予約領域が配置されている。これらの領域
は、ディスクのトラック番号及びセクタ番号の小さい方
から順に割り付けられている。The magneto-optical disk 3 has a size of 3.5 inches and stores a program and data in which instructions are sequentially arranged. FIG. 4 is a diagram showing the arrangement of each area on the magneto-optical disk 3. In FIG. 4, a data area (cluster area) for writing the main body of the file, a root directory area for managing reading and writing of the file, and a file allocation table (FAT) area are arranged on the magneto-optical disk 3. In addition, a system reserved area having a boot program for activating MS-DOS is arranged. These areas are assigned in order from the smallest track number and sector number of the disc.
【0027】図5はディスク上のセクタとトラックとの
関係を示す図である。ディスクの円周上を複数に分割し
て複数のセクタを設け、円周に沿ってセクタ番号を順に
付している。またディスクの内周から外周にかけてトラ
ック番号を順に付している。FIG. 5 is a diagram showing the relationship between sectors and tracks on the disk. The circumference of the disk is divided into a plurality of sectors to provide a plurality of sectors, and sector numbers are sequentially assigned along the circumference. Track numbers are sequentially assigned from the inner circumference to the outer circumference of the disc.
【0028】フォーマット処理部4は、光磁気ディスク
3の容量を調べて、物理フォーマットから論理フォーマ
ットを生成し、MS−DOS3.Xの論理フォーマット
をMS−DOS4.Xの論理フォーマットに変換するた
めのフォーマットプログラムを格納している。The format processing section 4 checks the capacity of the magneto-optical disk 3 to generate a logical format from the physical format, and outputs the MS-DOS3. X logical format is MS-DOS4. A format program for converting to the X logical format is stored.
【0029】インターフェイス装置2は、光磁気ディス
ク3への格納形態がMS−DOS4.XであってかつO
S部12がMS−DOS3.Xである場合にのみ、MS
−DOS4.Xの論理フォーマットをMS−DOS3.
Xの論理フォーマットに変換するデバイスドライバー2
1と、コンピュータ本体1,フォーマット処理部4と光
磁気ディスク3とを接続するインターフェイスカード2
2とを有している。The interface device 2 is stored in the magneto-optical disk 3 in the form of MS-DOS4. X and O
S section 12 is MS-DOS3. MS only if X
-DOS4. The logical format of X is MS-DOS3.
Device driver 2 for converting to X logical format
1, an interface card 2 for connecting the computer main body 1, the format processing unit 4 and the magneto-optical disk 3
2 and.
【0030】デバイスドライバー21は、パーソナルコ
ンピュータ本体1で使用しているMS−DOSのバージ
ョンを判別し、光磁気ディスク3への格納形態がMS−
DOS4.XでかつOS部12がMS−DOS3.Xで
ある場合にのみ、MS−DOS4.Xの論理フォーマッ
トをMS−DOS3.Xの論理フォーマットに変換する
ことにより、異なるMS−DOSのバージョン相互間で
データの交換を行なうようになっている。The device driver 21 discriminates the version of MS-DOS used in the personal computer main body 1, and the form of storage in the magneto-optical disc 3 is MS-DOS.
DOS4. X and the OS unit 12 is MS-DOS3. X-only if MS-DOS4. The logical format of X is MS-DOS3. By converting to the X logical format, data is exchanged between different versions of MS-DOS.
【0031】次に、フォーマット処理部4,デバイスド
ライバー21の処理内容を具体的に説明する。MS−D
OS4.0以降の場合には、管理できるセクタ数は2の
32乗個であり、MS−DOS3.Xの場合には、管理
できるセクタ数が2の16乗個までである。MS−DO
S4.0以降用に作成されたメディアは、MS−DOS
3.Xでは、データを読み書きできない。Next, the processing contents of the format processing unit 4 and the device driver 21 will be specifically described. MS-D
In the case of OS 4.0 or later, the number of sectors that can be managed is 2 to the 32nd power, and MS-DOS3. In the case of X, the number of manageable sectors is 2 to the 16th power. MS-DO
Media created for S4.0 or later is MS-DOS.
3. X cannot read or write data.
【0032】そこで、MS−DOS3.Xでも、アクセ
スが可能なMS−DOS4.0/MS−DOS5.0メ
ディアの作成方法及びそのようなメディアのMS−DO
S3.Xにおけるアクセス手法を説明する。Therefore, MS-DOS3. X-accessible MS-DOS 4.0 / MS-DOS 5.0 media creation method and MS-DO of such media
S3. The access method in X will be described.
【0033】<フォーマット処理部4の処理内容> (a)MS−DOS3.Xの論理フォーマットの作成 まず、フォーマット処理部4は、インターフェイスカー
ド22を介して光磁気ディスク3の記憶容量を調べて、
次のような処理を行なう。ここで、メディアの総物理セ
クタ数をPnとし、メディアの物理セクタサイズをPs
としたときに、メディアの総論理セクタ数をLnとし、
メディアの論理セクタサイズをLsと求める。<Processing Content of Format Processing Unit 4> (a) MS-DOS 3. Creating a logical format of X First, the format processing unit 4 checks the storage capacity of the magneto-optical disk 3 via the interface card 22,
The following processing is performed. Here, the total number of physical sectors of the medium is Pn, and the physical sector size of the medium is Ps.
And the total number of logical sectors of the medium is Ln,
The logical sector size of the medium is calculated as Ls.
【0034】まず、総物理セクタ数Pn,物理セクタサ
イズPsから総論理セクタ数Ln,論理セクタサイズL
sを求めるために、以下のような正の整数fを求める。 Pn/f<2の16乗・・・・・・(1) なお、fは2のべき乗である。例えばPnが250000セク
タであれば、fは4となる。このfを用いて以下の式に
より総論理セクタ数Ln,論理セクタサイズLsが求め
られる。First, from the total number of physical sectors Pn and the physical sector size Ps to the total number of logical sectors Ln and the logical sector size L
In order to obtain s, the following positive integer f is obtained. Pn / f <2 to the 16th power (1) Note that f is a power of 2. For example, if Pn is 250,000 sectors, f will be 4. Using this f, the total logical sector number Ln and the logical sector size Ls are calculated by the following equations.
【0035】Ln=Pn/f Ls=Ps*f・・・・・・・・・(2) ここで求めたLsを1論理セクタサイズ,Lnをメディ
ア上の論理セクタ数として、その他のMS−DOS3.
Xのディスクパラメータを計算する。Ln = Pn / f Ls = Ps * f ... (2) Ls obtained here is one logical sector size, Ln is the number of logical sectors on the medium, and other MS- DOS3.
Calculate the disk parameters of X.
【0036】以下に示すRn,Fnは任意の数値とす
る。Csは任意の数値でよいが、論理セクタサイズ*
(2のべき乗)であることが要求される。Dnも任意の
数値でよいが、(論理セクタサイズ/32)の倍数である
ことが要求される。Cn,Fsは他の項から計算され
る。Rn and Fn shown below are arbitrary values. Cs may be any value, but logical sector size *
(Power of 2) is required. Dn may be an arbitrary value, but is required to be a multiple of (logical sector size / 32). Cn and Fs are calculated from the other terms.
【0037】メディアの総論理セクタ数Ln、論理セク
タサイズLs、クラスタあたりのセクタ数Cn=Cs/
Ls、予約セクタ数Rn、FAT数Fn、FAT1個当
りのセクタ数Fs=((Cs/Ls)*2)/Ls、デ
ィレクトリ数Dn・・(3) (3)のパラメータを用いることにより、Ln<65536
となる。Total logical sector number Ln of media, logical sector size Ls, number of sectors per cluster Cn = Cs /
Ls, the number of reserved sectors Rn, the number of FATs Fn, the number of sectors per FAT Fs = ((Cs / Ls) * 2) / Ls, and the number of directories Dn ... (3) (3) <65536
Becomes
【0038】このようにfを用いてMS−DOS3.X
用のパラメータを作成することができる。従って、MS
−DOS3.Xであっても、アクセスすることができ
る。しかし、MS−DOS4.0以降では、総論理セク
タ数は4Gまで許されているが、論理セクタサイズは物
理セクタサイズでなければならない。 (b)MS−DOS3.Xの論理フォーマットからMS
−DOS4.Xの論理フォーマットへの変換 そこで、MS−DOS3.Xのディスクパラメータを実
際にメディア上に書き込むときには、前述したfを用い
て、以下に示すようにMS−DOS4.X用のパラメー
タに変換する。Thus, using f, MS-DOS3. X
Parameters can be created. Therefore, MS
-DOS3. Even X can be accessed. However, in MS-DOS 4.0 or later, the total number of logical sectors is allowed up to 4G, but the logical sector size must be the physical sector size. (B) MS-DOS 3. X logical format to MS
-DOS4. Conversion of X to logical format Therefore, MS-DOS3. When the disk parameters of X are actually written on the medium, the above-mentioned f is used, and the MS-DOS4. Convert to parameters for X.
【0039】メディアの総論理セクタ数Ln1=Ln*
f、論理セクタサイズLs1=Ls/f(Pn)、クラ
スタあたりのセクタ数Cn1=(Cs/Ls)*f、予
約セクタ数Rn1=Rn*f、FAT数Fn、FAT1
個あたりのセクタ数Fs1=(((Cs/Ls))*2)
/Ls)*f、ディレクトリ数Dn・・・・(4)とす
る。Total number of logical sectors of media Ln 1 = Ln *
f, logical sector size Ls 1 = Ls / f (Pn), number of sectors per cluster Cn 1 = (Cs / Ls) * f, number of reserved sectors Rn 1 = Rn * f, number of FATs Fn, FAT 1
Number of sectors per piece Fs 1 = (((Cs / Ls)) * 2)
/ Ls) * f, the number of directories Dn ... (4).
【0040】<デバイスドライバー21の処理>デバイ
スドライバー21は、OS部12がドライバーソフトを
ロードする際に、OSのバージョンを調べ、実際にメデ
ィアをアクセスする時点では、以下のような処理を行な
う。<Processing of Device Driver 21> The device driver 21 checks the version of the OS when the OS section 12 loads the driver software, and performs the following processing at the time of actually accessing the medium.
【0041】MS−DOS4.0以降では、メディアに
書き込まれているパラメータをそのまま使用する。MS
−DOS3.Xでは、メディアに記述されたパラメータ
を元に、以下のようにディスクパラメータを計算する。In MS-DOS 4.0 or later, the parameters written in the medium are used as they are. MS
-DOS3. In X, the disk parameters are calculated as follows based on the parameters described in the medium.
【0042】メディアの総論理セクタ数Ln1/f、論
理セクタサイズLs1/f、クラスタあたりのセクタ数
Cn1/f、予約セクタ数Rn1/f、FAT数Fn、F
AT1個あたりのセクタ数Fs1/f、ディレクトリ数
Dn・・・・・・・(5)とする。Total logical sector number of media Ln 1 / f, logical sector size Ls 1 / f, number of sectors per cluster Cn 1 / f, number of reserved sectors Rn 1 / f, number of FATs Fn, F
The number of sectors per AT is Fs 1 / f and the number of directories is Dn ... (5).
【0043】Ln1=Ln*fであったから、Ln1/f
はLnとなり、65536以下になるので、MS−DOS
3.Xでもアクセス可能になる。 <実施例の動作>図6は実施例における処理フローチャ
ート、図7は3.5インチ光磁気ディスク3の論理フォー
マットを示す図である。Since Ln 1 = Ln * f, Ln 1 / f
Becomes Ln, which is less than 65536, so MS-DOS
3. You can also access it with X. <Operation of Embodiment> FIG. 6 is a processing flowchart in the embodiment, and FIG. 7 is a diagram showing a logical format of the 3.5-inch magneto-optical disk 3.
【0044】まず、フォーマット処理部4は、MS−D
OS4.Xの光磁気ディスク3のフォーマットディスク
空間の総数127,774,720を調べ、かつ物理セクタ総数24
9,848に基づき(1)式よりfを4に決定する。そして、
総論理セクタ数Ln,論理セクタサイズLsを(2)式
より求め、(3)式よりMS−DOS3.Xの各パラメ
ータを計算し、図7に示すMS−DOS3.Xの論理フ
ォーマットを得る。First, the format processing section 4 uses the MS-D.
OS4. The total number of formatted disk spaces of the magneto-optical disk 3 of X, 127,774,720, is checked, and the total number of physical sectors is 24.
Based on 9,848, f is determined to be 4 from the equation (1). And
The total number of logical sectors Ln and the logical sector size Ls are obtained from equation (2), and MS-DOS3. The respective parameters of MS-DOS3.X shown in FIG. Get the logical format of X.
【0045】すなわち、FATタイプを16に、ブートセ
クタを1に、論理セクタの総数を62462にする。セクタ当
りのバイト数を2048に、クラスタ当りのセクタ数を2
に、クラスタ当りのバイト数を4096にクラスタの総数を
31195にする。フォーマットすべきディスク空間の総数
を127,774,720に、FATの数を2に、FATの最初のセ
クタを1にする。That is, the FAT type is set to 16, the boot sector is set to 1, and the total number of logical sectors is set to 62462. 2048 bytes per sector, 2 sectors per cluster
, The number of bytes per cluster to 4096 and the total number of clusters to
Set to 31195. The total number of disk spaces to be formatted is 127,774,720, the number of FATs is 2, and the first sector of FAT is 1.
【0046】また、FAT当りのセクタ数を31に、ルー
トディレクトリの最初のセクタを63に、ルートディレク
トリにおけるセクタ数を8にする。最大ルートディレク
トリファイルエントリを512に、データ領域の最初のセ
クタ数を71にする。Further, the number of sectors per FAT is set to 31, the first sector of the root directory is set to 63, and the number of sectors in the root directory is set to 8. Set the maximum root directory file entry to 512 and the first sector number of the data area to 71.
【0047】そして、フォーマット処理部4は、(4)
式によりMS−DOS4.X用のパラメータに変換する
と、図7に示すMS−DOS4.Xの論理フォーマット
となる。Then, the format processing section 4 (4)
By the formula MS-DOS4. When converted into the parameters for X, the MS-DOS4. It becomes the X logical format.
【0048】すなわち、FATタイプを16に、ブート
(起動)セクタ数を4に、論理セクタの総数を249848に
する。1セクタ当りのバイト数を512に、1クラスタ当り
のセクタ数を8に、1クラスタ当りのバイト数を4096にす
る。クラスタの総数を31195に、フォーマットすべきデ
ィスク空間の総数を127,774,720に、FAT数を2に、F
ATの最初のセクタを4にする。That is, the FAT type is set to 16, the boot sector number is set to 4, and the total number of logical sectors is set to 249848. The number of bytes per sector is 512, the number of sectors per cluster is 8, and the number of bytes per cluster is 4096. The total number of clusters is 31195, the total disk space to be formatted is 127,774,720, the number of FATs is 2, and F
Set the first sector of AT to 4.
【0049】また、FAT当りのセクタ数を124に、ル
ートディレクトリの最初のセクタを252に、ルートディ
レクトリにおけるセクタ番号を32に、最大ルートディレ
クトリファイルエントリを512に、データ領域の最初の
セクタ数を284にする。Further, the number of sectors per FAT is set to 124, the first sector of the root directory is set to 252, the sector number in the root directory is set to 32, the maximum root directory file entry is set to 512, and the first sector number of the data area is set. Set to 284.
【0050】そして、MS−DOS4.Xの論理フォー
マットで光磁気ディスク3に書き込んでおく。次に、予
めフォーマット処理部4によって、MS−DOS4.X
の論理フォーマットで書き込まれた光磁気ディスク3を
OS部12でアクセスする。Then, MS-DOS4. The data is written in the magneto-optical disk 3 in the X logical format. Next, the format processing unit 4 preliminarily causes the MS-DOS 4. X
The OS unit 12 accesses the magneto-optical disk 3 written in the logical format of.
【0051】まず、図6において、ステップ101で、
アプリケーションプログラムからファイルアクセス要求
を行なう。次に、ステップ102で、MS−DOSのF
ATファイルシステムをOS部12に読み込む。さら
に、デバイスドライバー21をOS部12に読み込み、
ステップ103で、デバイスドライバー21によりOS
部12が使用するOSがMS−DOS3.Xであるか否
かを判断する。 (c)ここで、OSがMS−DOS3.Xである場合に
は、ステップ104で、デバイスドライバー21は、光
磁気ディスク3のMS−DOS4.XのパラメータをM
S−DOS3.Xのパラメータに変換する。First, in FIG. 6, in step 101,
Make a file access request from the application program. Next, in step 102, the MS-DOS F
The AT file system is read into the OS section 12. Furthermore, the device driver 21 is loaded into the OS section 12,
In step 103, the device driver 21 causes the OS to
The OS used by the unit 12 is MS-DOS3. It is determined whether it is X or not. (C) Here, the OS is MS-DOS3. If it is X, the device driver 21 determines in step 104 that the MS-DOS 4 .. Set the parameter of X to M
S-DOS3. Convert to X parameter.
【0052】つまり、図7に示すように、MS−DOS
3.XとMS−DOS4.Xとの表面的なサイズ、例え
ばクラスタサイズ,FATタイプ等は一致させておく。
これ以外のパラメータに対しては、OSがMS−DOS
3.Xである場合には、光磁気ディスク3にMS−DO
S4.Xで書き込まれている値を、4倍または1/4倍
に変換する。That is, as shown in FIG. 7, MS-DOS
3. X and MS-DOS 4. The superficial size of X, for example, the cluster size, the FAT type, and the like are matched.
For other parameters, the OS is MS-DOS
3. If X, MS-DO on the magneto-optical disk 3
S4. The value written in X is converted to 4 times or 1/4 times.
【0053】次に、ステップ105で、インターフェイ
スカード22を介して光磁気ディスク3上のデータの書
き込みまたは読み出しを行なう。 (d)一方、MS−DOS4.Xでは、ステップ106
で、デバイスドライバー21は、メディア上のパラメー
タの変換を行なわないでパラメータそのままを用いる。Next, at step 105, writing or reading of data on the magneto-optical disk 3 is performed through the interface card 22. (D) On the other hand, MS-DOS4. In X, step 106
Then, the device driver 21 uses the parameters as they are without converting the parameters on the medium.
【0054】このように本実施例によれば、フォーマッ
ト処理部4は、光磁気ディスク3の総物理セクタ数Pn
をある係数fで割ったときの値が下位オペレーティング
システムのセクタ数に最も近くなる前記係数fを求め、
前記値を総論理セクタ数Lnとし、物理セクタサイズP
sに前記係数fを掛けた値を論理セクタサイズLsと
し、これら総論理セクタ数Ln及び論理セクタサイズL
sを用いてその他の論理フォーマットのパラメータを求
める。そして、前記係数fを用いてMS−DOS3.X
の論理フォーマットをMS−DOS4.Xの論理フォー
マットに変換しその論理フォーマットを外部記憶装置に
書き込んでおく。As described above, according to this embodiment, the format processing unit 4 makes the total number of physical sectors Pn of the magneto-optical disk 3 Pn.
Is obtained by dividing by a coefficient f, the coefficient f is closest to the number of sectors of the lower operating system.
With the above value as the total number of logical sectors Ln, the physical sector size P
A value obtained by multiplying s by the coefficient f is defined as a logical sector size Ls, and the total number of logical sectors Ln and the logical sector size L
Use s to find parameters for other logical formats. Then, using the coefficient f, MS-DOS3. X
The logical format of MS-DOS4. It is converted to the X logical format and the logical format is written in the external storage device.
【0055】そして、MS−DOS3.Xを用いたパー
ソナルコンピュータ本体がMS−DOS4.Xによって
フォーマットされた光磁気ディスク3をアクセスする場
合に、インターフェイス装置2に備えたデバイスドライ
バー21が、光磁気ディスク3上の論理フォーマットを
MS−DOS3.Xの論理フォーマットに変換する。Then, MS-DOS3. The personal computer main body using X is MS-DOS4. When accessing the magneto-optical disk 3 formatted by X, the device driver 21 provided in the interface device 2 sets the logical format on the magneto-optical disk 3 to MS-DOS3. Convert to X logical format.
【0056】すなわち、本実施例では、通常のフォーマ
ットと違い、係数fを適切に設定して予めMS−DOS
3.XからMS−DOS4.Xへの変換を行っているの
で、コンピュータ本体が使用するOSが下位OSでかつ
光磁気ディスク3のOSが上位OSである場合でも、デ
バイスドライバー21によって、容易にMS−DOS
4.XからMS−DOS3.Xに変換することで、コン
ピュータ本体側ではMS−DOS3.Xであっても、M
S−DOS4.Xの光磁気ディスク3を容易にアクセス
できる。また、この逆の場合も同様である。That is, in this embodiment, unlike the normal format, the coefficient f is appropriately set and the MS-DOS is previously set.
3. X to MS-DOS4. Since the conversion to X is performed, even if the OS used by the computer main body is the lower OS and the OS of the magneto-optical disk 3 is the upper OS, the device driver 21 can easily perform the MS-DOS.
4. X to MS-DOS3. By converting to MS-DOS3.X. Even if X, M
S-DOS 4. The X magneto-optical disk 3 can be easily accessed. The same applies to the opposite case.
【0057】これにより、データをアクセスすることが
でき、よって、データの互換が行える。なお、本発明は
上述した実施例に限定されるものではない。実施例では
MS−DOS3.X,4.Xについて説明したが、デバ
イスドライバー21を用いれば、MS−DOS3.1,
3.3X,4.0X,5.0,5.Xなどに対応するこ
とができる。As a result, the data can be accessed, and the data can be interchanged. The present invention is not limited to the above embodiment. In the embodiment, MS-DOS3. X, 4. X has been described, but if the device driver 21 is used, MS-DOS 3.1,
3.3X, 4.0X, 5.0, 5. It can correspond to X and the like.
【0058】[0058]
【発明の効果】本発明によれば、フォーマット処理部4
は、下位オペレーティングシステムの論理フォーマット
を上位のオペレーティングシステムの論理フォーマット
に変換しその論理フォーマットを外部記憶装置に書き込
んでおく。According to the present invention, the format processing unit 4
Converts the logical format of the lower operating system into the logical format of the upper operating system and writes the logical format in the external storage device.
【0059】そして、下位オペレーティングシステムを
用いたパーソナルコンピュータ本体が上位オペレーティ
ングシステムによってフォーマットされた外部記憶装置
をアクセスする場合に、インターフェイス装置に備えた
フォーマット変換部が、外部記憶装置上のデータの論理
フォーマットを下位オペレーティングシステムによるデ
ータの論理フォーマットに変換する。When the main body of the personal computer using the lower operating system accesses the external storage device formatted by the upper operating system, the format conversion unit provided in the interface device makes the logical format of the data on the external storage device. To the logical format of the data by the lower operating system.
【0060】従って、下位オペレーティングシステムで
あっても、上位オペレーティングシステムで作成された
外部記憶装置のデータをアクセスすることができ、よっ
てデータの互換が行える。Therefore, even the lower operating system can access the data of the external storage device created by the upper operating system, and the data can be compatible.
【図1】本発明の原理図である。FIG. 1 is a principle diagram of the present invention.
【図2】本発明の実施例1の構成ブロック図である。FIG. 2 is a configuration block diagram of a first embodiment of the present invention.
【図3】オペレーティングシステムユーザメモリの構成
図である。FIG. 3 is a configuration diagram of an operating system user memory.
【図4】ディスク上の各領域の配置を示す図である。FIG. 4 is a diagram showing an arrangement of areas on a disc.
【図5】ディスク上のセクタ及びトラックとの関係を示
す図である。FIG. 5 is a diagram showing a relationship with sectors and tracks on a disc.
【図6】実施例1における処理フローチャートである。FIG. 6 is a processing flowchart in the first embodiment.
【図7】3.5インチ光ディスクの論理フォーマットを
示す図である。FIG. 7 is a diagram showing a logical format of a 3.5-inch optical disc.
1・・パーソナルコンピュータ本体 2・・インターフェイス装置 3・・光磁気ディスク 4・・フォーマット処理部 11・・マイクロプロセッサ 12・・OS部 13・・キーボード 14・・ディスプレイ装置 21・・デバイスドライバー 22・・インターフェイスカード 31・・終端抵抗 1 ... Personal computer main body 2 ... Interface device 3 ... Magneto-optical disk 4 ... Format processing unit 11 ... Microprocessor 12 ... OS unit 13 ... Keyboard 14 ... Display device 21 ... Device driver 22 ... Interface card 31 ... Terminator
Claims (3)
オペレーティングシステムを備えたパーソナルコンピュ
ータ本体と前記いずれかのオペレーティングシステムに
より管理される外部記憶装置とを接続するためのインタ
ーフェイス装置において、 下位オペレーティングシステムの論理フォーマットを上
位オペレーティングシステムの論理フォーマットに変換
し変換された論理フォーマットで前記外部記憶装置をフ
ォーマットするフォーマット処理部と、 前記下位オペレーティングシステムを用いたパーソナル
コンピュータ本体が前記フォーマット処理部によってフ
ォーマットされた前記外部記憶装置をアクセスする場合
に、前記外部記憶装置上の論理フォーマットを前記下位
オペレーティングシステムの論理フォーマットに変換す
るフォーマット変換部とを備えたことを特徴とするイン
ターフェイス装置。1. An interface device for connecting a personal computer main body having a higher operating system or a lower operating system to an external storage device managed by any one of the operating systems, wherein a logical format of the lower operating system is set to a higher level. A format processing unit for converting the logical format of the operating system and formatting the external storage device in the converted logical format; and a personal computer main body using the lower operating system, the external storage device formatted by the format processing unit. When accessing, a format for converting the logical format on the external storage device into the logical format of the lower operating system. Interface device being characterized in that a mat conversion unit.
憶装置の総物理セクタ数をある係数で割ったときの値が
下位オペレーティングシステムのセクタ数に最も近くな
るような前記係数を求め、前記値を総論理セクタ数と
し、物理セクタサイズに前記係数を掛けた値を論理セク
タサイズとし、これら総論理セクタ数及び論理セクタサ
イズを用いてその他の論理フォーマットのパラメータを
求め、前記係数を用いて前記上位オペレーティングシス
テムの論理フォーマットへの変換を行なうことを特徴と
する請求項1記載のインターフェイス装置。2. The format processing unit obtains the coefficient such that a value obtained by dividing the total number of physical sectors of the external storage device by a certain coefficient is the closest to the number of sectors of the lower operating system, and the value is calculated. The total number of logical sectors is defined as the total number of logical sectors, and the value obtained by multiplying the physical sector size by the coefficient is defined as the logical sector size. Using these total number of logical sectors and logical sector size, parameters for other logical formats are obtained, and the coefficient is used to determine the upper order. The interface device according to claim 1, wherein the interface device converts the operating system into a logical format.
ペレーティングシステムを用いたパーソナルコンピュー
タ本体が前記フォーマット処理部によってフォーマット
された前記外部記憶装置をアクセスする場合に、前記外
部記憶装置上の論理フォーマットの変換を行わないこと
を特徴とする請求項1記載のインターフェイス装置。3. The format conversion unit converts a logical format on the external storage device when a personal computer main body using the higher level operating system accesses the external storage device formatted by the format processing unit. The interface device according to claim 1, wherein
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15375092A JPH05341915A (en) | 1992-06-12 | 1992-06-12 | Interface device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP15375092A JPH05341915A (en) | 1992-06-12 | 1992-06-12 | Interface device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05341915A true JPH05341915A (en) | 1993-12-24 |
Family
ID=15569303
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP15375092A Pending JPH05341915A (en) | 1992-06-12 | 1992-06-12 | Interface device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05341915A (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02208714A (en) * | 1989-02-09 | 1990-08-20 | Nec Corp | Different kind data input/output system |
-
1992
- 1992-06-12 JP JP15375092A patent/JPH05341915A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02208714A (en) * | 1989-02-09 | 1990-08-20 | Nec Corp | Different kind data input/output system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5497492A (en) | System and method for loading an operating system through use of a fire system | |
JP3005645B2 (en) | How to read and write files on non-erasable storage media | |
US5437018A (en) | Emulation of semiconductor and magnetic auxiliary storage devices with semiconductor memory | |
US6999913B2 (en) | Emulated read-write disk drive using a protected medium | |
US7702861B2 (en) | Format mapping scheme for universal drive device | |
US5765201A (en) | Changing page size in storage media of computer system | |
US20110138142A1 (en) | Method and system for automatically preserving persistent storage | |
WO2000019314A9 (en) | Method and device for booting a cd-rom from a single disk image having multiple emulations | |
US6591356B2 (en) | Cluster buster | |
US6748511B2 (en) | Resizing a protected area on a hard disk | |
JP2000298608A (en) | Computer data storage medium and memory managing method | |
US6473655B1 (en) | Data processing system and method for creating a virtual partition within an existing partition in a hard disk drive | |
US6233105B1 (en) | Method of disk formatting | |
JPS60233749A (en) | Memory file device | |
US5608905A (en) | DOS and Macintosh preformatted computer storage media | |
US7822937B2 (en) | Method and apparatus for modifying reserve area of disk drive or memory | |
RU2155369C2 (en) | Direct-access storage device, which capacity is greater than 528 mb, and method for its embodiment in personal computers | |
JPS6237417B2 (en) | ||
JPH05341915A (en) | Interface device | |
US5757749A (en) | Information processing system operable with a detachable recording medium | |
JP2912771B2 (en) | Memory card device | |
US20080221859A1 (en) | Emulation Mode for Emulating Optical Record Medium Types | |
JPH0254327A (en) | Control system for disk data | |
JP3066623B2 (en) | Disk cache control method | |
US6751692B1 (en) | Adapter for memory device and connecting method using the same |