JP4909383B2 - Hard disk management device - Google Patents

Hard disk management device Download PDF

Info

Publication number
JP4909383B2
JP4909383B2 JP2009163717A JP2009163717A JP4909383B2 JP 4909383 B2 JP4909383 B2 JP 4909383B2 JP 2009163717 A JP2009163717 A JP 2009163717A JP 2009163717 A JP2009163717 A JP 2009163717A JP 4909383 B2 JP4909383 B2 JP 4909383B2
Authority
JP
Japan
Prior art keywords
hard disk
write
removable
write protect
personal computer
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 - Lifetime
Application number
JP2009163717A
Other languages
Japanese (ja)
Other versions
JP2009282993A (en
Inventor
泰紀 北村
圭希 浦
淳 高橋
優 川久保
尊之 武石
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.)
IO Data Device Inc
Original Assignee
IO Data Device Inc
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 IO Data Device Inc filed Critical IO Data Device Inc
Priority to JP2009163717A priority Critical patent/JP4909383B2/en
Publication of JP2009282993A publication Critical patent/JP2009282993A/en
Application granted granted Critical
Publication of JP4909383B2 publication Critical patent/JP4909383B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Description

この発明は、パソコン等のホスト装置に接続される単一または複数のハードディスクを管理するハードディスク管理装置に関する。   The present invention relates to a hard disk management device that manages a single hard disk or a plurality of hard disks connected to a host device such as a personal computer.

パーソナルコンピュータ等のホスト装置を使用する場合、通常、ハードディスク等の固定ドライブが補助記憶装置として用いられるが、このハードディスク等の内容をバックアップするために、MOドライブ、CD−Rドライブ等のリムーバブルデバイスが使用されることが多い。このようなリムーバブルデバイスによれば、リムーバブルメディアだけの移動が可能であり保管等が容易になる等の利点がある。 When a host device such as a personal computer is used, a fixed drive such as a hard disk is usually used as an auxiliary storage device. In order to back up the contents of the hard disk or the like, a removable device such as an MO drive or a CD-R drive is used. Often used. According to such a removable device, there is an advantage that it is possible to move only the removable medium and it is easy to store it.

ところが、一般的なリムーバブルメディアであるCD−R、CD−RW、DVD−RAM、MOディスク等は、容量当りの単価が高価であり、これらのリムーバブルメディアを使用する枚数が増加するに伴ってコストがかかるという不都合が生じる。   However, CD-R, CD-RW, DVD-RAM, MO disk, etc., which are general removable media, are expensive in unit price per capacity, and the cost increases as the number of these removable media used increases. Inconvenience occurs.

また、上述のリムーバブルメディアは、ハードディスクに比較するとデータの伝送速度が低速であり記憶容量が小さいため、ホスト装置のハードディスクの内容をフルバックアップする場合には、作業時間が長くなり1回のバックアップ作業においてリムーバブルメディアの交換作業を複数回行う必要がある等の不都合が生じる。   In addition, since the above-mentioned removable media has a lower data transmission speed and a smaller storage capacity than a hard disk, when full backup of the contents of the hard disk of the host device is performed, the work time becomes longer and one backup operation is performed. Inconveniences such as the need to replace the removable medium a plurality of times.

そこで、このような不都合を解消するために、内蔵用に使用されているATA接続のハードディスク等を適宜入れ換え可能な状態で装着するリムーバブルケース(ハードディスク管理装置)が開発されており、このリムーバブルケースを使用することにより、ATA接続のハードディスク等をあたかもリムーバブルメディアとして使用可能にし、リムーバブルメディアの低コスト化、大容量化等を図るものがあった(例えば、非特許文献1参照。)。   Therefore, in order to eliminate such inconvenience, a removable case (hard disk management device) has been developed in which an ATA-connected hard disk or the like used for built-in can be replaced as appropriate. In some cases, the ATA-connected hard disk or the like can be used as a removable medium by using it, thereby reducing the cost and capacity of the removable medium (for example, see Non-Patent Document 1).

“製品情報”、[online]、[平成14年9月1日検索]、インターネット<URL:http://www.ratocsystems.com/products/subpage/dk.html>“Product Information”, [online], [searched on September 1, 2002], Internet <URL: http://www.ratocsystems.com/products/subpage/dk.html>

しかしながら、ハードディスクをリムーバブルメディアとして使用可能にする従来の装置は、誤操作によりハードディスクに記録しているデータが消去されたり、書き換えられるのを防止するライトプロテクト機能を設けることについては何ら考慮しておらず、データを安全に管理することができないという問題があった。   However, conventional devices that allow the hard disk to be used as a removable medium do not take into account the provision of a write protection function that prevents data recorded on the hard disk from being erased or rewritten due to an erroneous operation. There was a problem that data could not be managed safely.

この発明の目的は、リムーバブルメディアとして使用するハードディスクに対するデータの書き込みを禁止するライトプロテクトの設定/解除が簡単に行え、このハードディスクに記録しているデータを安全に管理することができるハードディスク管理装置を提供することにある。   An object of the present invention is to provide a hard disk management device capable of easily setting / releasing write protection for prohibiting data writing to a hard disk used as a removable medium and safely managing data recorded on the hard disk. It is to provide.

この発明は、ホスト装置に接続されるハードディスク管理装置において、
リムーバブルデバイスであることを示す属性データを前記ホスト装置に対して出力する出力手段と、
装着ているハードディスクに対するデータの書き込みを禁止するライトプロテクトの設定/解除を切り換えるライトプロテクトスイッチの状態を検出し、前記ホスト装置にライトプロテクトが設定されているかどうかを通知するライトプロテクト通知手段と、
前記ホスト装置との接続に用い、前記ホスト装置との間でやりとりするメディアパラメータヘッダの中に、前記ハードディスク管理装置本体に装着しているハードディスクについてライトプロテクトが設定されているかどうかを示すライトプロテクトビットを含む汎用インタフェースと、を備え、
前記ライトプロテクト通知手段は、前記ライトプロテクトビットで前記ホスト装置にライトプロテクトが設定されているかどうかを通知し、且つ、前記ライトプロテクトスイッチが切り換えられたとき、前記ホスト装置がメディアの取り出しを制限していれば、当該ホスト装置がメディアの取り出し制限を解除するのを待って、今回のライトプロテクトスイッチの切り換えに応じた、ライトプロテクトの設定/解除を前記ホスト装置に通知する手段である。
The present invention relates to a hard disk management device connected to a host device.
Output means for outputting attribute data indicating a removable device to the host device;
A write protect notifying means for detecting the state of the write-protect switch for switching the setting / release of the write protection for inhibiting the writing of data to the hard disk has been installed, it notifies whether write protect to the host device is set,
A write protect bit indicating whether or not write protection is set for a hard disk attached to the hard disk management apparatus main body in a media parameter header used for connection with the host apparatus and exchanged with the host apparatus. A general-purpose interface including
The write protect notification means notifies the host device whether the write protect is set by the write protect bit, and when the write protect switch is switched, the host device restricts the removal of media. If this is the case, the host device waits for the host device to release the media removal restriction, and notifies the host device of the setting / canceling of write protection according to the current switching of the write protection switch.

この構成においては、出力手段が出力した属性データによって、ホスト装置にリムーバブルデバイスとして認識させることができる。   In this configuration, the host device can be recognized as a removable device by the attribute data output by the output means.

また、ライトプロテクトスイッチを切り換えることにより、リムーバブルメディアとして使用するハードディスクに対するデータの書き込みを禁止するライトプロテクトの設定/解除が簡単に行え、このハードディスクに記録しているデータを安全に管理することができる。また、一般に普及しているホスト装置(パーソナルコンピュータ等)は、リムーバブルデバイスとの間でやりとりする信号に、装着されているメディアについてライトプロテクトが設定されているかどうかを示す信号、所謂ライトプロテクトビット、が含まれているので、ホスト装置と管理装置との間にライトプロテクトが設定されているかどうかを通知するための信号線を別途設ける必要もない。   In addition, by switching the write protect switch, it is possible to easily set / cancel write protect that prohibits writing data to the hard disk used as a removable medium, and to safely manage the data recorded on the hard disk. . Further, a host device (such as a personal computer) that has been widely used is a signal that indicates whether or not write protection is set for a mounted medium in a signal exchanged with a removable device, a so-called write protect bit, Therefore, it is not necessary to separately provide a signal line for notifying whether or not write protection is set between the host device and the management device.

さらに、ホスト装置がメディアの取り出しを制限しているときには、例えばデータの書き込みを行っている最中には、ライトプロテクトスイッチが切り換えられても、メディアの取り出しを制限が解除されるまで、ライトプロテクトの設定/解除の切り換えが行われない。したがって、データの書き込み途中に、ライトプロテクトを設定するライトプロテクトスイッチの切り換え操作が行われても、実行中のデータの書き込みが途中で中止されるという事態がおきることもない。 Further, when the host device restricts the removal of the media, for example, while data is being written, even if the write protection switch is switched, the write protection is continued until the restriction on the removal of the media is released. Setting / cancellation is not switched. Therefore, even if a write protect switch switching operation for setting the write protect is performed during the data writing, there is no situation where the data writing being executed is interrupted.

また、ライトプロテクト通知手段は、ライトプロテクトの設定/解除を切り換えたときに、前記ホスト装置がメディアの取り出しを制限していなければ、その時点で、ライトプロテクトを設定したか、解除したかを前記ホスト装置に通知する構成とするのが好ましい。 Further, the write protect notification means determines whether the write protect is set or released at that time if the host device does not restrict the removal of the medium when the write protect is set / released. It is preferable to notify the host device.

また、検出手段が管理装置本体におけるハードディスクの装着状態を検出し、管理装置本体をリムーバブルデバイスとして認識したホスト装置から、メディアの装着状態を確認する入力コマンドが入力されると、応答手段が、この入力コマンドに対し、その時点における検出手段の検出結果に基づく応答を行う構成としてもよい。   In addition, when the detection unit detects the hard disk mounting state in the management apparatus main body and an input command for confirming the medium mounting state is input from the host device that has recognized the management apparatus main body as a removable device, the response unit It may be configured to respond to an input command based on the detection result of the detection means at that time.

さらに、装着されているハードディスクに対するデータの書き込みを禁止するライトプロテクトが設定されているかどうかを表示する状態表示手段を設け、利用者がライトプロテクトが設定されているかどうかの確認が簡単に行えるようにしてもよい。   In addition, status display means is provided to display whether or not write protection that prohibits data writing to the installed hard disk is set so that the user can easily check whether or not write protection is set. May be.

この発明によれば、ライトプロテクトスイッチを切り換えることにより、リムーバブルデバイスとして使用するハードディスクに記録しているデータを安全に管理することができる。   According to the present invention, the data recorded on the hard disk used as the removable device can be safely managed by switching the write protect switch.

ハードディスク管理装置が適用されるパソコンの正面図である。It is a front view of the personal computer to which the hard disk management device is applied. ハードディスク管理装置の構成を示す斜視図である。It is a perspective view which shows the structure of a hard disk management apparatus. ハードディスク管理装置のブロック図である。It is a block diagram of a hard disk management device. 第1の実施形態においてハードディスク管理装置に入出力されるコマンド等の状態を示す図である。It is a figure which shows the state of the command etc. which are input / output in a hard disk management apparatus in 1st Embodiment. ハードディスク管理装置におけるハードディスクの取り外し動作を示す図である。It is a figure which shows the removal operation | movement of the hard disk in a hard disk management apparatus. この実施形態のリムーバブルケースにおける、パソコンからデータの書き込み要求が送られてきたときの動作を示すフローチャートである。It is a flowchart which shows operation | movement when the write-in request | requirement of data is sent from the personal computer in the removable case of this embodiment. この実施形態のリムーバブルケースにおける、ライトプロテクトスイッチが操作されたときの動作を示すフローチャートである。It is a flowchart which shows operation | movement when the write-protect switch is operated in the removable case of this embodiment. 第2の実施形態においてハードディスク管理装置に入出力されるコマンド等の状態を示す図である。It is a figure which shows the states of the command etc. which are input / output in a hard disk management apparatus in 2nd Embodiment. ATA−ATAPIコマンド変換の効果の一例を示す図である。It is a figure which shows an example of the effect of ATA-ATAPI command conversion. USBインタフェースでパソコンと接続されるリムーバブルケースの構成を示す。The structure of the removable case connected with a personal computer with a USB interface is shown.

以下、図を用いて本発明のハードディスク管理装置の第1の実施形態であるリムーバブルケースを説明する。以下の説明において、ハードディスクには、3.5インチのハードディスクのみならず2.5インチのハードディスク、および2.5インチのハードディスクをベースとしたiVDR等が含まれるものとする。また、本発明では、ATA接続のハードディスクという文言をATA規格に対応したハードディスクという意味に使用している。   Hereinafter, a removable case which is a first embodiment of the hard disk management device of the present invention will be described with reference to the drawings. In the following description, hard disks include not only 3.5-inch hard disks but also 2.5-inch hard disks, iVDRs based on 2.5-inch hard disks, and the like. In the present invention, the term ATA-connected hard disk is used to mean a hard disk compatible with the ATA standard.

図1は、本発明のリムーバブルケースが適用されるパソコンの正面図であり、リムーバブルケースの使用状態を示している。同図に示すように、リムーバブルケース1は、パソコン20の筐体に形成された所定のベイ、本実施形態では5インチベイに収容されて固定される。また、リムーバブルケース1は、パソコン20とATAインタフェースによって接続されている。この状態において、リムーバブルケース1に装着されるATA接続のハードディスク(以下、単にハードディスクという。)は、パソコン20の前面側(正面側)から装着または取り外しが可能になっているが、その構成については後述する。   FIG. 1 is a front view of a personal computer to which the removable case of the present invention is applied, and shows a use state of the removable case. As shown in the figure, the removable case 1 is housed and fixed in a predetermined bay formed in the housing of the personal computer 20, in this embodiment, a 5-inch bay. The removable case 1 is connected to the personal computer 20 by an ATA interface. In this state, an ATA-connected hard disk (hereinafter simply referred to as a hard disk) attached to the removable case 1 can be attached or removed from the front side (front side) of the personal computer 20. It will be described later.

一方、パソコン20は、入力装置、出力装置、記憶装置、演算装置、および制御装置やATAインタフェース等の一般的な機能を有するものであり、本発明のリムーバブルケース1が適用されるために特段の機能等が要求されることはない。   On the other hand, the personal computer 20 has general functions such as an input device, an output device, a storage device, an arithmetic device, a control device, an ATA interface, and the like. No function is required.

図2は、リムーバブルケース1の構成を示す図である。同図に示すように、リムーバブルケース1には、リムーバブルケース1に装着されるハードディスクを収容するためのキャニスタ2aおよびキャニスタ2bが設けられている。このとき、それぞれのキャニスタ2(2a、2b)毎に、単一のハードディスク3が収容される。   FIG. 2 is a diagram illustrating a configuration of the removable case 1. As shown in the figure, the removable case 1 is provided with a canister 2 a and a canister 2 b for accommodating a hard disk attached to the removable case 1. At this time, a single hard disk 3 is accommodated for each canister 2 (2a, 2b).

キャニスタ2は、リムーバブルケース1の前後方向において移動自在に設けられている。このため、ハードディスク3をリムーバブルケース1に装着する際には、キャニスタ2をスライドさせて装置前面側に引き出し、キャニスタ2にハードディスク3を収容した後に、このキャニスタ2をリムーバブルケース1の背面側へと押し入れる。   The canister 2 is provided so as to be movable in the front-rear direction of the removable case 1. Therefore, when the hard disk 3 is mounted in the removable case 1, the canister 2 is slid and pulled out to the front side of the apparatus, and after the hard disk 3 is accommodated in the canister 2, the canister 2 is moved to the rear side of the removable case 1. Push in.

ここで、リムーバブルケース1側において、ハードディスク3との接続に用いられるATAインタフェースのコネクタおよび電源コネクタは、キャニスタ2に収容されたハードディスク3のコネクタに対向するように配置されており、ユーザがキャニスタ2をリムーバブルケース1の背面側に目一杯押しこんだときにハードディスク3のコネクタとリムーバブルケース1のコネクタとの接続が行われ、ハードディスク3とリムーバブルケース1との接続が完了する。なお、ATAインタフェースのコネクタおよび電源コネクタの位置が上述の構成に限定されないのはいうまでもなく、ハードディスク3とリムーバブルケース1との接続方法についても本発明の実施に特段の影響を与えるものではない。   Here, on the removable case 1 side, the ATA interface connector and the power connector used for connection to the hard disk 3 are arranged so as to face the connectors of the hard disk 3 housed in the canister 2, so that the user can connect the canister 2. Is fully pushed into the rear side of the removable case 1, the connection of the hard disk 3 and the removable case 1 are connected, and the connection between the hard disk 3 and the removable case 1 is completed. Needless to say, the positions of the ATA interface connector and the power connector are not limited to the above-described configuration, and the method of connecting the hard disk 3 and the removable case 1 does not particularly affect the implementation of the present invention. .

さらに、それぞれのキャニスタ2(2a、2b)には、錠部4(4a、4b)および取出ボタン5(5a、5b)、ライトプロテクトスイッチ6(6a、6b)、ライトプロテクト表示灯7(7a、7b)が設けられている。錠部4には、キャニスタ2を引き出す際に用いられる鍵が挿入され、適正な鍵が錠部4に挿入されることによりキャニスタ2がアンロックされる。取出ボタン5は、現在使用中のハードディスク3を取り外す必要が生じた場合に、ユーザがその旨をリムーバブルケース1に伝えるためのものである。ライトプロテクトスイッチ6は、収容されているハードディスク3に対するデータの書き込みを禁止するライトプロテクトの設定/解除を切り換えるときに操作するスイッチである。ライトプロテクト表示灯7は、ライトプロテクトが設定されているときに点灯するLEDである。   Further, each canister 2 (2a, 2b) has a lock portion 4 (4a, 4b) and an eject button 5 (5a, 5b), a write protect switch 6 (6a, 6b), and a write protect indicator lamp 7 (7a, 7b) is provided. A key used when pulling out the canister 2 is inserted into the lock unit 4, and the canister 2 is unlocked by inserting an appropriate key into the lock unit 4. The eject button 5 is used to notify the removable case 1 by the user when it is necessary to remove the currently used hard disk 3. The write protect switch 6 is a switch operated when switching the setting / canceling of write protection that prohibits data writing to the stored hard disk 3. The write protect indicator lamp 7 is an LED that lights up when the write protect is set.

なお、本実施形態では、リムーバブルケース1は、キャニスタ2を2つ備えた構成になっているが、キャニスタ2の数は特に2つに限定されることはなく、1つであっても、また3つ以上であってもよい。さらに、キャニスタ構造をもたず、リムーバブルケース1にハードディスクが固定されていてもよい。また、モータ等の駆動機構を搭載してキャニスタ2が必要に応じて自動的に動くように構成することもできる。さらに、キャニスタ2のロック/アンロックの構成についても上述の構成に限定されることはない。   In this embodiment, the removable case 1 has two canisters 2, but the number of canisters 2 is not particularly limited to two, and may be one. There may be three or more. Furthermore, the hard disk may be fixed to the removable case 1 without having a canister structure. Further, a drive mechanism such as a motor can be mounted so that the canister 2 automatically moves as necessary. Furthermore, the lock / unlock configuration of the canister 2 is not limited to the above-described configuration.

図3は、リムーバブルケース1の接続状態を示すブロック図である。同図に示すように、リムーバブルケース1は、CPU11、キャニスタ検出部12、RAM13、ROM14、I/F部15(15a、15b)、取出検出部16、切断回路17、電源供給部18、およびライトプロテクト検出部19を備えている。   FIG. 3 is a block diagram showing a connection state of the removable case 1. As shown in the figure, the removable case 1 includes a CPU 11, a canister detection unit 12, a RAM 13, a ROM 14, an I / F unit 15 (15a, 15b), an extraction detection unit 16, a disconnection circuit 17, a power supply unit 18, and a write A protection detection unit 19 is provided.

キャニスタ検出部12は、キャニスタ2に収容されるハードディスク3の状態を検出している。本実施形態では、キャニスタ2内のハードディスク3が、リムーバブルケース1のATAコネクタに適正に接続されているか否かを電気的に検出している。このため、リムーバブルケース1は、ハードディスク3が装着されたことをキャニスタ検出部12によって自動認識することができる。   The canister detection unit 12 detects the state of the hard disk 3 accommodated in the canister 2. In the present embodiment, it is electrically detected whether or not the hard disk 3 in the canister 2 is properly connected to the ATA connector of the removable case 1. For this reason, the removable case 1 can automatically recognize that the hard disk 3 is mounted by the canister detection unit 12.

RAM13は、ハードディスク3からI/F部15bを介して、リムーバブルケース1に入力されるハードディスク3のメーカー名、形式、ファームレビジョン、シリアル番号、および最大転送レート情報、およびセクタ数等を含むATAデバイスの属性情報を示すidentifyデータ等を記憶するためのメモリである。ROM14は、リムーバブルケース1のCPU11を動作させるために必要なプログラム等が格納されている。また、ROM14は、リムーバブルケース1がATAリムーバブルデバイスであることを示すIdentifyデータを格納している。   The RAM 13 is an ATA device that includes the manufacturer name, format, firmware revision, serial number, maximum transfer rate information, the number of sectors, and the like of the hard disk 3 input to the removable case 1 from the hard disk 3 via the I / F unit 15b. This is a memory for storing the identity data indicating the attribute information. The ROM 14 stores programs necessary for operating the CPU 11 of the removable case 1. The ROM 14 also stores Identify data indicating that the removable case 1 is an ATA removable device.

I/F部15aは、パソコン20とリムーバブルケース1との間の通信を司るものである。この実施形態では、パソコン20とリムーバブルケース1との間は、ATAインタフェースで接続される。I/F部15bは、リムーバブルケース1とハードディスク3との通信を司るものである。   The I / F unit 15 a manages communication between the personal computer 20 and the removable case 1. In this embodiment, the personal computer 20 and the removable case 1 are connected by an ATA interface. The I / F unit 15 b manages communication between the removable case 1 and the hard disk 3.

取出検出部16は、取出ボタン5が押されたことを検出する。また、ハードディスクの取り外しは、パソコン20のOSにその旨の入力をすることによってもできるため、取出検出部16は、パソコン20から入力されるハードディスクの取出要求の検出も行う。   The take-out detection unit 16 detects that the take-out button 5 has been pressed. Further, since the hard disk can be removed by inputting to that effect to the OS of the personal computer 20, the removal detection unit 16 also detects a hard disk removal request input from the personal computer 20.

電源供給部18は、ハードディスク3に対する電力の供給を行う。切断回路17は、CPU11からの指令に基づいてリムーバブルケース1からハードディスク3に対するデータの伝送路を、例えば、ハイインピーダンスの状態にして電気的に切断する。また、切断回路17は、データの伝送を停止させるのに伴って、電源供給部18からハードディスク3に対する電力の供給を停止させる。ライトプロテクト検出部19は、ライトプロテクトスイッチ6の状態を検出し、ライトプロテクトが設定されているときにライトプロテクト表示灯7を点灯させる。   The power supply unit 18 supplies power to the hard disk 3. The cutting circuit 17 electrically disconnects the data transmission path from the removable case 1 to the hard disk 3 based on a command from the CPU 11, for example, in a high impedance state. Further, the cutting circuit 17 stops the supply of power from the power supply unit 18 to the hard disk 3 as the data transmission is stopped. The write protect detector 19 detects the state of the write protect switch 6 and turns on the write protect indicator lamp 7 when the write protect is set.

上述の構成において、ユーザがパソコン20を起動させると、パソコン20は、OS起動時にATAインタフェースに接続されているATAデバイスの属性情報を取得するためのIdentifyコマンドを各ATAデバイスに出力する。一方、リムーバブルケース1では、自らがATAリムーバブルデバイスであることを示すIdentifyデータをパソコン20に対して出力する。   In the above configuration, when the user activates the personal computer 20, the personal computer 20 outputs an Identify command for acquiring attribute information of the ATA device connected to the ATA interface when the OS is activated to each ATA device. On the other hand, in the removable case 1, Identity data indicating that the device is an ATA removable device is output to the personal computer 20.

このため、パソコン20は、起動時においてリムーバブルケース1をATAリムーバブルデバイスとして認識する。また、リムーバブルケース1は、その後、ROM14に記憶されているプログラムに基づいて、ATAリムーバブルデバイスとして動作する。例えば、ATAリムーバブルデバイスは、パソコン20から定期的に入力されるリムーバブルデバイスに装着されているリムーバブルメディアの装着状態を確認するための「GET MEDIA STATUSコマンド」の戻り値にリムーバブルメディアの状態を示す情報を返すように定められているが、リムーバブルケース1は、パソコン20からの「GETMEDIA STATUSコマンド」が入力される度に、このコマンドに対して適正に応答している。   Therefore, the personal computer 20 recognizes the removable case 1 as an ATA removable device at the time of startup. The removable case 1 then operates as an ATA removable device based on a program stored in the ROM 14. For example, the ATA removable device is information indicating the state of the removable medium in the return value of the “GET MEDIA STATUS command” for confirming the state of the removable medium mounted on the removable device periodically input from the personal computer 20. However, the removable case 1 properly responds to this command every time a “GETMEDIA STATUS command” is input from the personal computer 20.

図4は、本実施形態においてパソコン20とリムーバブルケース1との間のコマンドの入出力の状況を示している。上述のように、パソコン20は、リムーバブルケース1をATAリムーバブルデバイスとして認識すると、「GET MEDIA STATUSコマンド」をリムーバブルケース1に対して出力する。   FIG. 4 shows the input / output status of commands between the personal computer 20 and the removable case 1 in the present embodiment. As described above, when the personal computer 20 recognizes the removable case 1 as an ATA removable device, it outputs a “GET MEDIA STATUS command” to the removable case 1.

一方で、リムーバブルケース1では、キャニスタ検出部12がキャニスタ2にハードディスク3が収容されているか否か、すなわち各キャニスタ2内のハードディスク3が適正にリムーバブルケース1に装着されているか否かを常に監視しているため、「GET MEDIA STATUSコマンド」が入力された時点におけるハードディスク3の装着状態をパソコン20に伝達することができる。   On the other hand, in the removable case 1, the canister detection unit 12 always monitors whether or not the hard disk 3 is accommodated in the canister 2, that is, whether or not the hard disk 3 in each canister 2 is properly attached to the removable case 1. Therefore, the mounting state of the hard disk 3 at the time when the “GET MEDIA STATUS command” is input can be transmitted to the personal computer 20.

このとき、リムーバブルケース1からパソコン20に対して出力される「GET MEDIA STATUSコマンド」に対する応答としては、ハードディスク3がキャニスタ2に収容されていない状態である「メディアなし」、新たなハードディスク3がリムーバブルケース1に装着された状態を示す「メディア交換」、ハードディスク3に対する書込処理が禁止されている「ライトプロテクト」、またはハードディスク3を取り外す旨の入力がされたことを示す「イジェクト要求あり」がある。リムーバブルケース1は、この応答をキャニスタ2毎に行っている。   At this time, the response to the “GET MEDIA STATUS command” output from the removable case 1 to the personal computer 20 is “no medium” in which the hard disk 3 is not accommodated in the canister 2, and the new hard disk 3 is removable. “Media replacement” indicating a state of being attached to the case 1, “Write protection” in which writing processing to the hard disk 3 is prohibited, or “Eject request is present” indicating that an input to remove the hard disk 3 has been input. is there. The removable case 1 makes this response for each canister 2.

このように、リムーバブルケース1とパソコン20との間で、リムーバブルケース1に装着されているリムーバブルメディアの情報として、リムーバブルケース1に装着されるハードディスク3の装着状態がパソコン20側に伝えられる。そして、パソコン20の起動後にハードディスク3を装着した場合でも、リムーバブルケース1は、装着されたハードディスク3の属性を確認し、当該属性をRAM13の適当な領域に記憶した後に、パソコン20から入力される最初の「GET MEDIA STATUS」コマンドに対して「メディア交換」の応答を行い、装着されたハードディスク3の属性をパソコン20に伝える。このため、ハードディスク3が装着されたことや当該ハードディスク3の属性等を正確にパソコン20に認識させることができる。   As described above, between the removable case 1 and the personal computer 20, as the information on the removable media attached to the removable case 1, the mounting state of the hard disk 3 attached to the removable case 1 is transmitted to the personal computer 20 side. Even when the hard disk 3 is mounted after the personal computer 20 is started up, the removable case 1 confirms the attribute of the mounted hard disk 3 and stores the attribute in an appropriate area of the RAM 13 before being input from the personal computer 20. In response to the first “GET MEDIA STATUS” command, a “media exchange” response is made, and the attributes of the mounted hard disk 3 are transmitted to the personal computer 20. For this reason, it is possible to cause the personal computer 20 to accurately recognize that the hard disk 3 is mounted and the attributes of the hard disk 3.

次に、パソコン20が起動後において、ハードディスク3をリムーバブルケース1から取り外す動作を説明する。   Next, an operation of removing the hard disk 3 from the removable case 1 after the personal computer 20 is started will be described.

図5は、ハードディスク3を取り外す際の動作を示している。同図に関する説明では、図中で各コマンドに付されている番号と、以下の説明における見出し番号とを対応させている。   FIG. 5 shows an operation when removing the hard disk 3. In the description relating to the figure, the numbers given to the commands in the figure correspond to the heading numbers in the following description.

(1).同図に示すように、リムーバブルケース1に装着されているハードディスク3を取り外す場合、ユーザは、パソコン20のOS上の操作でその旨の入力を行うか、またはキャニスタ2に設けられている取出ボタン5を押す。そして、これらのいずれかの操作がされると、リムーバブルケース1に取り出し要求を通知がされる。   (1). As shown in the figure, when the hard disk 3 attached to the removable case 1 is removed, the user inputs that fact by operating on the OS of the personal computer 20 or an eject button provided on the canister 2. Press 5. When any of these operations is performed, a removal request is notified to the removable case 1.

(2).リムーバブルケース1では、取り出し要求の通知(イジェクトコマンド)を受けて、パソコン20とリムーバブルケース1との間の通信を停止させるために、パソコン20のOSに対してハードディスク3を取り出す旨を通知する。   (2). In the removable case 1, in response to the removal request notification (eject command), the OS of the personal computer 20 is notified that the hard disk 3 is to be removed in order to stop communication between the personal computer 20 and the removable case 1.

(3).パソコン20側では、ハードディスク3の取り出す旨の通知を受けて、パソコン20とリムーバブルケース1との間の通信を停止させて、ハードディスク3がリムーバブルケース1から取り外されることによって、パソコン20が動作中に動作不良が生じないようにする。そして、パソコン20は、ハードディスク3の取り外しに対する準備が完了すると、その旨をリムーバブルケース1に対して出力する。なお、パソコン20がハードディスク3に対してデータを書込中である場合等は、その処理が完了した後に取り出し準備完了の通知がリムーバブルケース1に対して出力される。   (3). Upon receiving notification that the hard disk 3 is to be removed, the personal computer 20 side stops communication between the personal computer 20 and the removable case 1 and the hard disk 3 is removed from the removable case 1 so that the personal computer 20 is in operation. Prevent malfunction. Then, when the preparation for removing the hard disk 3 is completed, the personal computer 20 outputs a message to that effect to the removable case 1. When the personal computer 20 is writing data to the hard disk 3 or the like, a notification of completion of preparation for removal is output to the removable case 1 after the processing is completed.

(4).リムーバブルケース1は、パソコン20から取り外し準備が完了した旨の通知を受けると、まず切断回路17にリムーバブルケース1とハードディスク3との間のデータ線を電気的に切断させる。   (4). When the removable case 1 receives a notification from the personal computer 20 that preparation for removal has been completed, it first causes the cutting circuit 17 to electrically disconnect the data line between the removable case 1 and the hard disk 3.

(5).続いて、リムーバブルケース1は、切断回路17に、リムーバブルケース1からハードディスク3への電力の供給を停止させる。   (5). Subsequently, the removable case 1 causes the cutting circuit 17 to stop supplying power from the removable case 1 to the hard disk 3.

(6).そして、リムーバブルケース1は、通信および電力の供給が停止したことを確認すると、その後、最初に入力されるパソコン20からの「GET MEDIA STATUSコマンド」に対して「メディアなし」のコマンドを返す。   (6). Then, when the removable case 1 confirms that communication and power supply have stopped, it then returns a “no media” command to the “GET MEDIA STATUS command” from the personal computer 20 that is input first.

(7).これにより、その後、キャニスタ2を引き出してハードディスク3を、取り出しても、ハードディスク3が損傷することがない。さらに、「GET MEDIA STATUSコマンド」に対する応答によってパソコン20は、リムーバブルデバイスにはリムーバブルメディアが装着されていないこと、すなわちリムーバブルケース1からハードディスク3が取り外されたことを適正に認識することができるため、パソコン20が起動後にハードディスク3が取り外されたとしても、パソコン20側でその旨を正確に認識することが可能となる。なお、パソコン20からの「GET MEDIA STATUSコマンド」に対して「メディアなし」のコマンドが返されて、ハードディスクを安全に取り外すことが可能になると、その旨が図示しないLCD等によってユーザに伝達される。   (7). Thereby, even if the canister 2 is subsequently pulled out and the hard disk 3 is taken out, the hard disk 3 is not damaged. Furthermore, since the personal computer 20 can properly recognize that the removable medium is not attached to the removable device, that is, that the hard disk 3 has been removed from the removable case 1 by the response to the “GET MEDIA STATUS command”, Even if the hard disk 3 is removed after the personal computer 20 is started, the personal computer 20 can accurately recognize that fact. When a “no media” command is returned in response to the “GET MEDIA STATUS command” from the personal computer 20 and the hard disk can be safely removed, this is communicated to the user via an LCD (not shown) or the like. .

以上のように、リムーバブルケース1を用いることによって、パソコン20が起動した後において接続されたハードディスク3をパソコン20に認識させることが可能になるとともに、パソコン20が動作中であっても安全にハードディスク3を取り外すこと、およびハードディスク3を取り外したことをパソコンに認識させることが可能になる。よって、リムーバブルケース1を用いることによって、パソコンの動作中にハードディスク3を適正に交換すること、すなわちホットスワップが可能になる。   As described above, by using the removable case 1, it is possible to make the personal computer 20 recognize the hard disk 3 connected after the personal computer 20 is started up, and to safely store the hard disk even when the personal computer 20 is operating. 3 can be removed and the personal computer can recognize that the hard disk 3 has been removed. Therefore, by using the removable case 1, it is possible to appropriately replace the hard disk 3 during the operation of the personal computer, that is, hot swap.

このようにリムーバブルケース1は、主に、本来固定ディスクであるATA接続のハードディスクをリムーバブル化する変換技術を利用している。正確には、リムーバブルケース1をパソコン側にATAリムーバブルデバイスとして認識させるとともに、リムーバブルケース1に装着される個々のハードディスク3をそれぞれパソコン20にリムーバブルメディアとして認識させるというハードウェア処理によって、プラグアンドプレイ機能やホットプラグ機能を具備しないATAインタフェースまたはATAPIインタフェースにおいてホットスワップを実現している。   In this way, the removable case 1 mainly uses a conversion technique for making an ATA-connected hard disk, which is originally a fixed disk, removable. To be precise, the plug-and-play function is realized by hardware processing in which the removable case 1 is recognized as an ATA removable device on the personal computer side and each hard disk 3 attached to the removable case 1 is recognized as a removable medium. In addition, hot swap is realized in an ATA interface or an ATAPI interface that does not have a hot plug function.

また、上述のリムーバブルケース1におけるホットスワップは、主にハードウェア処理によって実現されるものであるため、リムーバブルケース1に特定の動作をさせるための専用のドライバ等が不要になる。この結果、リムーバブルケース1の動作がパソコン20上で使用されるOSに依存することがなくなるため、リムーバブルケース1に高い汎用性を持たせることが可能になる。   Moreover, since the hot swap in the removable case 1 described above is realized mainly by hardware processing, a dedicated driver or the like for causing the removable case 1 to perform a specific operation is not necessary. As a result, since the operation of the removable case 1 does not depend on the OS used on the personal computer 20, the removable case 1 can be highly versatile.

以上のように、通常はホスト装置内蔵の補助記憶装置として使用されるという性質上、増設等の度に現役で使用されていないハードディスクの台数が増加する傾向があるATA接続のハードディスクを、リムーバブル化してリムーバブルメディアとして再活用することができ、リソースを有効活用することができる。   As described above, ATA-connected hard disks, which tend to increase the number of hard disks that are not currently in use every time they are added due to the nature of being used as an auxiliary storage device built in the host device, are made removable. Can be reused as removable media and resources can be used effectively.

次に、ライトプロテクトにかかる機能について説明する。ハードディスク3に対するライトプロテクトの設定(データの書き込み禁止)、解除(データの書き込み許可)は、キャニスタ2毎に設けられたライトプロテクトスイッチ6の操作により行える。言い換えれば、キャニスタ2毎に収容されているハードディスク3に対するライトプロテクトの設定/解除は個別に行える。各キャニスタ2は、ライトプロテクト検出部19でライトプロテクトスイッチ6の状態(ライトプロテクトを設定する側、またはライトプロテクトを解除する側のどちらに切り換えられているか)を監視している。ライトプロテクト検出部19は、ライトプロテクトスイッチ6がライトプロテクトを設定する側に切り換えられているときにライトプロテクト表示灯7を点灯させ、ライトプロテクトを解除する側に切り換えられているときにライトプロテクト表示灯7を消灯させる。   Next, functions related to write protection will be described. Write protect setting (data writing prohibition) and release (data writing permission) for the hard disk 3 can be performed by operating a write protect switch 6 provided for each canister 2. In other words, it is possible to individually set / cancel write protection for the hard disk 3 accommodated in each canister 2. Each canister 2 monitors the state of the write protect switch 6 (whether it is switched to the side where the write protection is set or the side where the write protection is released) by the write protect detector 19. The write protect detection unit 19 turns on the write protect indicator lamp 7 when the write protect switch 6 is switched to the write protect setting side, and writes the write protect display when the write protect switch 19 is switched to the write protect canceling side. Light 7 is turned off.

したがって、利用者はライトプロテクト表示灯7が点灯しているか、消灯しているかにより、現在ライトプロテクトが設定されているのか、解除されているのかを簡単に確認することができる。   Therefore, the user can easily confirm whether the write protect is currently set or released depending on whether the write protect indicator lamp 7 is turned on or off.

また、IDE、USB、IEEE1394等の一般的なインタフェースでは、パソコン20とリムーバブルケース1との間でやりとりされるメディアパラメータヘッダの中に、装着されているメディアについてライトプロテクトが設定されているかどうかを示すライトプロテクトビット、が含まれているので、このライトプロテクトビットを利用することにより、パソコン20とリムーバブルケース1との間に新たに信号線を設けなくても、リムーバブルケース1からパソコン20に対して、装着されているハードディスク3についてライトプロテクトが設定されているかどうかを通知できる。言い換えれば、パソコン20とリムーバブルケース1との間にライトプロテクトが設定されているかどうかを通知するための信号線を設けたり、パソコン20に特殊なプログラムを組み込む必要はなく、一般に普及しているパソコン20がそのまま利用できる。   In general interfaces such as IDE, USB, and IEEE 1394, it is determined whether or not the write protection is set for the mounted media in the media parameter header exchanged between the personal computer 20 and the removable case 1. The write protect bit shown in FIG. 2 is included, so that by using this write protect bit, the removable case 1 can be connected to the personal computer 20 without providing a new signal line between the personal computer 20 and the removable case 1. Thus, it is possible to notify whether or not the write protection is set for the installed hard disk 3. In other words, there is no need to provide a signal line between the personal computer 20 and the removable case 1 for notifying whether or not the write protection is set, and it is not necessary to incorporate a special program in the personal computer 20, so that the personal computer is widely used. 20 can be used as it is.

次に、リムーバブルケース1におけるパソコン20からデータの書き込み要求が送られてきたときの動作について説明する。図6はパソコンからデータの書き込み要求が送られてきたときの動作を示すフローチャートである。リムーバブルケース1は、パソコン20からデータの書き込み要求があると(s1)、データを書き込むハードディスク3がキャニスタ2に収容されているか(s2)、および収容されている場合にハードディスク3にライトプロテクトが設定されているかを判定する(s3)。リムーバブルケース1は、キャニスタ2にハードディスク3が収容されていなければ、パソコン20にメディア無しにかかるエラー通知を行い(s4)、またライトプロテクトが設定されていれば書き込み禁止にかかるエラー通知を行う(s5)。リムーバブルケース1は、キャニスタ2にハードディスク3が収容されており、且つライトプロテクトが解除されていれば、その後パソコン20から送られてきたデータをハードディスク3に書き込む(s6)。   Next, an operation when a data write request is sent from the personal computer 20 in the removable case 1 will be described. FIG. 6 is a flowchart showing the operation when a data write request is sent from the personal computer. In the removable case 1, when there is a data write request from the personal computer 20 (s1), whether the hard disk 3 into which data is written is accommodated in the canister 2 (s2), and if it is accommodated, write protection is set in the hard disk 3 It is determined whether it has been performed (s3). If the hard disk 3 is not accommodated in the canister 2, the removable case 1 notifies the personal computer 20 of an error related to no media (s 4), and if write protection is set, notifies the error related to write prohibition ( s5). If the hard disk 3 is accommodated in the canister 2 and the write protection is released, the removable case 1 then writes the data sent from the personal computer 20 to the hard disk 3 (s6).

なお、リムーバブルケース1にハードディスク3が内蔵(固定)されている場合には、上記s2にかかる処理については不要にできる。   When the hard disk 3 is built (fixed) in the removable case 1, the processing relating to s2 can be made unnecessary.

また、一般的なパソコン20は、リムーバブルのメディアにデータを書き込むときや、読み出すときに、OSがメディアをロックし、メディアの取り出しを制限する機能を備えている。この機能は、メディアに対してデータの書き込みや、読み出しを行っている最中に、メディアが取り出されることにより、このメディアに記録されているデータが破壊されるのを防止する機能である。この実施形態のリムーバブルケース1は、このOSによるメディアのロック機能を利用して、ハードディスク3に対するデータの書き込み途中にライトプロテクトが設定され(ライトプロテクトスイッチ6が操作されて)、実行中のデータの書き込みが途中で中止されるという事態がおきないようにしている。図7は、この実施形態のリムーバブルケースにおけるライトプロテクトスイッチが操作されたときの動作を示すフローチャートである。リムーバブルケース1は、ライトプロテクトスイッチ6が操作されると(s11)、現在OSによってメディアがロックされているかどうかを判定する(s12)。リムーバブルケース1は、s12でメディアがロックされていると判定すると、このロックが解除されるのを待つ(s13)。OSがメディアをロックするのは、上述したようにメディアに対してデータの書き込みや、読み出しにかかるアクセスを行っている間である。リムーバブルケース1は、s12でメディアがロックされていないと判定した場合、またはs13でロックが解除されるのを待って、今回のライトプロテクトスイッチ6の操作に応じて、ライトプロテクトの設定/解除を切り換える(s14)。また、このときライトプロテクト表示灯7の点灯/消灯も切り換えられる。   Further, the general personal computer 20 has a function of locking the medium and restricting the removal of the medium when the data is written to or read from the removable medium. This function prevents the data recorded on the medium from being destroyed by removing the medium while data is being written to or read from the medium. In the removable case 1 of this embodiment, write protection is set in the middle of data writing to the hard disk 3 (the write protect switch 6 is operated) using the medium lock function by the OS, and the data being executed is stored. The situation that writing is stopped in the middle is prevented. FIG. 7 is a flowchart showing the operation when the write protect switch in the removable case of this embodiment is operated. When the write protect switch 6 is operated (s11), the removable case 1 determines whether the medium is currently locked by the OS (s12). If it is determined that the medium is locked in s12, the removable case 1 waits for the lock to be released (s13). As described above, the OS locks the medium while data is being written to or read from the medium. When it is determined that the medium is not locked in s12, or the removable case 1 waits for the lock to be released in s13, the write protect is set / released according to the current operation of the write protect switch 6. Switching (s14). At this time, the light protect indicator lamp 7 is switched on / off.

このように、この実施形態のリムーバブルケース1は、OSがメディアをロックしているときに、ライトプロテクトスイッチ6が操作されても、すぐにライトプロテクトの設定/解除を切り換えないので、メディアであるハードディスク3に対するデータの書き込み途中にライトプロテクトが設定され(ライトプロテクトスイッチ6が操作されて)、実行中のデータの書き込みが途中で中止されるという事態がおきることはなく、ハードディスク3に対するデータの書き込みを適正に行うことができる。   As described above, the removable case 1 of this embodiment is a medium because even when the OS locks the medium, even if the write protect switch 6 is operated, the setting / canceling of the write protection is not switched immediately. Write protect is set in the middle of data writing to the hard disk 3 (the write protect switch 6 is operated), and writing of data being executed is not interrupted. Can be performed properly.

また、ハードディスク3に対するライトプロテクトの設定/解除が、ライトプロテクトスイッチ6の操作で簡単に行え、且つハードディスク3に記録されているデータを誤操作によって消去してしまうという事態がおきるのを抑えることができ、ハードディスク3に記録されているデータを安全に管理することができる。   In addition, setting / canceling the write protection for the hard disk 3 can be easily performed by operating the write protect switch 6, and it is possible to suppress the occurrence of a situation in which data recorded on the hard disk 3 is erased by an erroneous operation. The data recorded on the hard disk 3 can be managed safely.

次に、この発明の第2の実施形態について説明する。通常、ハードディスク3はATAデバイスとして認識されるものであり、パソコンに使用されるハードディスク3は、ATAPIコマンドによってパソコンとの通信を行うことができない。   Next explained is the second embodiment of the invention. Normally, the hard disk 3 is recognized as an ATA device, and the hard disk 3 used in the personal computer cannot communicate with the personal computer by the ATAPI command.

そこで、この第2の実施形態では、パソコン20とハードディスク3との間に配置されるリムーバブルケース1によって、パソコン20とハードディスク3との間においてATAPIコマンドによる通信を実現させている。   Therefore, in the second embodiment, communication by the ATAPI command is realized between the personal computer 20 and the hard disk 3 by the removable case 1 arranged between the personal computer 20 and the hard disk 3.

第2の実施形態におけるリムーバブルケース1の基本構成は、原則として第1の実施形態におけるリムーバブルケース1と同様である。ただし、第2の実施形態におけるリムーバブルケース1は、ATAPIインタフェースを介してパソコン20に接続されている点、およびこれに伴いATAコマンドとATAPIコマンドとを適正に変換する機能を有している点で第1の実施形態におけるリムーバブルケース1と相違する。   The basic configuration of the removable case 1 in the second embodiment is basically the same as that of the removable case 1 in the first embodiment. However, the removable case 1 in the second embodiment is connected to the personal computer 20 via the ATAPI interface, and has a function of appropriately converting the ATA command and the ATAPI command accordingly. It differs from the removable case 1 in the first embodiment.

図8は、第2の実施形態におけるコマンドの入出力の状況を示している。同図が示すように、本実施形態においてリムーバブルケース1は、ATA−ATAPIコマンド変換を行うコマンド変換部10を備えている。   FIG. 8 shows the command input / output status in the second embodiment. As shown in the figure, in this embodiment, the removable case 1 includes a command conversion unit 10 that performs ATA-ATAPI command conversion.

通常、ATAコマンドとATAPIコマンドとは、コマンドコード・プロトコルが大きく異なっているが、コマンド変換部10によってATA−ATAPIコマンド変換を行うことにより、パソコン20とハードディスク3との間で適正なデータの伝送を実現させている。   Normally, the ATA command and the ATAPI command are greatly different in command code and protocol. However, by performing the ATA-ATAPI command conversion by the command conversion unit 10, proper data transmission between the personal computer 20 and the hard disk 3 is performed. Is realized.

例えば、コマンド変換部10は、ハードディスク3のATA_Identifyデータを取得し、このATA_IdentifyをATAPI_Identifyデータに変換して、RAM13に記憶させる。そして、パソコン20からATAPI_Identifyコマンドが発行された場合に、RAM13に記憶させているATAPI_Identifyデータをパソコン20に返している。   For example, the command conversion unit 10 acquires ATA_Identify data of the hard disk 3, converts this ATA_Identify to ATAPI_Identify data, and stores it in the RAM 13. When the ATAPI_Identify command is issued from the personal computer 20, the ATAPI_Identify data stored in the RAM 13 is returned to the personal computer 20.

また、ATAPIデバイスはIdentifyデータと別にInquiryデータによりデバイスの属性をパソコン20に通知しているが、ATAデバイスは
Inquiryコマンドをサポートしていないため、コマンド変換部10が擬似的にハードディスク3に係るInquiryデータを作成してRAM13に格納し、パソコン20からの要求に応じて、当該Inquiryデータをパソコンに供給している。
Further, the ATAPI device notifies the personal computer 20 of the device attributes by using the inquiry data separately from the identify data. However, since the ATA device does not support the inquiry command, the command conversion unit 10 artificially relates to the inquiry related to the hard disk 3. Data is created and stored in the RAM 13, and the inquiry data is supplied to the personal computer in response to a request from the personal computer 20.

コマンド変換部10は、上述の他にも、ATAPI_Read_Capacity、Read/Writeコマンド、Request_Sense等のATAデバイスではサポートされていないコマンドを適宜、コマンド変換等によって作成しているため、パソコン20とハードディスク3との間の通信を適正に行うことが可能となる。   In addition to the above, the command conversion unit 10 creates commands that are not supported by ATA devices such as ATAPI_Read_Capacity, Read / Write commands, Request_Sense, etc., by appropriate command conversion. It is possible to properly communicate between the two.

図9は、ATA−ATAPIコマンド変換の効果の一例を示している。図9(a)は、ATAデバイスとしてのハードディスクの接続状態を示している。同図に示すように、従来ハードディスクは、マスタおよびスレーブにそれぞれ1台ずつしか接続することができなかった。   FIG. 9 shows an example of the effect of ATA-ATAPI command conversion. FIG. 9A shows a connection state of a hard disk as an ATA device. As shown in the figure, only one conventional hard disk can be connected to each master and slave.

ところが、図9(b)に示すように、ATA−ATAPIコマンド変換により、リムーバブルケース1とパソコン20との間でATAPIコマンドの通信が可能になることにより、ロジカルユニットナンバ(LUN)を利用することが可能になり、マスタおよびスレーブのそれぞれに複数台のハードディスクを接続することが可能になる。このように、リムーバブルケース1を、あたかもATAPIデバイスにみせかけて、装着される各ハードディスクをロジカルユニットナンバ(LUN)でホスト側、すなわちパソコン20にみせかけることにより、複数台のハードディスクの接続を適正に行うことが可能になる。   However, as shown in FIG. 9B, the ATA-ATAPI command conversion enables communication of the ATAPI command between the removable case 1 and the personal computer 20, thereby using the logical unit number (LUN). It becomes possible to connect a plurality of hard disks to each of the master and the slave. In this way, the removable case 1 is shown as an ATAPI device, and each hard disk to be mounted is shown on the host side, that is, the personal computer 20 with a logical unit number (LUN), thereby properly connecting a plurality of hard disks. It becomes possible to do.

また、この第2の実施形態にかかるリムーバブルケース1においても、ハードディスク3に対するデータの書き込みを禁止するライトプロテクト機能が上記第1の実施形態と同様に機能する。   Also in the removable case 1 according to the second embodiment, the write protect function for prohibiting data writing to the hard disk 3 functions in the same manner as in the first embodiment.

さらに、上記実施形態では、リムーバブルケース1とパソコン20との間におけるデータ転送速度の低下を生じさせないために、ATAインタフェースや、ATAPIインタフェースでリムーバブルケース1とパソコン20とを接続するとしたが、USBやIEEE1394等のインタフェースでパソコン20と接続されるリムーバブルケース1であっても、本願発明にかかるライトプロテクト機能を設けることにより、ハードディスク3に記録されているデータを誤操作によって消去してしまうという事態がおきるのを抑えることができ、ハードディスク3に記録されているデータを安全に管理することができる。図10に、USBインタフェースでパソコン20と接続されるリムーバブルケース1の構成を示す。図10では、リムーバブルケース1にハードディスク3が内蔵されている。この図に示すエミュレーション部21がATA−USBのインタフェース変換を行う。パソコン20とハードディスク3とは、エミュレーション部21を介してデータをやりとりする。また、インタフェース22はUSBであり、パソコン20はハードディスク3を内蔵したリムーバブルケース1を、リムーバブルデバイスとして認識する。また、エミュレーション部21は、ライトプロテクトスイッチ6の状態を検出し、ライトプロテクト表示灯7の点灯/消灯を制御する。   Further, in the above embodiment, in order not to cause a decrease in data transfer speed between the removable case 1 and the personal computer 20, the removable case 1 and the personal computer 20 are connected by the ATA interface or ATAPI interface. Even if the removable case 1 is connected to the personal computer 20 through an interface such as IEEE1394, the data recorded on the hard disk 3 may be erased by an erroneous operation by providing the write protect function according to the present invention. Therefore, data recorded on the hard disk 3 can be managed safely. FIG. 10 shows a configuration of the removable case 1 connected to the personal computer 20 through the USB interface. In FIG. 10, the hard disk 3 is built in the removable case 1. The emulation unit 21 shown in this figure performs ATA-USB interface conversion. The personal computer 20 and the hard disk 3 exchange data via the emulation unit 21. The interface 22 is a USB, and the personal computer 20 recognizes the removable case 1 containing the hard disk 3 as a removable device. The emulation unit 21 detects the state of the write protect switch 6 and controls turning on / off of the write protect indicator lamp 7.

なお、上記インタフェース22はUSBに限らず、IEEE1394等他のインタフェースであってもよい。   The interface 22 is not limited to USB, but may be another interface such as IEEE1394.

1−ハードディスク管理装置
2(2a、2b)−キャニスタ
3−ハードディスク
4(4a、4b)−錠部
5(5a、5b)−取出ボタン
6(6a、6b)−ライトプロテクトスイッチ
7(7a、7b)−ライトプロテクト表示灯
12−キャニスタ検出部
17−切断回路
20−パソコン
1-Hard Disk Management Device 2 (2a, 2b) -Canister 3-Hard Disk 4 (4a, 4b) -Lock 5 (5a, 5b) -Eject Button 6 (6a, 6b) -Write Protect Switch 7 (7a, 7b) -Write protect indicator 12-Canister detector 17-Disconnect circuit 20-Personal computer

Claims (4)

ホスト装置に接続されるハードディスク管理装置において、
リムーバブルデバイスであることを示す属性データを前記ホスト装置に対して出力する出力手段と、
装着ているハードディスクに対するデータの書き込みを禁止するライトプロテクトの設定/解除を切り換えるライトプロテクトスイッチの状態を検出し、前記ホスト装置にライトプロテクトが設定されているかどうかを通知するライトプロテクト通知手段と、
前記ホスト装置との接続に用い、前記ホスト装置との間でやりとりするメディアパラメータヘッダの中に、前記ハードディスク管理装置本体に装着しているハードディスクについてライトプロテクトが設定されているかどうかを示すライトプロテクトビットを含む汎用インタフェースと、を備え、
前記ライトプロテクト通知手段は、前記ライトプロテクトビットで前記ホスト装置にライトプロテクトが設定されているかどうかを通知し、且つ、前記ライトプロテクトスイッチが切り換えられたとき、前記ホスト装置がメディアの取り出しを制限していれば、当該ホスト装置がメディアの取り出し制限を解除するのを待って、今回のライトプロテクトスイッチの切り換えに応じた、ライトプロテクトの設定/解除を前記ホスト装置に通知する手段である、ハードディスク管理装置。
In the hard disk management device connected to the host device,
Output means for outputting attribute data indicating a removable device to the host device;
A write protect notifying means for detecting the state of the write-protect switch for switching the setting / release of the write protection for inhibiting the writing of data to the hard disk has been installed, it notifies whether write protect to the host device is set,
A write protect bit indicating whether or not write protection is set for a hard disk attached to the hard disk management apparatus main body in a media parameter header used for connection with the host apparatus and exchanged with the host apparatus. A general-purpose interface including
The write protect notification means notifies the host device whether the write protect is set by the write protect bit, and when the write protect switch is switched, the host device restricts the removal of media. If this is the case, the hard disk management is a means for notifying the host device of the setting / canceling of write protection in response to the current switching of the write protection switch after waiting for the host device to release the media removal restriction. apparatus.
管理装置本体におけるハードディスクの装着状態を検出する検出手段と、
前記ホスト装置が、前記出力手段が出力した前記属性データによってリムーバブルデバイスと認識した管理装置本体におけるメディアの装着状態を確認するために出力するコマンドに対し、前記検出手段の検出結果に基づく応答を行う応答手段と、を備えた請求項1に記載のハードディスク管理装置。
Detecting means for detecting a hard disk mounting state in the management apparatus body;
The host device makes a response based on the detection result of the detection unit with respect to a command that is output to confirm the mounting state of the medium in the management apparatus main body recognized as a removable device by the attribute data output by the output unit. The hard disk management device according to claim 1, further comprising response means.
前記ライトプロテクト通知手段は、ライトプロテクトの設定/解除を切り換えたときに、前記ホスト装置がメディアの取り出しを制限していなければ、ライトプロテクトを設定したか、解除したかを前記ホスト装置に通知する手段である、請求項1、または2に記載のハードディスク管理装置。 The write protect notification means notifies the host device whether the write protect is set or released if the host device does not restrict the removal of media when the write protect is set / released. The hard disk management device according to claim 1, wherein the hard disk management device is a means for performing the processing. 装着されているハードディスクに対するデータの書き込みを禁止するライトプロテクトが設定されているかどうかを表示する状態表示手段を備えたことを特徴とする請求項1〜3のいずれかに記載のハードディスク管理装置。   The hard disk management device according to any one of claims 1 to 3, further comprising status display means for displaying whether or not write protection for prohibiting data writing to an installed hard disk is set.
JP2009163717A 2002-10-03 2009-07-10 Hard disk management device Expired - Lifetime JP4909383B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009163717A JP4909383B2 (en) 2002-10-03 2009-07-10 Hard disk management device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2002291113 2002-10-03
JP2002291113 2002-10-03
JP2009163717A JP4909383B2 (en) 2002-10-03 2009-07-10 Hard disk management device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003298755A Division JP4847674B2 (en) 2002-10-03 2003-08-22 Hard disk management device

Publications (2)

Publication Number Publication Date
JP2009282993A JP2009282993A (en) 2009-12-03
JP4909383B2 true JP4909383B2 (en) 2012-04-04

Family

ID=41453310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009163717A Expired - Lifetime JP4909383B2 (en) 2002-10-03 2009-07-10 Hard disk management device

Country Status (1)

Country Link
JP (1) JP4909383B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5002719B1 (en) 2011-03-10 2012-08-15 株式会社東芝 Information processing device, external storage device, host device, relay device, control program, and information processing device control method
EP2745203B1 (en) 2011-08-19 2016-09-21 Kabushiki Kaisha Toshiba Information processing apparatus
WO2013065098A1 (en) * 2011-10-31 2013-05-10 三菱電機株式会社 Programmable logic controller
JP2015207166A (en) * 2014-04-21 2015-11-19 株式会社バッファロー Disk drive device and program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62229425A (en) * 1986-03-31 1987-10-08 Toshiba Corp Write protect controller
JPS62251857A (en) * 1986-04-24 1987-11-02 Canon Inc Memory control system
JPH03110620A (en) * 1989-09-25 1991-05-10 Toshiba Corp Write controller for hard disk device
JPH09146715A (en) * 1995-11-21 1997-06-06 Nec Eng Ltd External storage device and write protection controller
JPH10133951A (en) * 1996-11-05 1998-05-22 Toshiba Corp Input/output controller for disk storing device and write protecting method applied to disk storage device
US6516356B1 (en) * 1997-09-30 2003-02-04 International Business Machines Corporation Application interface to a media server and a method of implementing the same
JP2000173158A (en) * 1998-11-30 2000-06-23 Nec Corp Hard disk device
JP2001101785A (en) * 1999-09-30 2001-04-13 Fujitsu Ltd Disk device
JP2002099417A (en) * 2000-09-25 2002-04-05 Hitachi Ltd Reconstruction method for information processor, its performing apparatus and record medium recorded its performing program

Also Published As

Publication number Publication date
JP2009282993A (en) 2009-12-03

Similar Documents

Publication Publication Date Title
JP4888935B2 (en) Storage system
EP3422661B1 (en) System and method for providing a secure airborne network-attached storage node
JP2008506215A (en) Electronic data storage cartridge
JP4909383B2 (en) Hard disk management device
CN104346885A (en) Commodity sales data processing apparatus and controlling method
US5923897A (en) System for adapter with status and command registers to provide status information to operating system and processor operative to write eject command to command register
EP2026208A2 (en) Storage control system and storage control method
JP4847674B2 (en) Hard disk management device
JP2002529853A (en) Write protected disk cache apparatus and method for subsystem hard disk with large capacity memory
US20060206759A1 (en) Universal serial bus backup device
JP6036222B2 (en) Device control apparatus, host apparatus and host apparatus control method
US8631177B1 (en) Multi-port device with controller for storage media device port
US20130054892A1 (en) Image processing apparatus
JP3389878B2 (en) IDE device insertion / extraction device
JP2007193636A (en) Remote maintenance system and program
CN107066072A (en) Electronic installation and its control method
JP4773679B2 (en) Information processing device
US8627157B2 (en) Storing apparatus
JP4532877B2 (en) Removable media device, host device, program and recording medium thereof
US9798637B2 (en) Information processing apparatus and control method of information processing apparatus with access to storage device based on communication with storage device
EP3451220B1 (en) Erasing device
JP2008117415A (en) Information receiving apparatus
JP4322017B2 (en) Backup device
JP4857772B2 (en) Disk publisher
US8675223B2 (en) Image forming device, image forming system and computer readable medium for installing related software to another device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110920

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111121

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111220

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150120

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4909383

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term