JP5233892B2 - Hard disk drive device - Google Patents
Hard disk drive device Download PDFInfo
- Publication number
- JP5233892B2 JP5233892B2 JP2009172844A JP2009172844A JP5233892B2 JP 5233892 B2 JP5233892 B2 JP 5233892B2 JP 2009172844 A JP2009172844 A JP 2009172844A JP 2009172844 A JP2009172844 A JP 2009172844A JP 5233892 B2 JP5233892 B2 JP 5233892B2
- Authority
- JP
- Japan
- Prior art keywords
- magnetic recording
- disk drive
- hard disk
- memory
- drive device
- 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.)
- Active
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、ハードディスクドライブ装置に関し、特に、自動バックアップ機能を備えたハードディスクドライブ装置に関する。 The present invention relates to a hard disk drive device, and more particularly to a hard disk drive device having an automatic backup function.
ハードディスクドライブ装置は、磁性体を塗布した円盤と磁気ヘッドとを用いた典型的な磁気記録装置であり、パソコンやビデオレコーダなど、様々な電子機器用の記憶装置として広く利用されている。このハードディスクドライブ装置は、比較的高速にランダムアクセスが可能であり、また、大容量化にも適しているため、多くの電子機器にデータ記憶装置として組み込まれている。このため、その仕様も標準化されており、たとえば、寸法規格としては、5インチ、3.5インチ、2.5インチ等の標準規格が定められており、同一の寸法規格の製品であれば、供給元にかかわらず、互換性を有している。 A hard disk drive device is a typical magnetic recording device using a disk coated with a magnetic material and a magnetic head, and is widely used as a storage device for various electronic devices such as personal computers and video recorders. This hard disk drive device is capable of random access at a relatively high speed and is suitable for increasing the capacity, and is therefore incorporated in many electronic devices as a data storage device. For this reason, the specifications are also standardized. For example, standard specifications such as 5 inches, 3.5 inches, and 2.5 inches are defined as dimensional standards. Compatible regardless of the supplier.
一般に、ハードディスクドライブ装置の寿命は、毎日8時間使用した場合に、3年〜5年とされている。また、衝撃などを加えると、データの読み書きが不能になる場合もある。このため、ハードディスクドライブ装置に記録したデータについては、バックアップを行うことが不可欠である。このような事情から、ハードディスクドライブ装置内のデータファイルを、定期的に、テープストリーマーに書き出してバックアップを行ったり、別なハードディスクドライブ装置にそっくりコピーしたり、光学的記録媒体にバックアップをとったりする作業を行うのが一般的である。 Generally, the lifetime of a hard disk drive device is 3 to 5 years when used for 8 hours every day. In addition, when an impact or the like is applied, data reading / writing may become impossible. For this reason, it is essential to back up the data recorded in the hard disk drive. For this reason, data files in the hard disk drive are regularly written to a tape streamer for backup, copied to another hard disk drive, or backed up to an optical recording medium. It is common to do.
また、サーバやデスクトップパソコンなどでは、一般にRAIDシステムと呼ばれている冗長性を付加した自動バックアップ機能を備えた装置の利用も普及している。下記の特許文献1には、このようなRAIDシステム等において、複数のドライブ装置のうちの特定のドライブ装置のみを選択的に稼働させることにより、消費電力を低減させる技術が開示されている。一方、ノート型パソコンなど、物理的な容量制限からRAIDシステムを用いることが困難な場合には、ソフトウエアによるミラーリングの技術も普及している。たとえば、下記の特許文献2,3には、ハードディスクドライブ装置の記録領域を、ソフトウエアによって複数の領域に分割して取り扱うようにし、単一のドライブ装置でありながら、データの自動バックアップを実現する手法が開示されている。また、下記の特許文献4には、障害発生時に、バックアップされていたデータを復元するための方法が開示されている。更に、下記の特許文献5には、LAN経由で、サーバ装置に対してバックアップを行う技術が開示されている。 Also, in servers, desktop personal computers, and the like, the use of a device having an automatic backup function with added redundancy generally called a RAID system is also widespread. Patent Document 1 below discloses a technique for reducing power consumption by selectively operating only a specific drive device among a plurality of drive devices in such a RAID system or the like. On the other hand, when it is difficult to use a RAID system due to physical capacity limitations, such as a notebook personal computer, software mirroring technology is also widespread. For example, in Patent Documents 2 and 3 below, the recording area of a hard disk drive device is divided into a plurality of areas by software, and automatic backup of data is realized while being a single drive device. A technique is disclosed. Further, Patent Document 4 below discloses a method for restoring backed up data when a failure occurs. Further, Patent Document 5 below discloses a technique for backing up a server device via a LAN.
ハードディスクドライブ装置に自動バックアップ機能をもたせる方法には、上述したように、ハードウエア的な手法とソフトウエア的な手法が存在する。ここで、ソフトウエア的な手法を採れば、単一のハードディスクドライブ装置のみを用いて自動バックアップを実現することが可能であるが、当該単一のハードディスクドライブ装置に障害が生じ、ミラーリング保存していた複数のデータのいずれにもアクセスできない状態になると、データが失われてしまう危険性がある。 As described above, there are a hardware method and a software method in the method of providing the hard disk drive with an automatic backup function. Here, if a software approach is used, automatic backup can be realized using only a single hard disk drive device, but the single hard disk drive device fails and is stored in mirroring. There is a risk that data will be lost if none of the data is accessible.
したがって、安全性の観点からは、ハードウエア的な手法によるバックアップの方が優れている。しかしながら、ハードウエア的な従来の手法を採ると、バックアップの対象となるハードディスクドライブ装置の他に、別個の記憶装置を用意する必要があり、余分な設置スペースが必要になるという問題が生じる。たとえば、一般的なRAIDシステムによってミラーリングを行う場合、バックアップ対象となるハードディスクドライブ装置と同じ容量のドライブ装置がもう一台必要になる。また、LAN経由でサーバ装置にバックアップをとる場合は、当然ながら、当該サーバ装置が不可欠である。 Therefore, from the viewpoint of safety, the backup by the hardware method is superior. However, when the conventional hardware method is adopted, a separate storage device needs to be prepared in addition to the hard disk drive device to be backed up, resulting in a problem that an extra installation space is required. For example, when mirroring is performed by a general RAID system, another drive device having the same capacity as the hard disk drive device to be backed up is required. In addition, when backing up to a server device via a LAN, naturally, the server device is indispensable.
また、バックアップデータとして、過去の履歴を逐次保存しておく運用をとる場合、現時点で利用しているハードディスクドライブ装置の設置スペースのみならず、過去の履歴を保持している記憶装置の収納スペースも必要になり、また、履歴を保存するための作業も必要になるという問題も生じる。たとえば、月末ごとに、格納されているデータファイルのバックアップをとる作業を行えば、4月末時点のデータファイル、5月末時点のデータファイル、6月末時点のデータファイル、というように、データファイルの状態を月ごとの履歴として逐次保存してゆくことが可能になり、必要があれば、過去の特定の月末時点のデータファイルを復元することが可能になる。ところが、従来装置を用いてこのような運用を採るためには、月末ごとに、特別な履歴保存作業が必要になり、また、これら履歴を保存した記憶装置を収納するスペースも必要になる。 In addition, when taking an operation to sequentially save past history as backup data, not only the installation space of the hard disk drive device currently used but also the storage space of the storage device holding the past history There is also a problem that it is necessary and work for saving the history is also required. For example, if the stored data file is backed up at the end of each month, the data file status is as follows: data file at the end of April, data file at the end of May, data file at the end of June Can be stored sequentially as a history for each month, and if necessary, a data file at a specific end of the past in the past can be restored. However, in order to adopt such an operation using the conventional apparatus, a special history storing operation is required at the end of each month, and a space for storing a storage device storing these histories is also required.
本発明の第1の目的は、単一の装置でありながら、安全性の高いバックアップを自動的に行うことが可能なハードディスクドライブ装置を提供することにある。また、本発明の第2の目的は、単純な作業により、過去の履歴を逐次保存しておくことが可能であり、かつ、履歴保存のために必要な収納スペースをできるだけ低減することが可能なハードディスクドライブ装置を提供することにある。 A first object of the present invention is to provide a hard disk drive device capable of automatically performing highly secure backup while being a single device. In addition, the second object of the present invention is to be able to sequentially store past histories by simple work, and to reduce the storage space required for histories as much as possible. It is to provide a hard disk drive device.
(1) 本発明の第1の態様は、磁気記録装置を内蔵した磁気記録ユニットと、不揮発性メモリを内蔵した複数台のメモリユニットと、を有するハードディスクドライブ装置において、
磁気記録ユニット用の筐体と、メモリユニット用の筐体とを、着脱手段によって、互いに結合したり分離したりすることができ、複数台のメモリユニットのいずれか1つを選択的に磁気記録ユニットに結合して利用できるように構成し、両者を結合して得られる合成筐体が、ハードディスクドライブ装置に関する第1の寸法規格に合致するようにし、
磁気記録ユニット用の筐体もしくはメモリユニット用の筐体には、第1の寸法規格に合致した第1の外部接続用端子を設け、
磁気記録装置を、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置であって、第2の寸法規格に合致した第2の外部接続用端子を備える装置によって構成し、
磁気記録ユニットもしくはメモリユニットには、コントローラを設け、
少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、コントローラが、第1の外部接続用端子と第2の外部接続用端子と不揮発性メモリとに直接もしくは間接的に接続されるように、必要な配線を施し、
コントローラが、
ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定するモード設定手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル書込コマンドが与えられた場合に、磁気記録装置とその時点で結合中のメモリユニット内の不揮発性メモリとの双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う書込処理手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル削除コマンドが与えられた場合に、磁気記録装置とその時点で結合中のメモリユニット内の不揮発性メモリとの双方に対して、削除対象となる同一のデータファイルを削除する処理を行う削除処理手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル読出コマンドが与えられた場合に、磁気記録装置およびその時点で結合中のメモリユニット内の不揮発性メモリの少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う読出処理手段と、
通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、磁気記録装置に格納されているデータファイルとその時点で結合中のメモリユニット内の不揮発性メモリに格納されているデータファイルとが一致するように不揮発性メモリを書き換える同期処理を行う同期処理手段と、
復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、磁気記録装置に格納されているデータファイルとその時点で結合中のメモリユニット内の不揮発性メモリに格納されているデータファイルとが一致するように磁気記録装置を書き換える復元処理を行う復元処理手段と、
を有するようにしたものである。
(1) According to a first aspect of the present invention, there is provided a hard disk drive device including a magnetic recording unit including a magnetic recording device and a plurality of memory units including a nonvolatile memory.
The housing for the magnetic recording unit and the housing for the memory unit can be coupled or separated from each other by the attaching / detaching means, and any one of the plurality of memory units is selectively magnetically recorded. It is configured so that it can be used in combination with a unit, and a combined housing obtained by combining both meets the first dimensional standard for a hard disk drive device,
The housing for the magnetic recording unit or the housing for the memory unit is provided with a first external connection terminal that conforms to the first dimensional standard,
The magnetic recording device is a hard disk drive device that conforms to a second dimensional standard smaller than the first dimensional standard, and includes a second external connection terminal that conforms to the second dimensional standard,
A controller is provided in the magnetic recording unit or memory unit,
At least in a state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the controller directly or indirectly connects to the first external connection terminal, the second external connection terminal, and the nonvolatile memory. To make the necessary connections,
The controller
Mode setting means for setting one of the normal mode and the restoration mode based on a user setting operation;
When a file write command is given from the external device via the first external connection terminal with the normal mode set , the nonvolatile memory in the memory unit coupled to the magnetic recording device at that time Writing processing means for performing processing for writing the same data file to be written to both of
When the normal mode is set and a file deletion command is given from the external device via the first external connection terminal, the magnetic recording device and the non-volatile memory in the memory unit coupled at that time Delete processing means for performing processing for deleting the same data file to be deleted,
In a state where the normal mode is set, when a file read command is given from the external device via the first external connection terminal, the magnetic recording device and the nonvolatile memory in the memory unit coupled at that time A read processing means for performing a process of reading a data file to be read from at least one;
When the normal mode is set and the establishment of a predetermined synchronization start condition is detected, it is stored in the data file stored in the magnetic recording device and the non-volatile memory in the memory unit connected at that time. Synchronization processing means for performing synchronization processing to rewrite the nonvolatile memory so that the data file matches,
When the restoration mode is set and the establishment of a predetermined restoration start condition is detected, the data file stored in the magnetic recording device and the nonvolatile memory in the memory unit coupled at that time are stored. Restoration processing means for performing restoration processing to rewrite the magnetic recording device so that the data file matches,
It is made to have.
(2) 本発明の第2の態様は、上述した第1の態様に係るハードディスクドライブ装置において、
コントローラが磁気記録ユニット内に設けられ、第1の外部接続用端子が磁気記録ユニット用の筐体に備わっているようにしたものである。
(2) According to a second aspect of the present invention, in the hard disk drive device according to the first aspect described above,
The controller is provided in the magnetic recording unit, and the first external connection terminal is provided in the casing for the magnetic recording unit.
(3) 本発明の第3の態様は、上述した第1または第2の態様に係るハードディスクドライブ装置において、
少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、外部装置から第1の外部接続用端子に対して与えられた電源が、磁気記録装置とコントローラと不揮発性メモリとに供給されるように、必要な配線を施すようにしたものである。
(3) According to a third aspect of the present invention, in the hard disk drive device according to the first or second aspect described above,
At least in the state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the power supplied from the external device to the first external connection terminal is supplied to the magnetic recording device, the controller, and the nonvolatile memory. Necessary wiring is provided so as to be supplied to the memory.
(4) 本発明の第4の態様は、上述した第1または第2の態様に係るハードディスクドライブ装置において、
磁気記録ユニットもしくはメモリユニットに、電池もしくはバッテリを組み込むようにし、少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、電池もしくはバッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されるように、必要な配線を施すようにしたものである。
(4) According to a fourth aspect of the present invention, in the hard disk drive device according to the first or second aspect described above,
A battery or a battery is incorporated in the magnetic recording unit or the memory unit, and at least in a state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the power from the battery or the battery is And necessary wiring so as to be supplied to the controller and the nonvolatile memory.
(5) 本発明の第5の態様は、上述した第1〜第4の態様に係るハードディスクドライブ装置において、
磁気記録ユニット用の筐体とメモリユニット用の筐体とに、それぞれ中継端子を設け、両筐体を結合したときに、中継端子を介して、磁気記録ユニット側の配線とメモリユニット側の配線とが接続されるようにしたものである。
(5) According to a fifth aspect of the present invention, in the hard disk drive device according to the first to fourth aspects described above,
Relay terminals are provided on the magnetic recording unit housing and the memory unit housing, respectively. When both housings are joined, the magnetic recording unit side wiring and the memory unit side wiring are connected via the relay terminals. Are connected to each other.
(6) 本発明の第6の態様は、第1の寸法規格に合致した筐体内に、磁気記録装置と、メモリソケットと、このメモリソケットに装着された不揮発性メモリと、コントローラと、を備えたハードディスクドライブ装置において、
装置筐体には、第1の寸法規格に合致した第1の外部接続用端子を設け、
磁気記録装置を、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置であって、第2の寸法規格に合致した第2の外部接続用端子を備える装置によって構成し、
不揮発性メモリを、筐体に設けられたメモリソケットを利用して抜き差し可能な複数N枚のカード型メモリによって構成し、
メモリソケットには、N枚のカード型メモリにそれぞれ対応するN個のLEDを設け、
コントローラが、第1の外部接続用端子と第2の外部接続用端子と不揮発性メモリとに直接もしくは間接的に接続されるようにし、N枚のカード型メモリのそれぞれについて、格納されているデータの有無を、対応するLEDの点灯/消灯によって報知する機能を果たすようにし、
更に、このコントローラが、
ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定するモード設定手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル書込コマンドが与えられた場合に、磁気記録装置と不揮発性メモリとの双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う書込処理手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル削除コマンドが与えられた場合に、磁気記録装置と不揮発性メモリとの双方に対して、削除対象となる同一のデータファイルを削除する処理を行う削除処理手段と、
通常モードが設定された状態で、外部装置から第1の外部接続用端子を介してファイル読出コマンドが与えられた場合に、磁気記録装置および不揮発性メモリの少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う読出処理手段と、
通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、磁気記録装置に格納されているデータファイルと不揮発性メモリに格納されているデータファイルとが一致するように不揮発性メモリを書き換える同期処理を行う同期処理手段と、
復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、磁気記録装置に格納されているデータファイルと不揮発性メモリに格納されているデータファイルとが一致するように磁気記録装置を書き換える復元処理を行う復元処理手段と、
を有するようにしたものである。
(6) A sixth aspect of the present invention includes a magnetic recording device, a memory socket, a non-volatile memory mounted in the memory socket, and a controller in a housing that conforms to the first dimensional standard. In the hard disk drive device
The device housing is provided with a first external connection terminal that conforms to the first dimensional standard,
The magnetic recording device is a hard disk drive device that conforms to a second dimensional standard smaller than the first dimensional standard, and includes a second external connection terminal that conforms to the second dimensional standard,
The nonvolatile memory is constituted by a plurality of N card-type memories that can be inserted and removed using a memory socket provided in the housing,
The memory socket is provided with N LEDs corresponding to N card-type memories,
The controller is connected directly or indirectly to the first external connection terminal, the second external connection terminal and the nonvolatile memory, and the stored data for each of the N card-type memories The function of notifying the presence or absence of the LED by turning on / off the corresponding LED,
In addition, this controller
Mode setting means for setting one of the normal mode and the restoration mode based on a user setting operation;
When the normal mode is set and a file write command is given from the external device via the first external connection terminal, both the magnetic recording device and the nonvolatile memory are to be written. Write processing means for performing processing to write the same data file,
When the normal mode is set and a file deletion command is given from the external device via the first external connection terminal, both the magnetic recording device and the nonvolatile memory become deletion targets. A deletion processing means for performing processing for deleting the same data file;
A data file to be read from at least one of the magnetic recording device and the non-volatile memory when a file read command is given from the external device via the first external connection terminal in a state where the normal mode is set Reading processing means for performing processing for reading
Non-volatile so that the data file stored in the magnetic recording device matches the data file stored in the non-volatile memory when the establishment of a predetermined synchronization start condition is detected with the normal mode set Synchronization processing means for performing synchronization processing for rewriting the volatile memory;
When the restoration mode is set and the establishment of a predetermined restoration start condition is detected, the data file stored in the magnetic recording device and the data file stored in the non-volatile memory are matched so that Restoration processing means for performing restoration processing for rewriting the recording device;
It is made to have.
(7) 本発明の第7の態様は、上述した第6の態様に係るハードディスクドライブ装置において、
装置筐体内に電池もしくはバッテリを組み込み、電池もしくはバッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されるようにしたものである。
(7) A seventh aspect of the present invention is the hard disk drive device according to the sixth aspect described above ,
A battery or a battery is incorporated in the apparatus casing, and power from the battery or the battery is supplied to the magnetic recording device, the controller, and the nonvolatile memory.
(8) 本発明の第8の態様は、上述した第1〜第7の態様に係るハードディスクドライブ装置において、
モード設定手段が、ユーザの物理的な操作によって2通りの切替状態のいずれかを維持することができる機械式切替スイッチによって構成されており、当該切替スイッチの第1の切替状態によって通常モード、第2の切替状態によって復元モードの設定がなされるようにしたものである。
(8) An eighth aspect of the present invention is the hard disk drive device according to the first to seventh aspects described above ,
The mode setting means is configured by a mechanical switch that can maintain either of two switching states by a user's physical operation, and the normal mode, the first switching state is determined by the first switching state of the switching switch. The restoration mode is set according to the switching state of 2.
(9) 本発明の第9の態様は、上述した第1〜第7の態様に係るハードディスクドライブ装置において、
モード設定手段が、少なくとも1ビットの情報を記録する不揮発性のビット記憶部と、外部装置から第1の外部接続用端子を介して与えられるモード設定コマンドによって当該1ビットの情報を書き換えるビット設定部と、によって構成されており、当該1ビットの情報が第1の論理状態であるときに通常モード、第2の論理状態であるときに復元モードの設定がなされるようにしたものである。
(9) A ninth aspect of the present invention is the hard disk drive device according to the first to seventh aspects described above ,
Non-volatile bit storage unit in which mode setting means records at least 1-bit information, and bit setting unit that rewrites the 1-bit information by a mode setting command given from the external device via the first external connection terminal The normal mode is set when the 1-bit information is in the first logical state, and the restoration mode is set when the 1-bit information is in the second logical state.
(10) 本発明の第10の態様は、上述した第1〜第9の態様に係るハードディスクドライブ装置において、
コントローラにバッファメモリを設け、
書込処理手段が、外部装置から与えられた書込対象となるデータを、このバッファメモリに一時的に格納した上で、磁気記録装置と不揮発性メモリとの双方に対して書き込む処理を行うようにしたものである。
(10) A tenth aspect of the present invention is the hard disk drive device according to the first to ninth aspects described above ,
Provide a buffer memory in the controller,
The writing processing means temporarily stores the data to be written supplied from the external device in the buffer memory, and then writes the data to both the magnetic recording device and the nonvolatile memory. It is a thing.
(11) 本発明の第11の態様は、上述した第1〜第10の態様に係るハードディスクドライブ装置において、
同期処理手段および復元処理手段のいずれか一方、もしくは双方が、同期処理もしくは復元処理を行う際に、磁気記録装置に格納されているデータファイルと不揮発性メモリに格納されているデータファイルとの整合性を調べ、不一致が生じたデータファイルについてのみ書き換えを行うようにしたものである。
(11) An eleventh aspect of the present invention is the hard disk drive device according to the first to tenth aspects described above ,
When either or both of the synchronization processing means and the restoration processing means perform synchronization processing or restoration processing, the data file stored in the magnetic recording device matches the data file stored in the non-volatile memory. Thus, only the data file in which the mismatch occurred is rewritten.
(12) 本発明の第12の態様は、上述した第1〜第11の態様に係るハードディスクドライブ装置において、
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に設け、
同期処理手段が、このリセット信号が送信されることを同期開始条件として、同期処理を行うようにしたものである。
(12) A twelfth aspect of the present invention is the hard disk drive device according to the first to eleventh aspects described above ,
A reset switch for transmitting a reset signal to the controller by a user reset operation is further provided.
The synchronization processing means performs the synchronization processing using the transmission of the reset signal as a synchronization start condition.
(13) 本発明の第13の態様は、上述した第1〜第11の態様に係るハードディスクドライブ装置において、
同期処理手段が、外部装置から第1の外部接続用端子を介して同期開始コマンドが与えられることを同期開始条件として、同期処理を行うようにしたものである。
(13) A thirteenth aspect of the present invention is the hard disk drive device according to the first to eleventh aspects described above ,
The synchronization processing means performs the synchronization process on the condition that the synchronization start command is given from the external device via the first external connection terminal.
(14) 本発明の第14の態様は、上述した第1〜第11の態様に係るハードディスクドライブ装置において、
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に設け、
復元処理手段が、このリセット信号が送信されることを復元開始条件として、復元処理を行うようにしたものである。
(14) A fourteenth aspect of the present invention is the hard disk drive device according to the first to eleventh aspects described above ,
A reset switch for transmitting a reset signal to the controller by a user reset operation is further provided.
The restoration processing means performs restoration processing using the transmission of the reset signal as a restoration start condition.
(15) 本発明の第15の態様は、上述した第1〜第11の態様に係るハードディスクドライブ装置において、
復元処理手段が、外部装置から第1の外部接続用端子を介して復元開始コマンドが与えられることを復元開始条件として、復元処理を行うようにしたものである。
(15) According to a fifteenth aspect of the present invention, in the hard disk drive device according to the first to eleventh aspects described above ,
The restoration processing means performs the restoration process on the condition that the restoration start command is given from the external device via the first external connection terminal.
(16) 本発明の第16の態様は、上述した第1〜第15の態様に係るハードディスクドライブ装置において、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを圧縮してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを伸張する処理を行うようにしたものである。
(16) A sixteenth aspect of the present invention is the hard disk drive device according to the first to fifteenth aspects described above ,
When either or both of the writing processing means and the synchronization processing means write to the nonvolatile memory, the data file to be written is compressed and then written,
Either one or both of the read processing means and the restoration processing means performs a process of expanding the read data file when reading from the nonvolatile memory.
(17) 本発明の第17の態様は、上述した第1〜第16の態様に係るハードディスクドライブ装置において、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを暗号化してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを復号化する処理を行うようにしたものである。
(17) A seventeenth aspect of the present invention is the hard disk drive device according to the first to sixteenth aspects described above ,
When either or both of the writing processing means and the synchronization processing means write to the non-volatile memory, a process of writing after encrypting the data file to be written is performed,
Either or both of the read processing means and the restoration processing means perform a process of decrypting the read data file when reading from the nonvolatile memory.
(18) 本発明の第18の態様は、上述した第17の態様に係るハードディスクドライブ装置において、
ユーザの設定操作により複数ビットの論理値を設定可能なDIPスイッチを更に設け、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、DIPスイッチによって設定されている論理値を暗号キーとして用いた暗号化を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、DIPスイッチによって設定されている論理値を暗号キーとして用いた復号化を行うようにしたものである。
(18) According to an eighteenth aspect of the present invention, in the hard disk drive device according to the seventeenth aspect described above ,
Further provided is a DIP switch capable of setting a multi-bit logical value by a user setting operation,
Either one or both of the writing processing means and the synchronization processing means performs encryption using the logical value set by the DIP switch as the encryption key,
Either one or both of the read processing means and the restoration processing means performs decryption using a logical value set by the DIP switch as an encryption key.
(19) 本発明の第19の態様は、上述した第17の態様に係るハードディスクドライブ装置において、
コントローラに、不揮発性メモリ内の管理領域に所定の暗号キーを書き込む機能と、外部装置から第1の外部接続用端子を介して、所定のパスワードについての認証コマンドが与えられたときに、当該パスワードが正しいか否かを判定する機能と、当該パスワードが正しいと判断された場合に、不揮発性メモリから暗号キーを読み出す機能と、を設け、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリから読み出された暗号キーを用いた暗号化を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリから読み出された暗号キーを用いた復号化を行うようにしたものである。
(19) According to a nineteenth aspect of the present invention, in the hard disk drive device according to the seventeenth aspect described above ,
When the controller is given a function to write a predetermined encryption key in the management area in the non-volatile memory and an authentication command for the predetermined password from the external device via the first external connection terminal, the password A function for determining whether the password is correct and a function for reading the encryption key from the nonvolatile memory when the password is determined to be correct,
Either one or both of the writing processing means and the synchronization processing means performs encryption using the encryption key read from the nonvolatile memory,
Either one or both of the reading processing means and the restoring processing means performs decryption using the encryption key read from the nonvolatile memory.
(20) 本発明の第20の態様は、上述した第1〜第19の態様に係るハードディスクドライブ装置において、
復元処理手段が、復元処理を行うたびに、不揮発性メモリ内の管理領域に復元処理の累積実行回数を書き込む処理を行い、累積実行回数が所定の上限回数に達していた場合には、復元処理を行わないようにしたものである。
(20) According to a twentieth aspect of the present invention, in the hard disk drive device according to the first to nineteenth aspects described above ,
Each time the restoration processing means performs restoration processing, the restoration processing means performs processing for writing the cumulative number of execution times of restoration processing in the management area in the nonvolatile memory, and when the cumulative number of execution times has reached a predetermined upper limit number of times, restoration processing is performed. Is not performed.
(21) 本発明の第21の態様は、上述した第1〜第20の態様に係るハードディスクドライブ装置において、
復元処理手段が、復元処理を行う前に、不揮発性メモリ内の管理領域に書き込まれている復元可能期間を示す情報を読み出してチェックし、当該復元可能期間内の時点にのみ、復元処理を行うようにしたものである。
(21) According to a twenty-first aspect of the present invention, in the hard disk drive device according to the first to twentieth aspects described above ,
The restoration processing means reads and checks information indicating the restoration possible period written in the management area in the non-volatile memory before performing the restoration processing, and performs the restoration processing only at a time point within the restoration possible period. It is what I did.
(22) 本発明の第22の態様は、上述した第1〜第21の態様に係るハードディスクドライブ装置において、
コントローラに、
通常モードが設定されており、外部装置から第1の外部接続用端子を介して初期化コマンドが与えられた場合に、磁気記録装置と不揮発性メモリとの双方に対して、初期化処理を行う初期化処理手段を更に設けたものである。
(22) According to a twenty-second aspect of the present invention, in the hard disk drive device according to the first to twenty-first aspects described above ,
To the controller
When the normal mode is set and an initialization command is given from the external device via the first external connection terminal, initialization processing is performed for both the magnetic recording device and the nonvolatile memory. An initialization processing means is further provided.
本発明に係るハードディスクドライブ装置によれば、第1の寸法規格に合致した筐体内に、第2の寸法規格に合致した磁気記録装置と不揮発性メモリとが組み込まれ、通常モードにおいて、コントローラによるミラーリング動作が実行される。これにより、磁気記録装置内のデータは常に不揮発性メモリ内にも格納される。このため、単一の装置でありながら、安全性の高いバックアップが自動的に行われることになり,トラブル発生時には、不揮発性メモリ内のデータを用いて、磁気記録装置内にデータ復元を行うことができる。また、不揮発性メモリの部分は必要に応じて簡単に取り外すことが可能なので、単純な作業により、過去の履歴を逐次保存しておくことが可能になる。ここで、不揮発性メモリは、比較的小型の記憶装置であるため、履歴保存のための収納スペースを低減できる。 According to the hard disk drive device of the present invention, the magnetic recording device and the non-volatile memory that meet the second dimensional standard are incorporated in the housing that conforms to the first dimensional standard, and mirroring by the controller in the normal mode. The action is executed. Thereby, the data in the magnetic recording device is always stored in the nonvolatile memory. For this reason, a highly secure backup is automatically performed even though it is a single device, and data is restored in the magnetic recording device using data in the nonvolatile memory when trouble occurs. Can do. In addition, since the nonvolatile memory portion can be easily removed as necessary, past history can be sequentially stored by a simple operation. Here, since the non-volatile memory is a relatively small storage device, it is possible to reduce the storage space for history storage.
以下、本発明を図示する実施形態に基づいて説明する。 Hereinafter, the present invention will be described based on the illustrated embodiments.
<<< §1.本発明の基本概念 >>>
既に述べたとおり、ハードディスクドライブ装置は、様々な電子機器に組み込まれる汎用性のある装置であり、現在、5インチ、3.5インチ、2.5インチ等の標準の寸法規格が定められている。
<<< §1. Basic concept of the present invention >>
As already described, the hard disk drive device is a versatile device incorporated in various electronic devices, and standard dimensions such as 5 inches, 3.5 inches, and 2.5 inches are currently defined. .
図1に、従来から利用されている一般的なハードディスクドライブ装置を示す。ここで、上段に示す装置10は、第1の寸法規格に合致した装置であり、装置筐体11の側面に外部接続用端子12が設けられ、内部にはプラッタ13が組み込まれている。これに対して、下段に示す装置20は、第2の寸法規格に合致した装置であり、装置筐体21の側面に外部接続用端子22が設けられ、内部にはプラッタ23が組み込まれている。なお、各装置の内部には、この他、プラッタを回転させるスピンドルモータ、データの読み書きを行う磁気ヘッド、この磁気ヘッドを駆動する駆動モータ、これらの制御を行うコントローラなどが組み込まれているが、ここでは説明を省略する。
FIG. 1 shows a typical hard disk drive device that has been conventionally used. Here, the
ここでは、一例として、第1の寸法規格が、3.5インチハードディスクドライブの規格であり、第2の寸法規格が、2.5インチハードディスクドライブの規格であるものとする。現在、3.5インチ規格の装置は、デスクトップパソコンに広く利用されており、2.5インチ規格の装置は、ノート形パソコンに広く利用されている。3.5インチ規格の装置10の場合、直径3.5インチのプラッタ13が用いられ、装置筐体11の外形も所定の規格寸法が定められている。また、外部接続用端子12も、3.5インチ規格に合致したものとなっている。図には、外部接続用端子12として、信号用端子12Aと電源用端子12Bが設けられた例が示されている。一方、2.5インチ規格の装置20の場合、直径2.5インチのプラッタ23が用いられ、装置筐体21の外形も所定の規格寸法が定められている。また、外部接続用端子22も、2.5インチ規格に合致したものとなっている。図には、外部接続用端子22として、信号用端子22Aと電源用端子22Bが設けられた例が示されている。なお、本願の図に示す端子構成は、説明の便宜のためのものであり、正しい規格どおりのものではない。
Here, as an example, it is assumed that the first dimensional standard is a 3.5-inch hard disk drive standard and the second dimensional standard is a 2.5-inch hard disk drive standard. Currently, 3.5-inch standard devices are widely used for desktop personal computers, and 2.5-inch standard devices are widely used for notebook personal computers. In the case of the 3.5-inch
本発明の第1の着眼点は、第1の寸法規格に合致した装置10の筐体11内に、この第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置20を組み込むようにして、筐体11内に余分な収納スペースを確保し、当該余分な収納スペースに不揮発性メモリを組み込む、という点にある。そうすれば、外形は第1の寸法規格に合致した単一のハードディスクドライブ装置でありながら、内部には、ハードディスクドライブ装置(第2の寸法規格)と不揮発性メモリとの双方が組み込まれているため、双方に同一のデータを書き込むことにより、いわゆるミラーリングによる冗長保存が可能になる。すなわち、ハードディスクドライブ装置に格納されたデータファイルは、自動的に不揮発性メモリへバックアップされる。
The first point of view of the present invention is that the hard
したがって、ここでは、第1の寸法規格として3.5インチの規格、第2の寸法規格として2.5インチの規格をそれぞれ選択した例を述べるが、本発明を実施する上では、第1の寸法規格よりも第2の寸法規格の方が小さい規格であれば、両規格として、どのような寸法規格の組み合わせを選択してもかまわない。 Therefore, here, an example will be described in which a standard of 3.5 inches is selected as the first dimensional standard and a standard of 2.5 inches is selected as the second dimensional standard. As long as the second dimension standard is smaller than the dimension standard, any combination of dimension standards may be selected as both standards.
一方、本発明の第2の着眼点は、バックアップデータが格納された不揮発性メモリを取り外し可能とする点にある。そうすれば、必要に応じて、不揮発性メモリの部分を交換することができ、単純な作業により、過去の履歴を逐次保存しておくことが可能になる。また、履歴保存のために必要な収納スペースは、ハードディスクドライブ装置全体ではなく、不揮発性メモリの部分だけで足りるため、収納スペースを大幅に削減することができる。 On the other hand, the second focus of the present invention is that the nonvolatile memory in which backup data is stored can be removed. Then, if necessary, the nonvolatile memory portion can be exchanged, and the past history can be sequentially stored by a simple operation. Further, since the storage space necessary for history storage is not the entire hard disk drive device but only the nonvolatile memory portion, the storage space can be greatly reduced.
<<< §2.第1の実施形態の構造 >>>
図2は、本発明の第1の実施形態に係るハードディスクドライブ装置30の斜視図である(内部の構成要素の一部を破線で示す)。図示のとおり、この装置30は、磁気記録ユニット100とメモリユニット200とによって構成されている。
<<< §2. Structure of the first embodiment >>
FIG. 2 is a perspective view of the hard
磁気記録ユニット100用の筐体110の側面には、第1の寸法規格(たとえば、3.5インチ規格)に合致した第1の外部接続用端子120が設けられている。この例の場合、第1の外部接続用端子120は、信号用端子120Aと電源用端子120Bとによって構成されている。また、筐体110の内部には、磁気記録装置130とコントローラ140とが内蔵されており、第1の外部接続用端子120の上方には、DIPスイッチ150が設けられている。ここで、磁気記録装置130は、第2の寸法規格(たとえば、2.5インチ規格)のハードディスクドライブ装置によって構成されており、第2の寸法規格に合致した第2の外部接続用端子132を備えている。別言すれば、図2に示す磁気記録装置130は、図1の下段に示すハードディスクドライブ装置20をそのまま利用したものである。
A first
一方、メモリユニット200用の筐体210内には、メモリインターフェイス220と不揮発性メモリ230とが内蔵されている。ここに示す例の場合、不揮発性メモリ230として、8枚のカード型メモリを用いており、メモリインターフェイス220は、これらカード型メモリを抜き差しするためのメモリソケットによって構成されている。カード型メモリとしては、たとえば、マイクロSDカード、ミニSDカードなどのSDメモリカードや、その他のカード型フラッシュメモリを用いればよい。
On the other hand, a
ここに示す基本的実施形態の場合、不揮発性メモリ230の全記憶容量(たとえば、128GB)が、磁気記録装置130の全記憶容量(たとえば、120GB)以上となるように設定されており、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へバックアップすることができる。
In the case of the basic embodiment shown here, the total storage capacity (for example, 128 GB) of the
このように、図2に示すハードディスクドライブ装置30は、磁気記録装置130を内蔵した磁気記録ユニット100と、不揮発性メモリ230を内蔵したメモリユニット200と、によって構成される装置であり、磁気記録ユニット100用の筐体110と、メモリユニット200用の筐体210とは、着脱手段(図2では、図示省略)によって、互いに結合したり分離したりすることができるように構成されている。しかも、両者を結合して得られる合成筐体が、ハードディスクドライブ装置に関する第1の寸法規格(ここに示す例の場合、3.5インチ規格)に合致するように設計されている。
As described above, the hard
図3は、図2に示すハードディスクドライブ装置30を、2つのユニット100,200に分離した状態を示す斜視図である。図示のとおり、磁気記録ユニット100用の筐体110の結合面近傍には、中継端子115、嵌合用突起部116,117が設けられており、メモリユニット200用の筐体210の結合面近傍には、中継端子215、嵌合用孔部216,217が設けられている(これらの構成要素は、図2では図示が省略されている)。
FIG. 3 is a perspective view showing a state in which the hard
2つの筐体110,210を結合させると、中継端子115,215の対応する電極が接触し、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続される。また、嵌合用突起部116の先端爪部が嵌合用孔部216に嵌合し、嵌合用突起部117の先端爪部が嵌合用孔部217に嵌合することにより、2つのユニット100,200が結合状態に維持される。嵌合用突起部116,117は、弾性材料によって構成されているため、必要に応じて弾性変形させることにより、嵌合状態を解除し、2つのユニット100,200を図示のとおり分離させることが可能である。
When the two
このように、嵌合用突起部116,117および嵌合用孔部216,217は、磁気記録ユニット100とメモリユニット200とを互いに結合したり分離したりするための着脱手段として機能する。もちろん、着脱手段としては、寸法規格を逸脱しない限り、この他にも様々な構造のものを用いることが可能であり、具体的な着脱方法も、様々なものを利用可能である。たとえば、ネジを用いて両筐体を固定するような着脱手段を用いることもできるし、磁石の吸引力を利用して両筐体を固定するような着脱手段を用いることもできる。
As described above, the
図2に示すように、磁気記録ユニット100とメモリユニット200とを互いに結合した状態にすると、上述したとおり、両者を結合して得られる合成筐体は、第1の寸法規格に合致し、かつ、外部接続用端子120も第1の寸法規格に合致したものであるため、外形上、この図2に示すハードディスクドライブ装置30は、図1に示す従来のハードディスクドライブ装置10と同等の装置として取り扱うことができる。また、§3で述べるように、当該装置30は、従来装置10と同等のデータ保存機能を有しているため、結局、外形のみならず機能の点においても、従来装置10と変わりはない。
As shown in FIG. 2, when the
したがって、たとえば、第1の寸法規格に応じた従来装置10を用いているデスクトップパソコンについて、従来装置10を、図2に示す本発明に係る装置30に交換しても何ら支障はなく、ハードディスクドライブ装置としての同等の機能を果たすことができる。その上、本発明に係る装置30には、§3で述べるように、自動バックアップ機能が備わっているので、万一、磁気記録装置130に障害が生じてデータファイルが失われるような事態が生じても、不揮発性メモリ230に格納されているバックアップデータによって、データファイルの復元が可能になる。
Therefore, for example, with respect to a desktop personal computer using the
コントローラ140は、このような自動バックアップ処理や復元処理を行う機能をもった電子回路であり、その具体的な処理機能については後述する。なお、図には配線は示されていないが、実際には、第1の外部接続用端子120とコントローラ140との間には所定の配線が施されており、コントローラ140は信号用端子120Aを介して、外部装置(たとえば、パソコン)との間で信号のやりとりを行うことができる。また、電源用端子120Bからコントローラ140に対して電源が供給される。同様に、第2の外部接続用端子132とコントローラ140との間にも所定の配線が施されており、磁気記録装置130は、第2の外部接続用端子132を介して、コントローラ140から電源の供給を受けるとともに、コントローラ140との間で信号のやりとりを行うことができる。
The
更に、コントローラ140と中継端子115(図3参照)との間にも配線が施されており、中継端子215(図3参照)とメモリインターフェイス(メモリソケット)220との間にも配線が施されている。したがって、図2に示すように、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態においては、コントローラ140と不揮発性メモリ(カード型メモリ)230とは、中継端子115,215を介して間接的に接続された状態になる。このため、不揮発性メモリ230は、コントローラ140から電源の供給を受けるとともに、コントローラ140によるアクセスを受けることができる。
Further, wiring is also provided between the
なお、図2および図3には、コントローラ140が磁気記録ユニット100内に設けられ、第1の外部接続用端子120が磁気記録ユニット用の筐体110に備わっている典型例を示すが、コントローラ140はメモリユニット200内に設けることも可能であり、また、第1の外部接続用端子120をメモリユニット用の筐体210側に設けることも可能である。すなわち、本発明の第1の実施形態を実施する場合、コントローラ140は、磁気記録ユニット100もしくはメモリユニット200のいずれに設けてもかまわない。同様に、第1の寸法規格に合致した第1の外部接続用端子120も、磁気記録ユニット用の筐体110もしくはメモリユニット用の筐体210のいずれに設けてもかまわない。
2 and 3 show a typical example in which the
コントローラ140や第1の外部接続用端子120をどこに設けた場合でも、少なくとも、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、コントローラ140は、第1の外部接続用端子120と、第2の外部接続用端子132と、不揮発性メモリ230と、に対して、直接もしくは間接的に接続されるように、必要な配線を施しておけば、コントローラ140は、必要な機能を果たすことができる。また、少なくとも、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、外部装置から第1の外部接続用端子120に対して与えられた電源が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるように、必要な配線を施しておけば、各構成要素に対して、外部装置からの電源供給が可能になる。
Regardless of where the
ここに示す例の場合、図3に示すように、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とに、それぞれ中継端子115,215が設けられている。このため、両筐体を結合したときに、この中継端子115,215を介して、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続されることになり、必要な電源供給や信号のやりとりが行われることになる。
In the case of the example shown here, as shown in FIG. 3,
<<< §3.第1の実施形態の動作 >>>
続いて、図2に示す第1の実施形態に係るハードディスクドライブ装置30の動作を説明する。図4は、図2に示すハードディスクドライブ装置30の基本構成を示すブロック図である。§2で述べたとおり、このハードディスクドライブ装置30は、相互に脱着自在な磁気記録ユニット100とメモリユニット200とによって構成されており、両者を結合した状態において、第1の寸法規格に合致したハードディスクドライブ装置として機能する。
<<< §3. Operation of the first embodiment >>
Next, the operation of the hard
磁気記録ユニット100用の筐体110内には、磁気記録装置130とコントローラ140が組み込まれており、筐体110の側面には、第1の寸法規格に合致した第1の外部接続用端子120と中継端子115とが設けられている。ここで、磁気記録装置130は、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、第2の寸法規格に合致した第2の外部接続用端子132を備えている。
A
一方、メモリユニット200用の筐体210内には、メモリインターフェイス220と、不揮発性メモリ230が組み込まれており、筐体210の側面には、中継端子215が設けられている。
On the other hand, a
両筐体110,210を結合すると、中継端子115,215が電気的に接続され、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続される。その結果、コントローラ140は、第1の外部接続用端子120と、第2の外部接続用端子132と、不揮発性メモリ230と、に接続された状態になる。また、図示のとおり、第1の外部接続用端子120には、外部装置500が接続される。外部装置500は、たとえば、パソコン等の電子機器であり、当該ハードディスクドライブ装置30は、この外部装置500用のデータ記憶装置として機能する。
When the
第1の外部接続用端子120には、図2に示すように、電源用端子120Bが含まれており、この電源用端子120Bには、外部装置500から電源が供給される。この電源は、装置内の配線を通じて、コントローラ140,磁気記録装置130,不揮発性メモリ230へと供給される。
As shown in FIG. 2, the first
コントローラ140は、ハードディスクドライブ装置30の動作を統括管理する機能をもった電子回路であり、マイクロプロセッサと、このマイクロプロセッサが実行するプログラムを格納したメモリと、処理対象となるデータを一時的に格納するバッファメモリと、を備えている。結局、コントローラ140が行う様々な処理は、所定のプログラムに基づくマイクロプロセッサの動作によって実行されることになるが、ここでは、このコントローラ140を、個々の処理機能をもった複数の処理手段の集合体として捉え、各処理手段が実行する処理内容を説明することにする。
The
図4の下段に、このコントローラ140を構成する複数の処理手段を、それぞれブロックとして示す。図示のとおり、コントローラ140を構成する処理手段は、モード設定手段141,書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146,復元処理手段147である。以下、これら各手段の処理内容を順に説明する。
The lower part of FIG. 4 shows a plurality of processing means constituting the
<1> モード設定手段の処理内容
モード設定手段141は、ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定する構成要素である。本発明に係るハードディスクドライブ装置は、通常モードと復元モードとの2通りのモードで動作する。コントローラ140は、通常モードでは、磁気記録装置130と不揮発性メモリ230とをミラーリングして使用し、磁気記録装置130内に格納すべきデータを不揮発性メモリ230内にもコピーして、自動バックアップを行う。一方、復元モードでは、逆に、不揮発性メモリ230内のデータを磁気記録装置130内にコピーする処理が行われる。
<1> Processing Contents of Mode Setting Unit The
このように、通常モードと復元モードとでは、その処理内容が正反対と言えるほど異なっている。すなわち、通常モードでは、磁気記録装置130の格納内容を、不揮発性メモリ230にバックアップする、という基本的考え方に基づいて、不揮発性メモリ230の格納内容が、常に磁気記録装置130の格納内容に一致するような処理が行われる。これに対して、復元モードでは、磁気記録装置130の格納内容に支障が生じたという前提で、不揮発性メモリ230にバックアップされていた内容を、磁気記録装置130へ転送して復元する処理が行われる。そこで、本発明では、これら2つの処理を「モード」という形式で明確に区別し、通常モード中に復元処理が誤って行われることがないようにするとともに、復元モード中に通常処理が誤って行われることがないように配慮している。
As described above, the processing contents of the normal mode and the restoration mode are different from each other so that it can be said to be the opposite. That is, in the normal mode, based on the basic idea that the stored contents of the
すなわち、ユーザは、通常、このハードディスクドライブ装置30に対して、通常モードの設定を行って使用すればよい。図4の下段に示すように、この通常モードの設定では、書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146は各処理を実行するが、復元処理手段147は復元処理を実行しないように構成されている。したがって、通常モードに設定しておく限り、誤って復元処理手段147による復元処理が行われることはない。
That is, the user should normally use the hard
一方、磁気記録装置130に何らかの支障が生じた場合には、復元処理が必要になる。この場合、ユーザは復元モードの設定を行って、復元処理手段147を動作させることになる。復元モードの設定では、復元処理手段147のみがその処理を実行するように構成されているので、誤って不揮発性メモリ230の内容が改変されることはない。
On the other hand, if any trouble occurs in the
モード設定手段141としては、ユーザの物理的な操作によって2通りの切替状態のいずれかを維持することができる機械式切替スイッチ(いわゆる、トグルスイッチ)を用いるのが好ましい。当該切替スイッチの第1の切替状態によって通常モード、第2の切替状態によって復元モードの設定がなされるようにしておけば、ユーザは、スイッチの物理的な切替操作によって、確実に所望のモード設定を行うことができる。 As the mode setting means 141, it is preferable to use a mechanical changeover switch (so-called toggle switch) that can maintain one of two switching states by a physical operation of the user. If the normal mode is set according to the first switching state of the changeover switch and the restoration mode is set according to the second switching state, the user can reliably set the desired mode by the physical switching operation of the switch. It can be performed.
このような切替スイッチとしては、たとえば、図2に示すDIPスイッチ150の1ビット分のスイッチを利用することができる。ただ、上述したように、モード設定手段141によるモード設定を誤ると、データの逸失など致命的な結果がもたらされる可能性があるので、実用上は、より大きなトグルスイッチを用い、操作パネル上に「通常モード」および「復元モード」を明記するのが好ましい。もちろん、このような切替スイッチは、磁気記録ユニット用の筐体110側に設けてもよいし、メモリユニット用の筐体210側に設けてもよい。
As such a change-over switch, for example, a one-bit switch of the
別な構成例として、モード設定手段141を、少なくとも1ビットの情報を記録する不揮発性のビット記憶部と、外部装置500から第1の外部接続用端子120を介して与えられるモード設定コマンドによって当該1ビットの情報を書き換えるビット設定部と、によって構成することも可能である。この場合、当該1ビットの情報が第1の論理状態であるときに通常モード、第2の論理状態であるときに復元モードの設定がなされるようにしておけば、ユーザは、モード設定コマンドによる切替操作によって、所望のモード設定を行うことができる。
As another configuration example, the
具体的には、ビット設定部には、外部装置500から与えられるモード設定コマンドを解釈する機能を設けておき、当該コマンドが、通常モードに設定するコマンドであった場合には、ビット記憶部の該当ビットを第1の論理状態(たとえば、「0」)とし、復元モードに設定するコマンドであった場合には、ビット記憶部の該当ビットを第2の論理状態(たとえば、「1」)とする処理を実行させればよい。この場合、外部装置500側には、モード設定コマンドに対応するデジタル信号を生成して、第1の外部接続用端子120に与える機能を付加しておく必要があるが、このような機能は、外部装置500に所定のプログラム(ハードディスクドライブ装置30用のドライバプログラム)をインストールする操作によって付加することができる。
Specifically, the bit setting unit is provided with a function for interpreting a mode setting command given from the
前述したとおり、書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146は、モード設定手段141の設定モードが「通常モード」であった場合にのみその処理を実行し、復元処理手段147は、モード設定手段141の設定モードが「復元モード」であった場合にのみその処理を実行する。続いて、これら個々の処理手段による処理内容を順に説明する。
As described above, the writing processing unit 142, the
<2> 書込処理手段の処理内容
書込処理手段142は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル書込コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う。上述したとおり、コントローラ140は、処理対象となるデータを一時的に格納するバッファメモリを備えているので、書込処理手段142は、外部装置500から与えられた書込対象となるデータを、このバッファメモリに一時的に格納した上で、磁気記録装置130と不揮発性メモリ230との双方に対して書き込む処理を行うようにすればよい。
<2> Processing Contents of Write Processing Unit When the normal mode is set, the write processing unit 142 receives a file write command from the
磁気記録装置130への書込処理は、多くの場合、外部装置500から第1の外部接続用端子120に対して与えられたファイル書込コマンドを、そのまま第2の外部接続用端子132に転送するだけの処理で済む。たとえば、磁気記録装置130が、現在最も普及している「FAT32」の仕様でフォーマットされたハードディスクドライブ装置であり、外部装置500が当該仕様のハードディスクドライブ装置への読み書きに対応するOSを用いていた場合には、外部装置500は磁気記録装置130に対して直接アクセスすることが可能であるから、コントローラ140は、両者間でやりとりされる信号を中継する役割を果たすだけでよい。
In many cases, the write processing to the
一般に、ハードディスクドライブ装置内におけるプラッタへのデータの読み書きは、トラックの各セクター単位で行われる。このため、特定のデータファイルをプラッタへ書き込む場合、どのようなファイル名が付されたデータファイルが、どのセクターに書き込まれたかを示すFAT(ファイルアロケーションテーブル)を作成し、これを特定の管理セクターに格納して管理する処理が必要になる。ただ、このようなファイル管理機能は、磁気記録装置130内に組み込まれた既存のコントローラ(コントローラ140とは別な構成要素)の機能として既に用意されているので、磁気記録装置130への書込処理を行う場合、本発明に用いるコントローラ140にこのようなファイル管理機能を用意しておく必要はない。別言すれば、磁気記録装置130への実質的な書込処理は、磁気記録装置130に内蔵されているコントローラによって実行されるので、コントローラ140は、第1の外部接続用端子120と第2の外部接続用端子132との間を行き来する信号を中継する機能を果たせば足りる。
In general, reading / writing of data from / to a platter in a hard disk drive is performed in units of sectors of a track. For this reason, when writing a specific data file to the platter, a FAT (File Allocation Table) indicating what sector the data file with the file name is written to is created, and this is designated as a specific management sector. It is necessary to store and manage in However, since such a file management function is already prepared as a function of an existing controller (a component different from the controller 140) incorporated in the
これに対して、不揮発性メモリ230への実質的な書込処理は、コントローラ140によってなされなければならない。したがって、コントローラ140は、不揮発性メモリ230への書き込みを行う際には、そのアドレス空間を複数のセクターに分割し、所定の管理セクターにFATを作成し、ファイル管理を行う必要がある。このようなファイル管理の方法は公知の技術であるため、ここでは詳しい説明は省略する。なお、上述した例は、あくまでも一実施形態であり、利用するOSによっては、コントローラ140が受けもつ処理内容やファイル管理の方法が異なるケースもある。したがって、本発明を実施する上で、コントローラの処理内容やファイル管理の方法は、ここで述べる実施形態に限定されるものではない。
On the other hand, the substantial writing process to the
このように、外部装置500からファイル書込コマンドが与えられた場合、コントローラ140によって、書込対象となる同一のデータファイルを、磁気記録装置130と不揮発性メモリ230との双方に対して書き込む処理が行われるため、磁気記録装置130に格納されたデータファイルは、常に、不揮発性メモリ230内にも格納されていることになり、両者に格納されているデータファイルの構成は常に一致することになる。
Thus, when a file write command is given from the
<3> 削除処理手段の処理内容
このようなデータファイルの構成一致は、ファイルの削除が行われた場合にも維持される。すなわち、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル削除コマンドが与えられた場合、削除処理手段143によって、磁気記録装置130と不揮発性メモリ230との双方に対して、削除対象となる同一のデータファイルを削除する処理が行われる。この場合も、磁気記録装置130内のファイルを削除する実質的な処理は、磁気記録装置130に内蔵されているコントローラによって実行されるので、コントローラ140は、ファイル削除コマンドを中継する機能を果たせば足りる。これに対して、不揮発性メモリ230内のファイルを削除する実質的な処理は、コントローラ140が行う必要があるので、コントローラ140は、不揮発性メモリ230内のFATの書き換えなど、必要な処理を実行する。
<3> Processing Contents of Deletion Processing Unit Such data file configuration consistency is maintained even when a file is deleted. That is, when the normal mode is set and a file deletion command is given from the
<4> 読出処理手段の処理内容
一方、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル読出コマンドが与えられた場合には、読出処理手段144によって、読出対象となるデータファイルを読み出し、これを第1の外部接続用端子120を介して外部装置500へ送信する処理が実行される。上述したとおり、書込処理手段142および削除処理手段143の機能により、磁気記録装置130に格納されているデータファイル構成と、不揮発性メモリ230に格納されているデータファイル構成とは、常に一致するように維持されるので、ファイル読出コマンドが与えられた場合、読出対象となるデータファイルは、磁気記録装置130から読み出すこともできるし、不揮発性メモリ230から読み出すこともできる。したがって、読出処理手段144は、磁気記録装置130および不揮発性メモリ230の少なくとも一方から、読出対象となるデータファイルを読み出し、これを外部装置500へと送信する処理を行えばよい。
<4> Processing Contents of Read Processing Unit On the other hand, when a file read command is given from the
ここで述べる実施形態の場合、読出処理手段144は、通常、磁気記録装置130から読出対象となるデータファイルを読み出し、これを外部装置500へと送信する処理を行う。ただ、磁気記録装置130からの読み出しに失敗した場合には、代わりに不揮発性メモリ230から同じデータファイルを読み出し、これを外部装置500へと送信する処理を行う。この場合、磁気記録装置130からの読み出しに失敗したことを示すエラー情報も外部装置500へと送信されるので、ユーザは、所望のデータファイルを取得することができるものの、磁気記録装置130に何らかの異常が生じたことを認識できる。
In the case of the embodiment described here, the read processing means 144 normally performs a process of reading a data file to be read from the
もちろん、双方から読み出したデータファイルをバッファメモリに一時的に格納した上で、両者を比較して一致を確認してから、これを外部装置500へと送信する処理を行ってもよい。この場合、両者が一致しなかった場合には、何らかの異常が発生したと判断できるので、外部装置500に対して、たとえば、不一致となった2通りのデータファイルを送信するとともに、エラー情報を併せて送信するなどの処理を行うことができる。
Of course, after the data files read from both sides are temporarily stored in the buffer memory, the two are compared to confirm a match, and then the process of transmitting them to the
さて、これまで述べたとおり、このハードディスクドライブ装置30を通常の形態で使用する限り、モード設定手段141を「通常モード」に設定して、書込処理手段142,削除処理手段143,読出処理手段144に各処理を実行させれば、支障なく、データファイルの書き込み、削除、読み出し操作を行うことができる。このとき、上述したとおり、磁気記録装置130に格納されている内容が、不揮発性メモリ230に自動的にバックアップされることになる。ただ、場合によって、以下に述べる同期処理、初期化処理、復元処理といった特殊な処理を行う必要が生じるケースがある。
As described above, as long as the
<5> 同期処理手段の処理内容
同期処理は、磁気記録装置130と不揮発性メモリ230との間で、データファイル構成に不一致が生じるような状況が生じた場合に、両者を強制的に一致させるよう同期をとる処理である。同期処理手段145は、通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように、不揮発性メモリ230を書き換える同期処理を行う。
<5> Processing Contents of the Synchronization Processing Unit The synchronization processing forcibly matches both the
具体的には、磁気記録装置130に格納されているデータファイルを、コントローラ140内のバッファメモリに読み出し、これを不揮発性メモリ230内に書き込む処理を、磁気記録装置130に格納されている全データファイルについて実行すればよい。別言すれば、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へコピーする処理が行われることになる。このとき、もし不揮発性メモリ230に対して初期化処理(フォーマット処理)が必要な場合には、初期化処理を実行した後に、コピーが実行される。
Specifically, the process of reading the data file stored in the
なお、この同期処理を実行する際に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとの整合性を調べ、不一致が生じたデータファイルについてのみ書き換えを行うようにしてもよい。すなわち、磁気記録装置130に格納されているが不揮発性メモリ230には格納されていないファイルがあった場合には、これを不揮発性メモリ230へコピーする処理を行い、磁気記録装置130と不揮発性メモリ230との双方に格納されているが、その内容が一致しないファイルがあった場合には、磁気記録装置130内のファイルを不揮発性メモリ230へ上書きする処理を行い、磁気記録装置130に格納されていないのに不揮発性メモリ230にのみ格納されているファイルがあった場合には、当該ファイルを削除する処理を行えばよい。
When this synchronization process is executed, the consistency between the data file stored in the
同期処理が必要になる典型的なケースは、不揮発性メモリ230を交換した場合である。具体的な運用例は§4で詳述するが、図4に示す構成において、磁気記録ユニット100からメモリユニット200を取り外し、新たなメモリユニット200を結合した場合、磁気記録装置130と新たなメモリユニット内の不揮発性メモリ230とは、データファイルの構成が一致しないことになる。このような場合、通常の形態での利用を開始する前に、同期処理を行って、データファイルの構成を一致させる処理が必要になる。
A typical case where synchronization processing is required is when the
このように、同期処理は、意図的に、不揮発性メモリ230内のデータファイルの構成を磁気記録装置130内のデータファイルの構成に一致させる必要があるときに実行すべき処理であるので、同期処理手段145は、通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合にのみ、同期処理を実行する。
As described above, the synchronization process is a process that should be executed when it is necessary to make the configuration of the data file in the
同期開始条件としては、本発明に係るハードディスクドライブ装置の設計時に、ユーザの利便性を考慮して任意の条件を設定しておくことができる。ハードウエアを利用して設定可能な最も単純な同期開始条件は、「所定のスイッチが操作されること」という条件である。たとえば、ユーザのリセット操作によりコントローラ140にリセット信号を送信するリセットスイッチを設けておき、同期処理手段145が、このリセット信号が送信されることを同期開始条件として、同期処理を行うようにしておけばよい。
As the synchronization start condition, an arbitrary condition can be set in consideration of user convenience when designing the hard disk drive device according to the present invention. The simplest synchronization start condition that can be set using hardware is a condition that “a predetermined switch is operated”. For example, a reset switch that transmits a reset signal to the
リセットスイッチは、磁気記録ユニット用の筐体110側に設けておいてもよいし、メモリユニット用の筐体210側に設けておいてもよい。たとえば、押圧操作を検知したときにリセット信号をコントローラ140に伝達する機能をもったリセットスイッチ(リセットボタン)を設けておけば、ユーザが、当該リセットボタンを押した時点で、コントローラ140にリセット信号が与えられ、同期処理手段145が同期処理を開始することになる。この場合、「リセットボタンが押されること」が同期開始条件として設定されていることになり、ユーザがリセットボタンを押すことにより、同期開始条件が成立したことになる。ユーザは、同期処理を行いたい場合には、リセットボタンを押す操作を行えばよい。
The reset switch may be provided on the magnetic
なお、リセットスイッチをON/OFFの2つのいずれかの状態に切り替えることができるトグルスイッチによって構成しておけば、ハードディスクドライブ装置30に電源供給が行われていない状態でも、リセット操作を行うことができる。たとえば、同期処理手段145に、電源供給を受けた時点で、当該トグルスイッチのON/OFF状態をチェックし、ON状態であった場合には、同期開始条件が成立したと判断して、同期処理を開始する機能をもたせておけばよい。
If the reset switch is configured by a toggle switch that can be switched to one of two states of ON / OFF, the reset operation can be performed even when the
一般に、メモリユニット200の交換作業は、電気的なトラブル発生を避けるため、ハードディスクドライブ装置30への電源供給が行われていない状態(外部装置500に電源が投入されていない状態か、ハードディスクドライブ装置30が外部装置500から取り外されている状態)で行われることになろう。そこで、ユーザは、この交換作業時に、リセットスイッチをON状態に切り替える操作を行えばよい。この状態では、電源供給がなされていないため、まだ、コントローラ140は動作していないが、その後、外部装置500からの電源供給が行われるようになれば、コントローラ140は、リセットスイッチがON状態になっていることを検知し、同期開始条件の成立が認識されるので、同期処理を開始することになる。こうして、同期処理が完了した後、ユーザは、リセットスイッチをOFF状態に切り替える操作を行えばよい。
In general, the replacement operation of the
もちろん、ソフトウエアによって設定可能な同期開始条件を用いることも可能である。たとえば、予め所定の同期開始コマンドを定めておき、「同期開始コマンドが与えられること」を同期開始条件として設定しておけば、同期処理手段145は、外部装置500から第1の外部接続用端子120を介して、当該同期開始コマンドが与えられることを同期開始条件として、同期処理を行うことができる。ユーザは、同期処理を行いたい場合、外部装置500を操作して、ハードディスクドライブ装置30に対して同期開始コマンドが与えられるようにすればよい。このように、同期開始コマンドを発生させる機能は、外部装置500に所定のプログラム(ハードディスクドライブ装置30用のドライバプログラム)をインストールすることによって付加することができる。
Of course, it is also possible to use a synchronization start condition that can be set by software. For example, if a predetermined synchronization start command is determined in advance and “synchronization start command is given” is set as a synchronization start condition, the synchronization processing means 145 sends the first external connection terminal from the
<6> 初期化処理手段の処理内容
一般的なデータ記録装置は、使用開始時に初期化処理が必要である。たとえば、ハードディスクドライブ装置の場合、初期化処理によって、トラックおよびセクタを設定する物理フォーマットとFATなどの記録領域を設定する論理フォーマットとが実行される。また、不揮発性メモリについても、これに類似した初期化処理が必要になる。
<6> Processing Contents of Initialization Processing Means A general data recording apparatus requires initialization processing at the start of use. For example, in the case of a hard disk drive device, a physical format for setting tracks and sectors and a logical format for setting a recording area such as FAT are executed by the initialization process. A similar initialization process is also required for the nonvolatile memory.
初期化処理手段146は、通常モードが設定されており、外部装置500から第1の外部接続用端子120を介して初期化コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、初期化処理を行う機能を有する。このような記録媒体に対する初期化処理は、既に公知の技術であるため、ここではこの初期化処理自体についての詳しい説明は省略する。
When the normal mode is set and the initialization processing unit 146 receives an initialization command from the
初期化処理を行うと、磁気記録装置130および不揮発性メモリ230に格納されていたデータファイルはすべて消去される。したがって、ユーザが、この初期化処理を実行するのは、ハードディスクドライブ装置30の利用を新たに開始するときということになる。初期化コマンドを発生させる機能も、外部装置500に所定のプログラム(ハードディスクドライブ装置30用のドライバプログラム)をインストールすることによって付加することができる。
When the initialization process is performed, all the data files stored in the
なお、磁気記録ユニット100やメモリユニット200を製品として販売する場合、実用上は、工場出荷時に、パソコン用の一般的なOSに適した標準フォーマット(たとえば、FAT32)で、初期化処理を行っておくのが好ましい。そうすれば、ユーザが、当該標準フォーマットに対応した外部装置500に接続して利用する限り、初期化処理の作業を省略することができる。このような観点から、この初期化処理手段146は、本発明を実施する上で必須の構成要素ではない。すなわち、ユーザは、工場出荷時に初期化が完了している製品を利用する限り、初期化処理を行う必要はない。
When the
<7> 復元処理手段の処理内容
復元処理は、復元モードにおいてのみ実行される特殊な処理であり、その目的は、磁気記録装置130内のデータファイル構成を、不揮発性メモリ230内のデータファイル構成に一致させることにある。
<7> Processing Contents of Restoration Processing Means Restoration processing is a special process executed only in the restoration mode, and its purpose is to change the data file configuration in the
ユーザが、この復元処理を必要とする第1のケースは、現在利用中の磁気記録装置130に何らかの支障が生じ、正常に動作しなくなった場合である。一般に、ハードディスクドライブ装置の寿命は3〜5年とされており、磁気記録装置130が、やがて正常に読み書きできない状態に陥ることは避けられない。このように、磁気記録装置130が正常に読み書きできなかった場合には、書込処理手段142や読出処理手段144によって、外部装置500に対してエラー情報(ファイル書込コマンドやファイル読出コマンドに対する失敗を示すレスポンス)が伝達されることになる。
The first case where the user needs this restoration processing is a case where the
このようなエラー情報により、現在利用中の磁気記録装置130に何らかのトラブルが生じたことを認識したユーザは、磁気記録装置130を正常なものに交換することにより、当該トラブルに対処することになる。具体的には、磁気記録装置130のみを新品に交換するか、あるいは、磁気記録ユニット100ごと新品に交換すればよい。いずれの場合も、新品の磁気記録装置130内には、これまで蓄積されてきたデータファイルは格納されていないので、これまで利用してきたメモリユニット200を、新品の磁気記録装置130を含む磁気記録ユニット100に接続し、復元処理を行うことになる。
A user who recognizes that some trouble has occurred in the
ユーザが、復元処理を必要とする第2のケースは、現在利用中の磁気記録装置130には何らトラブルは生じていないが、磁気記録装置130内のデータファイルの構成を、過去の状態に戻したい事情が生じた場合である。磁気記録装置130に対しては、様々なデータファイルが、新規書き込みされたり、上書き書き込み(書き換え)されたり、削除されたりし、データファイルの構成は逐次変化してゆくことになる。そして、この磁気記録装置130内に格納されているデータファイルのバックアップを保持する役割を果たす不揮発性メモリ230内のデータファイルの構成も、同様に、逐次変化してゆくことになる。
In the second case where the user needs the restoration process, no trouble has occurred in the
ただ、§4で例示する利用形態のように、ユーザは、所望の時点でメモリユニット200を交換することができる。この場合、磁気記録装置130内のデータファイルの構成は逐次変化してゆくが、交換のために取り外されたメモリユニット200の不揮発性メモリ230内のデータファイルの構成は、交換当時のまま保持される。したがって、後日、交換当時のデータファイルの構成を復元したい場合には、当該メモリユニット200を再び磁気記録ユニット100に接続し、不揮発性メモリ230の内容を磁気記録装置130内へコピーする復元処理を行えばよい。
However, the user can exchange the
この復元処理は、一方の記録媒体の内容を他方の記録媒体へコピーする処理という点において、前述した同期処理と共通する処理ということができる。両者の相違は、コピーの方向である。すなわち、前述した同期処理では、磁気記録装置130の内容が不揮発性メモリ230へコピーされるのに対して、ここで述べる復元処理では、不揮発性メモリ230の内容が磁気記録装置130へコピーされることになる。
This restoration process can be said to be a process common to the above-described synchronization process in terms of a process of copying the contents of one recording medium to the other recording medium. The difference between the two is the direction of copying. That is, in the synchronization process described above, the contents of the
要するに、復元処理手段147は、復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように、磁気記録装置130を書き換える復元処理を行う。
In short, the
具体的には、不揮発性メモリ230に格納されているデータファイルを、コントローラ140内のバッファメモリに読み出し、これを磁気記録装置130内に書き込む処理を、不揮発性メモリ230に格納されている全データファイルについて実行すればよい。このとき、もし磁気記録装置130に対して初期化処理(フォーマット処理)が必要な場合には、初期化処理を実行した後に、コピーが実行される。
Specifically, the process of reading the data file stored in the
なお、この同期処理を実行する際に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとの整合性を調べ、不一致が生じたデータファイルについてのみ書き換えを行うようにしてもよい。すなわち、不揮発性メモリ230に格納されているが磁気記録装置130には格納されていないファイルがあった場合には、これを磁気記録装置130へコピーする処理を行い、不揮発性メモリ230と磁気記録装置130との双方に格納されているが、その内容が一致しないファイルがあった場合には、不揮発性メモリ230内のファイルを磁気記録装置130へ上書きする処理を行い、不揮発性メモリ230に格納されていないのに磁気記録装置130にのみ格納されているファイルがあった場合には、当該ファイルを削除する処理を行えばよい。
When this synchronization process is executed, the consistency between the data file stored in the
上述したように、復元処理は、意図的に、磁気記録装置130内のデータファイルの構成を不揮発性メモリ230内のデータファイルの構成に一致させる必要があるときに実行すべき処理であるので、復元処理手段147は、復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合にのみ、復元処理を実行する。
As described above, the restoration process is a process to be executed when it is necessary to make the configuration of the data file in the
この復元開始条件としては、前述した同期開始条件と同様の条件設定を行うことができる。ハードウエアを利用して設定可能な最も単純な復元開始条件は、「所定のスイッチが操作されること」という条件である。たとえば、ユーザのリセット操作によりコントローラ140にリセット信号を送信するリセットスイッチを設けておき、復元処理手段147が、このリセット信号が送信されることを復元開始条件として、同期処理を行うようにしておけばよい。
As the restoration start condition, the same condition setting as the above-described synchronization start condition can be performed. The simplest restoration start condition that can be set using hardware is a condition that “a predetermined switch is operated”. For example, a reset switch that transmits a reset signal to the
このリセットスイッチは、前述した同期開始条件の設定に利用するリセットスイッチと兼用にしておいてもかまわない。したがって、磁気記録ユニット用の筐体110側に設けておいてもよいし、メモリユニット用の筐体210側に設けておいてもよい。また、ユーザの押圧操作によってリセット信号を発生させるリセットボタンによって構成してもよいし、ON/OFFの2つのいずれかの状態に切り替えることができるトグルスイッチによって構成しておいてもよい。
This reset switch may also be used as the reset switch used for setting the synchronization start condition described above. Therefore, it may be provided on the
あるいは、「電源の供給が開始されること」を復元開始条件とする設定も可能である。この場合、モード設定手段141によって復元モードが設定されている状態において、コントローラ140に対して電源の供給が開始された時点で、復元開始条件が成立することになり、ユーザが何ら特別な操作を行うことなしに、復元処理が実行されることになる。たとえば、ユーザが、ハードディスクドライブ装置30を外部装置500から取り外し、メモリユニット200を復元対象となる別なメモリユニットに交換し、モード設定手段141により復元モードの設定を行い(たとえば、DIPスイッチを復元モード側に切り替えればよい)、再び、ハードディスクドライブ装置30を外部装置500に接続して電源供給を行えば、コントローラ140は、直ちに復元開始条件が成立したことを認識し、復元処理を開始することになる。復元処理が完了した後、ユーザが、モード設定手段141を通常モードに切り替える操作を行えば、以後、復元後の磁気記録装置130を用いて、通常の利用形態が可能になる。
Alternatively, it is possible to set the restoration start condition to be “start of power supply”. In this case, when the restoration mode is set by the
もちろん、ソフトウエアによって設定可能な復元開始条件を用いることも可能である。たとえば、予め所定の復元開始コマンドを定めておき、「復元開始コマンドが与えられること」を復元開始条件として設定しておけば、復元処理手段147は、外部装置500から第1の外部接続用端子120を介して、当該復元開始コマンドが与えられることを復元開始条件として、復元処理を行うことができる。ユーザは、復元処理を行いたい場合、外部装置500を操作して、ハードディスクドライブ装置30に対して復元開始コマンドが与えられるようにすればよい。このように、復元開始コマンドを発生させる機能は、外部装置500に所定のプログラム(ハードディスクドライブ装置30用のドライバプログラム)をインストールすることによって付加することができる。
Of course, it is also possible to use restoration start conditions that can be set by software. For example, if a predetermined restoration start command is determined in advance and “restore start command is given” is set as a restoration start condition, the
<<< §4.第1の実施形態の利用形態 >>>
ここでは、これまで述べてきた第1の実施形態に係るハードディスクドライブ装置30についての具体的な利用形態の一例を説明する。
<<< §4. Usage form of the first embodiment >>
Here, an example of a specific usage mode of the hard
図5は、このハードディスクドライブ装置30を利用して、過去の履歴を逐次保存する運用を行う場合に必要なユニットを示すブロック図である。この例の場合、1台の磁気記録ユニット100と、当該磁気記録ユニット100に対して結合可能な複数台のメモリユニット200A,200B,200C,200D,200E,... が用意されている。ここで述べる例は、1ヶ月ごとにメモリユニット200を交換する運用を行うので、1年間の運用を行うと、12台のメモリユニット200が必要になる。
FIG. 5 is a block diagram showing units necessary for performing an operation of sequentially storing past histories using the hard
既に述べたとおり、磁気記録ユニット100内には、ハードディスクドライブ装置からなる磁気記録装置130が組み込まれており、各メモリユニット200A,200B,200C,200D,200E,... には、それぞれ不揮発性メモリ230が組み込まれている。ユーザは、これら複数台のメモリユニットのいずれか1つを選択的に1台の磁気記録ユニット100に結合して利用することになる。
As already described, a
さて、ここでは4月1日から上記運用を開始する場合のユーザの作業手順を説明する。まず、4月1日(運用開始の初日)に、図6(a) に示すように、4月分保存用のメモリユニット200Aを磁気記録ユニット100に結合してハードディスクドライブ装置30を構成し、これを外部装置500(この例ではパソコン)に接続する。この時点では、磁気記録ユニット100もメモリユニット200Aも未使用状態であり、ユーザのデータファイルは何ら保存されていない。また、モードは通常モードに設定されており、以下、基本的には通常モードのまま利用を続けることになる。
Now, the user's work procedure when starting the operation from April 1 will be described. First, on April 1 (first day of operation start), as shown in FIG. 6 (a), a
なお、必要があれば、ユーザは外部装置500から初期化コマンドを与え、初期化処理手段146によって、磁気記録装置130や不揮発性メモリ230に対する初期化処理を行う(前述したとおり、磁気記録ユニット100やメモリユニット200Aが、工場出荷時に初期化されていれば、ユーザによる初期化作業は不要である)。
If necessary, the user gives an initialization command from the
ユーザは、この状態で、当該ハードディスクドライブ装置30を利用することになる。すなわち、図6(b) に示すように、磁気記録ユニット100およびメモリユニット200A内に、4月の内容が蓄積されてゆくことになる。既に述べたとおり、外部装置500から、データファイルの書込処理(新規ファイルの書込処理や、既存ファイルに対する上書処理)あるいは削除処理を行えば、磁気記録ユニット100およびメモリユニット200Aの双方に対して同一のファイル書き込みおよびファイル削除が行われるので、両者に格納されたデータファイルの構成は常に同一になる。
In this state, the user uses the hard
こうして、4月1日〜4月30日まで、図6(b) に示す構成で利用すれば、最終的に、磁気記録ユニット100およびメモリユニット200Aに格納されているデータファイルの構成は、図7(a) に示すように、いずれも4月末の内容になる。ここで、ユーザは、月末の交換作業を実行する。すなわち、外部装置500を用いた一日の作業が終了したら、メモリユニット200Aをメモリユニット200Bに交換する作業を行う。電気的なトラブル発生を避けるため、この交換作業は、ハードディスクドライブ装置30への電源供給が行われていない状態(外部装置500に電源が投入されていない状態か、ハードディスクドライブ装置30が外部装置500から取り外されている状態)で行うのが好ましい。
Thus, if the configuration shown in FIG. 6 (b) is used from April 1 to April 30, the configuration of the data file stored in the
図7(b) は、この交換作業が完了した状態を示す。図示のとおり、磁気記録ユニット100に格納されているデータファイルは4月末の内容のままであるが、交換されたメモリユニット200Bは未使用の状態である。そこで、ユーザは、同期処理を実行させるための作業を行う。たとえば、「リセットボタンの押圧操作」を同期開始条件とする実施形態の場合、ユーザは、交換作業完了後に、リセットボタンを押す操作を行うことにより、同期処理手段145に同期処理を実行させる。あるいは、「同期開始コマンドが与えられること」を同期開始条件とする実施形態の場合であれば、ユーザは、交換作業完了後に、外部装置500を操作して同期開始コマンドを送信し、同期処理手段145に同期処理を実行させることになる。
FIG. 7B shows a state in which this replacement work is completed. As shown in the figure, the data file stored in the
図7(c) は、こうして同期処理が完了した状態を示す。図示のとおり、磁気記録ユニット100内のデータファイル(4月末の内容)が、そのままそっくりメモリユニット200Bへとコピーされることになり(このとき、必要に応じて不揮発性メモリに対する初期化が行われる)、両者に格納されたデータファイルの構成は同一になる。以上で月末処理は完了である。取り外したメモリユニット200A(4月末の内容が格納されている)は、任意の保管場所に保管しておけばよい。
FIG. 7 (c) shows a state where the synchronization processing is completed in this way. As shown in the figure, the data file in the magnetic recording unit 100 (contents at the end of April) is copied to the
ユーザは、5月1日から、この状態で、当該ハードディスクドライブ装置30を引き続き利用することになる。すなわち、図7(d) に示すように、磁気記録ユニット100およびメモリユニット200B内に、5月の内容が蓄積されてゆくことになる。もちろん、両者に格納されたデータファイルの構成は常に同一になる。
The user will continue to use the hard
こうして、5月1日〜5月31日まで、図7(d) に示す構成で利用すれば、最終的に、磁気記録ユニット100およびメモリユニット200Bに格納されているデータファイルの構成は、いずれも5月末の内容になる。ここで、ユーザは、5月末の交換作業を実行する。すなわち、メモリユニット200Bをメモリユニット200Cに交換する作業を行う。
Thus, if the configuration shown in FIG. 7D is used from May 1 to May 31, the configuration of the data files stored in the
図7(e) は、この交換作業が完了した状態を示す。図示のとおり、磁気記録ユニット100に格納されているデータファイルは5月末の内容のままであるが、交換されたメモリユニット200Cは未使用の状態である。そこで、同期処理を実行すれば、図7(f) に示すとおり、磁気記録ユニット100内のデータファイル(5月末の内容)が、そのままそっくりメモリユニット200Cへとコピーされることになり、両者に格納されたデータファイルの構成は同一になる。以上で5月末の月末処理は完了である。取り外したメモリユニット200B(5月末の内容が格納されている)は、任意の保管場所に保管しておけばよい。
FIG. 7 (e) shows a state in which this replacement work is completed. As shown in the figure, the data file stored in the
こうして、毎月の月末にメモリユニットを交換し、同期処理を行うようにすれば、ハードディスクドライブ装置30自体は継続して使い続けることができる。一方、保管場所には、取り外されたメモリユニットが蓄積されてゆく。図8は、このような運用を4月〜8月まで行った場合の保管対象となるメモリユニットを示すブロック図である。図示のとおり、各メモリユニット200A,200B,200C,200D,200Eには、それぞれ4月末,5月末,6月末,7月末,8月末の内容が格納された状態となっている。これは、必要があれば、任意の月末におけるデータファイルの構成を復元できることを意味する。
In this way, if the memory unit is replaced at the end of each month and the synchronization process is performed, the
一般に、ミラーリングによって自動バックアップを作成する冗長システムでは、一方の媒体に障害が生じたとしても、他方の媒体からデータを取り出すことが可能である。しかしながら、ユーザが意図的に削除や改変を行った場合、削除されたファイルや改変前のファイルを復元することはできない。たとえば、図示の例の場合、9月15日時点のハードディスクドライブ装置30のデータファイル構成は、図9(a) に示すように、磁気記録ユニット100およびメモリユニット200Fのいずれもが、9月15日の内容に更新されてしまっているので、6月の作業時に削除されたり改変されてしまったファイルを取り出すことはできない。ところが、図8に示すように、月末ごとの内容がそれぞれ別個のメモリユニットに保管されていれば、過去に削除されたファイルや改変されたファイルの復元が可能になる。
Generally, in a redundant system that creates an automatic backup by mirroring, even if a failure occurs in one medium, it is possible to retrieve data from the other medium. However, if the user intentionally deletes or modifies, the deleted file or the file before modification cannot be restored. For example, in the illustrated example, the data file structure of the
ここでは、一例として、9月15日の時点で、5月末におけるデータファイルの構成を復元する必要が生じた場合を考えてみよう。たとえば、6月の作業時に削除してしまったファイルを復活させたい場合や、6月の作業時に内容を改変してしまったファイルについて改変前の状態を復活させたい場合には、5月末におけるデータファイルの構成を復元すればよい。 Here, as an example, let us consider a case where the data file structure at the end of May needs to be restored as of September 15th. For example, if you want to reinstate a file that was deleted during work in June, or if you want to reinstate the state before modification of a file whose contents have been modified during work in June, the data at the end of May What is necessary is just to restore the file structure.
この場合、ユーザは、メモリユニット200Fをメモリユニット200Bに交換する作業を行う。図9(b) は、この交換作業が完了した状態を示す。図示のとおり、磁気記録ユニット100に格納されているデータファイルは9月15日時点の内容であるが、交換されたメモリユニット200Bに格納されているデータファイルは5月末の内容である。そこで、ユーザは、復元処理を実行させるための作業を行う。
In this case, the user performs an operation of replacing the
まず、モード設定を、これまでの通常モードから復元モードに切り替える。具体的には、切替スイッチによってモード設定を行う実施形態の場合は、スイッチを「復元モード」に切り替える設定を行う。あるいは、モード設定コマンドよってモード設定を行う実施形態の場合は、外部装置500から「復元モード」を設定するコマンドを送信する。図では、ブロックの輪郭を太線で描くことによって、「復元モード」の設定が行われていることを示している。
First, the mode setting is switched from the conventional mode to the restoration mode. Specifically, in the embodiment in which the mode setting is performed by the changeover switch, the setting for switching the switch to the “restoration mode” is performed. Alternatively, in the embodiment in which mode setting is performed by a mode setting command, a command for setting the “restoration mode” is transmitted from the
続いて、復元開始条件を満足させるための作業を行う。たとえば、「リセットボタンの押圧操作」を復元開始条件とする実施形態の場合、リセットボタンを押す操作を行うことにより、復元処理手段147に復元処理を実行させる。あるいは、「復元開始コマンドが与えられること」を復元開始条件とする実施形態の場合であれば、外部装置500から復元開始コマンドを送信する(上記モード設定コマンドと復元開始コマンドとを兼用するコマンドを送信するようにしてもよい)。なお、「電源の供給が開始されること」を復元開始条件とする実施形態の場合は、復元開始条件を満足させるための特別な作業は不要であり、ハードディスクドライブ装置30への電源供給が行われると、自動的に復元処理が開始することになる。
Subsequently, an operation for satisfying the restoration start condition is performed. For example, in the case of an embodiment in which “reset button pressing operation” is used as the restoration start condition, the
図9(c) は、こうして同期処理が完了した状態を示す。図示のとおり、メモリユニット200B内のデータファイル(5月末の内容)が、そのままそっくり磁気記録ユニット100へとコピーされることになり、両者に格納されたデータファイルの構成は同一になる。磁気記録ユニット100に格納されていた9月15日の内容は失われてしまうが、当該内容は、取り外したメモリユニット200Fに残されている。
FIG. 9C shows a state in which the synchronization process is completed in this way. As shown in the figure, the data file (content at the end of May) in the
この状態で、当該ハードディスクドライブ装置30を引き続き利用して作業を進めるには、メモリユニット200Bを新たなメモリユニット200Gに交換する作業を行う。図9(d) は、この交換作業が完了した状態を示す。図示のとおり、磁気記録ユニット100に格納されているデータファイルは5月末の内容であるが、交換されたメモリユニット200Gは未使用の状態である。そこで、ユーザは、モード設定を「通常モード」に戻した上で、同期処理を実行させるための作業を行う。
In this state, in order to continue using the hard
図9(e) は、こうして同期処理が完了した状態を示す。図示のとおり、磁気記録ユニット100内のデータファイル(5月末の内容)が、そのままそっくりメモリユニット200Gへとコピーされることになり、両者に格納されたデータファイルの構成は同一になる。したがって、ユーザは、この後、5月末時点のデータファイルを利用して、必要なデータファイルを外部装置500に読み出し、所望の作業を行うことができる。もちろん、当該作業の結果は、磁気記録ユニット100に保存されるとともに、メモリユニット200Gにバックアップされることになる。
FIG. 9 (e) shows a state where the synchronization processing is completed in this way. As shown in the figure, the data file in the magnetic recording unit 100 (contents at the end of May) is copied to the
このように、格納されているデータファイルを過去の特定時点の内容に戻し、その状態で利用を継続することは、特に、ハードディスクドライブ装置30を外部装置500の起動ディスクとして利用している場合に有用である。起動ディスクには、OS用のプログラムが組み込まれることになるので、たとえば、OSをバージョンアップする作業を行うと、起動ディスクのOS用プログラムが新バージョンに書き換えられることになる。ところが、この新バージョンのOSで作業を行った結果、古いアプリケーションプログラムが正常動作しなかったり、周辺機器が動作しなかったりする不都合が判明し、旧バージョンのOSに戻したい、という要望が生じることも少なくない。このような場合、上例のように、OSをバージョンアップする前の状態(5月末時点の状態)に戻し、そのまま利用を継続することができる。
Thus, returning the stored data file to the contents at a specific point in the past and continuing to use the data file in that state is particularly when the hard
もちろん、図9(e) に示す状態から、再び、図9(a) に示す9月15日の本来の状態に戻すことも可能である。この場合は、メモリユニット200Gをメモリユニット200Fに交換する作業を行い、復元モードに設定した上で、再度、復元処理を実行すればよい。復元処理完了後に、通常モードに戻せば、図9(a) に示す状態から利用を再開することができる。
Of course, it is possible to return to the original state of September 15 shown in FIG. 9 (a) from the state shown in FIG. 9 (e). In this case, it is only necessary to perform the work of replacing the
このように、本発明に係るハードディスクドライブ装置は、磁気記録装置内のデータが常に不揮発性メモリ内にバックアップされるため、トラブル発生時には、不揮発性メモリ内のデータを用いて、磁気記録装置内にデータ復元を行うことができる、という利点を有するだけでなく、不揮発性メモリの部分は必要に応じて簡単に取り外すことが可能なので、単純な作業により、過去の履歴を逐次保存しておくことが可能になる、という利点も有することになる。実際、図3に示す例のように、磁気記録ユニット100とメモリユニット200とは、簡単に着脱することができ、ユーザの利便性は極めて高い。
As described above, since the data in the magnetic recording device is always backed up in the nonvolatile memory, the hard disk drive device according to the present invention uses the data in the nonvolatile memory in the magnetic recording device when trouble occurs. Not only has the advantage that data can be restored, but also the nonvolatile memory part can be easily removed as needed, so past history can be stored sequentially by simple operations. It also has the advantage of being possible. In fact, as in the example shown in FIG. 3, the
図8に示す例のように、メモリユニット200を毎月交換する運用を行うと、保管場所には、1年間に12組のメモリユニット200が蓄積されることになるが、メモリユニット200は、マイクロSDカード、ミニSDカードなどの半導体メモリを利用して構成することができるので、比較的小型の装置になる。したがって、一般的なハードディスクドライブ装置を毎月交換して蓄積保存する場合に比べれば、履歴保存のための収納スペースを大幅に低減できる。また、図2に示すメモリユニット200をそのまま保存する代わりに、メモリソケット220からカード型メモリ230の部分を抜き取り、カード型メモリ230のみを保存するようにすれば、更に収納効率を向上させることができる。
As shown in the example of FIG. 8, when the operation of exchanging the
しかも、マイクロSDカード、ミニSDカードなどの半導体メモリは、長期保存にも適している。たとえば、テープストリーマーなどの磁気記録媒体を長期保存する場合、カビの発生などを避けるために、保管場所の温度管理や湿度管理に配慮する必要がある。また、DVDなどの光学的記録媒体を長期保存する場合も、表面に傷がつかないよう配慮が必要である。これに対して、半導体メモリは、長期保存する場合であっても、それほど慎重な取り扱いをする必要はない。 Moreover, semiconductor memories such as micro SD cards and mini SD cards are suitable for long-term storage. For example, when storing a magnetic recording medium such as a tape streamer for a long period of time, it is necessary to consider temperature management and humidity management of the storage location in order to avoid the occurrence of mold. In addition, when storing an optical recording medium such as a DVD for a long period of time, it is necessary to take care not to damage the surface. On the other hand, the semiconductor memory does not need to be handled with great care even when stored for a long time.
また、半導体メモリは、破棄作業も容易である。たとえば、業務用のデータファイルの場合、5年間経過したものは破棄する、というような基準で、古いものを順次破棄してゆく運用がとられることが多い。テープストリーマーやDVDなどの光学的記録媒体の場合、データを完全に破棄するためには、媒体を溶解したり、粉砕したりする必要があり、その作業負担はかなり大きい。これに対して、半導体メモリの場合、チップを2つに破断するだけで、もはやデータの読み出しは不可能になるので、データ破棄の作業負担は非常に軽い。 In addition, the semiconductor memory can be easily discarded. For example, in the case of a business data file, an operation is often performed in which old ones are discarded sequentially on the basis of discarding ones after five years. In the case of an optical recording medium such as a tape streamer or a DVD, it is necessary to dissolve or pulverize the medium in order to completely discard the data, and the work load is considerably large. On the other hand, in the case of a semiconductor memory, data can no longer be read simply by breaking the chip into two, so the burden of discarding data is very light.
更に、本発明に係るメモリユニット200は、磁気記録ユニット100に結合した状態において、汎用性のあるハードディスクドライブ装置として取り扱うことができるので、極めて汎用性の高い媒体としての機能を有している。これまで、データ記録媒体として、様々な規格に基づく多種多様な媒体が市販されてきているが、時代の流れとともに市場から姿を消した媒体も少なくない。このような廃れた媒体は、再生装置の入手も困難になりつつあり、将来、データの読み出し手段が存在しない状況になる可能性が高い。これに対して、ハードディスクドライブ装置は、これまで最も汎用性の高いデータ記録媒体として利用されてきており、今後も、データの読み出しが全くできなくなってしまうような事態に陥る可能性は低い。このような点から、本発明に係るメモリユニット200は、将来的にも、その読み出し手段が安定して供給され続けるであろう媒体と言える。
Furthermore, since the
<<< §5.第2の実施形態の構造および動作 >>>
図10は、本発明の第2の実施形態に係るハードディスクドライブ装置40の斜視図である(内部の構成要素の一部を破線で示す)。図2に示すハードディスクドライブ装置30は、脱着自在な磁気記録ユニット100とメモリユニット200とによって構成されていたが、この図10に示すハードディスクドライブ装置40は、単一の装置筐体400からなる単一のユニットによって構成されている。装置筐体400は、図示のとおり、磁気記録装置収納部410とメモリ収納部420とによって構成されるが、両者は接合されており、分離することはない。この装置筐体400は、ハードディスクドライブ装置に関する第1の寸法規格(ここに示す例の場合、3.5インチ規格)に合致するように設計されている。
<<< §5. Structure and operation of the second embodiment >>
FIG. 10 is a perspective view of a hard
磁気記録装置収納部410は、図2に示す装置30の磁気記録ユニット100に対応するものであり、その側面には、第1の寸法規格(たとえば、3.5インチ規格)に合致した第1の外部接続用端子120が設けられている。この例の場合も、第1の外部接続用端子120は、信号用端子120Aと電源用端子120Bとによって構成されている。また、磁気記録装置収納部410の内部には、磁気記録装置130とコントローラ140とが内蔵されており、第1の外部接続用端子120の上方には、DIPスイッチ150が設けられている。ここで、磁気記録装置130は、第2の寸法規格(たとえば、2.5インチ規格)のハードディスクドライブ装置によって構成されており、第2の寸法規格に合致した第2の外部接続用端子132を備えている。
The magnetic recording
一方、メモリ収納部420は、図2に示す装置30のメモリユニット200に対応するものであり、メモリインターフェイス220と不揮発性メモリ230とが組み込まれている。ここに示す例の場合も、図2に示す装置30と同様に、不揮発性メモリ230として、8枚のカード型メモリが用いられており、メモリインターフェイス220は、これらカード型メモリを抜き差しするためのメモリソケットによって構成されている。カード型メモリとしては、やはりマイクロSDカード、ミニSDカードなどのSDメモリカードや、その他のカード型フラッシュメモリを用いればよい。ここでも、不揮発性メモリ230の全記憶容量が、磁気記録装置130の全記憶容量以上となるように設定されており、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へバックアップすることができる。
On the other hand, the
図示のとおり、メモリ収納部420は、実質的に底板のみからなる構造体であり、その上面には、メモリソケット220が取り付けられている。8枚のカード型メモリ230は、このメモリソケット220に差し込まれた状態になっており、自由に抜き差しが可能である。図2に示す装置30の場合、カード型メモリ230を交換する場合、メモリユニット200ごと交換する方法をとることになるが、図10に示す装置40の場合、カード型メモリ230を直接抜き差しする方法をとることになる。図10に示す例の場合、このような抜き差し作業を容易にするため、メモリ収納部420を底板のみによって構成し、メモリソケット220およびカード型メモリ230が露出した状態になるようにしているが、必要に応じて、メモリ交換時に着脱自在もしくは開閉自在なカバーを設け、メモリソケット220およびカード型メモリ230を覆うようにしてもかまわない。
As shown in the figure, the
結局、図10に示す装置40は、第1の寸法規格に合致した筐体400内に、磁気記録装置130と、不揮発性メモリ230と、コントローラ140と、を備えたハードディスクドライブ装置ということになる。この筐体400には、第1の寸法規格に合致した第1の外部接続用端子120が備わっており、磁気記録装置130は、この第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、第2の寸法規格に合致した第2の外部接続用端子132を備えている。また、不揮発性メモリ230は、筐体400に設けられたメモリソケット220を利用して抜き差し可能なカード型メモリであり、コントローラ140は、第1の外部接続用端子120と第2の外部接続用端子132と不揮発性メモリ230とに直接もしくは間接的に接続されている。
After all, the
筐体400は、第1の寸法規格に合致し、かつ、外部接続用端子120も第1の寸法規格に合致したものであるため、外形上、この図10に示すハードディスクドライブ装置40は、図1に示す従来のハードディスクドライブ装置10と同等の装置として取り扱うことができる。また、コントローラ140の機能により、当該装置40は、従来装置10と同等のデータ保存機能を有しているため、結局、外形のみならず機能の点においても、従来装置10と変わりはない。また、図2に示す装置30と同様に、自動バックアップ機能が備わっているので、万一、磁気記録装置130に障害が生じてデータファイルが失われるような事態が生じても、不揮発性メモリ230に格納されているバックアップデータによって、データファイルの復元が可能になる。
Since the
なお、図には配線は示されていないが、実際には、第1の外部接続用端子120とコントローラ140との間には所定の配線が施されており、コントローラ140は信号用端子120Aを介して、外部装置(たとえば、パソコン)との間で信号のやりとりを行うことができる。また、電源用端子120Bからコントローラ140に対して電源が供給される。同様に、第2の外部接続用端子132とコントローラ140との間にも所定の配線が施されており、磁気記録装置130は、第2の外部接続用端子132を介して、コントローラ140から電源の供給を受けるとともに、コントローラ140との間で信号のやりとりを行うことができる。更に、コントローラ140とメモリソケット220との間にも配線が施されており、不揮発性メモリ230は、コントローラ140から電源の供給を受けるとともに、コントローラ140によるアクセスを受けることができる。
Although the wiring is not shown in the figure, in practice, a predetermined wiring is provided between the first
図10には現れていないが、メモリソケット220の背面側には、8個のLEDが設けられている。図11は、図10に示すメモリソケット220および不揮発性メモリ230の背面図である。不揮発性メモリ230は、合計8枚のカード型メモリ231〜238(たとえば、マイクロSDカード)によって構成されており、メモリソケット220における各カード型メモリ231〜238の装着位置に、それぞれLED241〜248が配置されている。これらLED241〜248は、コントローラ140によって点灯/消灯状態が制御され、対応するカード型メモリに格納されているデータの有無を報知する機能を有する。すなわち、データの格納が行われているカード型メモリに対応するLEDは点灯状態になり、データの格納が行われていないカード型メモリに対応するLEDは消灯状態になる。
Although not appearing in FIG. 10, eight LEDs are provided on the back side of the
たとえば、コントローラ140が、8枚のカード型メモリ231〜238を、この順番で使用するようにプログラムされている場合、まず、ファイル管理に必要なFAT用データがメモリ231内の所定のセクタに書き込まれ、メモリ231内のその他のセクタに、データファイルが順次保存されてゆく。保存対象となるデータファイルの総容量が小さいうちは、FAT用データを含めたすべてのデータがメモリ231内に収容されることになろう。この場合、データが格納されているメモリは、メモリ231のみであるから、これに対応するLED241のみが点灯状態となり、LED242〜248は消灯状態となる。やがて、保存対象となるデータファイルの総容量が増えると、メモリ231内に収容しきれなかったデータは、メモリ232に格納されることになる。この場合、LED241,242が点灯状態となり、LED243〜248は消灯状態となる。
For example, when the
ここでは、8枚のカード型メモリ231〜238を用いた場合を例にとって説明するが、一般的に、不揮発性メモリ230として、複数N枚のカード型メモリを設ける場合、このN枚のカード型メモリに対応して、N個のLEDを設けるようにし、コントローラ140が、このN枚のカード型メモリのそれぞれについて、格納されているデータの有無を、対応するLEDの点灯/消灯によって報知する機能を果たすようにすればよい。なお、LEDは、必ずしもメモリソケット220に配置する必要はなく、個々のLEDと個々のカード型メモリとの対応関係が認識できるよう配慮されていれば、任意の場所に配置してかまわない。ただ、実用上は、メモリとの対応関係を直感的に把握できるように、図11に示す例のように、メモリソケット220上の各メモリの装着位置に対応させて配置するのが好ましい。
Here, a case where eight card-
図12は、図10に示すハードディスクドライブ装置40の基本構成を示すブロック図である。上述したとおり、装置筐体400は、磁気記録装置収納部410とメモリ収納部420とによって構成されており、磁気記録装置収納部410には、第1の寸法規格に合致した第1の外部接続用端子120、磁気記録装置130、コントローラ140が設けられる。ここで、磁気記録装置130は、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、第2の寸法規格に合致した第2の外部接続用端子132を備えている。一方、メモリ収納部420には、メモリインターフェイス220と、不揮発性メモリ230が組み込まれる。ここに示す例の場合、不揮発性メモリ230は、8枚のカード型メモリ231〜238によって構成され、メモリインターフェイス220は、これらのメモリを抜き差し可能なメモリソケットによって構成される。また、このメモリソケット220には、各メモリに対応した8個のLED241〜248が設けられている。
FIG. 12 is a block diagram showing a basic configuration of the hard
図示のとおり、第1の外部接続用端子120には、外部装置500が接続される。外部装置500は、たとえば、パソコン等の電子機器であり、当該ハードディスクドライブ装置40は、この外部装置500用のデータ記憶装置として機能する。第1の外部接続用端子120には、図10に示すように、電源用端子120Bが含まれており、この電源用端子120Bには、外部装置500から電源が供給される。この電源は、装置内の配線を通じて、コントローラ140,磁気記録装置130,不揮発性メモリ230へと供給される。
As illustrated, the
コントローラ140の基本機能は、第1の実施形態に係る装置30におけるコントローラ(図4参照)の機能と同じである。すなわち、この図12に示す装置40におけるコントローラ140も、ハードディスクドライブ装置40の動作を統括管理する機能をもった電子回路であり、マイクロプロセッサと、このマイクロプロセッサが実行するプログラムを格納したメモリと、処理対象となるデータを一時的に格納するバッファメモリと、を備えている。その機能に着目すれば、コントローラ140は、図12の下段に示すとおり、モード設定手段141,書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146,復元処理手段147の集合体として捉えることができ、これら各手段の機能は§3で述べたとおりである。
The basic function of the
すなわち、モード設定手段141は、ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定する機能を有し、書込処理手段142は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル書込コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う機能を有し、削除処理手段143は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル削除コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、削除対象となる同一のデータファイルを削除する処理を行う機能を有し、読出処理手段144は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル読出コマンドが与えられた場合に、磁気記録装置130および不揮発性メモリ230の少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う機能を有する。
That is, the
また、同期処理手段145は、通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように不揮発性メモリ230を書き換える同期処理を行う機能を有し、初期化処理手段146は、通常モードが設定されており、外部装置500から第1の外部接続用端子120を介して初期化コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、初期化処理を行う機能を有し、復元処理手段147は、復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように磁気記録装置130を書き換える復元処理を行う機能を有する。
In addition, the synchronization processing unit 145 stores the data file stored in the
なお、LED制御手段148は、この第2の実施形態に係る装置40において新たに設けられた構成要素であり、LED241〜248の点灯/消灯状態を制御する機能を有する。すなわち、書込処理手段142,削除処理手段143,同期処理手段145,初期化処理手段146の機能によって、不揮発性メモリ230内に保存されているデータの更新が行われるたびに、LED制御手段148は、各カード型メモリ231〜238内にデータが格納されているか否かをチェックし(たとえば、FATをチェックすればよい)、データが格納されているカード型メモリに対応するLEDを点灯状態とし、データが格納されていないカード型メモリに対応するLEDを消灯状態とする制御を行う。
The
この第2の実施形態に係るハードディスクドライブ装置40の利用形態は、§4で述べた第1の実施形態に係るハードディスクドライブ装置30の利用形態とほぼ同様である。ただ、ユーザは、メモリユニット200を交換する代わりに、カード型メモリ230を交換する作業を行うことになる。したがって、§4で述べたように、月末ごとにメモリ交換を行う運用を採る場合、第1の実施形態では、図8に示すように、月ごとのメモリユニット200を蓄積して保存してゆくことになるが、ここで述べる第2の実施形態では、月ごとのカード型メモリ230を蓄積して保存してゆくことになる。
The usage mode of the hard
しかも、月末ごとのメモリ交換作業では、8枚のカード型メモリのすべてを交換する必要はなく、点灯しているLEDに対応するカード型メモリのみを交換すれば足りる。たとえば、4月1日から運用を開始した場合、4月末の時点では、磁気記録ユニット100に格納されているデータの総容量はそれほど多くないであろうから、不揮発性メモリ230にそのバックアップをとったとしても、8枚のカード型メモリのすべてが使用されていることはないであろう。
In addition, in the memory replacement work at the end of each month, it is not necessary to replace all of the eight card-type memories, and it is sufficient to replace only the card-type memory corresponding to the lit LED. For example, if the operation is started from April 1, the total capacity of the data stored in the
ユーザは、LEDの点灯状態を確認することにより、現時点でデータ格納が行われているカード型メモリを把握することができる。たとえば、4月末の時点で、LED241,242のみが点灯状態であったとすれば、これに対応するメモリ231,232の2枚だけを交換すれば足り、残りの6枚のメモリ233〜238は交換する必要はない。この場合、ユーザは、取り外した2枚のメモリ231,232について、「4月末における第1番目および第2番目のソケットに挿入するメモリ」であることを明記して保管しておくようにすればよい。そうすれば、もし4月末の状態に復元する必要が生じた場合には、これら2枚のメモリを、第1番目および第2番目のソケットに挿入して復元処理を行うことができる。
The user can grasp the card type memory in which data is currently stored by checking the lighting state of the LED. For example, if only the
同様に、5月末の時点で、格納されているデータの総容量が若干増えて、3つのLED241,242,243が点灯状態であったとすれば、これに対応するメモリ231,232,233の3枚を交換すればよい。この場合、ユーザは、取り外した3枚のメモリ231,232,233について、「5月末における第1番目〜第3番目のソケットに挿入するメモリ」であることを明記して保管しておくようにすればよい。このように、LEDによってデータの格納状態を報知する機能を設けておけば、1枚1枚のメモリ単位で交換および保管を行うことができるので、より効率的な運用が可能になる。
Similarly, if the total capacity of the stored data is slightly increased at the end of May and the three
なお、LED241〜248およびLED制御手段148を設けることは、この第2の実施形態を実施する上での必須要件ではない。LEDによるデータの格納状態報知機能が備わっていない場合、ユーザは、常に8枚のメモリすべてを交換するようにすればよい。ただ、実用上は、LEDによるデータの格納状態報知機能を設けておき、上例のように、メモリ単位で必要な交換のみを行うことができるようにし、効率的な運用が可能になるようにするのが好ましい。
The provision of the
<<< §6.いくつかの変形例 >>>
本発明の本質的な特徴は、磁気記録装置と、着脱可能な不揮発性メモリと、コントローラと、を有するハードディスクドライブ装置において、少なくとも、不揮発性メモリを装着した状態において、ハードディスクドライブ装置に関する第1の寸法規格に合致する装置筐体を構成する外形をなすようにし、装置筐体には、第1の寸法規格に合致した第1の外部接続用端子を設け、磁気記録装置を、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置であって、第2の寸法規格に合致した第2の外部接続用端子を備える装置によって構成した点にある。そして、コントローラには、磁気記録装置と不揮発性メモリとの双方に対して、同一のデータファイルを書き込む処理および削除する処理と、磁気記録装置および不揮発性メモリの少なくとも一方から所定のデータファイルを読み出す処理と、磁気記録装置に格納されているデータファイルを不揮発性メモリにコピーする処理と、不揮発性メモリに格納されているデータファイルを磁気記録装置にコピーする処理と、を実行する機能を設けた点にある。ここでは、このような特徴をもった本発明に係るハードディスクドライブ装置について適用可能ないくつかの変形例を述べる。
<<< §6. Some variations >>>
An essential feature of the present invention is a hard disk drive device having a magnetic recording device, a detachable nonvolatile memory, and a controller, at least in a state in which the nonvolatile memory is mounted, The outer shape of the device housing conforming to the dimensional standard is formed, the device housing is provided with a first external connection terminal conforming to the first dimensional standard, and the magnetic recording device is connected to the first dimension. The hard disk drive device conforms to a second dimensional standard smaller than the standard, and is constituted by a device including a second external connection terminal conforming to the second dimensional standard. Then, the controller reads the predetermined data file from at least one of the magnetic recording device and the nonvolatile memory, and the processing for writing and deleting the same data file to both the magnetic recording device and the nonvolatile memory. Provided with a function for executing processing, processing for copying a data file stored in the magnetic recording device to the nonvolatile memory, and processing for copying the data file stored in the nonvolatile memory to the magnetic recording device In the point. Here, some modifications applicable to the hard disk drive device according to the present invention having such characteristics will be described.
<1> 内蔵電池による駆動
これまで述べた実施形態に係る装置30,40は、外部装置500から第1の外部接続用端子120を介して電源供給を行う構成をとっていたが、装置内に電池もしくはバッテリ(二次電池)を内蔵させて駆動させるようにしてもよい。
<1> Drive by Built-in Battery The
たとえば、第1の実施形態に係るハードディスクドライブ装置30の場合、磁気記録ユニット100もしくはメモリユニット200に、電池もしくはバッテリを組み込んでおき、少なくとも磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、バッテリもしくは電池からの電力が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるように、必要な配線を施しておけば、外部装置500からの電源供給なしに動作させることができる。
For example, in the case of the hard
一方、第2の実施形態に係るハードディスクドライブ装置40の場合は、装置筐体400内のいずれかの場所に電池もしくはバッテリを組み込んでおき、電池もしくはバッテリからの電力が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるような配線を施しておけばよい。
On the other hand, in the case of the hard
なお、バッテリを組み込んだ場合、外部装置500を接続したときに供給される電源を利用して充電を行うことができる。
When a battery is incorporated, charging can be performed using the power supplied when the
もちろん、電池やバッテリを組み込んだ場合でも、書込処理手段142,削除処理手段143,読出処理手段143を動作させる際には、外部装置500から所定のコマンド信号が与えられることが前提となるので、外部装置500から供給される電源を利用して装置を駆動させればよい。これに対して、同期処理手段145や復元処理手段147は、リセットスイッチの操作などによって同期開始条件や復元開始条件を成立させるようにしておけば、外部装置500が接続されていなくても、内蔵の電池やバッテリからの電源供給によって、同期処理や復元処理を実行させることができる。
Of course, even when a battery or a battery is incorporated, it is assumed that a predetermined command signal is given from the
また、第2の実施形態において、LED241〜248を設ける場合、外部装置500が接続されていなくても、内蔵の電池やバッテリからの電源供給によって、LED241〜248を点灯させることができるので、ユーザは、図10に示すように、ハードディスクドライブ装置40を取り外した状態においても、LEDの点灯状態を確認することが可能になる。
In the second embodiment, when the
<2> データの圧縮処理
これまで述べた実施形態に係る装置30,40では、不揮発性メモリ230の全記憶容量が、磁気記録装置130の全記憶容量以上となるように設定し、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へバックアップできるようにしていた。
<2> Data Compression Processing In the
しかしながら、書込処理手段142および同期処理手段145(もしくはその一方)が、不揮発性メモリ230への書き込みを行う際に、書込対象となるデータファイルを圧縮してから書き込む処理を行い、読出処理手段144および復元処理手段147(もしくはその一方)が、不揮発性メモリ230からの読み出しを行う際に、読み出したデータファイルを伸張する処理を行うようにしておけば、不揮発性メモリ230の全記憶容量が、磁気記録装置130の全記憶容量よりも小さくても、磁気記録装置130に格納されている全データファイルを圧縮して不揮発性メモリ230へバックアップすることができるようになる。
However, when the writing processing unit 142 and the synchronization processing unit 145 (or one of them) write to the
図13は、このようなデータ圧縮を行う変形例を示すブロック図である。コントローラ140は、磁気記録装置130に対してデータファイルを書き込む場合には、そのままの状態で書き込みを行い、磁気記録装置130からデータファイルを読み出す場合には、単に読出処理のみを行う。ところが、不揮発性メモリ230に対してデータファイルを書き込む場合には、所定のアルゴリズムに基づく圧縮処理を実行し、圧縮されたデータを書き込む処理を行い、不揮発性メモリ230からデータファイルを読み出す場合には、読み出したデータに対して前記圧縮処理に対応した伸張処理を行って目的のデータファイルを取り出す処理を行う。
FIG. 13 is a block diagram showing a modified example for performing such data compression. When writing a data file to the
§4で述べた利用形態のように、毎月、不揮発性メモリ230を交換するような運用を行う場合、図8に示すように、保管対象となる不揮発性メモリ230は毎月増え続けることになる。このような場合、図13に示すように、不揮発性メモリ230への書き込み時にデータ圧縮を行うようにすれば、メモリ230の容量を節約することができ、メモリ230の調達コストを節約するとともに、メモリ230の保管スペースを節約することができる。なお、磁気記録装置130に保存したデータファイルについては、データ圧縮は行わないので、通常の読み出し処理を磁気記録装置130から行うようにしておけば、データ伸張処理による読出遅延が生じる弊害を避けることができる。
As shown in FIG. 8, when the operation of exchanging the
<3> データの暗号化処理
バックアップとして保管される不揮発性メモリ230について、セキュリティを高めるためには、データファイルを暗号化した上で保存するようにするとよい。すなわち、書込処理手段142および同期処理手段145(もしくはその一方)が、不揮発性メモリ230への書き込みを行う際に、書込対象となるデータファイルを暗号化してから書き込む処理を行い、読出処理手段144および復元処理手段147(もしくはその一方)が、不揮発性メモリ230からの読み出しを行う際に、読み出したデータファイルを復号化する処理を行うようにしておけば、不揮発性メモリ230には、データファイルが暗号化された状態で保存されることになるので、万一、不正者の手にわたった場合でも、不正利用される可能性を低減することができる。
<3> Data Encryption Processing In order to increase the security of the
図14は、このようなデータの暗号化を行う変形例を示すブロック図である。コントローラ140は、磁気記録装置130に対してデータファイルを書き込む場合には、そのままの状態で書き込みを行い、磁気記録装置130からデータファイルを読み出す場合には、単に読出処理のみを行う。ところが、不揮発性メモリ230に対してデータファイルを書き込む場合には、所定のアルゴリズムに基づく暗号化処理を実行し、暗号化されたデータを書き込む処理を行い、不揮発性メモリ230からデータファイルを読み出す場合には、読み出したデータに対して前記暗号化処理に対応した復号化処理を行って目的のデータファイルを取り出す処理を行う。
FIG. 14 is a block diagram showing a modified example in which such data encryption is performed. When writing a data file to the
この場合も、磁気記録装置130に保存したデータファイルについては、暗号化は行わないので、通常の読み出し処理を磁気記録装置130から行うようにしておけば、復号化処理による読出遅延が生じる弊害を避けることができる。
Also in this case, since the data file stored in the
なお、現在、一般的に利用されている多くの暗号化アルゴリズムでは、暗号キーを用いた暗号化が行われる。このように暗号キーを用いた暗号化を行う場合、暗号キーをDIPスイッチによって設定するようにしておくと、セキュリティを更に高めることができる。すなわち、ユーザの設定操作により複数ビットの論理値を設定可能なDIPスイッチを設けておき、書込処理手段142もしくは同期処理手段145が、このDIPスイッチによって設定されている論理値を暗号キーとして用いた暗号化を行い、読出処理手段144もしくは復元処理手段145が、このDIPスイッチによって設定されている論理値を暗号キーとして用いた復号化を行うようにする。DIPスイッチは、たとえば、図2や図10に示すDIPスイッチ150のように、装置筐体のいずれかの箇所に設けておけばよい。
Note that many encryption algorithms that are currently used generally perform encryption using an encryption key. When encryption using an encryption key is performed in this way, the security can be further enhanced by setting the encryption key with a DIP switch. That is, a DIP switch capable of setting a multi-bit logical value by a user setting operation is provided, and the write processing unit 142 or the synchronization processing unit 145 uses the logical value set by the DIP switch as an encryption key. The read processing unit 144 or the restoration processing unit 145 performs decryption using the logical value set by the DIP switch as the encryption key. The DIP switch may be provided in any part of the apparatus housing, for example, like the
図15は、データ暗号化に用いる暗号キーをDIPスイッチによって設定する変形例を示すブロック図である。図示のとおり、データファイルFを不揮発性メモリ230に書き込む際には、まず、暗号化処理P1を行い、暗号化データファイルCを作成し、この暗号化データファイルCの形で書き込みを行う。一方、読み出し時には、不揮発性メモリ230から読み出された暗号化データファイルCに対して、復号化処理P2を実行し、元のデータファイルFを得る。ここで、暗号化処理P1と復号化処理P2とは、同一の暗号キーKを用いた所定のアルゴリズムに基づく数学的な処理になっており、復号化処理P2を行う際に用いた暗号キーが、暗号化処理P1を行う際に用いた暗号キーと相違していると、正しいデータファイルFを得ることはできない。
FIG. 15 is a block diagram showing a modification in which an encryption key used for data encryption is set by a DIP switch. As shown in the figure, when writing the data file F into the
そこで、DIPスイッチによって設定されている論理値を暗号キーKとして用いるようにする。図示の例では、8ビットのDIPスイッチDによって、「10011010」なる論理値が設定された例が示されている。この場合、当該8ビットの論理値を暗号キーKとして用いた暗号化処理P1が実行されることになる。したがって、復号化処理P2を行う場合にも、DIPスイッチDに同じ論理値を設定する必要がある。 Therefore, the logical value set by the DIP switch is used as the encryption key K. In the illustrated example, a logical value “10011010” is set by the 8-bit DIP switch D. In this case, the encryption process P1 using the 8-bit logical value as the encryption key K is executed. Therefore, it is necessary to set the same logical value to the DIP switch D also when performing the decoding process P2.
図2や図10に示す実施形態において、§4に示すように、毎月、メモリを交換して保存する運用をとる場合であれば、ユーザは、図示のDIPスイッチ150に、毎月、特定の論理値を暗号キーKとして設定すればよい。たとえば、図8に示す例の場合、4月末の内容が格納されたメモリユニット200A,5月末の内容が格納されたメモリユニット200B,6月末の内容が格納されたメモリユニット200C,... というように、月ごとのメモリユニットが蓄積保管されることになるが、毎月、異なる論理値を暗号キーKとして設定するように決めておけば、個々のメモリユニットごとに、それぞれ正しい暗号キーをDIPスイッチ150に設定しない限り、正しいデータファイルの復元処理を行うことはできない。
In the embodiment shown in FIGS. 2 and 10, as shown in §4, when the operation of storing and exchanging the memory every month is performed, the user inputs a specific logic to the
たとえば、図8に示すメモリユニット200Bを用いて、5月末の内容を復元する場合、5月中に設定してあった暗号キーKと同じ論理値をDIPスイッチ150に設定して復元処理を行わない限り、正しいデータファイルを復元することはできなくなる。したがって、万一、図8に示すメモリユニット200A〜200Eが不正者の手に渡ったとしても、それぞれについての正しい暗号キーKを知らない限り、保存されているデータファイルを取り出すことはできない。
For example, when restoring the contents at the end of May using the
なお、図2に示す第1の実施形態の場合、DIPスイッチは、メモリユニット用の筐体210側に設けることも可能である。この場合、図8に示す個々のメモリユニット200A〜200Eのそれぞれに独立したDIPスイッチが設けられていることになる。そこで、ユーザは、各メモリユニット200A〜200Eを磁気記録ユニット100に接続して用いる際にのみ、当該メモリユニットのDIPスイッチを所定の正しい暗号キーKにセットするようにし(各メモリユニットごとに異なる暗号キーKをセットしてもよいし、共通した暗号キーKをセットしてもよい)、磁気記録ユニット100から取り外して保管する際には、DIPスイッチの論理値をデタラメな値にセットするようにすればよい。
In the case of the first embodiment shown in FIG. 2, the DIP switch can also be provided on the
暗号化処理に用いる暗号キーの別な取り扱い方法は、図16に示すように、不揮発性メモリ230内に管理領域Mを設け、この管理領域M内に暗号キーKを格納する方法である。管理領域Mは、任意の場所に設けることができるが、たとえば、FATデータを記録する領域に隣接して設けておけばよい。この場合、コントローラ140には、暗号化処理の実行に先立って、不揮発性メモリ230内の管理領域Mに所定の暗号キーKを書き込む機能をもたせておく。暗号キーKは、コントローラ140自身が所定のアルゴリズムに基づいて発生させた値でもよいし、外部装置500から与えられた値でもよい。
Another method for handling the encryption key used for the encryption process is to provide a management area M in the
また、コントローラ140には、外部装置500から第1の外部接続用端子120を介して、所定のパスワードについての認証コマンドが与えられたときに、当該パスワードが正しいか否かを判定する機能をもたせておく。パスワード判定のアルゴリズムは任意のものでかまわない。たとえば、与えられたパスワードについてのハッシュ値を計算し、得られたハッシュ値が特定の値に一致した場合に正しいとの判定を行うようなアルゴリズムでもよい。そして、管理領域M内に書き込まれた暗号キーKは、与えられたパスワードが正しいと判断された場合にのみ、不揮発性メモリ230から読み出されるようにしておき、書込処理手段142もしくは同期処理手段145が、この不揮発性メモリ230から読み出された暗号キーKを用いた暗号化を行い、読出処理手段144もしくは復元処理手段147が、不揮発性メモリ230から読み出された暗号キーKを用いて復号化を行うようにしておく。
The
このような方法をとれば、外部装置500から正しいパスワードを与えない限り、管理領域Mから暗号キーKを読み出すことはできないので、不正者によるデータファイルの復号化を防止する効果が得られる。
If such a method is adopted, the encryption key K cannot be read from the management area M unless the correct password is given from the
<4> 復元処理に対する制限
既に述べたとおり、本発明に係るハードディスクドライブ装置では、ユーザは、必要に応じて、任意の不揮発性メモリ230を用いた復元処理を行うことにより、当該不揮発性メモリ230内のデータファイルを、磁気記録装置130内に復元することができる。§3で述べた基本的実施形態では、読出処理手段144は、磁気記録装置130と不揮発性メモリ230との双方からデータファイルの読み出しを行う機能を有しているが、もし、読出処理手段144の読み出し機能を、磁気記録装置130からの読み出し機能のみに限定しておけば、不揮発性メモリ230内のデータファイルを取り出す唯一の方法は、復元処理手段147による復元処理ということになる。
<4> Restriction on Restoration Process As described above, in the hard disk drive device according to the present invention, the user performs a restoration process using an arbitrary
この場合、復元処理手段147による復元処理に制限を付加することは、不揮発性メモリ230内のデータファイルを不正アクセスから保護する上で有用である。図16に示す例において、管理領域Mに記録されている累積実行回数Nおよび復元可能期間Tは、このような復元処理に制限を付加するために用いる情報である。
In this case, adding a restriction to the restoration process by the
まず、累積実行回数Nは、復元処理の回数に制限を加えるために用いる情報である。この情報に基づいて回数制限を行うには、復元処理手段147に、復元処理を行うたびに、不揮発性メモリ230内の管理領域Mに復元処理の累積実行回数Nを書き込む処理を行う機能をもたせておき、当該累積実行回数Nが所定の上限回数に達していた場合には、復元処理が行われないようにしておけばよい。
First, the cumulative execution count N is information used to limit the number of restoration processes. In order to limit the number of times based on this information, the
たとえば、初期化処理時には、管理領域M内に、累積実行回数Nとして初期値0を書き込むようにする。一方、復元処理手段147には、復元処理を実行する前に、この累積実行回数Nの値を読み出し、所定の上限回数に達しているか否かをチェックさせるようにする。ここで、もし、上限回数に達していた場合には、復元処理が行われないようにする。上限回数に達していなかった場合には、復元処理を実行するとともに、当該累積実行回数Nの値を1だけ増加させた値に書き換えるようにする。そうすれば、無制限に復元処理が実行されることを防止することができる。
For example, in the initialization process, the initial value 0 is written in the management area M as the cumulative execution count N. On the other hand, before executing the restoration process, the
具体的には、上限回数を1に設定しておけば、1回復元処理を実行してしまうと、累積実行回数Nが上限値1に達してしまうため、以後、復元処理を行うことはできなくなる。もちろん、このような復元処理の回数制限は、不正者によって復元処理が行われること自体を防ぐことはできない。しかしながら、復元処理が無制限に行われることを防止することができるため、不正利用による被害拡大に歯止めをかける効果は得られる。また、正規のユーザに、不正者による復元処理が行われた事実を知らしめる機会を与えるメリットもある。たとえば、上限回数を1に設定した場合、不正者による復元処理が行われた後は、正規のユーザであっても復元処理を行うことはできなくなる。したがって、正規のユーザは、復元処理を行った覚えがないにも拘わらず、復元処理ができなくなっている事実から、不正者による復元処理が行われた疑念を抱くことができる。 Specifically, if the upper limit number is set to 1, if the restoration process is executed once, the cumulative execution number N reaches the upper limit value 1, so that the restoration process can be performed thereafter. Disappear. Of course, such a limitation on the number of restoration processes cannot prevent the restoration process itself from being performed by an unauthorized person. However, since it is possible to prevent the restoration process from being performed indefinitely, the effect of stopping damage expansion due to unauthorized use can be obtained. In addition, there is an advantage that an authorized user is given an opportunity to inform the fact that restoration processing by an unauthorized person has been performed. For example, when the upper limit number is set to 1, even after a restoration process by an unauthorized person is performed, even a legitimate user cannot perform the restoration process. Therefore, a legitimate user can have a suspicion that restoration processing by an unauthorized person has been performed from the fact that restoration processing cannot be performed even though he / she does not remember the restoration processing.
一方、復元可能期間Tは、復元処理の実行期間を制限する情報である。この情報に基づいて期間制限を行うには、復元処理手段147に、復元処理を行う前に、不揮発性メモリ230内の管理領域に書き込まれている復元可能期間を示す情報を読み出してチェックさせ、当該復元可能期間内の時点にのみ、復元処理が行われるようにすればよい。管理領域M内の復元可能期間Tは、外部装置500から与えられる期間設定コマンドによって、ユーザが所望する任意の期間を設定できるようにしておけばよい。あるいは、初期化処理が実行された場合に、自動的に、当該初期化処理の時点を基準として所定の復元可能期間Tが設定されるようにしてもよい。なお、一度、復元可能期間Tを設定した後は、初期化処理を行わない限り、再設定を行うことができないようにしておけば、不正者によって期間の書き換えが行われることを防ぐことができる。
On the other hand, the restoration possible period T is information that limits the execution period of the restoration process. In order to perform the period limitation based on this information, the
復元可能期間Tは、復元処理を実行することが可能な期間を示すものであれば、どのような情報であってもかまわない。たとえば、「2010年6月30日まで」というような期間の終端を示す情報でもよいし、「2010年6月30日から」というような期間の始端を示す情報でもよい。あるいは、「午前10時〜午後5時」というように毎日の時間帯を示す情報でもよいし、「月曜日〜金曜日」というような曜日を示す情報でもよい。また、管理領域M内には「2010年6月15日」のような1つの時点を示す情報のみを記録しておき、復元処理手段147側において、たとえば、「管理領域M内の記録時点から3ヶ月以内を復元可能期間とする」というような取り扱いを行ってもよい。 The recoverable period T may be any information as long as it indicates a period during which the restoration process can be executed. For example, information indicating the end of a period such as “until June 30, 2010” or information indicating the start of a period such as “from June 30, 2010” may be used. Alternatively, information indicating a daily time zone such as “10 am to 5 pm” or information indicating a day of the week such as “Monday to Friday” may be used. Further, only information indicating one time point such as “June 15, 2010” is recorded in the management area M, and the restoration processing means 147 side, for example, “from the recording time point in the management area M” You may perform the handling of "it is set as the period which can be restored within three months."
なお、復元処理を実行しようとしている時点が、復元可能期間T内の時点であるかどうかを判定するためには、現時点がいつであるかを認識するための時計機能が必要である。このような時計機能を得るためには、コントローラ140内に時計回路(パソコンなどで利用されている計時回路でよい)を設けておけばよい。なお、パソコンなどの外部装置500と接続した時点で、コントローラ140内の時計回路の時刻を、外部装置500内の時計回路の時刻に同期させる機能を設けておけば、常に正しい時刻設定が可能になる。
In order to determine whether or not the time point at which the restoration process is to be executed is a time point within the restoration possible period T, a clock function for recognizing when the current time point is necessary. In order to obtain such a clock function, a clock circuit (a clock circuit used in a personal computer or the like) may be provided in the
<5> RAIDシステムの構築
本発明に係るハードディスクドライブ装置では、同じデータファイルが磁気記録装置130と不揮発性メモリ230との双方に格納されるため、冗長性が確保されることになるが、冗長度を更に向上させるために、磁気記録装置130や不揮発性メモリ230にRAIDシステムを構築することも可能である。
<5> Construction of RAID System In the hard disk drive device according to the present invention, since the same data file is stored in both the
たとえば、図2に示すハードディスクドライブ装置30において、磁気記録装置130として、より小さな寸法規格のハードディスクドライブ装置を2台組み込むようにすれば、この2台のハードディスクドライブ装置によってRAIDシステムを構築することができる。このRAIDシステムをミラーリングモードで動作させれば、1つのデータファイルが2台のハードディスクドライブ装置に格納されることになり、かつ、当該データファイルのバックアップが不揮発性メモリ230にも格納されることになるので、冗長度は更に向上する。
For example, in the hard
もちろん、不揮発性メモリ230側にRAIDシステムを構築することも可能である。たとえば、図2に示す例では、8枚のカード型メモリによって不揮発性メモリ230を構成しているが、これを4枚ずつ2つのグループに分け、これら2グループのメモリによってRAIDシステムを構築し、ミラーリングモードで動作させれば、同一のデータファイルを2つのグループに分散させて格納することができ、冗長度を向上させることができる。
Of course, it is also possible to construct a RAID system on the
10:ハードディスクドライブ装置(第1の寸法規格)
11:装置筐体(第1の寸法規格)
12:外部接続用端子(第1の寸法規格)
12A:信号用端子
12B:電源用端子
13:プラッタ(第1の寸法規格)
20:ハードディスクドライブ装置(第2の寸法規格)
21:装置筐体(第2の寸法規格)
22:外部接続用端子(第2の寸法規格)
22A:信号用端子
22B:電源用端子
23:プラッタ(第2の寸法規格)
30:ハードディスクドライブ装置(第1の寸法規格)
40:ハードディスクドライブ装置(第1の寸法規格)
100:磁気記録ユニット
110:磁気記録ユニット用の筐体
115:中継端子
116:嵌合用突起部(着脱手段)
117:嵌合用突起部(着脱手段)
120:第1の外部接続用端子(第1の寸法規格)
120A:信号用端子
120B:電源用端子
130:磁気記録装置(第2の寸法規格のハードディスクドライブ装置)
132:第2の外部接続用端子(第2の寸法規格)
140:コントローラ
141:モード設定手段
142:書込処理手段
143:削除処理手段
144:読出処理手段
145:同期処理手段
146:初期化処理手段
147:復元処理手段
148:LED制御手段
150:DIPスイッチ
200:メモリユニット
200A〜200E:メモリユニット
210:メモリユニット用の筐体
215:中継端子
216:嵌合用孔部(着脱手段)
217:嵌合用孔部(着脱手段)
220:メモリインターフェイス(メモリソケット)
230:不揮発性メモリ(カード型メモリ)
231〜238:不揮発性メモリ(カード型メモリ)
241〜248:LED
400:装置筐体
410:磁気記録装置収納部
420:メモリ収納部
500:外部装置(パソコン)
C:暗号化データファイル
D:DIPスイッチ
F:データファイル
K:暗号キー
M:管理領域
N:累積実行回数
P1:暗号化処理
P2:復号化処理
T:復元可能期間
10: Hard disk drive device (first dimensional standard)
11: Device housing (first dimension standard)
12: External connection terminal (first dimension standard)
12A: Signal terminal 12B: Power supply terminal 13: Platter (first dimension standard)
20: Hard disk drive device (second dimension standard)
21: Device casing (second dimension standard)
22: External connection terminal (second dimension standard)
22A: Signal terminal 22B: Power supply terminal 23: Platter (second dimension standard)
30: Hard disk drive device (first dimension standard)
40: Hard disk drive device (first dimension standard)
100: Magnetic recording unit 110:
117: fitting protrusion (detachment means)
120: First external connection terminal (first dimension standard)
120A: Signal terminal 120B: Power supply terminal 130: Magnetic recording device (hard disk drive device of the second dimensional standard)
132: Second external connection terminal (second dimension standard)
140: Controller 141: Mode setting means 142: Write processing means 143: Deletion processing means 144: Read processing means 145: Synchronization processing means 146: Initialization processing means 147: Restoration processing means 148: LED control means 150: DIP switch 200 :
217: fitting hole (detachment means)
220: Memory interface (memory socket)
230: Non-volatile memory (card type memory)
231 to 238: non-volatile memory (card type memory)
241 to 248: LED
400: Device housing 410: Magnetic recording device storage unit 420: Memory storage unit 500: External device (PC)
C: Encrypted data file D: DIP switch F: Data file K: Encryption key M: Management area N: Cumulative execution count P1: Encryption process P2: Decryption process T: Restorable period
Claims (22)
前記磁気記録ユニット用の筐体と、前記メモリユニット用の筐体とは、着脱手段によって、互いに結合したり分離したりすることができ、前記複数台のメモリユニットのいずれか1つを選択的に前記磁気記録ユニットに結合して利用できるように構成され、両者を結合して得られる合成筐体は、ハードディスクドライブ装置に関する第1の寸法規格に合致し、
前記磁気記録ユニット用の筐体もしくは前記メモリユニット用の筐体には、前記第1の寸法規格に合致した第1の外部接続用端子が備わっており、
前記磁気記録装置は、前記第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、前記第2の寸法規格に合致した第2の外部接続用端子を備えており、
前記磁気記録ユニットもしくは前記メモリユニットには、コントローラが設けられ、
少なくとも前記磁気記録ユニット用の筐体と前記メモリユニット用の筐体とが結合された状態において、前記コントローラが、前記第1の外部接続用端子と前記第2の外部接続用端子と前記不揮発性メモリとに直接もしくは間接的に接続されるように、必要な配線が施されており、
前記コントローラが、
ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定するモード設定手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル書込コマンドが与えられた場合に、前記磁気記録装置とその時点で結合中のメモリユニット内の不揮発性メモリとの双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う書込処理手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル削除コマンドが与えられた場合に、前記磁気記録装置とその時点で結合中のメモリユニット内の不揮発性メモリとの双方に対して、削除対象となる同一のデータファイルを削除する処理を行う削除処理手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル読出コマンドが与えられた場合に、前記磁気記録装置およびその時点で結合中のメモリユニット内の不揮発性メモリの少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う読出処理手段と、
前記通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、前記磁気記録装置に格納されているデータファイルとその時点で結合中のメモリユニット内の不揮発性メモリに格納されているデータファイルとが一致するように当該不揮発性メモリを書き換える同期処理を行う同期処理手段と、
前記復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、前記磁気記録装置に格納されているデータファイルとその時点で結合中のメモリユニット内の不揮発性メモリに格納されているデータファイルとが一致するように前記磁気記録装置を書き換える復元処理を行う復元処理手段と、
を有することを特徴とするハードディスクドライブ装置。 A hard disk drive device having a magnetic recording unit incorporating a magnetic recording device and a plurality of memory units incorporating a nonvolatile memory,
The case for the magnetic recording unit and the case for the memory unit can be coupled to or separated from each other by an attaching / detaching means, and any one of the plurality of memory units can be selectively selected. The combined housing obtained by combining the magnetic recording unit and the magnetic recording unit conforms to the first dimensional standard for the hard disk drive device,
The case for the magnetic recording unit or the case for the memory unit includes a first external connection terminal that conforms to the first dimensional standard,
The magnetic recording device includes a hard disk drive device that conforms to a second dimensional standard that is smaller than the first dimensional standard, and includes a second external connection terminal that conforms to the second dimensional standard. ,
The magnetic recording unit or the memory unit is provided with a controller.
At least in the state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the controller has the first external connection terminal, the second external connection terminal, and the non-volatile Necessary wiring is made so that it is connected directly or indirectly to the memory.
The controller is
Mode setting means for setting one of the normal mode and the restoration mode based on a user setting operation;
In a state where the normal mode is set, when a file write command is given from the external device via the first external connection terminal, the magnetic recording device and the memory unit currently connected at that time Write processing means for performing processing for writing the same data file to be written to both the nonvolatile memory and
In a state where the normal mode is set, when a file deletion command is given from the external device via the first external connection terminal , the nonvolatile memory in the memory unit coupled to the magnetic recording device at that time is provided. Delete processing means for performing processing for deleting the same data file to be deleted with respect to both of the memory and
When a file read command is given from the external device through the first external connection terminal in the state where the normal mode is set , the nonvolatile memory in the magnetic recording device and the memory unit coupled at that time is provided. Read processing means for performing a process of reading a data file to be read from at least one of the directional memories ;
When it is detected that a predetermined synchronization start condition is satisfied while the normal mode is set, the data file stored in the magnetic recording device and the non-volatile memory in the memory unit coupled at that time are stored. Synchronization processing means for performing synchronization processing to rewrite the nonvolatile memory so that the data file being matched
When it is detected that a predetermined restoration start condition is satisfied in the state where the restoration mode is set, the data file stored in the magnetic recording device and the nonvolatile memory in the memory unit coupled at that time are stored. Restoration processing means for performing restoration processing for rewriting the magnetic recording device so that the data file being matched with each other,
A hard disk drive device comprising:
コントローラが磁気記録ユニット内に設けられ、第1の外部接続用端子が磁気記録ユニット用の筐体に備わっていることを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 1,
A hard disk drive device comprising: a controller provided in a magnetic recording unit; and a first external connection terminal provided in a housing for the magnetic recording unit.
少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、外部装置から第1の外部接続用端子に対して与えられた電源が、磁気記録装置とコントローラと不揮発性メモリとに供給されるように、必要な配線が施されていることを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 1 or 2,
At least in the state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the power supplied from the external device to the first external connection terminal is supplied to the magnetic recording device, the controller, and the nonvolatile memory. A hard disk drive device, wherein necessary wiring is provided so as to be supplied to a memory.
磁気記録ユニットもしくはメモリユニットに、電池もしくはバッテリが組み込まれており、少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、前記電池もしくは前記バッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されるように、必要な配線が施されていることを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 1 or 2,
A battery or a battery is incorporated in the magnetic recording unit or the memory unit, and at least in a state where the housing for the magnetic recording unit and the housing for the memory unit are coupled, the power from the battery or the battery is A hard disk drive device, wherein necessary wiring is provided so as to be supplied to a magnetic recording device, a controller, and a nonvolatile memory.
磁気記録ユニット用の筐体とメモリユニット用の筐体とに、それぞれ中継端子が設けられており、両筐体を結合したときに、前記中継端子を介して、磁気記録ユニット側の配線とメモリユニット側の配線とが接続されることを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 4,
A relay terminal is provided in each of the housing for the magnetic recording unit and the housing for the memory unit, and when the two housings are coupled, the wiring on the magnetic recording unit side and the memory are connected via the relay terminal. A hard disk drive device, wherein wiring on a unit side is connected.
前記筐体には、前記第1の寸法規格に合致した第1の外部接続用端子が備わっており、
前記磁気記録装置は、前記第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、前記第2の寸法規格に合致した第2の外部接続用端子を備えており、
前記不揮発性メモリは、前記メモリソケットを利用して抜き差し可能な複数N枚のカード型メモリであり、
前記メモリソケットには、前記N枚のカード型メモリにそれぞれ対応するN個のLEDが設けられており、
前記コントローラは、前記第1の外部接続用端子と前記第2の外部接続用端子と前記不揮発性メモリとに直接もしくは間接的に接続されており、前記N枚のカード型メモリのそれぞれについて、格納されているデータの有無を、対応するLEDの点灯/消灯によって報知する機能を有し、
更に、前記コントローラは、
ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定するモード設定手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル書込コマンドが与えられた場合に、前記磁気記録装置と前記不揮発性メモリとの双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う書込処理手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル削除コマンドが与えられた場合に、前記磁気記録装置と前記不揮発性メモリとの双方に対して、削除対象となる同一のデータファイルを削除する処理を行う削除処理手段と、
前記通常モードが設定された状態で、外部装置から前記第1の外部接続用端子を介してファイル読出コマンドが与えられた場合に、前記磁気記録装置および前記不揮発性メモリの少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う読出処理手段と、
前記通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、前記磁気記録装置に格納されているデータファイルと前記不揮発性メモリに格納されているデータファイルとが一致するように前記不揮発性メモリを書き換える同期処理を行う同期処理手段と、
前記復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、前記磁気記録装置に格納されているデータファイルと前記不揮発性メモリに格納されているデータファイルとが一致するように前記磁気記録装置を書き換える復元処理を行う復元処理手段と、
を有することを特徴とするハードディスクドライブ装置。 A hard disk drive device including a magnetic recording device, a memory socket, a non-volatile memory attached to the memory socket, and a controller in a housing that conforms to the first dimensional standard,
The housing includes a first external connection terminal that meets the first dimensional standard,
The magnetic recording device includes a hard disk drive device that conforms to a second dimensional standard that is smaller than the first dimensional standard, and includes a second external connection terminal that conforms to the second dimensional standard. ,
The non-volatile memory is a plurality of N card-type memories that can be inserted and removed using the memory socket ,
The memory socket is provided with N LEDs each corresponding to the N card-type memories,
The controller is directly or indirectly connected to the first external connection terminal, the second external connection terminal, and the nonvolatile memory, and stores each of the N card-type memories. Has the function of notifying the presence / absence of the data being made by turning on / off the corresponding LED,
Furthermore, the controller
Mode setting means for setting one of the normal mode and the restoration mode based on a user setting operation;
In a state where the normal mode is set, when a file write command is given from the external device via the first external connection terminal, both the magnetic recording device and the nonvolatile memory are Write processing means for performing processing for writing the same data file to be written;
In a state where the normal mode is set, when a file deletion command is given from the external device via the first external connection terminal, both the magnetic recording device and the nonvolatile memory are A deletion processing means for performing processing for deleting the same data file to be deleted;
In a state where the normal mode is set, when a file read command is given from the external device via the first external connection terminal, the read target is read from at least one of the magnetic recording device and the nonvolatile memory. Reading processing means for performing processing for reading the data file to be,
The data file stored in the magnetic recording device matches the data file stored in the non-volatile memory when the establishment of a predetermined synchronization start condition is detected in the state where the normal mode is set. Synchronization processing means for performing synchronization processing to rewrite the nonvolatile memory as described above,
The data file stored in the magnetic recording device matches the data file stored in the non-volatile memory when it is detected that a predetermined restoration start condition is satisfied with the restoration mode set. A restoration processing means for performing restoration processing for rewriting the magnetic recording device,
A hard disk drive device comprising:
筐体内に電池もしくはバッテリが組み込まれており、前記電池もしくは前記バッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されることを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 6 ,
A hard disk drive device, wherein a battery or a battery is incorporated in a housing, and power from the battery or the battery is supplied to a magnetic recording device, a controller, and a nonvolatile memory.
モード設定手段が、ユーザの物理的な操作によって2通りの切替状態のいずれかを維持することができる機械式切替スイッチによって構成されており、当該切替スイッチの第1の切替状態によって通常モード、第2の切替状態によって復元モードの設定がなされることを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 7 ,
The mode setting means is configured by a mechanical switch that can maintain either of two switching states by a user's physical operation, and the normal mode, the first switching state is determined by the first switching state of the switching switch. 2. A hard disk drive device, wherein a restoration mode is set according to the switching state of 2.
モード設定手段が、少なくとも1ビットの情報を記録する不揮発性のビット記憶部と、外部装置から第1の外部接続用端子を介して与えられるモード設定コマンドによって前記1ビットの情報を書き換えるビット設定部と、によって構成されており、前記1ビットの情報が第1の論理状態であるときに通常モード、第2の論理状態であるときに復元モードの設定がなされることを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 7 ,
A non-volatile bit storage unit in which mode setting means records at least 1-bit information, and a bit setting unit that rewrites the 1-bit information by a mode setting command given from an external device via the first external connection terminal The hard disk drive device is characterized in that a normal mode is set when the 1-bit information is in the first logical state, and a restoration mode is set when the 1-bit information is in the second logical state. .
コントローラがバッファメモリを備え、
書込処理手段が、外部装置から与えられた書込対象となるデータを、前記バッファメモリに一時的に格納した上で、磁気記録装置と不揮発性メモリとの双方に対して書き込む処理を行うことを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 9 ,
The controller has a buffer memory,
The writing processing means temporarily stores the data to be written given from the external device in the buffer memory, and then writes the data to both the magnetic recording device and the nonvolatile memory. Hard disk drive device characterized by this.
同期処理手段および復元処理手段のいずれか一方、もしくは双方が、同期処理もしくは復元処理を行う際に、磁気記録装置に格納されているデータファイルと不揮発性メモリに格納されているデータファイルとの整合性を調べ、不一致が生じたデータファイルについてのみ書き換えを行うことを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 10 ,
When either or both of the synchronization processing means and the restoration processing means perform synchronization processing or restoration processing, the data file stored in the magnetic recording device matches the data file stored in the non-volatile memory. A hard disk drive device characterized by checking the data and rewriting only the data file in which the inconsistency occurs.
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に有し、
同期処理手段が、前記リセット信号が送信されることを同期開始条件として、同期処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to any one of claims 1 to 11 ,
It further has a reset switch for transmitting a reset signal to the controller by a user reset operation,
A hard disk drive device, wherein the synchronization processing means performs the synchronization processing on the condition that the reset signal is transmitted as a synchronization start condition.
同期処理手段が、外部装置から第1の外部接続用端子を介して同期開始コマンドが与えられることを同期開始条件として、同期処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to any one of claims 1 to 11 ,
A hard disk drive device characterized in that the synchronization processing means performs the synchronization processing on the condition that the synchronization start command is given from the external device through the first external connection terminal.
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に有し、
復元処理手段が、前記リセット信号が送信されることを復元開始条件として、復元処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to any one of claims 1 to 11 ,
It further has a reset switch for transmitting a reset signal to the controller by a user reset operation,
A hard disk drive device characterized in that the restoration processing means performs restoration processing using the transmission of the reset signal as a restoration start condition.
復元処理手段が、外部装置から第1の外部接続用端子を介して復元開始コマンドが与えられることを復元開始条件として、復元処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to any one of claims 1 to 11 ,
A hard disk drive device characterized in that the restoration processing means performs restoration processing on the condition that a restoration start command is given from the external device via the first external connection terminal.
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを圧縮してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを伸張する処理を行うことを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 15 ,
When either or both of the writing processing means and the synchronization processing means write to the nonvolatile memory, the data file to be written is compressed and then written,
A hard disk drive device, wherein either one or both of a read processing unit and a restoration processing unit performs a process of expanding a read data file when reading from a nonvolatile memory.
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを暗号化してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを復号化する処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 1 ,
When either or both of the writing processing means and the synchronization processing means write to the non-volatile memory, a process of writing after encrypting the data file to be written is performed,
A hard disk drive device, wherein one or both of a read processing unit and a restoration processing unit perform a process of decrypting a read data file when reading from a nonvolatile memory.
ユーザの設定操作により複数ビットの論理値を設定可能なDIPスイッチを更に有し、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、前記DIPスイッチによって設定されている論理値を暗号キーとして用いた暗号化を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、前記DIPスイッチによって設定されている論理値を暗号キーとして用いた復号化を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 17 ,
A DIP switch that can set a logical value of a plurality of bits by a user setting operation;
Either one or both of the writing processing means and the synchronization processing means performs encryption using the logical value set by the DIP switch as an encryption key,
A hard disk drive device, wherein either one or both of a read processing unit and a restoration processing unit perform decryption using a logical value set by the DIP switch as an encryption key.
コントローラが、不揮発性メモリ内の管理領域に所定の暗号キーを書き込む機能と、外部装置から第1の外部接続用端子を介して、所定のパスワードについての認証コマンドが与えられたときに、前記パスワードが正しいか否かを判定する機能と、前記パスワードが正しいと判断された場合に、前記不揮発性メモリから前記暗号キーを読み出す機能と、を備えており、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、前記不揮発性メモリから読み出された暗号キーを用いた暗号化を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、前記不揮発性メモリから読み出された暗号キーを用いた復号化を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to claim 17 ,
When the controller is given a function to write a predetermined encryption key in the management area in the nonvolatile memory and an authentication command for the predetermined password is given from the external device via the first external connection terminal, the password A function for determining whether the password is correct, and a function for reading the encryption key from the nonvolatile memory when the password is determined to be correct,
Either one or both of the writing processing means and the synchronization processing means performs encryption using the encryption key read from the nonvolatile memory,
One of the reading processing means and the restoring processing means, or both, performs decryption using the encryption key read from the non-volatile memory.
復元処理手段が、復元処理を行うたびに、不揮発性メモリ内の管理領域に復元処理の累積実行回数を書き込む処理を行い、前記累積実行回数が所定の上限回数に達していた場合には、復元処理を行わないことを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 19 ,
Each time the restoration processing means performs restoration processing, the restoration processing means performs processing for writing the cumulative number of times of restoration processing into the management area in the non-volatile memory, and if the cumulative number of times of execution has reached a predetermined upper limit number of times, restoration is performed. A hard disk drive device characterized by not performing processing.
復元処理手段が、復元処理を行う前に、不揮発性メモリ内の管理領域に書き込まれている復元可能期間を示す情報を読み出してチェックし、前記復元可能期間内の時点にのみ、復元処理を行うことを特徴とするハードディスクドライブ装置。 The hard disk drive device according to any one of claims 1 to 20 ,
The restoration processing means reads and checks information indicating the restoration possible period written in the management area in the nonvolatile memory before performing the restoration processing, and performs the restoration processing only at a point in time within the restoration possible period. A hard disk drive device characterized by that.
コントローラが、
通常モードが設定されており、外部装置から第1の外部接続用端子を介して初期化コマンドが与えられた場合に、磁気記録装置と不揮発性メモリとの双方に対して、初期化処理を行う初期化処理手段を更に有することを特徴とするハードディスクドライブ装置。 In the hard disk drive device according to any one of claims 1 to 21 ,
The controller
When the normal mode is set and an initialization command is given from the external device via the first external connection terminal, initialization processing is performed for both the magnetic recording device and the nonvolatile memory. A hard disk drive device further comprising initialization processing means.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009172844A JP5233892B2 (en) | 2009-07-24 | 2009-07-24 | Hard disk drive device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009172844A JP5233892B2 (en) | 2009-07-24 | 2009-07-24 | Hard disk drive device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011028475A JP2011028475A (en) | 2011-02-10 |
JP5233892B2 true JP5233892B2 (en) | 2013-07-10 |
Family
ID=43637161
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009172844A Active JP5233892B2 (en) | 2009-07-24 | 2009-07-24 | Hard disk drive device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5233892B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101920867B1 (en) * | 2017-07-05 | 2018-11-21 | 김덕우 | An auxiliary memory device providing independent backup and recovery functions, and appliances adopting this memory device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0684338A (en) * | 1992-09-07 | 1994-03-25 | Mitsubishi Electric Corp | Array type recording device |
JPH07121315A (en) * | 1993-10-21 | 1995-05-12 | Fuji Xerox Co Ltd | Disk array |
JPH08137631A (en) * | 1994-11-15 | 1996-05-31 | Hitachi Ltd | Disk array device |
JP2004171171A (en) * | 2002-11-19 | 2004-06-17 | Merrweth:Kk | Backup/recovery device |
JP4942446B2 (en) * | 2006-10-11 | 2012-05-30 | 株式会社日立製作所 | Storage apparatus and control method thereof |
-
2009
- 2009-07-24 JP JP2009172844A patent/JP5233892B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011028475A (en) | 2011-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7559088B2 (en) | Method and apparatus for deleting data upon expiration | |
JP4888935B2 (en) | Storage system | |
EP1999554B1 (en) | Hard disk storage system | |
US20060218434A1 (en) | Disk drive with integrated tape drive | |
US7228379B2 (en) | Systems and methods for removing data stored on long-term memory devices | |
KR20050015972A (en) | Apparatus and method for controlling booting of computer system | |
JP2010514008A (en) | Nonvolatile disk cache for data security | |
US20120072663A1 (en) | Storage control device and RAID group extension method | |
CN101796495A (en) | Memory device and file system | |
EP2076854A1 (en) | Combination journaling/non-journaling file system | |
JP2007034487A (en) | Information processor, its control method, and computer program | |
CN102136274A (en) | Mobile hard disk with two storage media | |
JP2004341768A (en) | Magnetic disk device, cipher processing method and program | |
US20060051157A1 (en) | Systems, methods, and media for backing up a computer system | |
US8590042B2 (en) | Storage system, and encryption key management method and encryption key management program thereof | |
US9323622B2 (en) | Progress recording method and recovering method for encoding operation on storage device | |
JP5233892B2 (en) | Hard disk drive device | |
JP2014071487A (en) | File recorder, file system management method and change drive | |
CN103092719A (en) | Power-off protection method for file system | |
CN102355568A (en) | Method and device for carrying out charged uninstallation and installation of hard disk for digital video recorder | |
JP5200410B2 (en) | Storage device | |
US20080184070A1 (en) | RAID capacity expansion interruption recovery handling method and system | |
JP7004033B1 (en) | Storage equipment, storage systems, control methods and programs | |
EP3910485B1 (en) | Electronic data management device, electronic data management system, program therefor, and recording medium | |
WO2001084551A1 (en) | Recording/reproducing disk control device and disc apparatus comprising the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120528 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20121113 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121204 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130131 |
|
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: 20130226 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130311 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160405 Year of fee payment: 3 |