JPH04151737A - Hard disk controlling system - Google Patents

Hard disk controlling system

Info

Publication number
JPH04151737A
JPH04151737A JP2275348A JP27534890A JPH04151737A JP H04151737 A JPH04151737 A JP H04151737A JP 2275348 A JP2275348 A JP 2275348A JP 27534890 A JP27534890 A JP 27534890A JP H04151737 A JPH04151737 A JP H04151737A
Authority
JP
Japan
Prior art keywords
hdd
ecc
bites
hard disk
plural
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
JP2275348A
Other languages
Japanese (ja)
Inventor
Masayo Nakazoe
中添 昌代
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP2275348A priority Critical patent/JPH04151737A/en
Publication of JPH04151737A publication Critical patent/JPH04151737A/en
Pending legal-status Critical Current

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

PURPOSE:To constitute a system whose flexibility and extendability are further improved by automatically recognizing the number of error correcting code(ECC) bites suited to a hard disk (HDD) to be used, and supporting plural HDD having the different number of the ECC bites. CONSTITUTION:The information of the ECC bites corresponding to each of plural HDD types capable of being supported by a personal computer 1, is preliminarily stored in a memory 2, and the number of the ECC bites suited to the HDD to be used is recognized from the information, so that the plural HDD having the different number of ECC can be controlled by one BIOS. The number of the ECC bites suited to the HDD to be used is automatically recognized, so that the plural HDD having the different ECC bites can be supported. Thus, the number of the ECC bites of the HDD can be recognized. and the plural HDD having the different number of the ECC bites can be controlled.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、誤り訂正を行うためにECC(エラーコレ
クティングコード)バイトを持つ複数タイプのハードデ
ィスク(HDD)をサポートすることのできるパーソナ
ルコンピュータに用いて好適なハードディスク制御方式
に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Application Field) The present invention provides support for multiple types of hard disk drives (HDDs) that have ECC (Error Correcting Code) bytes to perform error correction. The present invention relates to a hard disk control method suitable for use in personal computers capable of controlling.

(従来の技術) 従来、中、大形コンピュータにおいて大容量外部記憶と
して使われていたディスクメモリが、パーソナルコンピ
ュータの分野においてもハードディスク(HDDと呼ぶ
)として標準的にサポートされるようになった。ところ
で、従来パーソナルコンピュータはECC(エラーコレ
クティングコード)バイト数が4バイトのHDDLかサ
ポートしていなかった。このシステムにおいてBIOS
(基本人出力制御システム)は、ECC付きセクタの読
み出し/書き込みを行う場合、セクタ数十ECCバイト
数(4バイト固定)を読み出し/書き込みしていた。
(Prior Art) Disk memories, which have traditionally been used as large-capacity external storage in medium to large-sized computers, have come to be supported as standard hard disks (referred to as HDDs) in the field of personal computers as well. By the way, conventional personal computers did not support HDDL with an ECC (error correcting code) of 4 bytes. In this system BIOS
(Basic Human Output Control System) reads/writes several dozen ECC bytes (fixed at 4 bytes) when reading/writing sectors with ECC.

(発明が解決しようとする課題) ECCバイト数か4バイト以外のHDDをサポートする
パーソナルコンピュータにおいて、このB2O2を使用
すると、ECCバイト数を4バイトとして読み出し/書
き込みを行ってしまい、誤ったデータ処理がなされ、従
ってECCが本来持つ機能を実現しえないばかりかシス
テムが暴走してしまうといった不都合があった。
(Problem to be solved by the invention) If this B2O2 is used in a personal computer that supports an HDD with an ECC byte count other than 4 bytes, reading/writing will be performed with the ECC byte count set to 4 bytes, resulting in incorrect data processing. Therefore, there were inconveniences such as not only not being able to realize the functions that ECC originally had, but also causing the system to go out of control.

この発明は上記事情に鑑みてなされたものであり、パー
ソナルコンピュータシステムにおいて、HDDのECC
バイト数を認識し、異なるECCバイト数を持つ複数の
HDDを制御することのできるハードディスク制御方式
を提供することを目的とする。
This invention was made in view of the above-mentioned circumstances, and in a personal computer system, the ECC of the HDD is
It is an object of the present invention to provide a hard disk control method capable of recognizing the number of bytes and controlling a plurality of HDDs having different numbers of ECC bytes.

[発明の構成コ (課題を解決するための手段) 本発明は、誤り訂正を行うためにFCC(エラーコレク
ティングコード)バイトを持つ複数タイプのハードディ
スク(HDD)をサポートするパーソナルコンピュータ
システムにおいて、システムからの要求に従い使用する
HDDのタイプを設定する環境設定のための手段と、こ
こで設定された内容に従い、そのHDDに合った制御情
報が格納されるパラメータテーブルの先頭アドレスを取
出す初期化のための手段と、上記アドレスに格納された
プログラムエリアから対応するECCバイトの情報を得
、使用HDDのECCバイトを認識するECC付きセク
タの参照のための手段とを具備することを特徴とする。
[Structure of the Invention (Means for Solving the Problem) The present invention provides a system for a personal computer system that supports multiple types of hard disks (HDDs) having FCC (Error Correcting Code) bytes for error correction. A means for setting the environment to set the type of HDD to be used according to a request from the user, and an initialization method for retrieving the start address of the parameter table in which control information suitable for the HDD is stored according to the contents set here. The present invention is characterized by comprising means for obtaining corresponding ECC byte information from the program area stored at the address and referring to an ECC-equipped sector for recognizing the ECC byte of the HDD in use.

(作 用) 本発明は上記構成において、パーソナルコンピュータが
サポートできる複数のHDDタイプそれぞれに対応した
ECCバイトの情報をあらかじめメモリに格納し、その
情報から使用するHDDにあったECCバイト数を認識
することにより、異なるECC数を持つ複数のHDDを
一つのBIO3で制御することを実現する。
(Function) In the above configuration, the present invention stores in advance ECC byte information corresponding to each of a plurality of HDD types that can be supported by a personal computer in memory, and recognizes the number of ECC bytes suitable for the HDD to be used from that information. By doing so, it is possible to control a plurality of HDDs having different numbers of ECCs with one BIO3.

最近のパーソナルコンピュータは、異なるECCバイト
数を持つHDDを複数サポートするものが多いが、本発
明では、使用するHDDにあったECCバイト数を自動
認識することにより、異なるECCバイト数を持つ複数
のHDDをサポートすることを可能にする。
Many recent personal computers support multiple HDDs with different numbers of ECC bytes, but the present invention automatically recognizes the number of ECC bytes suitable for the HDD being used, thereby supporting multiple HDDs with different numbers of ECC bytes. Enables HDD support.

(実施例) 以下、図面を使用して本発明実施例について詳細に説明
する。第1図は本発明の実施例を示すブロック図である
。図において、符号1はCPUであり、システム全体を
制御する。符号2はバッテリバックアップされたCMO
Sメモリであり、使用するHDDタイプを示す情報(こ
こではタイプ1又はタイプ2とする)が格納される。符
号3はRAMであり、HDDタイプ1.HDDタイプ2
それぞれのHDDパラメータテーブルの先頭アドレスが
格納される。符号4はROMであり、HDDタイプ1.
HDDタイプ2それぞれのHDDパラメータテーブルと
セットアツププログラム及び初期化プログラムが格納さ
れている。
(Example) Hereinafter, an example of the present invention will be described in detail using the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, reference numeral 1 is a CPU, which controls the entire system. Code 2 is battery backed CMO
This is an S memory, and information indicating the HDD type to be used (here, type 1 or type 2) is stored. Reference numeral 3 is RAM, and HDD type 1. HDD type 2
The starting address of each HDD parameter table is stored. Code 4 is ROM, HDD type 1.
The HDD parameter table, setup program, and initialization program for each HDD type 2 are stored.

符号5は使用されるHDDのタイプ(タイプ1/タイプ
2)に固有のハードディスクコントローラ(HDC)で
あり、CPUIとは独立してHDDのフォーマット制御
ならびにリードライト制御を行う。符号6は使用対象と
なるHDDであり、ECCバイト数を異にするタイプ1
またはタイプ2のいずれかのHDDが接続される。
Reference numeral 5 denotes a hard disk controller (HDC) specific to the type of HDD used (type 1/type 2), which performs format control and read/write control of the HDD independently of the CPUI. Code 6 is the HDD to be used, type 1 with a different number of ECC bytes.
or type 2 HDD is connected.

第2図は本発明実施例の動作を示すフローチャートであ
り、同図(a)はセットアツプルーチン、同図(b)は
初期化ルーチン、同図(c)はECC付きセクタのリー
ドライトルーチンである。図において、符号21はHD
DOタイプをCMOSメモリ2に格納するステップ、符
号22はCMOSメモリ2に格納された)fDDタイプ
を読み出すステップであり、HDDタイプをCMOSメ
モリ2からリードする。符号23はパラメータテーブル
アドレスを設定するステップであり、CMOSメモリ2
から読み出されたHDDタイプのHDDパラメータテー
ブルの先頭アドレスをRAM3に格納する。符号24は
ROM4から該当HDDタイプのECCバイト数を読み
出すステップであり、RAM3に格納されたHDDパラ
メータテーブル先頭アドレスが示すアドレスからECC
バイト数を読み出す。
FIG. 2 is a flowchart showing the operation of the embodiment of the present invention, in which (a) is a set-up routine, (b) is an initialization routine, and (c) is a read/write routine for sectors with ECC. be. In the figure, numeral 21 indicates HD
The step of storing the DO type in the CMOS memory 2, and the step of reading the fDD type (22) stored in the CMOS memory 2, read the HDD type from the CMOS memory 2. Reference numeral 23 is a step for setting the parameter table address, and the CMOS memory 2
The start address of the HDD parameter table of the HDD type read from is stored in the RAM3. Reference numeral 24 is a step of reading the number of ECC bytes of the corresponding HDD type from the ROM 4, and the ECC is read from the address indicated by the head address of the HDD parameter table stored in the RAM 3.
Read the number of bytes.

以下、本発明実施例の動作について詳細に説明する。ま
ず、セットアツプから説明する。セットアップル−チン
は第2図(a)に示すとおりである。即ち、セットアツ
ププログラムが起動されると、セットアツププログラム
は、使用するHDDタイプをCMOSメモリ2に設定す
る(ステップ21)。セットアツププログラムが終了す
ると、システムは再びプートし、初期化ルーチンへ移る
(ステップ22)。次いで初期化ルーチンの動作を説明
する。初期化ルーチンは第2図(b)に示すとおりであ
る。即ち、パーソナルコンピュータの電源を入れると、
CPUIはCMOSメモリ2からHDDタイプを読み出
す(ステップ22)。
Hereinafter, the operation of the embodiment of the present invention will be explained in detail. First, let's explain the setup. The setup setup is as shown in FIG. 2(a). That is, when the setup program is started, the setup program sets the HDD type to be used in the CMOS memory 2 (step 21). When the setup program is finished, the system boots again and moves to the initialization routine (step 22). Next, the operation of the initialization routine will be explained. The initialization routine is as shown in FIG. 2(b). That is, when you turn on your personal computer,
The CPUI reads the HDD type from the CMOS memory 2 (step 22).

ここで読み出されたHDDタイプに従い、初期化プログ
ラムは、HDDパラメータテーブルの先頭アドレスをR
AM3に格納する(ステップ23)。
According to the HDD type read here, the initialization program sets the start address of the HDD parameter table to R.
The data is stored in AM3 (step 23).

最後に第2図(C)に示されたECC付きセクタの読み
出し/書き込みルーチンの動作について説明する。EC
C付きセクタの読み出し/書き込みルーチンでは、初期
化プログラムで設定されたHDDパラメータテーブルの
先頭アドレスを参照し、ROM4からECCバイト数格
納エリアの内容を読み出す(ステップ24)ことにより
、そのHDDのECCバイト数を認識して、HDDデー
タの読み出し/書き込み動作を行う。
Finally, the operation of the read/write routine for the sector with ECC shown in FIG. 2(C) will be explained. EC
In the read/write routine for the sector with C, the ECC byte of the HDD is read by referring to the start address of the HDD parameter table set in the initialization program and reading the contents of the ECC byte number storage area from ROM4 (step 24). The HDD data read/write operation is performed by recognizing the number.

最近のパーソナルコンピュータは、異なるECCバイト
数を持つHDDを複数サポートするものが多いが、上記
したように本発明では使用するHDDにあったECCバ
イト数を自動認識することにより、異なるECCバイト
数を持つ複数のHDDをサポートすることが可能となる
。このことにより、システム構築の柔軟性、拡張性に寄
与する。
Many recent personal computers support multiple HDDs with different numbers of ECC bytes, but as described above, the present invention automatically recognizes the number of ECC bytes suitable for the HDD being used. It becomes possible to support multiple HDDs. This contributes to flexibility and expandability in system construction.

[発明の効果] 上記したように本発明によれば、使用するHDDにあっ
たECCバイト数を自動認識して、異なるECCバイト
数を持つ複数のHDDをサポトすることができ、これに
より、より柔軟性、拡張性の高いシステムが構築できる
[Effects of the Invention] As described above, according to the present invention, it is possible to automatically recognize the number of ECC bytes suitable for the HDD being used, and to support multiple HDDs with different numbers of ECC bytes. A highly flexible and scalable system can be constructed.

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

第1図は本発明の実施例を示すブロック図、第2図は本
発明実施例の動作を示すフローチャートである。 ] PU。 2・・・ CMO メモリ 3 ・・ RAM。 ・・ R OM。 ドディスク / トローラ (HDC) 6・・・ハードデイ スフ (HDD)  。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a flow chart showing the operation of the embodiment of the present invention. ] P.U. 2... CMO Memory 3... RAM. ... ROM. Hard disk/troller (HDC) 6...Hard disk (HDD).

Claims (1)

【特許請求の範囲】[Claims] 誤り訂正を行うためのECCバイトを持つ複数タイプの
ハードディスクをサポートするパーソナルコンピュータ
システムにおいて、システムで使用可能なハードディス
ク各々のパラメータテーブルを格納する記憶手段と、使
用するハードディスクのタイプを設定する環境設定手段
と、この環境設定手段で設定された内容に従い、上記記
憶手段に格納されたパラメータテーブルの先頭アドレス
を得る手段と、このアドレスに従い上記記憶手段からパ
ラメータテーブルを読出し、使用対象ハードディスクの
ECCバイトを認識する手段とを具備することを特徴と
するハードディスク制御方式。
In a personal computer system that supports multiple types of hard disks having ECC bytes for error correction, a storage means for storing a parameter table for each hard disk usable in the system, and an environment setting means for setting the type of hard disk to be used. and means for obtaining the start address of the parameter table stored in the storage means according to the contents set by the environment setting means, and reading the parameter table from the storage means according to this address and recognizing the ECC byte of the hard disk to be used. 1. A hard disk control method comprising: means for controlling a hard disk;
JP2275348A 1990-10-16 1990-10-16 Hard disk controlling system Pending JPH04151737A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2275348A JPH04151737A (en) 1990-10-16 1990-10-16 Hard disk controlling system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2275348A JPH04151737A (en) 1990-10-16 1990-10-16 Hard disk controlling system

Publications (1)

Publication Number Publication Date
JPH04151737A true JPH04151737A (en) 1992-05-25

Family

ID=17554222

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2275348A Pending JPH04151737A (en) 1990-10-16 1990-10-16 Hard disk controlling system

Country Status (1)

Country Link
JP (1) JPH04151737A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008537805A (en) * 2004-12-13 2008-09-25 シエラ・ロジック、インコーポレイテッド Integrated circuit implementation of a storage shelf router and path control card for use in combination in a high availability mass storage shelf that can be incorporated into a disk array

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008537805A (en) * 2004-12-13 2008-09-25 シエラ・ロジック、インコーポレイテッド Integrated circuit implementation of a storage shelf router and path control card for use in combination in a high availability mass storage shelf that can be incorporated into a disk array

Similar Documents

Publication Publication Date Title
TWI375962B (en) Data writing method for flash memory and storage system and controller using the same
JP4182993B2 (en) MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD
US20090187720A1 (en) Automatic backup method and computer system with automatic backup function
US20060164743A1 (en) Method for copying source data from a source hard disk to multiple target hard disks
JP2006338345A (en) Virtual tape library device, virtual tape library system and virtual tape writing method
JPH04102201A (en) Magnetic disk device
JPH04151737A (en) Hard disk controlling system
US7657719B2 (en) Controller for a copy operation between a host computer and hard disks, a control method thereof, and a recording medium storing a program for executing the control method
JP2004213365A (en) Hard disk drive unit, data recording device, backup device, restore device, backup method, and computer program executable in computer for making computer function as back up device
JP2001100939A (en) Disk array device and control method of disk array
JP7352300B2 (en) Storage device and rebuild method
JPH03290873A (en) Disk type storage device, controller of disk type storage device, and control method for disk type storage device
JP3546741B2 (en) Hard disk unit, user area setting method used therefor, and recording medium recording control program therefor
JP2733478B2 (en) Loading media management method for collective equipment
JPS6329861A (en) Ipl control system
JP2001057058A (en) Information processing device and method for accessing information recording device
JP2003030927A (en) Information processor and information processing method
JPS6116102B2 (en)
JPS6240521A (en) Disk controlling system
JP3066623B2 (en) Disk cache control method
JPH03253932A (en) Operation mode switching control system for floppy disk device
JPH0514353Y2 (en)
JPH0876932A (en) Data recording/reproducing system and its format judging method
JPH07261948A (en) Card type external storage device
JPH09114674A (en) Hard disk device