JPH0963175A - Magnetic disk controller - Google Patents

Magnetic disk controller

Info

Publication number
JPH0963175A
JPH0963175A JP21154695A JP21154695A JPH0963175A JP H0963175 A JPH0963175 A JP H0963175A JP 21154695 A JP21154695 A JP 21154695A JP 21154695 A JP21154695 A JP 21154695A JP H0963175 A JPH0963175 A JP H0963175A
Authority
JP
Japan
Prior art keywords
magnetic disk
sector
partition
read
partition information
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
JP21154695A
Other languages
Japanese (ja)
Inventor
茂 ▲高▼橋
Shigeru Takahashi
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP21154695A priority Critical patent/JPH0963175A/en
Publication of JPH0963175A publication Critical patent/JPH0963175A/en
Pending legal-status Critical Current

Links

Abstract

(57)【要約】 【構成】磁気ディスク制御装置1は磁気ディスク装置1
0内の磁気ディスク102よりセクタを読み出す回路1
1を用いて読み出したセクタから識別コード30の検索
を行うパーティション情報セクタ検索器12により検索
されたセクタからセクタ番号32,33を抽出しパーテ
ィションテーブル141の作成器13および作成された
テーブル141の格納メモリ14よりなる。磁気ディス
ク装置10は磁気ディスク102,磁気ディスク上のデ
ータを再生する回路101,磁気ディスク102を論理
的に分割したパーティション103および情報セクタ1
04よりなる。 【効果】ユーザの使い勝手が向上し、用途を広げること
ができ、先頭セクタの摩耗によるアクセスエラーを避け
ることができる。
(57) [Summary] [Structure] The magnetic disk controller 1 is the magnetic disk device 1.
Circuit 1 for reading a sector from the magnetic disk 102 in 0
The sector number 32, 33 is extracted from the sector retrieved by the partition information sector retrieving unit 12 which retrieves the identification code 30 from the sector read by using 1 to store the creating unit 13 of the partition table 141 and the created table 141. It comprises a memory 14. The magnetic disk device 10 includes a magnetic disk 102, a circuit 101 for reproducing data on the magnetic disk, a partition 103 in which the magnetic disk 102 is logically divided, and an information sector 1.
It consists of 04. [Effect] The usability for the user is improved, the application can be expanded, and an access error due to wear of the leading sector can be avoided.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は磁気ディスクの制御装置
に係り、特に、磁気ディスクのパーティション管理を行
う磁気ディスク制御装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a magnetic disk controller, and more particularly to a magnetic disk controller for managing a partition of a magnetic disk.

【0002】[0002]

【従来の技術】中央処理装置(以下CPU)が、磁気デ
ィスクに対してデータの読み出しおよび書き込みを行う
場合、一つの磁気ディスクを複数の異なったオペレーテ
ィングシステムで使用する場合など、各オペレーティン
グシステムごとに任意の数のセクタを含むパーティショ
ンという区切りを付けることにより、一つの磁気ディス
ク装置を論理的に複数の磁気ディスク装置に分割して管
理する。
2. Description of the Related Art A central processing unit (hereinafter referred to as a CPU) reads data from or writes data to a magnetic disk, or uses one magnetic disk with a plurality of different operating systems. By partitioning a partition including an arbitrary number of sectors, one magnetic disk device is logically divided into a plurality of magnetic disk devices for management.

【0003】従来、磁気ディスクのパーティションを管
理する方法は、例えば、図4のように、セクタ読み出し
回路41を用いてパーティション情報を含む磁気ディス
クの物理的先頭セクタ404を読み出し、このセクタを
基にパーティションテーブル作成器42を用いてメモリ
43上に各パーティションの開始セクタおよび終了セク
タを含むパーティションテーブル431を作成し、以後
の磁気ディスク装置に対するデータの読み出しおよび書
き込みはこのパーティションテーブルに基づき論理セク
タを物理セクタに変換して行うという方法がある(土本
聡著,“ハードディスク活用ハンドブック”,P.38
〜53,技術評論社)。
Conventionally, a method of managing a partition of a magnetic disk is, for example, as shown in FIG. 4, a physical read sector 404 of a magnetic disk including partition information is read using a sector read circuit 41, and based on this sector. The partition table maker 42 is used to create a partition table 431 including the start sector and end sector of each partition on the memory 43, and subsequent reading and writing of data with respect to the magnetic disk device uses the physical sector based on this partition table. There is a method of converting to sectors (Satoshi Tsuchimoto, "Hard Disk Utilization Handbook", p. 38)
~ 53, Technical Review Company).

【0004】[0004]

【発明が解決しようとする課題】従来技術では、(1)
磁気ディスクの物理的先頭セクタを既に使用しているシ
ステムでは、ここにパーティション情報を持つことが出
来ないため、パーティションを使用することができな
い、(2)パーティション情報セクタがアクセスの繰返
しにより物理的に摩耗した場合、パーティション情報が
読み出せず、磁気ディスクにアクセスできなくなるとい
う問題があった。
According to the prior art, (1)
In a system that has already used the physical first sector of the magnetic disk, the partition information cannot be stored here, so the partition cannot be used. (2) The partition information sector is physically accessed by repeated access. When worn, there is a problem that the partition information cannot be read and the magnetic disk cannot be accessed.

【0005】本発明の目的は、(1)物理的先頭セクタ
を既に使用しているシステム、または、(2)摩耗によ
り磁気ディスクの物理的先頭セクタが使用できなくなっ
たシステムでもパーティション管理を行うことができる
磁気ディスク制御装置を提供することにある。
An object of the present invention is to perform partition management even in (1) a system that has already used the physical leading sector, or (2) a system in which the physical leading sector of a magnetic disk cannot be used due to wear. Another object of the present invention is to provide a magnetic disk control device capable of achieving the above.

【0006】[0006]

【課題を解決するための手段】本発明では、パーティシ
ョン情報セクタの先頭に識別コードを置く。その後、磁
気ディスクの任意のセクタにパーティション情報を置
く。システム起動時にパーティション情報セクタを検索
し、この内容に基づいて主メモリ内にパーティションテ
ーブルを作成する。以後の磁気ディスクアクセスはこの
パーティションテーブルを用いて行う。
According to the present invention, an identification code is placed at the head of a partition information sector. After that, the partition information is placed in any sector of the magnetic disk. At system startup, the partition information sector is searched and the partition table is created in the main memory based on the contents. The subsequent magnetic disk access is performed using this partition table.

【0007】[0007]

【作用】本発明では、パーティション情報セクタの先頭
の識別コードを検索することにより、磁気ディスク上の
どのセクタにパーティション情報が存在しても、これを
入手することを可能にする。
According to the present invention, by searching the identification code at the beginning of the partition information sector, it is possible to obtain the partition information regardless of which sector exists on the magnetic disk.

【0008】[0008]

【実施例】以下、本発明の実施例について図面を参照し
て詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0009】図1は本発明の実施例の装置を示すブロッ
ク図である。図において磁気ディスク制御装置1は磁気
ディスク装置10内の磁気ディスク102よりセクタを
読み出す回路11,回路11を用いて読み出したセクタ
から図3の識別コード30の検索を行うパーティション
情報セクタ検索器12,検索器12により検索されたセ
クタから図3の開始セクタ番号32および終了セクタ番
号33を抽出しパーティションテーブル141を作成す
るパーティションテーブル作成器13および作成された
テーブル141を格納するメモリ14より構成される。
磁気ディスク装置10は磁気ディスク102および磁気
ディスク上のデータを再生する回路101,磁気ディスク
102を論理的に分割したパーティション103および
パーティション情報セクタ104より構成されている。
FIG. 1 is a block diagram showing an apparatus according to an embodiment of the present invention. In the figure, a magnetic disk controller 1 is a circuit 11 for reading a sector from a magnetic disk 102 in a magnetic disk device 10, a partition information sector searcher 12 for searching the sector read by the circuit 11 for an identification code 30 of FIG. A partition table creator 13 that creates the partition table 141 by extracting the start sector number 32 and the end sector number 33 of FIG. 3 from the sectors searched by the searcher 12, and a memory 14 that stores the created table 141. .
The magnetic disk device 10 comprises a magnetic disk 102, a circuit 101 for reproducing data on the magnetic disk, a partition 103 obtained by logically dividing the magnetic disk 102, and a partition information sector 104.

【0010】次に本発明の動作について図2の動作フロ
ーチャートを参照して説明する。
Next, the operation of the present invention will be described with reference to the operation flowchart of FIG.

【0011】システムが起動されると、読み出し回路1
1は、磁気ディスクの開始セクタの読み出し20を行
う。セクタが読み出されたならば、検索器12は、セク
タ内データに識別コード30が含まれているかを確認す
る。
When the system is activated, the readout circuit 1
1 reads 20 the start sector of the magnetic disk. When the sector is read, the searcher 12 checks whether the data in the sector includes the identification code 30.

【0012】セクタ内データに識別コードが含まれてい
ない場合、セクタが磁気ディスク内の最終セクタか確認
22し、最終セクタでなければ次のセクタの読み出しを
行う。磁気ディスクの最終セクタであった場合は、パー
ティションは設定されていないと判断し、パーティショ
ンテーブル141には、磁気ディスクの開始セクタ番号
および最終セクタ番号を登録する。
If the data in the sector does not include the identification code, it is confirmed 22 whether the sector is the last sector in the magnetic disk, and if it is not the last sector, the next sector is read. If it is the last sector of the magnetic disk, it is determined that the partition is not set, and the start sector number and the last sector number of the magnetic disk are registered in the partition table 141.

【0013】セクタ内データに識別コードが含まれてい
た場合、作成器13を用いてパーティションテーブル1
41に、各パーティションの開始セクタ番号および終了
セクタ番号を登録する。
When the data in the sector includes the identification code, the partition table 1 is generated by using the generator 13.
The start sector number and end sector number of each partition are registered in 41.

【0014】以上、図2の動作フローチャートに従って
パーティションテーブルが生成された後の磁気ディスク
装置に対するデータの読み出しおよび書き込みは、この
パーティションテーブルに基づき論理セクタを物理セク
タに変換して行う。
As described above, reading and writing of data with respect to the magnetic disk device after the partition table is generated according to the operation flowchart of FIG. 2 is performed by converting the logical sector into a physical sector based on the partition table.

【0015】なお、図1では、パーティション情報セク
タを一つとしたが、本発明はこれに限らず、複数のパー
ティション情報セクタを設けてもよい。
In FIG. 1, one partition information sector is used, but the present invention is not limited to this, and a plurality of partition information sectors may be provided.

【0016】[0016]

【発明の効果】本発明によれば、パーティション情報セ
クタの先頭に識別コードを付加し、磁気ディスク上のど
のセクタにパーティション情報が存在しても、これを入
手できるようにすることにより、(1)物理的先頭セク
タを既に使用しているシステム、または、(2)摩耗に
より磁気ディスクの物理的先頭セクタが使用できなくな
ったシステムでもパーティション管理を行うことが可能
になる。これにより次の効果がある。
According to the present invention, an identification code is added to the head of a partition information sector so that it can be obtained regardless of which sector on the magnetic disk has partition information. It is possible to perform partition management even in a system that has already used the physical head sector or (2) a system in which the physical head sector of the magnetic disk is no longer usable due to wear. This has the following effects.

【0017】(1)磁気ディスク装置におけるユーザの
使い勝手を向上できる。
(1) The usability of the user in the magnetic disk device can be improved.

【0018】(2)先頭セクタの摩耗によるアクセスエ
ラーを避けることができる。
(2) It is possible to avoid an access error due to wear of the leading sector.

【0019】また複数のパーティション情報セクタを設
けた場合は、一つのパーティション情報セクタを読み出
すことができなくても他の情報セクタからパーティショ
ンテーブルを生成できる。
When a plurality of partition information sectors are provided, even if one partition information sector cannot be read, the partition table can be generated from other information sectors.

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

【図1】磁気ディスク制御装置ブロック図。FIG. 1 is a block diagram of a magnetic disk control device.

【図2】パーティション管理を行うための動作のフロー
チャート。
FIG. 2 is a flowchart of an operation for performing partition management.

【図3】パーティション情報セクタの内容の説明図。FIG. 3 is an explanatory diagram of contents of a partition information sector.

【図4】従来装置のブロック図。FIG. 4 is a block diagram of a conventional device.

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

1…磁気ディスク制御装置、10…磁気ディスク装置、
11…セクタ読み出し回路、12…パーティション情報
セクタ検出器、13…パーティションテーブル作成器、
14…メモリ、101…データ再生器、102…磁気デ
ィスク、103…パーティション、141…パーティシ
ョンテーブル。
1 ... Magnetic disk controller, 10 ... Magnetic disk device,
11 ... Sector read circuit, 12 ... Partition information sector detector, 13 ... Partition table generator,
14 ... Memory, 101 ... Data reproducer, 102 ... Magnetic disk, 103 ... Partition, 141 ... Partition table.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】磁気ディスク上の物理セクタに記録された
パーティション情報を読み出し、読み出した情報に基づ
き一つの磁気ディスク装置を論理的に複数のディスク装
置に分割して、データの読み出しおよび書き込みを行う
機能を備えた磁気ディスク制御装置において、前記パー
ティション情報のセクタ識別コードおよび前記パーティ
ション情報のセクタ検索器を設けたことを特徴とする磁
気ディスク制御装置。
1. Partition information recorded in a physical sector on a magnetic disk is read, and one magnetic disk device is logically divided into a plurality of disk devices based on the read information to read and write data. A magnetic disk controller having a function, comprising a sector identification code of the partition information and a sector searcher of the partition information.
JP21154695A 1995-08-21 1995-08-21 Magnetic disk controller Pending JPH0963175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21154695A JPH0963175A (en) 1995-08-21 1995-08-21 Magnetic disk controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21154695A JPH0963175A (en) 1995-08-21 1995-08-21 Magnetic disk controller

Publications (1)

Publication Number Publication Date
JPH0963175A true JPH0963175A (en) 1997-03-07

Family

ID=16607619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21154695A Pending JPH0963175A (en) 1995-08-21 1995-08-21 Magnetic disk controller

Country Status (1)

Country Link
JP (1) JPH0963175A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030072498A (en) * 2002-03-04 2003-09-15 삼성전자주식회사 Method for partitioning hard disk of an AV device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030072498A (en) * 2002-03-04 2003-09-15 삼성전자주식회사 Method for partitioning hard disk of an AV device

Similar Documents

Publication Publication Date Title
EP0487331B1 (en) Directory management system
US7831578B2 (en) Apparatus for file system management with virtual file name
JPH1031560A (en) Instruction execution method in CD-ROM disk driver
US6910038B1 (en) Methods for efficient host processing of data files selected for recording to an optical disc media
US8316008B1 (en) Fast file attribute search
CN108304144A (en) Data writing-in and reading method and system, and data reading-writing system
JPH0963175A (en) Magnetic disk controller
US6574704B1 (en) Information storage management device and method, control device and method
JPH0778187A (en) Recording medium, electronic publication utilization system, and processing method
JPS63104284A (en) Disk file access system
JP2002091806A (en) Filing system
JPS63177266A (en) image file device
JPS59136860A (en) disk controller
JP3016255B2 (en) Database management system
JP3093657B2 (en) FBA-CKD conversion method
JPS62177642A (en) File management system for postscript filing device
JPS619721A (en) Sector control system of magnetic disk device
JPH01255028A (en) How to access external storage devices
JPS63291145A (en) Method for managing file
JPS61103242A (en) High-speed retrieval system
JPH02299036A (en) Information recording and reproducing method
WO2022044458A1 (en) Information processing device, information processing method, and information processing program
JPS5987572A (en) Disk storage control method
US20080010323A1 (en) Method for duplicating data
JPH0283724A (en) information processing equipment