JP5233892B2 - Hard disk drive device - Google Patents

Hard disk drive device Download PDF

Info

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
Application number
JP2009172844A
Other languages
Japanese (ja)
Other versions
JP2011028475A (en
Inventor
富己男 半田
義博 矢野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2009172844A priority Critical patent/JP5233892B2/en
Publication of JP2011028475A publication Critical patent/JP2011028475A/en
Application granted granted Critical
Publication of JP5233892B2 publication Critical patent/JP5233892B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2002−032198号公報Japanese Patent Laid-Open No. 2002-032198 特開2004−213365号公報JP 2004-213365 A 特開2007−025892号公報JP 2007-025892 A 特開2004−038931号公報JP 2004-038931 A 特開2004−021634号公報JP 2004-021634 A

ハードディスクドライブ装置に自動バックアップ機能をもたせる方法には、上述したように、ハードウエア的な手法とソフトウエア的な手法が存在する。ここで、ソフトウエア的な手法を採れば、単一のハードディスクドライブ装置のみを用いて自動バックアップを実現することが可能であるが、当該単一のハードディスクドライブ装置に障害が生じ、ミラーリング保存していた複数のデータのいずれにもアクセスできない状態になると、データが失われてしまう危険性がある。   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.

従来から利用されている一般的なハードディスクドライブ装置(寸法規格が異なる2種類)を示す斜視図である。It is a perspective view which shows the general hard disk drive apparatus (two types from which a dimension specification differs) utilized conventionally. 本発明の第1の実施形態に係るハードディスクドライブ装置の斜視図である(内部の構成要素の一部を破線で示す)。1 is a perspective view of a hard disk drive device according to a first embodiment of the present invention (some internal components are indicated by broken lines). 図2に示すハードディスクドライブ装置を、2つのユニット100,200に分離した状態を示す斜視図である。FIG. 3 is a perspective view showing a state in which the hard disk drive device shown in FIG. 2 is separated into two units 100 and 200. 図2に示すハードディスクドライブ装置の基本構成を示すブロック図である。FIG. 3 is a block diagram showing a basic configuration of the hard disk drive device shown in FIG. 2. 図2に示すハードディスクドライブ装置を利用して、過去の履歴を逐次保存する運用を採る場合に必要なユニットを示すブロック図である。It is a block diagram which shows a unit required when taking the operation | movement which preserve | saves a past log | history sequentially using the hard-disk drive apparatus shown in FIG. 図5に示すユニットを用いた4月中の運用状況を示すブロック図である。It is a block diagram which shows the operation condition in April using the unit shown in FIG. 図5に示すユニットを用いた4月末〜5月中の運用状況を示すブロック図である。It is a block diagram which shows the operation | use condition from the end of April to May using the unit shown in FIG. 図5に示すユニットを用いて4月〜8月まで運用を行った場合の保管対象ユニットを示すブロック図である。It is a block diagram which shows the storage object unit at the time of operating from April to August using the unit shown in FIG. 図5に示すユニットを用いた運用中に、過去の状態を復元する処理を示すブロック図である。FIG. 6 is a block diagram showing a process for restoring a past state during operation using the unit shown in FIG. 5. 本発明の第2の実施形態に係るハードディスクドライブ装置の斜視図である(内部の構成要素の一部を破線で示す)。It is a perspective view of the hard-disk drive device which concerns on the 2nd Embodiment of this invention (a part of internal component is shown with a broken line). 図10に示すメモリインターフェイス220(メモリソケット)および不揮発性メモリ230(カード型メモリ)の背面図である。It is a rear view of the memory interface 220 (memory socket) and the non-volatile memory 230 (card type memory) shown in FIG. 図10に示すハードディスクドライブ装置の基本構成を示すブロック図である。It is a block diagram which shows the basic composition of the hard disk drive device shown in FIG. 本発明に係るハードディスクドライブ装置において、データ圧縮を行う変形例を示すブロック図である。It is a block diagram which shows the modification which performs data compression in the hard-disk drive device which concerns on this invention. 本発明に係るハードディスクドライブ装置において、データ暗号化を行う変形例を示すブロック図である。It is a block diagram which shows the modification which performs data encryption in the hard-disk drive device which concerns on this invention. データ暗号化に用いる暗号キーをDIPスイッチによって設定する変形例を示すブロック図である。It is a block diagram which shows the modification which sets the encryption key used for data encryption with a DIP switch. データ暗号化に用いる暗号キーを不揮発性メモリ内に格納する変形例を示すブロック図である。It is a block diagram which shows the modification which stores the encryption key used for data encryption in a non-volatile memory.

以下、本発明を図示する実施形態に基づいて説明する。   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 device 10 shown in the upper part is a device that conforms to the first dimensional standard, and is provided with an external connection terminal 12 on the side surface of the device housing 11 and a platter 13 incorporated therein. On the other hand, the device 20 shown in the lower stage is a device that conforms to the second dimensional standard, and is provided with an external connection terminal 22 on the side surface of the device housing 21 and a platter 23 incorporated therein. . In addition, in each device, a spindle motor that rotates the platter, a magnetic head that reads and writes data, a drive motor that drives the magnetic head, a controller that controls these, and the like are incorporated. The description is omitted here.

ここでは、一例として、第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 standard apparatus 10, a platter 13 having a diameter of 3.5 inches is used, and the external dimensions of the apparatus housing 11 have predetermined standard dimensions. The external connection terminal 12 also conforms to the 3.5 inch standard. In the figure, an example in which a signal terminal 12A and a power supply terminal 12B are provided as the external connection terminals 12 is shown. On the other hand, in the case of the 2.5 inch standard apparatus 20, a platter 23 having a diameter of 2.5 inches is used, and a predetermined standard dimension is also defined for the external shape of the apparatus housing 21. The external connection terminal 22 also conforms to the 2.5 inch standard. In the figure, an example in which a signal terminal 22A and a power supply terminal 22B are provided as the external connection terminals 22 is shown. Note that the terminal configuration shown in the drawing of this application is for convenience of explanation, and does not conform to the correct standard.

本発明の第1の着眼点は、第1の寸法規格に合致した装置10の筐体11内に、この第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置20を組み込むようにして、筐体11内に余分な収納スペースを確保し、当該余分な収納スペースに不揮発性メモリを組み込む、という点にある。そうすれば、外形は第1の寸法規格に合致した単一のハードディスクドライブ装置でありながら、内部には、ハードディスクドライブ装置(第2の寸法規格)と不揮発性メモリとの双方が組み込まれているため、双方に同一のデータを書き込むことにより、いわゆるミラーリングによる冗長保存が可能になる。すなわち、ハードディスクドライブ装置に格納されたデータファイルは、自動的に不揮発性メモリへバックアップされる。   The first point of view of the present invention is that the hard disk drive device 20 conforming to the second dimensional standard smaller than the first dimensional standard is incorporated in the casing 11 of the device 10 conforming to the first dimensional standard. Thus, an extra storage space is secured in the housing 11, and a nonvolatile memory is incorporated into the extra storage space. By doing so, both the hard disk drive device (second dimensional standard) and the non-volatile memory are incorporated inside, although the outer shape is a single hard disk drive device that conforms to the first dimensional standard. Therefore, redundant storage by so-called mirroring becomes possible by writing the same data in both. That is, the data file stored in the hard disk drive is automatically backed up to the nonvolatile memory.

したがって、ここでは、第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 disk drive device 30 according to the first embodiment of the present invention (some internal components are indicated by broken lines). As shown in the figure, the apparatus 30 is composed of a magnetic recording unit 100 and a memory unit 200.

磁気記録ユニット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 external connection terminal 120 that conforms to a first dimensional standard (for example, 3.5 inch standard) is provided on the side surface of the casing 110 for the magnetic recording unit 100. In the case of this example, the first external connection terminal 120 includes a signal terminal 120A and a power supply terminal 120B. In addition, a magnetic recording device 130 and a controller 140 are built in the housing 110, and a DIP switch 150 is provided above the first external connection terminal 120. Here, the magnetic recording device 130 is constituted by a hard disk drive device of the second dimensional standard (for example, 2.5 inch standard), and the second external connection terminal 132 that matches the second dimensional standard is provided. I have. In other words, the magnetic recording device 130 shown in FIG. 2 uses the hard disk drive device 20 shown in the lower part of FIG. 1 as it is.

一方、メモリユニット200用の筐体210内には、メモリインターフェイス220と不揮発性メモリ230とが内蔵されている。ここに示す例の場合、不揮発性メモリ230として、8枚のカード型メモリを用いており、メモリインターフェイス220は、これらカード型メモリを抜き差しするためのメモリソケットによって構成されている。カード型メモリとしては、たとえば、マイクロSDカード、ミニSDカードなどのSDメモリカードや、その他のカード型フラッシュメモリを用いればよい。   On the other hand, a memory interface 220 and a nonvolatile memory 230 are built in the housing 210 for the memory unit 200. In the example shown here, eight card-type memories are used as the nonvolatile memory 230, and the memory interface 220 is configured by a memory socket for inserting and removing these card-type memories. As the card type memory, for example, an SD memory card such as a micro SD card or a mini SD card, or other card type flash memory may be used.

ここに示す基本的実施形態の場合、不揮発性メモリ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 non-volatile memory 230 is set to be greater than or equal to the total storage capacity (for example, 120 GB) of the magnetic recording device 130, and magnetic recording All data files stored in the device 130 can be backed up to the nonvolatile memory 230.

このように、図2に示すハードディスクドライブ装置30は、磁気記録装置130を内蔵した磁気記録ユニット100と、不揮発性メモリ230を内蔵したメモリユニット200と、によって構成される装置であり、磁気記録ユニット100用の筐体110と、メモリユニット200用の筐体210とは、着脱手段(図2では、図示省略)によって、互いに結合したり分離したりすることができるように構成されている。しかも、両者を結合して得られる合成筐体が、ハードディスクドライブ装置に関する第1の寸法規格(ここに示す例の場合、3.5インチ規格)に合致するように設計されている。   As described above, the hard disk drive device 30 shown in FIG. 2 is a device constituted by the magnetic recording unit 100 incorporating the magnetic recording device 130 and the memory unit 200 incorporating the nonvolatile memory 230. The housing 110 for 100 and the housing 210 for the memory unit 200 are configured to be coupled or separated from each other by attaching / detaching means (not shown in FIG. 2). In addition, the composite casing obtained by combining the two is designed to meet the first dimensional standard for the hard disk drive device (in the example shown here, the 3.5 inch standard).

図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 disk drive device 30 shown in FIG. 2 is separated into two units 100 and 200. As shown in the figure, a relay terminal 115 and fitting projections 116 and 117 are provided in the vicinity of the coupling surface of the casing 110 for the magnetic recording unit 100, and in the vicinity of the coupling surface of the casing 210 for the memory unit 200. Are provided with relay terminals 215 and fitting holes 216 and 217 (these components are not shown in FIG. 2).

2つの筐体110,210を結合させると、中継端子115,215の対応する電極が接触し、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続される。また、嵌合用突起部116の先端爪部が嵌合用孔部216に嵌合し、嵌合用突起部117の先端爪部が嵌合用孔部217に嵌合することにより、2つのユニット100,200が結合状態に維持される。嵌合用突起部116,117は、弾性材料によって構成されているため、必要に応じて弾性変形させることにより、嵌合状態を解除し、2つのユニット100,200を図示のとおり分離させることが可能である。   When the two casings 110 and 210 are coupled, the corresponding electrodes of the relay terminals 115 and 215 come into contact with each other, and the wiring on the magnetic recording unit 100 side and the wiring on the memory unit 200 side are connected. Further, the front end claw portion of the fitting projection 116 is fitted into the fitting hole portion 216, and the front end claw portion of the fitting projection portion 117 is fitted into the fitting hole portion 217, whereby the two units 100 and 200 are fitted. Is maintained in a coupled state. Since the fitting protrusions 116 and 117 are made of an elastic material, it is possible to release the fitting state and to separate the two units 100 and 200 as illustrated by elastically deforming as necessary. It is.

このように、嵌合用突起部116,117および嵌合用孔部216,217は、磁気記録ユニット100とメモリユニット200とを互いに結合したり分離したりするための着脱手段として機能する。もちろん、着脱手段としては、寸法規格を逸脱しない限り、この他にも様々な構造のものを用いることが可能であり、具体的な着脱方法も、様々なものを利用可能である。たとえば、ネジを用いて両筐体を固定するような着脱手段を用いることもできるし、磁石の吸引力を利用して両筐体を固定するような着脱手段を用いることもできる。   As described above, the fitting projections 116 and 117 and the fitting holes 216 and 217 function as attachment / detachment means for coupling and separating the magnetic recording unit 100 and the memory unit 200 from each other. Of course, as the attaching / detaching means, various structures can be used as long as they do not deviate from the dimensional standards, and various concrete attaching / detaching methods can be used. For example, attachment / detachment means for fixing both housings using screws can be used, and attachment / detachment means for fixing both housings using the attractive force of a magnet can also be used.

図2に示すように、磁気記録ユニット100とメモリユニット200とを互いに結合した状態にすると、上述したとおり、両者を結合して得られる合成筐体は、第1の寸法規格に合致し、かつ、外部接続用端子120も第1の寸法規格に合致したものであるため、外形上、この図2に示すハードディスクドライブ装置30は、図1に示す従来のハードディスクドライブ装置10と同等の装置として取り扱うことができる。また、§3で述べるように、当該装置30は、従来装置10と同等のデータ保存機能を有しているため、結局、外形のみならず機能の点においても、従来装置10と変わりはない。   As shown in FIG. 2, when the magnetic recording unit 100 and the memory unit 200 are coupled to each other, as described above, the composite casing obtained by coupling both meets the first dimensional standard, and Since the external connection terminal 120 also conforms to the first dimensional standard, the hard disk drive device 30 shown in FIG. 2 is treated as an apparatus equivalent to the conventional hard disk drive device 10 shown in FIG. be able to. Further, as described in §3, since the device 30 has a data storage function equivalent to that of the conventional device 10, it is not different from the conventional device 10 in terms of not only the outer shape but also the function.

したがって、たとえば、第1の寸法規格に応じた従来装置10を用いているデスクトップパソコンについて、従来装置10を、図2に示す本発明に係る装置30に交換しても何ら支障はなく、ハードディスクドライブ装置としての同等の機能を果たすことができる。その上、本発明に係る装置30には、§3で述べるように、自動バックアップ機能が備わっているので、万一、磁気記録装置130に障害が生じてデータファイルが失われるような事態が生じても、不揮発性メモリ230に格納されているバックアップデータによって、データファイルの復元が可能になる。   Therefore, for example, with respect to a desktop personal computer using the conventional device 10 according to the first dimensional standard, there is no problem even if the conventional device 10 is replaced with the device 30 according to the present invention shown in FIG. An equivalent function as a device can be achieved. In addition, since the apparatus 30 according to the present invention is provided with an automatic backup function as described in §3, the magnetic recording apparatus 130 may fail and a data file may be lost. However, the data file can be restored by the backup data stored in the nonvolatile memory 230.

コントローラ140は、このような自動バックアップ処理や復元処理を行う機能をもった電子回路であり、その具体的な処理機能については後述する。なお、図には配線は示されていないが、実際には、第1の外部接続用端子120とコントローラ140との間には所定の配線が施されており、コントローラ140は信号用端子120Aを介して、外部装置(たとえば、パソコン)との間で信号のやりとりを行うことができる。また、電源用端子120Bからコントローラ140に対して電源が供給される。同様に、第2の外部接続用端子132とコントローラ140との間にも所定の配線が施されており、磁気記録装置130は、第2の外部接続用端子132を介して、コントローラ140から電源の供給を受けるとともに、コントローラ140との間で信号のやりとりを行うことができる。   The controller 140 is an electronic circuit having a function of performing such automatic backup processing and restoration processing, and specific processing functions will be described later. Although the wiring is not shown in the figure, in practice, a predetermined wiring is provided between the first external connection terminal 120 and the controller 140, and the controller 140 connects the signal terminal 120A. Thus, signals can be exchanged with an external device (for example, a personal computer). Further, power is supplied to the controller 140 from the power terminal 120B. Similarly, a predetermined wiring is also provided between the second external connection terminal 132 and the controller 140, and the magnetic recording device 130 is supplied with power from the controller 140 via the second external connection terminal 132. And exchange of signals with the controller 140.

更に、コントローラ140と中継端子115(図3参照)との間にも配線が施されており、中継端子215(図3参照)とメモリインターフェイス(メモリソケット)220との間にも配線が施されている。したがって、図2に示すように、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態においては、コントローラ140と不揮発性メモリ(カード型メモリ)230とは、中継端子115,215を介して間接的に接続された状態になる。このため、不揮発性メモリ230は、コントローラ140から電源の供給を受けるとともに、コントローラ140によるアクセスを受けることができる。   Further, wiring is also provided between the controller 140 and the relay terminal 115 (see FIG. 3), and wiring is also provided between the relay terminal 215 (see FIG. 3) and the memory interface (memory socket) 220. ing. Therefore, as shown in FIG. 2, when the magnetic recording unit casing 110 and the memory unit casing 210 are coupled, the controller 140 and the nonvolatile memory (card type memory) 230 are relayed. A state of being indirectly connected through the terminals 115 and 215 is established. For this reason, the nonvolatile memory 230 can be supplied with power from the controller 140 and can be accessed by the controller 140.

なお、図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 controller 140 is provided in the magnetic recording unit 100 and the first external connection terminal 120 is provided in the case 110 for the magnetic recording unit. 140 can be provided in the memory unit 200, and the first external connection terminal 120 can be provided on the side of the memory unit housing 210. That is, when implementing the first embodiment of the present invention, the controller 140 may be provided in either the magnetic recording unit 100 or the memory unit 200. Similarly, the first external connection terminal 120 conforming to the first dimensional standard may be provided in either the magnetic recording unit casing 110 or the memory unit casing 210.

コントローラ140や第1の外部接続用端子120をどこに設けた場合でも、少なくとも、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、コントローラ140は、第1の外部接続用端子120と、第2の外部接続用端子132と、不揮発性メモリ230と、に対して、直接もしくは間接的に接続されるように、必要な配線を施しておけば、コントローラ140は、必要な機能を果たすことができる。また、少なくとも、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、外部装置から第1の外部接続用端子120に対して与えられた電源が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるように、必要な配線を施しておけば、各構成要素に対して、外部装置からの電源供給が可能になる。   Regardless of where the controller 140 or the first external connection terminal 120 is provided, the controller 140 is configured so that the controller 140 is in the state where the housing 110 for the magnetic recording unit and the housing 210 for the memory unit are coupled. If necessary wiring is provided so as to be directly or indirectly connected to the external connection terminal 120, the second external connection terminal 132, and the nonvolatile memory 230, the controller 140 Can perform the necessary functions. Further, at least in a state where the magnetic recording unit casing 110 and the memory unit casing 210 are coupled, the power supplied from the external device to the first external connection terminal 120 is supplied to the magnetic recording unit. If necessary wiring is provided so as to be supplied to the device 130, the controller 140, and the nonvolatile memory 230, power can be supplied from an external device to each component.

ここに示す例の場合、図3に示すように、磁気記録ユニット用の筐体110とメモリユニット用の筐体210とに、それぞれ中継端子115,215が設けられている。このため、両筐体を結合したときに、この中継端子115,215を介して、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続されることになり、必要な電源供給や信号のやりとりが行われることになる。   In the case of the example shown here, as shown in FIG. 3, relay terminals 115 and 215 are provided in a case 110 for a magnetic recording unit and a case 210 for a memory unit, respectively. For this reason, when the two housings are joined, the wiring on the magnetic recording unit 100 side and the wiring on the memory unit 200 side are connected via the relay terminals 115 and 215, and the necessary power supply or Signal exchange is performed.

<<< §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 disk drive device 30 according to the first embodiment shown in FIG. 2 will be described. FIG. 4 is a block diagram showing a basic configuration of the hard disk drive device 30 shown in FIG. As described in §2, the hard disk drive device 30 is composed of a magnetic recording unit 100 and a memory unit 200 that are detachable from each other, and a hard disk that conforms to the first dimensional standard in a state where they are coupled. Functions as a drive device.

磁気記録ユニット100用の筐体110内には、磁気記録装置130とコントローラ140が組み込まれており、筐体110の側面には、第1の寸法規格に合致した第1の外部接続用端子120と中継端子115とが設けられている。ここで、磁気記録装置130は、第1の寸法規格よりも小さい第2の寸法規格に合致したハードディスクドライブ装置によって構成され、第2の寸法規格に合致した第2の外部接続用端子132を備えている。   A magnetic recording device 130 and a controller 140 are incorporated in the case 110 for the magnetic recording unit 100, and a first external connection terminal 120 that conforms to the first dimensional standard is provided on the side of the case 110. And a relay terminal 115 are provided. Here, the magnetic recording device 130 is configured by 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 132 that conforms to the second dimensional standard. ing.

一方、メモリユニット200用の筐体210内には、メモリインターフェイス220と、不揮発性メモリ230が組み込まれており、筐体210の側面には、中継端子215が設けられている。   On the other hand, a memory interface 220 and a nonvolatile memory 230 are incorporated in a housing 210 for the memory unit 200, and a relay terminal 215 is provided on a side surface of the housing 210.

両筐体110,210を結合すると、中継端子115,215が電気的に接続され、磁気記録ユニット100側の配線とメモリユニット200側の配線とが接続される。その結果、コントローラ140は、第1の外部接続用端子120と、第2の外部接続用端子132と、不揮発性メモリ230と、に接続された状態になる。また、図示のとおり、第1の外部接続用端子120には、外部装置500が接続される。外部装置500は、たとえば、パソコン等の電子機器であり、当該ハードディスクドライブ装置30は、この外部装置500用のデータ記憶装置として機能する。   When the housings 110 and 210 are coupled, the relay terminals 115 and 215 are electrically connected, and the wiring on the magnetic recording unit 100 side and the wiring on the memory unit 200 side are connected. As a result, the controller 140 is connected to the first external connection terminal 120, the second external connection terminal 132, and the nonvolatile memory 230. Further, as shown in the figure, the external device 500 is connected to the first external connection terminal 120. The external device 500 is an electronic device such as a personal computer, for example, and the hard disk drive device 30 functions as a data storage device for the external device 500.

第1の外部接続用端子120には、図2に示すように、電源用端子120Bが含まれており、この電源用端子120Bには、外部装置500から電源が供給される。この電源は、装置内の配線を通じて、コントローラ140,磁気記録装置130,不揮発性メモリ230へと供給される。   As shown in FIG. 2, the first external connection terminal 120 includes a power supply terminal 120B, and power is supplied from the external device 500 to the power supply terminal 120B. This power is supplied to the controller 140, the magnetic recording device 130, and the nonvolatile memory 230 through wiring in the device.

コントローラ140は、ハードディスクドライブ装置30の動作を統括管理する機能をもった電子回路であり、マイクロプロセッサと、このマイクロプロセッサが実行するプログラムを格納したメモリと、処理対象となるデータを一時的に格納するバッファメモリと、を備えている。結局、コントローラ140が行う様々な処理は、所定のプログラムに基づくマイクロプロセッサの動作によって実行されることになるが、ここでは、このコントローラ140を、個々の処理機能をもった複数の処理手段の集合体として捉え、各処理手段が実行する処理内容を説明することにする。   The controller 140 is an electronic circuit having a function of managing the overall operation of the hard disk drive device 30, and temporarily stores a microprocessor, a memory storing a program executed by the microprocessor, and data to be processed. And a buffer memory. Eventually, various processes performed by the controller 140 are executed by the operation of a microprocessor based on a predetermined program. Here, the controller 140 is a set of a plurality of processing means having individual processing functions. The contents of processing executed by each processing means will be described as a body.

図4の下段に、このコントローラ140を構成する複数の処理手段を、それぞれブロックとして示す。図示のとおり、コントローラ140を構成する処理手段は、モード設定手段141,書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146,復元処理手段147である。以下、これら各手段の処理内容を順に説明する。   The lower part of FIG. 4 shows a plurality of processing means constituting the controller 140 as blocks. As shown in the figure, the processing means constituting the controller 140 are a mode setting means 141, a writing processing means 142, a deletion processing means 143, a reading processing means 144, a synchronization processing means 145, an initialization processing means 146, and a restoration processing means 147. is there. Hereinafter, the processing contents of these means will be described in order.

<1> モード設定手段の処理内容
モード設定手段141は、ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定する構成要素である。本発明に係るハードディスクドライブ装置は、通常モードと復元モードとの2通りのモードで動作する。コントローラ140は、通常モードでは、磁気記録装置130と不揮発性メモリ230とをミラーリングして使用し、磁気記録装置130内に格納すべきデータを不揮発性メモリ230内にもコピーして、自動バックアップを行う。一方、復元モードでは、逆に、不揮発性メモリ230内のデータを磁気記録装置130内にコピーする処理が行われる。
<1> Processing Contents of Mode Setting Unit The mode setting unit 141 is a component that sets one of a normal mode and a restoration mode based on a user setting operation. The hard disk drive device according to the present invention operates in two modes, a normal mode and a restoration mode. In the normal mode, the controller 140 uses the magnetic recording device 130 and the nonvolatile memory 230 in a mirrored manner, and copies the data to be stored in the magnetic recording device 130 into the nonvolatile memory 230 for automatic backup. Do. On the other hand, in the restoration mode, conversely, processing for copying data in the nonvolatile memory 230 into the magnetic recording device 130 is performed.

このように、通常モードと復元モードとでは、その処理内容が正反対と言えるほど異なっている。すなわち、通常モードでは、磁気記録装置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 magnetic recording device 130 are backed up to the nonvolatile memory 230, the stored contents of the nonvolatile memory 230 always match the stored contents of the magnetic recording device 130. Such processing is performed. On the other hand, in the restoration mode, on the premise that the stored contents of the magnetic recording device 130 are hindered, the contents backed up in the nonvolatile memory 230 are transferred to the magnetic recording device 130 and restored. Is called. Therefore, in the present invention, these two processes are clearly distinguished in the form of “mode” so that the restoration process is not erroneously performed during the normal mode, and the normal process is erroneously performed during the restoration mode. Care is taken not to be done.

すなわち、ユーザは、通常、このハードディスクドライブ装置30に対して、通常モードの設定を行って使用すればよい。図4の下段に示すように、この通常モードの設定では、書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146は各処理を実行するが、復元処理手段147は復元処理を実行しないように構成されている。したがって、通常モードに設定しておく限り、誤って復元処理手段147による復元処理が行われることはない。   That is, the user should normally use the hard disk drive device 30 after setting the normal mode. As shown in the lower part of FIG. 4, in this normal mode setting, the write processing unit 142, the deletion processing unit 143, the read processing unit 144, the synchronization processing unit 145, and the initialization processing unit 146 execute each process. The restoration processing means 147 is configured not to execute restoration processing. Therefore, as long as the normal mode is set, the restoration processing by the restoration processing unit 147 is not erroneously performed.

一方、磁気記録装置130に何らかの支障が生じた場合には、復元処理が必要になる。この場合、ユーザは復元モードの設定を行って、復元処理手段147を動作させることになる。復元モードの設定では、復元処理手段147のみがその処理を実行するように構成されているので、誤って不揮発性メモリ230の内容が改変されることはない。   On the other hand, if any trouble occurs in the magnetic recording device 130, a restoration process is required. In this case, the user sets the restoration mode and operates the restoration processing unit 147. In the restoration mode setting, only the restoration processing unit 147 is configured to execute the process, so that the contents of the nonvolatile memory 230 are not erroneously altered.

モード設定手段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 DIP switch 150 shown in FIG. 2 can be used. However, as described above, if the mode setting by the mode setting unit 141 is wrong, a fatal result such as loss of data may be brought about. Therefore, in practice, a larger toggle switch is used on the operation panel. It is preferable to specify “normal mode” and “restoration mode”. Of course, such a change-over switch may be provided on the housing 110 side for the magnetic recording unit or on the housing 210 side for the memory unit.

別な構成例として、モード設定手段141を、少なくとも1ビットの情報を記録する不揮発性のビット記憶部と、外部装置500から第1の外部接続用端子120を介して与えられるモード設定コマンドによって当該1ビットの情報を書き換えるビット設定部と、によって構成することも可能である。この場合、当該1ビットの情報が第1の論理状態であるときに通常モード、第2の論理状態であるときに復元モードの設定がなされるようにしておけば、ユーザは、モード設定コマンドによる切替操作によって、所望のモード設定を行うことができる。   As another configuration example, the mode setting unit 141 may be configured by a non-volatile bit storage unit that records at least one bit of information and a mode setting command given from the external device 500 via the first external connection terminal 120. A bit setting unit that rewrites 1-bit information may be used. In this case, if 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, the user can use the mode setting command. A desired mode can be set by the switching operation.

具体的には、ビット設定部には、外部装置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 external device 500. If the command is a command for setting the normal mode, the bit setting unit If the corresponding bit is set to the first logical state (for example, “0”) and the command is set to the restoration mode, the corresponding bit in the bit storage unit is set to the second logical state (for example, “1”). What is necessary is just to perform the process to perform. In this case, it is necessary to add a function for generating a digital signal corresponding to the mode setting command and giving it to the first external connection terminal 120 on the external device 500 side. It can be added by an operation of installing a predetermined program (driver program for the hard disk drive device 30) in the external device 500.

前述したとおり、書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146は、モード設定手段141の設定モードが「通常モード」であった場合にのみその処理を実行し、復元処理手段147は、モード設定手段141の設定モードが「復元モード」であった場合にのみその処理を実行する。続いて、これら個々の処理手段による処理内容を順に説明する。   As described above, the writing processing unit 142, the deletion processing unit 143, the reading processing unit 144, the synchronization processing unit 145, and the initialization processing unit 146 are only used when the setting mode of the mode setting unit 141 is “normal mode”. The process is executed, and the restoration processing unit 147 executes the process only when the setting mode of the mode setting unit 141 is “restoration mode”. Subsequently, processing contents by these individual processing means will be described in order.

<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 external device 500 via the first external connection terminal 120. In addition, the same data file to be written is written to both the magnetic recording device 130 and the nonvolatile memory 230. As described above, since the controller 140 includes a buffer memory that temporarily stores data to be processed, the write processing unit 142 converts the data to be written supplied from the external device 500 into this data. After temporarily storing the data in the buffer memory, the writing process may be performed on both the magnetic recording device 130 and the nonvolatile memory 230.

磁気記録装置130への書込処理は、多くの場合、外部装置500から第1の外部接続用端子120に対して与えられたファイル書込コマンドを、そのまま第2の外部接続用端子132に転送するだけの処理で済む。たとえば、磁気記録装置130が、現在最も普及している「FAT32」の仕様でフォーマットされたハードディスクドライブ装置であり、外部装置500が当該仕様のハードディスクドライブ装置への読み書きに対応するOSを用いていた場合には、外部装置500は磁気記録装置130に対して直接アクセスすることが可能であるから、コントローラ140は、両者間でやりとりされる信号を中継する役割を果たすだけでよい。   In many cases, the write processing to the magnetic recording device 130 transfers the file write command given from the external device 500 to the first external connection terminal 120 as it is to the second external connection terminal 132. All you need to do is do it. For example, the magnetic recording device 130 is a hard disk drive device formatted in accordance with the currently most popular “FAT32” specification, and the external device 500 uses an OS that supports reading and writing to the hard disk drive device of the specification. In this case, since the external device 500 can directly access the magnetic recording device 130, the controller 140 only has to play a role of relaying signals exchanged between the two.

一般に、ハードディスクドライブ装置内におけるプラッタへのデータの読み書きは、トラックの各セクター単位で行われる。このため、特定のデータファイルをプラッタへ書き込む場合、どのようなファイル名が付されたデータファイルが、どのセクターに書き込まれたかを示す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 magnetic recording device 130, writing to the magnetic recording device 130 is possible. When processing is performed, it is not necessary to prepare such a file management function in the controller 140 used in the present invention. In other words, since the substantial writing process to the magnetic recording device 130 is executed by the controller built in the magnetic recording device 130, the controller 140 connects the first external connection terminal 120 and the second external connection terminal 120. It suffices to perform the function of relaying signals going back and forth between the external connection terminals 132.

これに対して、不揮発性メモリ230への実質的な書込処理は、コントローラ140によってなされなければならない。したがって、コントローラ140は、不揮発性メモリ230への書き込みを行う際には、そのアドレス空間を複数のセクターに分割し、所定の管理セクターにFATを作成し、ファイル管理を行う必要がある。このようなファイル管理の方法は公知の技術であるため、ここでは詳しい説明は省略する。なお、上述した例は、あくまでも一実施形態であり、利用するOSによっては、コントローラ140が受けもつ処理内容やファイル管理の方法が異なるケースもある。したがって、本発明を実施する上で、コントローラの処理内容やファイル管理の方法は、ここで述べる実施形態に限定されるものではない。   On the other hand, the substantial writing process to the nonvolatile memory 230 must be performed by the controller 140. Therefore, when writing to the non-volatile memory 230, the controller 140 needs to divide the address space into a plurality of sectors, create a FAT in a predetermined management sector, and perform file management. Since such a file management method is a known technique, a detailed description thereof is omitted here. Note that the above-described example is merely an embodiment, and depending on the OS to be used, the processing content and file management method that the controller 140 may handle may be different. Therefore, in implementing the present invention, the processing contents of the controller and the file management method are not limited to the embodiments described herein.

このように、外部装置500からファイル書込コマンドが与えられた場合、コントローラ140によって、書込対象となる同一のデータファイルを、磁気記録装置130と不揮発性メモリ230との双方に対して書き込む処理が行われるため、磁気記録装置130に格納されたデータファイルは、常に、不揮発性メモリ230内にも格納されていることになり、両者に格納されているデータファイルの構成は常に一致することになる。   Thus, when a file write command is given from the external device 500, the controller 140 writes the same data file to be written to both the magnetic recording device 130 and the nonvolatile memory 230. Therefore, the data file stored in the magnetic recording device 130 is always stored in the nonvolatile memory 230, and the configuration of the data file stored in both is always the same. Become.

<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 external device 500 via the first external connection terminal 120, the magnetic recording device 130 and the nonvolatile memory 230 are deleted by the deletion processing unit 143. In both cases, the same data file to be deleted is deleted. Also in this case, the substantial process of deleting the file in the magnetic recording device 130 is executed by the controller built in the magnetic recording device 130. Therefore, if the controller 140 performs the function of relaying the file deletion command, It ’s enough. On the other hand, since the controller 140 needs to perform a substantial process of deleting a file in the nonvolatile memory 230, the controller 140 executes a necessary process such as rewriting the FAT in the nonvolatile memory 230. To do.

<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 external device 500 via the first external connection terminal 120 in the state where the normal mode is set, the read processing unit 144 Thus, the process of reading the data file to be read and transmitting it to the external device 500 via the first external connection terminal 120 is executed. As described above, the data file configuration stored in the magnetic recording device 130 and the data file configuration stored in the nonvolatile memory 230 always coincide with each other by the functions of the write processing unit 142 and the deletion processing unit 143. Thus, when a file read command is given, the data file to be read can be read from the magnetic recording device 130 or can be read from the nonvolatile memory 230. Therefore, the read processing unit 144 may perform a process of reading a data file to be read from at least one of the magnetic recording device 130 and the nonvolatile memory 230 and transmitting the data file to the external device 500.

ここで述べる実施形態の場合、読出処理手段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 magnetic recording device 130 and transmitting it to the external device 500. However, when reading from the magnetic recording device 130 fails, the same data file is read from the nonvolatile memory 230 and transmitted to the external device 500 instead. In this case, since error information indicating that reading from the magnetic recording device 130 has failed is also transmitted to the external device 500, the user can obtain a desired data file. Recognize that an abnormality has occurred.

もちろん、双方から読み出したデータファイルをバッファメモリに一時的に格納した上で、両者を比較して一致を確認してから、これを外部装置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 external device 500 may be performed. In this case, if the two do not match, it can be determined that some abnormality has occurred, so, for example, the two mismatched data files are transmitted to the external device 500, and the error information is combined. Can be processed.

さて、これまで述べたとおり、このハードディスクドライブ装置30を通常の形態で使用する限り、モード設定手段141を「通常モード」に設定して、書込処理手段142,削除処理手段143,読出処理手段144に各処理を実行させれば、支障なく、データファイルの書き込み、削除、読み出し操作を行うことができる。このとき、上述したとおり、磁気記録装置130に格納されている内容が、不揮発性メモリ230に自動的にバックアップされることになる。ただ、場合によって、以下に述べる同期処理、初期化処理、復元処理といった特殊な処理を行う必要が生じるケースがある。   As described above, as long as the hard disk drive 30 is used in a normal mode, the mode setting unit 141 is set to the “normal mode”, and the write processing unit 142, the deletion processing unit 143, and the read processing unit. If each process is executed in 144, the data file can be written, deleted, and read without any trouble. At this time, as described above, the contents stored in the magnetic recording device 130 are automatically backed up in the nonvolatile memory 230. However, in some cases, it may be necessary to perform special processing such as synchronization processing, initialization processing, and restoration processing described below.

<5> 同期処理手段の処理内容
同期処理は、磁気記録装置130と不揮発性メモリ230との間で、データファイル構成に不一致が生じるような状況が生じた場合に、両者を強制的に一致させるよう同期をとる処理である。同期処理手段145は、通常モードが設定された状態で、所定の同期開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように、不揮発性メモリ230を書き換える同期処理を行う。
<5> Processing Contents of the Synchronization Processing Unit The synchronization processing forcibly matches both the magnetic recording device 130 and the nonvolatile memory 230 when a situation in which the data file configuration is inconsistent occurs. This is the process of synchronizing. When the synchronization processing unit 145 detects the establishment of a predetermined synchronization start condition in a state where the normal mode is set, the data processing unit 145 stores the data file stored in the magnetic recording device 130 and the data stored in the nonvolatile memory 230. A synchronization process for rewriting the nonvolatile memory 230 is performed so that the file matches.

具体的には、磁気記録装置130に格納されているデータファイルを、コントローラ140内のバッファメモリに読み出し、これを不揮発性メモリ230内に書き込む処理を、磁気記録装置130に格納されている全データファイルについて実行すればよい。別言すれば、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へコピーする処理が行われることになる。このとき、もし不揮発性メモリ230に対して初期化処理(フォーマット処理)が必要な場合には、初期化処理を実行した後に、コピーが実行される。   Specifically, the process of reading the data file stored in the magnetic recording device 130 to the buffer memory in the controller 140 and writing the data file in the nonvolatile memory 230 is performed on all data stored in the magnetic recording device 130. Run it on the file. In other words, a process of copying all data files stored in the magnetic recording device 130 to the nonvolatile memory 230 is performed. At this time, if initialization processing (formatting processing) is required for the nonvolatile memory 230, copying is executed after the initialization processing is executed.

なお、この同期処理を実行する際に、磁気記録装置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 magnetic recording device 130 and the data file stored in the nonvolatile memory 230 is checked, and only the data file in which the mismatch occurs is rewritten. May be performed. That is, when there is a file that is stored in the magnetic recording device 130 but not stored in the nonvolatile memory 230, a process of copying the file to the nonvolatile memory 230 is performed, and the magnetic recording device 130 and the nonvolatile memory If there is a file that is stored in both the memory 230 but the contents do not match, a process in which the file in the magnetic recording device 130 is overwritten on the nonvolatile memory 230 is performed and stored in the magnetic recording device 130. If there is a file that is not stored but stored only in the nonvolatile memory 230, a process for deleting the file may be performed.

同期処理が必要になる典型的なケースは、不揮発性メモリ230を交換した場合である。具体的な運用例は§4で詳述するが、図4に示す構成において、磁気記録ユニット100からメモリユニット200を取り外し、新たなメモリユニット200を結合した場合、磁気記録装置130と新たなメモリユニット内の不揮発性メモリ230とは、データファイルの構成が一致しないことになる。このような場合、通常の形態での利用を開始する前に、同期処理を行って、データファイルの構成を一致させる処理が必要になる。   A typical case where synchronization processing is required is when the nonvolatile memory 230 is replaced. A specific operation example will be described in detail in §4. In the configuration shown in FIG. 4, when the memory unit 200 is removed from the magnetic recording unit 100 and a new memory unit 200 is coupled, the magnetic recording device 130 and the new memory are combined. The configuration of the data file does not match that of the nonvolatile memory 230 in the unit. In such a case, before starting use in the normal form, it is necessary to perform a synchronization process to match the data file configuration.

このように、同期処理は、意図的に、不揮発性メモリ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 nonvolatile memory 230 intentionally match the configuration of the data file in the magnetic recording device 130. The processing means 145 executes the synchronization process only when it is detected that a predetermined synchronization start condition is satisfied in the state where the normal mode is set.

同期開始条件としては、本発明に係るハードディスクドライブ装置の設計時に、ユーザの利便性を考慮して任意の条件を設定しておくことができる。ハードウエアを利用して設定可能な最も単純な同期開始条件は、「所定のスイッチが操作されること」という条件である。たとえば、ユーザのリセット操作によりコントローラ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 controller 140 by a user's reset operation may be provided, and the synchronization processing unit 145 may perform synchronization processing on the condition that the reset signal is transmitted as a synchronization start condition. That's fine.

リセットスイッチは、磁気記録ユニット用の筐体110側に設けておいてもよいし、メモリユニット用の筐体210側に設けておいてもよい。たとえば、押圧操作を検知したときにリセット信号をコントローラ140に伝達する機能をもったリセットスイッチ(リセットボタン)を設けておけば、ユーザが、当該リセットボタンを押した時点で、コントローラ140にリセット信号が与えられ、同期処理手段145が同期処理を開始することになる。この場合、「リセットボタンが押されること」が同期開始条件として設定されていることになり、ユーザがリセットボタンを押すことにより、同期開始条件が成立したことになる。ユーザは、同期処理を行いたい場合には、リセットボタンを押す操作を行えばよい。   The reset switch may be provided on the magnetic recording unit housing 110 side, or may be provided on the memory unit housing 210 side. For example, if a reset switch (reset button) having a function of transmitting a reset signal to the controller 140 when a pressing operation is detected, a reset signal is sent to the controller 140 when the user presses the reset button. Is given, and the synchronization processing means 145 starts the synchronization processing. In this case, “the reset button is pressed” is set as the synchronization start condition, and the synchronization start condition is satisfied when the user presses the reset button. When the user wants to perform the synchronization process, the user may perform an operation of pressing the reset button.

なお、リセットスイッチを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 hard disk drive 30 is not supplied with power. it can. For example, when power is supplied to the synchronization processing means 145, the ON / OFF state of the toggle switch is checked. If the toggle switch is in the ON state, it is determined that the synchronization start condition is satisfied, and the synchronization processing is performed. It is sufficient to have a function to start.

一般に、メモリユニット200の交換作業は、電気的なトラブル発生を避けるため、ハードディスクドライブ装置30への電源供給が行われていない状態(外部装置500に電源が投入されていない状態か、ハードディスクドライブ装置30が外部装置500から取り外されている状態)で行われることになろう。そこで、ユーザは、この交換作業時に、リセットスイッチをON状態に切り替える操作を行えばよい。この状態では、電源供給がなされていないため、まだ、コントローラ140は動作していないが、その後、外部装置500からの電源供給が行われるようになれば、コントローラ140は、リセットスイッチがON状態になっていることを検知し、同期開始条件の成立が認識されるので、同期処理を開始することになる。こうして、同期処理が完了した後、ユーザは、リセットスイッチをOFF状態に切り替える操作を行えばよい。   In general, the replacement operation of the memory unit 200 is performed in a state in which power is not supplied to the hard disk drive device 30 (a state in which the external device 500 is not turned on, or a hard disk drive device in order to avoid electrical trouble). 30 will be performed with the device 30 removed from the external device 500). Therefore, the user may perform an operation of switching the reset switch to the ON state during the replacement work. In this state, since the power is not supplied, the controller 140 is not yet operated. However, if power is supplied from the external device 500 thereafter, the controller 140 sets the reset switch to the ON state. Is detected and the establishment of the synchronization start condition is recognized, and the synchronization process is started. Thus, after the synchronization process is completed, the user may perform an operation of switching the reset switch to the OFF state.

もちろん、ソフトウエアによって設定可能な同期開始条件を用いることも可能である。たとえば、予め所定の同期開始コマンドを定めておき、「同期開始コマンドが与えられること」を同期開始条件として設定しておけば、同期処理手段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 external device 500. The synchronization process can be performed on the condition that the synchronization start command is given via the synchronization start condition. If the user wants to perform synchronization processing, the user may operate the external device 500 so that a synchronization start command is given to the hard disk drive device 30. As described above, the function of generating the synchronization start command can be added by installing a predetermined program (driver program for the hard disk drive device 30) in the external device 500.

<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 external device 500 via the first external connection terminal 120, the initialization processing unit 146 includes the magnetic recording device 130, the nonvolatile memory 230, and the like. Both have a function of performing initialization processing. Since the initialization process for such a recording medium is a known technique, a detailed description of the initialization process itself is omitted here.

初期化処理を行うと、磁気記録装置130および不揮発性メモリ230に格納されていたデータファイルはすべて消去される。したがって、ユーザが、この初期化処理を実行するのは、ハードディスクドライブ装置30の利用を新たに開始するときということになる。初期化コマンドを発生させる機能も、外部装置500に所定のプログラム(ハードディスクドライブ装置30用のドライバプログラム)をインストールすることによって付加することができる。   When the initialization process is performed, all the data files stored in the magnetic recording device 130 and the nonvolatile memory 230 are erased. Therefore, the user executes the initialization process when starting to use the hard disk drive 30 anew. The function of generating an initialization command can also be added by installing a predetermined program (a driver program for the hard disk drive device 30) in the external device 500.

なお、磁気記録ユニット100やメモリユニット200を製品として販売する場合、実用上は、工場出荷時に、パソコン用の一般的なOSに適した標準フォーマット(たとえば、FAT32)で、初期化処理を行っておくのが好ましい。そうすれば、ユーザが、当該標準フォーマットに対応した外部装置500に接続して利用する限り、初期化処理の作業を省略することができる。このような観点から、この初期化処理手段146は、本発明を実施する上で必須の構成要素ではない。すなわち、ユーザは、工場出荷時に初期化が完了している製品を利用する限り、初期化処理を行う必要はない。   When the magnetic recording unit 100 or the memory unit 200 is sold as a product, practically, initialization processing is performed in a standard format (for example, FAT32) suitable for a general OS for personal computers at the time of factory shipment. It is preferable to leave. Then, as long as the user connects and uses the external device 500 corresponding to the standard format, the initialization process can be omitted. From this point of view, the initialization processing means 146 is not an essential component for carrying out the present invention. That is, as long as the user uses a product that has been initialized at the time of factory shipment, the user need not perform the initialization process.

<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 magnetic recording device 130 and the data file configuration in the nonvolatile memory 230. To match.

ユーザが、この復元処理を必要とする第1のケースは、現在利用中の磁気記録装置130に何らかの支障が生じ、正常に動作しなくなった場合である。一般に、ハードディスクドライブ装置の寿命は3〜5年とされており、磁気記録装置130が、やがて正常に読み書きできない状態に陥ることは避けられない。このように、磁気記録装置130が正常に読み書きできなかった場合には、書込処理手段142や読出処理手段144によって、外部装置500に対してエラー情報(ファイル書込コマンドやファイル読出コマンドに対する失敗を示すレスポンス)が伝達されることになる。   The first case where the user needs this restoration processing is a case where the magnetic recording apparatus 130 currently in use has some trouble and does not operate normally. Generally, the lifetime of a hard disk drive device is 3 to 5 years, and it is inevitable that the magnetic recording device 130 will eventually be unable to read and write normally. As described above, when the magnetic recording device 130 cannot read / write normally, the write processing unit 142 or the read processing unit 144 notifies the external device 500 of error information (failure with respect to the file write command or the file read command). Is transmitted).

このようなエラー情報により、現在利用中の磁気記録装置130に何らかのトラブルが生じたことを認識したユーザは、磁気記録装置130を正常なものに交換することにより、当該トラブルに対処することになる。具体的には、磁気記録装置130のみを新品に交換するか、あるいは、磁気記録ユニット100ごと新品に交換すればよい。いずれの場合も、新品の磁気記録装置130内には、これまで蓄積されてきたデータファイルは格納されていないので、これまで利用してきたメモリユニット200を、新品の磁気記録装置130を含む磁気記録ユニット100に接続し、復元処理を行うことになる。   A user who recognizes that some trouble has occurred in the magnetic recording device 130 currently in use by such error information, will deal with the trouble by replacing the magnetic recording device 130 with a normal one. . Specifically, only the magnetic recording device 130 may be replaced with a new one, or the entire magnetic recording unit 100 may be replaced with a new one. In any case, since the data file accumulated so far is not stored in the new magnetic recording device 130, the memory unit 200 used so far is used for the magnetic recording including the new magnetic recording device 130. The unit 100 is connected to perform restoration processing.

ユーザが、復元処理を必要とする第2のケースは、現在利用中の磁気記録装置130には何らトラブルは生じていないが、磁気記録装置130内のデータファイルの構成を、過去の状態に戻したい事情が生じた場合である。磁気記録装置130に対しては、様々なデータファイルが、新規書き込みされたり、上書き書き込み(書き換え)されたり、削除されたりし、データファイルの構成は逐次変化してゆくことになる。そして、この磁気記録装置130内に格納されているデータファイルのバックアップを保持する役割を果たす不揮発性メモリ230内のデータファイルの構成も、同様に、逐次変化してゆくことになる。   In the second case where the user needs the restoration process, no trouble has occurred in the magnetic recording device 130 currently in use, but the data file structure in the magnetic recording device 130 is returned to the past state. This is the case when circumstances arise. Various data files are newly written to, overwritten (rewritten), or deleted from the magnetic recording device 130, and the configuration of the data file changes sequentially. Similarly, the configuration of the data file in the non-volatile memory 230, which plays a role of holding a backup of the data file stored in the magnetic recording device 130, also changes sequentially.

ただ、§4で例示する利用形態のように、ユーザは、所望の時点でメモリユニット200を交換することができる。この場合、磁気記録装置130内のデータファイルの構成は逐次変化してゆくが、交換のために取り外されたメモリユニット200の不揮発性メモリ230内のデータファイルの構成は、交換当時のまま保持される。したがって、後日、交換当時のデータファイルの構成を復元したい場合には、当該メモリユニット200を再び磁気記録ユニット100に接続し、不揮発性メモリ230の内容を磁気記録装置130内へコピーする復元処理を行えばよい。   However, the user can exchange the memory unit 200 at a desired time as in the usage mode illustrated in §4. In this case, the configuration of the data file in the magnetic recording device 130 changes sequentially, but the configuration of the data file in the nonvolatile memory 230 of the memory unit 200 removed for replacement is maintained as it was at the time of replacement. The Therefore, when it is desired to restore the configuration of the data file at the time of replacement at a later date, the memory unit 200 is connected to the magnetic recording unit 100 again, and a restoration process for copying the contents of the nonvolatile memory 230 into the magnetic recording device 130 Just do it.

この復元処理は、一方の記録媒体の内容を他方の記録媒体へコピーする処理という点において、前述した同期処理と共通する処理ということができる。両者の相違は、コピーの方向である。すなわち、前述した同期処理では、磁気記録装置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 magnetic recording device 130 are copied to the nonvolatile memory 230, whereas in the restoration process described here, the contents of the nonvolatile memory 230 are copied to the magnetic recording device 130. It will be.

要するに、復元処理手段147は、復元モードが設定された状態で、所定の復元開始条件の成立を検知した場合に、磁気記録装置130に格納されているデータファイルと不揮発性メモリ230に格納されているデータファイルとが一致するように、磁気記録装置130を書き換える復元処理を行う。   In short, the restoration processing unit 147 stores the data file stored in the magnetic recording device 130 and the non-volatile memory 230 when the restoration mode is set and the establishment of a predetermined restoration start condition is detected. A restoration process for rewriting the magnetic recording device 130 is performed so that the data file matches the existing data file.

具体的には、不揮発性メモリ230に格納されているデータファイルを、コントローラ140内のバッファメモリに読み出し、これを磁気記録装置130内に書き込む処理を、不揮発性メモリ230に格納されている全データファイルについて実行すればよい。このとき、もし磁気記録装置130に対して初期化処理(フォーマット処理)が必要な場合には、初期化処理を実行した後に、コピーが実行される。   Specifically, the process of reading the data file stored in the nonvolatile memory 230 to the buffer memory in the controller 140 and writing the data file in the magnetic recording device 130 is performed on all data stored in the nonvolatile memory 230. Run it on the file. At this time, if initialization processing (formatting processing) is required for the magnetic recording device 130, copying is executed after the initialization processing is executed.

なお、この同期処理を実行する際に、磁気記録装置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 magnetic recording device 130 and the data file stored in the nonvolatile memory 230 is checked, and only the data file in which the mismatch occurs is rewritten. May be performed. That is, if there is a file stored in the non-volatile memory 230 but not stored in the magnetic recording device 130, a process of copying the file to the magnetic recording device 130 is performed, and the non-volatile memory 230 and the magnetic recording are recorded. If there is a file that is stored in both of the devices 130 but the contents do not match, the file in the nonvolatile memory 230 is overwritten on the magnetic recording device 130 and stored in the nonvolatile memory 230. If there is a file that is not stored but only stored in the magnetic recording device 130, the file may be deleted.

上述したように、復元処理は、意図的に、磁気記録装置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 magnetic recording device 130 intentionally match the configuration of the data file in the nonvolatile memory 230. The restoration processing unit 147 executes the restoration process only when it is detected that a predetermined restoration start condition is satisfied in a state where the restoration mode is set.

この復元開始条件としては、前述した同期開始条件と同様の条件設定を行うことができる。ハードウエアを利用して設定可能な最も単純な復元開始条件は、「所定のスイッチが操作されること」という条件である。たとえば、ユーザのリセット操作によりコントローラ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 controller 140 by a user reset operation may be provided, and the restoration processing unit 147 may perform synchronization processing using the transmission of the reset signal as a restoration start condition. That's fine.

このリセットスイッチは、前述した同期開始条件の設定に利用するリセットスイッチと兼用にしておいてもかまわない。したがって、磁気記録ユニット用の筐体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 case 110 side for the magnetic recording unit, or may be provided on the case 210 side for the memory unit. Further, it may be configured by a reset button that generates a reset signal by a user's pressing operation, or may be configured by a toggle switch that can be switched to one of two states of ON / OFF.

あるいは、「電源の供給が開始されること」を復元開始条件とする設定も可能である。この場合、モード設定手段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 mode setting unit 141, the restoration start condition is satisfied when the power supply to the controller 140 is started, and the user performs any special operation. The restoration process will be executed without doing it. For example, the user removes the hard disk drive 30 from the external device 500, replaces the memory unit 200 with another memory unit to be restored, and sets the restoration mode by the mode setting means 141 (for example, restores the DIP switch). If the hard disk drive device 30 is connected to the external device 500 and power is supplied again, the controller 140 immediately recognizes that the restoration start condition is satisfied and starts the restoration process. become. If the user performs an operation to switch the mode setting unit 141 to the normal mode after the restoration process is completed, the normal usage mode can be used thereafter by using the restored magnetic recording apparatus 130.

もちろん、ソフトウエアによって設定可能な復元開始条件を用いることも可能である。たとえば、予め所定の復元開始コマンドを定めておき、「復元開始コマンドが与えられること」を復元開始条件として設定しておけば、復元処理手段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 restoration processing unit 147 sends the first external connection terminal from the external device 500. The restoration process can be performed using the restoration start command given through 120 as a restoration start condition. If the user wants to perform restoration processing, the user may operate the external device 500 so that a restoration start command is given to the hard disk drive device 30. As described above, the function of generating the restoration start command can be added by installing a predetermined program (driver program for the hard disk drive device 30) in the external device 500.

<<< §4.第1の実施形態の利用形態 >>>
ここでは、これまで述べてきた第1の実施形態に係るハードディスクドライブ装置30についての具体的な利用形態の一例を説明する。
<<< §4. Usage form of the first embodiment >>
Here, an example of a specific usage mode of the hard disk drive device 30 according to the first embodiment described so far will be described.

図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 disk drive device 30. In this example, one magnetic recording unit 100 and a plurality of memory units 200A, 200B, 200C, 200D, 200E,... That can be coupled to the magnetic recording unit 100 are prepared. In the example described here, since the operation of exchanging the memory unit 200 is performed every month, if one year of operation is performed, twelve memory units 200 are required.

既に述べたとおり、磁気記録ユニット100内には、ハードディスクドライブ装置からなる磁気記録装置130が組み込まれており、各メモリユニット200A,200B,200C,200D,200E,... には、それぞれ不揮発性メモリ230が組み込まれている。ユーザは、これら複数台のメモリユニットのいずれか1つを選択的に1台の磁気記録ユニット100に結合して利用することになる。   As already described, a magnetic recording device 130 comprising a hard disk drive device is incorporated in the magnetic recording unit 100, and each of the memory units 200A, 200B, 200C, 200D, 200E,. A memory 230 is incorporated. The user selectively uses any one of the plurality of memory units in combination with one magnetic recording unit 100.

さて、ここでは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 memory unit 200A for storing April is combined with the magnetic recording unit 100 to form the hard disk drive device 30. This is connected to the external device 500 (in this example, a personal computer). At this time, neither the magnetic recording unit 100 nor the memory unit 200A is in an unused state, and no user data file is stored. The mode is set to the normal mode. Basically, the mode will continue to be used in the normal mode.

なお、必要があれば、ユーザは外部装置500から初期化コマンドを与え、初期化処理手段146によって、磁気記録装置130や不揮発性メモリ230に対する初期化処理を行う(前述したとおり、磁気記録ユニット100やメモリユニット200Aが、工場出荷時に初期化されていれば、ユーザによる初期化作業は不要である)。   If necessary, the user gives an initialization command from the external device 500, and the initialization processing means 146 performs initialization processing on the magnetic recording device 130 and the nonvolatile memory 230 (as described above, the magnetic recording unit 100). If the memory unit 200A is initialized at the time of shipment from the factory, the initialization work by the user is not necessary).

ユーザは、この状態で、当該ハードディスクドライブ装置30を利用することになる。すなわち、図6(b) に示すように、磁気記録ユニット100およびメモリユニット200A内に、4月の内容が蓄積されてゆくことになる。既に述べたとおり、外部装置500から、データファイルの書込処理(新規ファイルの書込処理や、既存ファイルに対する上書処理)あるいは削除処理を行えば、磁気記録ユニット100およびメモリユニット200Aの双方に対して同一のファイル書き込みおよびファイル削除が行われるので、両者に格納されたデータファイルの構成は常に同一になる。   In this state, the user uses the hard disk drive device 30. That is, as shown in FIG. 6B, the contents of April are accumulated in the magnetic recording unit 100 and the memory unit 200A. As described above, if a data file write process (a new file write process or an overwrite process for an existing file) or a delete process is performed from the external device 500, both the magnetic recording unit 100 and the memory unit 200A are processed. On the other hand, since the same file writing and file deletion are performed, the configuration of the data file stored in both is always the same.

こうして、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 magnetic recording unit 100 and the memory unit 200A is finally shown in FIG. As shown in 7 (a), both are the contents at the end of April. Here, the user performs a month-end exchange operation. That is, when the work for one day using the external device 500 is completed, the work for replacing the memory unit 200A with the memory unit 200B is performed. In order to avoid the occurrence of electrical trouble, this replacement operation is performed in a state where power is not supplied to the hard disk drive device 30 (a state where the external device 500 is not turned on or the hard disk drive device 30 is connected to the external device 500 It is preferable to carry out in the state where it has been removed from.

図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 magnetic recording unit 100 remains as of the end of April, but the replaced memory unit 200B is unused. Therefore, the user performs an operation for executing the synchronization process. For example, in an embodiment in which “reset button pressing operation” is a synchronization start condition, the user causes the synchronization processing unit 145 to perform synchronization processing by performing an operation of pressing the reset button after completion of the replacement work. Alternatively, in the case of an embodiment in which “synchronization start command is given” is a synchronization start condition, the user operates the external apparatus 500 to transmit a synchronization start command after completion of the exchange work, and the synchronization processing means 145 causes the synchronization process to be executed.

図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 memory unit 200B as it is (at this time, initialization of the nonvolatile memory is performed as necessary). ), The configuration of the data files stored in both is the same. This completes the month-end processing. The removed memory unit 200A (which stores the contents at the end of April) may be stored in an arbitrary storage location.

ユーザは、5月1日から、この状態で、当該ハードディスクドライブ装置30を引き続き利用することになる。すなわち、図7(d) に示すように、磁気記録ユニット100およびメモリユニット200B内に、5月の内容が蓄積されてゆくことになる。もちろん、両者に格納されたデータファイルの構成は常に同一になる。   The user will continue to use the hard disk drive device 30 in this state from May 1st. That is, as shown in FIG. 7D, the contents of May are accumulated in the magnetic recording unit 100 and the memory unit 200B. Of course, the configuration of the data files stored in both is always the same.

こうして、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 magnetic recording unit 100 and the memory unit 200B will eventually be Will be the content at the end of May. Here, the user executes the exchange work at the end of May. That is, the work of replacing the memory unit 200B with the memory unit 200C is performed.

図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 magnetic recording unit 100 remains as of the end of May, but the replaced memory unit 200C is unused. Therefore, if the synchronization processing is executed, as shown in FIG. 7 (f), the data file in the magnetic recording unit 100 (contents at the end of May) is copied to the memory unit 200C as it is. The structure of the stored data file is the same. This completes the month-end processing at the end of May. The removed memory unit 200B (which stores the contents at the end of May) may be stored in an arbitrary storage location.

こうして、毎月の月末にメモリユニットを交換し、同期処理を行うようにすれば、ハードディスクドライブ装置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 hard disk drive 30 itself can continue to be used. On the other hand, the removed memory unit is accumulated in the storage location. FIG. 8 is a block diagram showing a memory unit to be stored when such operation is performed from April to August. As shown in the figure, the contents of the end of April, the end of May, the end of June, the end of July, and the end of August are stored in each of the memory units 200A, 200B, 200C, 200D, and 200E, respectively. This means that the data file configuration at any month end can be restored if necessary.

一般に、ミラーリングによって自動バックアップを作成する冗長システムでは、一方の媒体に障害が生じたとしても、他方の媒体からデータを取り出すことが可能である。しかしながら、ユーザが意図的に削除や改変を行った場合、削除されたファイルや改変前のファイルを復元することはできない。たとえば、図示の例の場合、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 hard disk drive 30 as of September 15 is that both the magnetic recording unit 100 and the memory unit 200F are September 15 as shown in FIG. Since it has been updated to the contents of the day, files that have been deleted or modified during the work in June cannot be retrieved. However, as shown in FIG. 8, if the contents at the end of the month are stored in separate memory units, it is possible to restore files that have been deleted or modified in the past.

ここでは、一例として、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 memory unit 200F with the memory unit 200B. FIG. 9B shows a state in which this replacement work is completed. As shown in the figure, the data file stored in the magnetic recording unit 100 has the contents as of September 15, but the data file stored in the replaced memory unit 200B has the contents at the end of May. Therefore, the user performs an operation for executing the restoration process.

まず、モード設定を、これまでの通常モードから復元モードに切り替える。具体的には、切替スイッチによってモード設定を行う実施形態の場合は、スイッチを「復元モード」に切り替える設定を行う。あるいは、モード設定コマンドよってモード設定を行う実施形態の場合は、外部装置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 external device 500. In the figure, the “restoration mode” is set by drawing the outline of the block with a bold line.

続いて、復元開始条件を満足させるための作業を行う。たとえば、「リセットボタンの押圧操作」を復元開始条件とする実施形態の場合、リセットボタンを押す操作を行うことにより、復元処理手段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 restoration processing unit 147 is caused to execute the restoration process by performing an operation of pushing the reset button. Alternatively, in the case of an embodiment in which “restore start command is given” is a restore start condition, a restore start command is transmitted from the external device 500 (a command that uses both the mode setting command and the restore start command). May be sent). Note that, in the embodiment in which the “start of power supply” is a restoration start condition, no special work is required to satisfy the restoration start condition, and power supply to the hard disk drive device 30 is not performed. If this happens, the restoration process starts automatically.

図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 memory unit 200B is copied to the magnetic recording unit 100 as it is, and the configuration of the data files stored in both is the same. Although the contents of September 15 stored in the magnetic recording unit 100 are lost, the contents remain in the removed memory unit 200F.

この状態で、当該ハードディスクドライブ装置30を引き続き利用して作業を進めるには、メモリユニット200Bを新たなメモリユニット200Gに交換する作業を行う。図9(d) は、この交換作業が完了した状態を示す。図示のとおり、磁気記録ユニット100に格納されているデータファイルは5月末の内容であるが、交換されたメモリユニット200Gは未使用の状態である。そこで、ユーザは、モード設定を「通常モード」に戻した上で、同期処理を実行させるための作業を行う。   In this state, in order to continue using the hard disk drive device 30, the memory unit 200B is replaced with a new memory unit 200G. FIG. 9 (d) shows a state where the replacement work is completed. As shown in the figure, the data file stored in the magnetic recording unit 100 has the contents at the end of May, but the replaced memory unit 200G is unused. Therefore, the user performs an operation for executing the synchronization process after returning the mode setting to the “normal mode”.

図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 memory unit 200G as it is, and the configuration of the data files stored in both is the same. Therefore, the user can read out the necessary data file to the external device 500 using the data file as of the end of May, and can perform a desired operation. Of course, the result of the operation is stored in the magnetic recording unit 100 and backed up in the memory unit 200G.

このように、格納されているデータファイルを過去の特定時点の内容に戻し、その状態で利用を継続することは、特に、ハードディスクドライブ装置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 disk drive device 30 is used as a startup disk of the external device 500. Useful. Since the OS program is incorporated in the boot disk, for example, when the OS is upgraded, the OS program on the boot disk is rewritten to a new version. However, as a result of working with this new version of the OS, the inconvenience that the old application program does not operate normally or peripheral devices do not operate is found, and there is a desire to return to the old version of the OS. Not a few. In such a case, as in the above example, it is possible to return to the state before the version upgrade of the OS (the state as of the end of May) and continue using it as it is.

もちろん、図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 memory unit 200G with the memory unit 200F, set the restoration mode, and then execute the restoration process again. If the mode is returned to the normal mode after the restoration process is completed, the use can be resumed from the state shown in FIG.

このように、本発明に係るハードディスクドライブ装置は、磁気記録装置内のデータが常に不揮発性メモリ内にバックアップされるため、トラブル発生時には、不揮発性メモリ内のデータを用いて、磁気記録装置内にデータ復元を行うことができる、という利点を有するだけでなく、不揮発性メモリの部分は必要に応じて簡単に取り外すことが可能なので、単純な作業により、過去の履歴を逐次保存しておくことが可能になる、という利点も有することになる。実際、図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 magnetic recording unit 100 and the memory unit 200 can be easily attached and detached, and the convenience for the user is extremely high.

図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 memory unit 200 every month is performed, 12 sets of memory units 200 are accumulated in the storage place in one year. Since it can be configured using a semiconductor memory such as an SD card or a mini-SD card, it becomes a relatively small device. Therefore, the storage space for storing the history can be greatly reduced as compared with the case where the general hard disk drive is replaced and stored every month. Further, instead of storing the memory unit 200 shown in FIG. 2 as it is, if the portion of the card type memory 230 is extracted from the memory socket 220 and only the card type memory 230 is stored, the storage efficiency can be further improved. it can.

しかも、マイクロ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 memory unit 200 according to the present invention can be handled as a versatile hard disk drive device in a state where it is coupled to the magnetic recording unit 100, it has a function as a very versatile medium. Until now, a variety of media based on various standards have been marketed as data recording media, but many media have disappeared from the market with the passage of time. Such an abandoned medium is becoming difficult to obtain a reproducing apparatus, and there is a high possibility that there will be no data reading means in the future. On the other hand, the hard disk drive has been used as the most versatile data recording medium so far, and it is unlikely that data will be completely read in the future. From this point, it can be said that the memory unit 200 according to the present invention is a medium whose reading means will continue to be stably supplied in the future.

<<< §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 disk drive device 40 according to the second embodiment of the present invention (some of the internal components are indicated by broken lines). The hard disk drive device 30 shown in FIG. 2 includes the detachable magnetic recording unit 100 and the memory unit 200. The hard disk drive device 40 shown in FIG. It is composed of one unit. As shown in the figure, the device casing 400 is composed of a magnetic recording device storage portion 410 and a memory storage portion 420, but they are joined and never separated. The device housing 400 is designed to meet the first dimensional standard (3.5 inch standard in the example shown) related to the hard disk drive device.

磁気記録装置収納部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 device storage portion 410 corresponds to the magnetic recording unit 100 of the device 30 shown in FIG. 2 and has a first surface that conforms to a first dimensional standard (for example, 3.5 inch standard) on its side surface. The external connection terminal 120 is provided. Also in this example, the first external connection terminal 120 includes a signal terminal 120A and a power supply terminal 120B. A magnetic recording device 130 and a controller 140 are built in the magnetic recording device housing portion 410, and a DIP switch 150 is provided above the first external connection terminal 120. Here, the magnetic recording device 130 is constituted by a hard disk drive device of the second dimensional standard (for example, 2.5 inch standard), and the second external connection terminal 132 that matches the second dimensional standard is provided. I have.

一方、メモリ収納部420は、図2に示す装置30のメモリユニット200に対応するものであり、メモリインターフェイス220と不揮発性メモリ230とが組み込まれている。ここに示す例の場合も、図2に示す装置30と同様に、不揮発性メモリ230として、8枚のカード型メモリが用いられており、メモリインターフェイス220は、これらカード型メモリを抜き差しするためのメモリソケットによって構成されている。カード型メモリとしては、やはりマイクロSDカード、ミニSDカードなどのSDメモリカードや、その他のカード型フラッシュメモリを用いればよい。ここでも、不揮発性メモリ230の全記憶容量が、磁気記録装置130の全記憶容量以上となるように設定されており、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へバックアップすることができる。   On the other hand, the memory storage unit 420 corresponds to the memory unit 200 of the device 30 shown in FIG. 2, and the memory interface 220 and the nonvolatile memory 230 are incorporated therein. Also in the example shown here, as with the device 30 shown in FIG. 2, eight card-type memories are used as the nonvolatile memory 230, and the memory interface 220 is used to insert and remove these card-type memories. Consists of memory sockets. As the card type memory, an SD memory card such as a micro SD card or a mini SD card, or other card type flash memory may be used. Again, the total storage capacity of the non-volatile memory 230 is set to be equal to or greater than the total storage capacity of the magnetic recording device 130, and all data files stored in the magnetic recording device 130 are transferred to the non-volatile memory 230. Can be backed up.

図示のとおり、メモリ収納部420は、実質的に底板のみからなる構造体であり、その上面には、メモリソケット220が取り付けられている。8枚のカード型メモリ230は、このメモリソケット220に差し込まれた状態になっており、自由に抜き差しが可能である。図2に示す装置30の場合、カード型メモリ230を交換する場合、メモリユニット200ごと交換する方法をとることになるが、図10に示す装置40の場合、カード型メモリ230を直接抜き差しする方法をとることになる。図10に示す例の場合、このような抜き差し作業を容易にするため、メモリ収納部420を底板のみによって構成し、メモリソケット220およびカード型メモリ230が露出した状態になるようにしているが、必要に応じて、メモリ交換時に着脱自在もしくは開閉自在なカバーを設け、メモリソケット220およびカード型メモリ230を覆うようにしてもかまわない。   As shown in the figure, the memory accommodating portion 420 is a structure that is substantially composed only of a bottom plate, and a memory socket 220 is attached to the upper surface thereof. The eight card-type memories 230 are inserted into the memory socket 220 and can be freely inserted and removed. In the case of the device 30 shown in FIG. 2, when the card type memory 230 is replaced, the entire memory unit 200 is replaced. In the case of the device 40 shown in FIG. 10, a method of directly inserting and removing the card type memory 230. I will take. In the case of the example shown in FIG. 10, in order to facilitate such insertion / removal work, the memory storage unit 420 is configured only by the bottom plate so that the memory socket 220 and the card type memory 230 are exposed. If necessary, a cover that can be detached or opened at the time of replacing the memory may be provided to cover the memory socket 220 and the card-type memory 230.

結局、図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 device 40 shown in FIG. 10 is a hard disk drive device including the magnetic recording device 130, the nonvolatile memory 230, and the controller 140 in the housing 400 that matches the first dimensional standard. . The housing 400 is provided with a first external connection terminal 120 that matches the first dimensional standard, and the magnetic recording device 130 matches the second dimensional standard that is smaller than the first dimensional standard. And a second external connection terminal 132 that conforms to the second dimensional standard. The non-volatile memory 230 is a card-type memory that can be inserted and removed using a memory socket 220 provided in the housing 400, and the controller 140 includes a first external connection terminal 120 and a second external connection. The terminal 132 and the non-volatile memory 230 are directly or indirectly connected.

筐体400は、第1の寸法規格に合致し、かつ、外部接続用端子120も第1の寸法規格に合致したものであるため、外形上、この図10に示すハードディスクドライブ装置40は、図1に示す従来のハードディスクドライブ装置10と同等の装置として取り扱うことができる。また、コントローラ140の機能により、当該装置40は、従来装置10と同等のデータ保存機能を有しているため、結局、外形のみならず機能の点においても、従来装置10と変わりはない。また、図2に示す装置30と同様に、自動バックアップ機能が備わっているので、万一、磁気記録装置130に障害が生じてデータファイルが失われるような事態が生じても、不揮発性メモリ230に格納されているバックアップデータによって、データファイルの復元が可能になる。   Since the housing 400 conforms to the first dimensional standard and the external connection terminal 120 also conforms to the first dimensional standard, the hard disk drive device 40 shown in FIG. 1 can be handled as an apparatus equivalent to the conventional hard disk drive apparatus 10 shown in FIG. In addition, since the device 40 has a data storage function equivalent to that of the conventional device 10 due to the function of the controller 140, the device 40 is not different from the conventional device 10 in terms of not only the outer shape but also the function. Further, as with the device 30 shown in FIG. 2, since the automatic backup function is provided, even if a failure occurs in the magnetic recording device 130 and a data file is lost, the nonvolatile memory 230 is lost. Data files can be restored by the backup data stored in.

なお、図には配線は示されていないが、実際には、第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 external connection terminal 120 and the controller 140, and the controller 140 connects the signal terminal 120A. Thus, signals can be exchanged with an external device (for example, a personal computer). Further, power is supplied to the controller 140 from the power terminal 120B. Similarly, a predetermined wiring is also provided between the second external connection terminal 132 and the controller 140, and the magnetic recording device 130 is supplied with power from the controller 140 via the second external connection terminal 132. And exchange of signals with the controller 140. Further, wiring is also provided between the controller 140 and the memory socket 220, and the nonvolatile memory 230 can be supplied with power from the controller 140 and can be accessed by the controller 140.

図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 memory socket 220. FIG. 11 is a rear view of the memory socket 220 and the nonvolatile memory 230 shown in FIG. The non-volatile memory 230 is configured by a total of eight card-type memories 231 to 238 (for example, micro SD cards). Has been placed. These LEDs 241 to 248 are controlled to be turned on / off by the controller 140 and have a function of notifying the presence / absence of data stored in the corresponding card type memory. That is, the LED corresponding to the card type memory in which data is stored is turned on, and the LED corresponding to the card type memory in which data is not stored is turned off.

たとえば、コントローラ140が、8枚のカード型メモリ231〜238を、この順番で使用するようにプログラムされている場合、まず、ファイル管理に必要なFAT用データがメモリ231内の所定のセクタに書き込まれ、メモリ231内のその他のセクタに、データファイルが順次保存されてゆく。保存対象となるデータファイルの総容量が小さいうちは、FAT用データを含めたすべてのデータがメモリ231内に収容されることになろう。この場合、データが格納されているメモリは、メモリ231のみであるから、これに対応するLED241のみが点灯状態となり、LED242〜248は消灯状態となる。やがて、保存対象となるデータファイルの総容量が増えると、メモリ231内に収容しきれなかったデータは、メモリ232に格納されることになる。この場合、LED241,242が点灯状態となり、LED243〜248は消灯状態となる。   For example, when the controller 140 is programmed to use the eight card-type memories 231 to 238 in this order, first, FAT data necessary for file management is written in a predetermined sector in the memory 231. As a result, the data files are sequentially stored in other sectors in the memory 231. As long as the total capacity of the data file to be saved is small, all data including FAT data will be accommodated in the memory 231. In this case, since the memory 231 is the only memory in which data is stored, only the corresponding LED 241 is turned on, and the LEDs 242 to 248 are turned off. Eventually, when the total capacity of data files to be saved increases, data that could not be accommodated in the memory 231 will be stored in the memory 232. In this case, the LEDs 241 and 242 are turned on, and the LEDs 243 to 248 are turned off.

ここでは、8枚のカード型メモリ231〜238を用いた場合を例にとって説明するが、一般的に、不揮発性メモリ230として、複数N枚のカード型メモリを設ける場合、このN枚のカード型メモリに対応して、N個のLEDを設けるようにし、コントローラ140が、このN枚のカード型メモリのそれぞれについて、格納されているデータの有無を、対応するLEDの点灯/消灯によって報知する機能を果たすようにすればよい。なお、LEDは、必ずしもメモリソケット220に配置する必要はなく、個々のLEDと個々のカード型メモリとの対応関係が認識できるよう配慮されていれば、任意の場所に配置してかまわない。ただ、実用上は、メモリとの対応関係を直感的に把握できるように、図11に示す例のように、メモリソケット220上の各メモリの装着位置に対応させて配置するのが好ましい。   Here, a case where eight card-type memories 231 to 238 are used will be described as an example. Generally, when a plurality of N card-type memories are provided as the nonvolatile memory 230, the N card-type memories are provided. A function in which N LEDs are provided corresponding to the memory, and the controller 140 notifies the presence / absence of stored data for each of the N card-type memories by turning on / off the corresponding LED. Should be fulfilled. Note that the LEDs are not necessarily arranged in the memory socket 220, and may be arranged in any place as long as the correspondence between the individual LEDs and the individual card-type memories is recognized. However, for practical use, it is preferable that the memory socket 220 is arranged in correspondence with the mounting position of each memory so as to intuitively understand the correspondence with the memory, as in the example shown in FIG.

図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 disk drive device 40 shown in FIG. As described above, the apparatus housing 400 includes the magnetic recording device storage unit 410 and the memory storage unit 420, and the magnetic recording device storage unit 410 includes a first external connection that conforms to the first dimensional standard. Terminal 120, magnetic recording device 130, and controller 140 are provided. Here, the magnetic recording device 130 is configured by 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 132 that conforms to the second dimensional standard. ing. On the other hand, a memory interface 220 and a nonvolatile memory 230 are incorporated in the memory storage unit 420. In the example shown here, the non-volatile memory 230 is configured by eight card-type memories 231 to 238, and the memory interface 220 is configured by a memory socket in which these memories can be inserted and removed. The memory socket 220 is provided with eight LEDs 241 to 248 corresponding to each memory.

図示のとおり、第1の外部接続用端子120には、外部装置500が接続される。外部装置500は、たとえば、パソコン等の電子機器であり、当該ハードディスクドライブ装置40は、この外部装置500用のデータ記憶装置として機能する。第1の外部接続用端子120には、図10に示すように、電源用端子120Bが含まれており、この電源用端子120Bには、外部装置500から電源が供給される。この電源は、装置内の配線を通じて、コントローラ140,磁気記録装置130,不揮発性メモリ230へと供給される。   As illustrated, the external device 500 is connected to the first external connection terminal 120. The external device 500 is an electronic device such as a personal computer, for example, and the hard disk drive device 40 functions as a data storage device for the external device 500. As shown in FIG. 10, the first external connection terminal 120 includes a power supply terminal 120B, and power is supplied from the external device 500 to the power supply terminal 120B. This power is supplied to the controller 140, the magnetic recording device 130, and the nonvolatile memory 230 through wiring in the device.

コントローラ140の基本機能は、第1の実施形態に係る装置30におけるコントローラ(図4参照)の機能と同じである。すなわち、この図12に示す装置40におけるコントローラ140も、ハードディスクドライブ装置40の動作を統括管理する機能をもった電子回路であり、マイクロプロセッサと、このマイクロプロセッサが実行するプログラムを格納したメモリと、処理対象となるデータを一時的に格納するバッファメモリと、を備えている。その機能に着目すれば、コントローラ140は、図12の下段に示すとおり、モード設定手段141,書込処理手段142,削除処理手段143,読出処理手段144,同期処理手段145,初期化処理手段146,復元処理手段147の集合体として捉えることができ、これら各手段の機能は§3で述べたとおりである。   The basic function of the controller 140 is the same as the function of the controller (see FIG. 4) in the device 30 according to the first embodiment. That is, the controller 140 in the device 40 shown in FIG. 12 is also an electronic circuit having a function of managing the operation of the hard disk drive device 40, a microprocessor, a memory storing a program executed by the microprocessor, And a buffer memory for temporarily storing data to be processed. If attention is paid to the function, the controller 140, as shown in the lower part of FIG. 12, the mode setting unit 141, the writing processing unit 142, the deletion processing unit 143, the reading processing unit 144, the synchronization processing unit 145, and the initialization processing unit 146. , Restoration processing means 147, and the functions of these means are as described in §3.

すなわち、モード設定手段141は、ユーザの設定操作に基づいて、通常モードか復元モードかのいずれか一方のモードを設定する機能を有し、書込処理手段142は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル書込コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、書込対象となる同一のデータファイルを書き込む処理を行う機能を有し、削除処理手段143は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル削除コマンドが与えられた場合に、磁気記録装置130と不揮発性メモリ230との双方に対して、削除対象となる同一のデータファイルを削除する処理を行う機能を有し、読出処理手段144は、通常モードが設定された状態で、外部装置500から第1の外部接続用端子120を介してファイル読出コマンドが与えられた場合に、磁気記録装置130および不揮発性メモリ230の少なくとも一方から、読出対象となるデータファイルを読み出す処理を行う機能を有する。   That is, the mode setting unit 141 has a function of setting either the normal mode or the restoration mode based on a user setting operation, and the writing processing unit 142 is in a state in which the normal mode is set. Thus, when a file write command is given from the external device 500 via the first external connection terminal 120, both the magnetic recording device 130 and the nonvolatile memory 230 are the same as a write target. The deletion processing unit 143 has received a file deletion command from the external device 500 via the first external connection terminal 120 in a state in which the normal mode is set. In this case, both the magnetic recording device 130 and the nonvolatile memory 230 have a function of performing processing for deleting the same data file to be deleted, The output processing unit 144 is configured to store the magnetic recording device 130 and the nonvolatile memory 230 when a file read command is given from the external device 500 via the first external connection terminal 120 in a state where the normal mode is set. It has a function of performing a process of reading a data file to be read from at least one of them.

また、同期処理手段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 magnetic recording device 130 and the nonvolatile memory 230 when detecting the establishment of a predetermined synchronization start condition in a state where the normal mode is set. The initialization processing means 146 is set to the normal mode and the first external connection terminal from the external device 500 has a function of performing a synchronization process for rewriting the nonvolatile memory 230 so that the data file matches. When the initialization command is given via 120, the restoration processing means 147 has a function of performing initialization processing on both the magnetic recording device 130 and the nonvolatile memory 230, and the restoration processing unit 147 sets the restoration mode. In this state, when it is detected that a predetermined restoration start condition is satisfied, the data file stored in the magnetic recording device 130 and the nonvolatile memory 230 are stored. It has a function of performing restoring processing to rewrite the magnetic recording device 130 as data files and matches being paid.

なお、LED制御手段148は、この第2の実施形態に係る装置40において新たに設けられた構成要素であり、LED241〜248の点灯/消灯状態を制御する機能を有する。すなわち、書込処理手段142,削除処理手段143,同期処理手段145,初期化処理手段146の機能によって、不揮発性メモリ230内に保存されているデータの更新が行われるたびに、LED制御手段148は、各カード型メモリ231〜238内にデータが格納されているか否かをチェックし(たとえば、FATをチェックすればよい)、データが格納されているカード型メモリに対応するLEDを点灯状態とし、データが格納されていないカード型メモリに対応するLEDを消灯状態とする制御を行う。   The LED control unit 148 is a component newly provided in the device 40 according to the second embodiment, and has a function of controlling the on / off states of the LEDs 241 to 248. That is, whenever the data stored in the nonvolatile memory 230 is updated by the functions of the write processing unit 142, the deletion processing unit 143, the synchronization processing unit 145, and the initialization processing unit 146, the LED control unit 148 is updated. Checks whether data is stored in each of the card-type memories 231 to 238 (for example, FAT may be checked), and the LED corresponding to the card-type memory in which the data is stored is turned on. The LED corresponding to the card-type memory in which no data is stored is controlled to be turned off.

この第2の実施形態に係るハードディスクドライブ装置40の利用形態は、§4で述べた第1の実施形態に係るハードディスクドライブ装置30の利用形態とほぼ同様である。ただ、ユーザは、メモリユニット200を交換する代わりに、カード型メモリ230を交換する作業を行うことになる。したがって、§4で述べたように、月末ごとにメモリ交換を行う運用を採る場合、第1の実施形態では、図8に示すように、月ごとのメモリユニット200を蓄積して保存してゆくことになるが、ここで述べる第2の実施形態では、月ごとのカード型メモリ230を蓄積して保存してゆくことになる。   The usage mode of the hard disk drive device 40 according to the second embodiment is substantially the same as the usage mode of the hard disk drive device 30 according to the first embodiment described in §4. However, instead of replacing the memory unit 200, the user performs an operation of replacing the card type memory 230. Therefore, as described in §4, when the operation of exchanging the memory at the end of each month is adopted, in the first embodiment, as shown in FIG. 8, the memory unit 200 for each month is accumulated and stored. However, in the second embodiment described here, the monthly card-type memory 230 is accumulated and stored.

しかも、月末ごとのメモリ交換作業では、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 magnetic recording unit 100 will not be so large as of the end of April. Even so, not all eight card-type memories will be used.

ユーザは、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 LEDs 241 and 242 are lit at the end of April, it is sufficient to replace only the two corresponding memories 231 and 232, and the remaining six memories 233 to 238 are replaced. do not have to. In this case, the user should clearly store that the two removed memories 231 and 232 are “memory to be inserted into the first and second sockets at the end of April”. Good. Then, if it is necessary to restore to the state at the end of April, these two memories can be inserted into the first and second sockets for restoration processing.

同様に、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 LEDs 241, 242, and 243 are in the lighting state, the corresponding three of the memories 231, 232, and 233 You only need to replace the sheets. In this case, the user clearly keeps the removed three memories 231, 232, and 233 as “memory to be inserted into the first to third sockets at the end of May”. do it. As described above, if a function for notifying the storage state of data by the LED is provided, replacement and storage can be performed in units of memory one by one, thereby enabling more efficient operation.

なお、LED241〜248およびLED制御手段148を設けることは、この第2の実施形態を実施する上での必須要件ではない。LEDによるデータの格納状態報知機能が備わっていない場合、ユーザは、常に8枚のメモリすべてを交換するようにすればよい。ただ、実用上は、LEDによるデータの格納状態報知機能を設けておき、上例のように、メモリ単位で必要な交換のみを行うことができるようにし、効率的な運用が可能になるようにするのが好ましい。   The provision of the LEDs 241 to 248 and the LED control means 148 is not an essential requirement for carrying out the second embodiment. If the LED data storage state notification function is not provided, the user may always replace all eight memories. However, in practice, a function for notifying the storage status of data by LEDs is provided so that only necessary replacement can be performed in memory units as in the above example so that efficient operation is possible. It is preferable to do this.

<<< §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 devices 30 and 40 according to the embodiments described so far have been configured to supply power from the external device 500 via the first external connection terminal 120. A battery or a battery (secondary battery) may be built in and driven.

たとえば、第1の実施形態に係るハードディスクドライブ装置30の場合、磁気記録ユニット100もしくはメモリユニット200に、電池もしくはバッテリを組み込んでおき、少なくとも磁気記録ユニット用の筐体110とメモリユニット用の筐体210とが結合された状態において、バッテリもしくは電池からの電力が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるように、必要な配線を施しておけば、外部装置500からの電源供給なしに動作させることができる。   For example, in the case of the hard disk drive device 30 according to the first embodiment, a battery or a battery is incorporated in the magnetic recording unit 100 or the memory unit 200, and at least the case 110 for the magnetic recording unit and the case for the memory unit. If the necessary wiring is provided so that power from the battery or the battery is supplied to the magnetic recording device 130, the controller 140, and the nonvolatile memory 230 in a state in which the external device 500 is coupled to the external device 500. Can be operated without power supply.

一方、第2の実施形態に係るハードディスクドライブ装置40の場合は、装置筐体400内のいずれかの場所に電池もしくはバッテリを組み込んでおき、電池もしくはバッテリからの電力が、磁気記録装置130とコントローラ140と不揮発性メモリ230とに供給されるような配線を施しておけばよい。   On the other hand, in the case of the hard disk drive device 40 according to the second embodiment, a battery or a battery is incorporated at any location in the device housing 400, and the power from the battery or the battery is supplied to the magnetic recording device 130 and the controller. Wiring to be supplied to 140 and the nonvolatile memory 230 may be provided.

なお、バッテリを組み込んだ場合、外部装置500を接続したときに供給される電源を利用して充電を行うことができる。   When a battery is incorporated, charging can be performed using the power supplied when the external device 500 is connected.

もちろん、電池やバッテリを組み込んだ場合でも、書込処理手段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 external device 500 when the writing processing unit 142, the deletion processing unit 143, and the reading processing unit 143 are operated. The device may be driven using the power supplied from the external device 500. On the other hand, the synchronization processing unit 145 and the restoration processing unit 147 are built in even if the external device 500 is not connected if the synchronization start condition and the restoration start condition are established by operating the reset switch. The synchronization process and the restoration process can be executed by supplying power from the batteries.

また、第2の実施形態において、LED241〜248を設ける場合、外部装置500が接続されていなくても、内蔵の電池やバッテリからの電源供給によって、LED241〜248を点灯させることができるので、ユーザは、図10に示すように、ハードディスクドライブ装置40を取り外した状態においても、LEDの点灯状態を確認することが可能になる。   In the second embodiment, when the LEDs 241 to 248 are provided, the LEDs 241 to 248 can be turned on by supplying power from a built-in battery or a battery even if the external device 500 is not connected. As shown in FIG. 10, even when the hard disk drive device 40 is removed, the lighting state of the LEDs can be confirmed.

<2> データの圧縮処理
これまで述べた実施形態に係る装置30,40では、不揮発性メモリ230の全記憶容量が、磁気記録装置130の全記憶容量以上となるように設定し、磁気記録装置130に格納されている全データファイルを、不揮発性メモリ230へバックアップできるようにしていた。
<2> Data Compression Processing In the devices 30 and 40 according to the embodiments described so far, the total storage capacity of the nonvolatile memory 230 is set to be equal to or greater than the total storage capacity of the magnetic recording device 130, and the magnetic recording device All the data files stored in 130 can be backed up to the non-volatile memory 230.

しかしながら、書込処理手段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 nonvolatile memory 230, the writing processing unit 142 and the synchronization processing unit 145 perform the writing process after compressing the data file to be written, and the reading process If the means 144 and the restoration processing means 147 (or one of them) perform the process of expanding the read data file when reading from the nonvolatile memory 230, the total storage capacity of the nonvolatile memory 230 will be described. However, even if it is smaller than the total storage capacity of the magnetic recording device 130, all data files stored in the magnetic recording device 130 can be compressed and backed up to the nonvolatile memory 230.

図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 magnetic recording device 130, the controller 140 performs the writing as it is, and when reading the data file from the magnetic recording device 130, only the reading process is performed. However, when a data file is written to the nonvolatile memory 230, a compression process based on a predetermined algorithm is executed, a process of writing the compressed data is performed, and a data file is read from the nonvolatile memory 230. Then, the read data is subjected to a decompression process corresponding to the compression process to extract a target data file.

§4で述べた利用形態のように、毎月、不揮発性メモリ230を交換するような運用を行う場合、図8に示すように、保管対象となる不揮発性メモリ230は毎月増え続けることになる。このような場合、図13に示すように、不揮発性メモリ230への書き込み時にデータ圧縮を行うようにすれば、メモリ230の容量を節約することができ、メモリ230の調達コストを節約するとともに、メモリ230の保管スペースを節約することができる。なお、磁気記録装置130に保存したデータファイルについては、データ圧縮は行わないので、通常の読み出し処理を磁気記録装置130から行うようにしておけば、データ伸張処理による読出遅延が生じる弊害を避けることができる。   As shown in FIG. 8, when the operation of exchanging the nonvolatile memory 230 is performed every month as in the usage mode described in §4, as shown in FIG. 8, the number of the nonvolatile memories 230 to be stored continuously increases every month. In such a case, as shown in FIG. 13, if data compression is performed when writing to the nonvolatile memory 230, the capacity of the memory 230 can be saved, and the procurement cost of the memory 230 can be saved. The storage space of the memory 230 can be saved. Note that since data compression is not performed on the data file stored in the magnetic recording device 130, if the normal reading process is performed from the magnetic recording device 130, the adverse effect of reading delay due to the data decompression process is avoided. Can do.

<3> データの暗号化処理
バックアップとして保管される不揮発性メモリ230について、セキュリティを高めるためには、データファイルを暗号化した上で保存するようにするとよい。すなわち、書込処理手段142および同期処理手段145(もしくはその一方)が、不揮発性メモリ230への書き込みを行う際に、書込対象となるデータファイルを暗号化してから書き込む処理を行い、読出処理手段144および復元処理手段147(もしくはその一方)が、不揮発性メモリ230からの読み出しを行う際に、読み出したデータファイルを復号化する処理を行うようにしておけば、不揮発性メモリ230には、データファイルが暗号化された状態で保存されることになるので、万一、不正者の手にわたった場合でも、不正利用される可能性を低減することができる。
<3> Data Encryption Processing In order to increase the security of the nonvolatile memory 230 stored as a backup, the data file may be stored after being encrypted. That is, when the writing processing unit 142 and the synchronization processing unit 145 (or one of them) write to the nonvolatile memory 230, the writing processing unit 142 and the synchronization processing unit 145 perform a writing process after encrypting the data file to be written. If the means 144 and the restoration processing means 147 (or one of them) perform the process of decrypting the read data file when reading from the non-volatile memory 230, the non-volatile memory 230 includes: Since the data file is stored in an encrypted state, it is possible to reduce the possibility of unauthorized use even if it is in the hands of an unauthorized person.

図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 magnetic recording device 130, the controller 140 performs the writing as it is, and when reading the data file from the magnetic recording device 130, only the reading process is performed. However, when a data file is written to the nonvolatile memory 230, an encryption process based on a predetermined algorithm is executed, the encrypted data is written, and the data file is read from the nonvolatile memory 230. In this case, the read data is subjected to a decryption process corresponding to the encryption process to extract a target data file.

この場合も、磁気記録装置130に保存したデータファイルについては、暗号化は行わないので、通常の読み出し処理を磁気記録装置130から行うようにしておけば、復号化処理による読出遅延が生じる弊害を避けることができる。   Also in this case, since the data file stored in the magnetic recording device 130 is not encrypted, if a normal reading process is performed from the magnetic recording device 130, a read delay due to the decrypting process is caused. Can be avoided.

なお、現在、一般的に利用されている多くの暗号化アルゴリズムでは、暗号キーを用いた暗号化が行われる。このように暗号キーを用いた暗号化を行う場合、暗号キーを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 DIP switch 150 shown in FIGS.

図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 nonvolatile memory 230, first, the encryption process P1 is performed to create the encrypted data file C, and writing is performed in the form of the encrypted data file C. On the other hand, at the time of reading, the decryption process P2 is executed on the encrypted data file C read from the nonvolatile memory 230 to obtain the original data file F. Here, the encryption process P1 and the decryption process P2 are mathematical processes based on a predetermined algorithm using the same encryption key K, and the encryption key used when performing the decryption process P2 is If it is different from the encryption key used when performing the encryption process P1, the correct data file F cannot be obtained.

そこで、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 DIP switch 150 shown in the month. The value may be set as the encryption key K. For example, in the example shown in FIG. 8, the memory unit 200A storing the contents at the end of April, the memory unit 200B storing the contents at the end of May, the memory unit 200C storing the contents at the end of June, and so on. As described above, the memory unit for each month is stored and stored. If it is determined that a different logical value is set as the encryption key K every month, the correct encryption key is assigned to each memory unit for each DIP. Unless the switch 150 is set, correct data file restoration processing cannot be performed.

たとえば、図8に示すメモリユニット200Bを用いて、5月末の内容を復元する場合、5月中に設定してあった暗号キーKと同じ論理値をDIPスイッチ150に設定して復元処理を行わない限り、正しいデータファイルを復元することはできなくなる。したがって、万一、図8に示すメモリユニット200A〜200Eが不正者の手に渡ったとしても、それぞれについての正しい暗号キーKを知らない限り、保存されているデータファイルを取り出すことはできない。   For example, when restoring the contents at the end of May using the memory unit 200B shown in FIG. 8, the same logical value as the encryption key K set during May is set in the DIP switch 150 and the restoration process is performed. Without it, you will not be able to restore the correct data file. Therefore, even if the memory units 200A to 200E shown in FIG. 8 are in the hands of an unauthorized person, the stored data file cannot be taken out unless the correct encryption key K for each is known.

なお、図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 memory unit housing 210 side. In this case, independent DIP switches are provided for the individual memory units 200A to 200E shown in FIG. Therefore, the user sets the DIP switch of the memory unit to a predetermined correct encryption key K only when each of the memory units 200A to 200E is connected to the magnetic recording unit 100 (different for each memory unit). The encryption key K may be set, or a common encryption key K may be set). When the magnetic recording unit 100 is detached and stored, the logical value of the DIP switch is set to a frank value. You can do it.

暗号化処理に用いる暗号キーの別な取り扱い方法は、図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 nonvolatile memory 230 and store the encryption key K in the management area M, as shown in FIG. The management area M can be provided at an arbitrary location, but for example, it may be provided adjacent to an area for recording FAT data. In this case, the controller 140 has a function of writing a predetermined encryption key K in the management area M in the nonvolatile memory 230 prior to executing the encryption process. The encryption key K may be a value generated by the controller 140 itself based on a predetermined algorithm, or may be a value given from the external device 500.

また、コントローラ140には、外部装置500から第1の外部接続用端子120を介して、所定のパスワードについての認証コマンドが与えられたときに、当該パスワードが正しいか否かを判定する機能をもたせておく。パスワード判定のアルゴリズムは任意のものでかまわない。たとえば、与えられたパスワードについてのハッシュ値を計算し、得られたハッシュ値が特定の値に一致した場合に正しいとの判定を行うようなアルゴリズムでもよい。そして、管理領域M内に書き込まれた暗号キーKは、与えられたパスワードが正しいと判断された場合にのみ、不揮発性メモリ230から読み出されるようにしておき、書込処理手段142もしくは同期処理手段145が、この不揮発性メモリ230から読み出された暗号キーKを用いた暗号化を行い、読出処理手段144もしくは復元処理手段147が、不揮発性メモリ230から読み出された暗号キーKを用いて復号化を行うようにしておく。   The controller 140 also has a function of determining whether or not the password is correct when an authentication command for a predetermined password is given from the external device 500 via the first external connection terminal 120. Keep it. The password determination algorithm may be arbitrary. For example, an algorithm may be used that calculates a hash value for a given password and determines that it is correct when the obtained hash value matches a specific value. The encryption key K written in the management area M is read from the non-volatile memory 230 only when it is determined that the given password is correct, and the write processing means 142 or the synchronization processing means. 145 performs encryption using the encryption key K read from the nonvolatile memory 230, and the read processing means 144 or the restoration processing means 147 uses the encryption key K read from the nonvolatile memory 230. Decryption is performed.

このような方法をとれば、外部装置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 external device 500, so that an effect of preventing the data file from being decrypted by an unauthorized person can be obtained.

<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 nonvolatile memory 230 as necessary, thereby the nonvolatile memory 230. Can be restored in the magnetic recording device 130. In the basic embodiment described in §3, the read processing unit 144 has a function of reading a data file from both the magnetic recording device 130 and the non-volatile memory 230. If the reading function is limited to only the reading function from the magnetic recording device 130, the only method for extracting the data file in the nonvolatile memory 230 is the restoring process by the restoring processing means 147.

この場合、復元処理手段147による復元処理に制限を付加することは、不揮発性メモリ230内のデータファイルを不正アクセスから保護する上で有用である。図16に示す例において、管理領域Mに記録されている累積実行回数Nおよび復元可能期間Tは、このような復元処理に制限を付加するために用いる情報である。   In this case, adding a restriction to the restoration process by the restoration processing unit 147 is useful for protecting the data file in the nonvolatile memory 230 from unauthorized access. In the example illustrated in FIG. 16, the cumulative execution count N and the restoration possible period T recorded in the management area M are information used to add a restriction to such restoration processing.

まず、累積実行回数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 restoration processing unit 147 is provided with a function of performing a process of writing the cumulative execution number N of the restoration process in the management area M in the nonvolatile memory 230 every time the restoration process is performed. In addition, when the cumulative number of executions N has reached a predetermined upper limit number, the restoration process may be prevented from being performed.

たとえば、初期化処理時には、管理領域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 restoration processing unit 147 reads the value of the cumulative number of executions N and checks whether or not a predetermined upper limit number has been reached. Here, if the upper limit number has been reached, the restoration process is not performed. If the upper limit number has not been reached, the restoration process is executed, and the value of the cumulative execution number N is rewritten to a value increased by one. By doing so, it is possible to prevent the restoration process from being executed without restriction.

具体的には、上限回数を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 restoration processing unit 147 reads and checks the information indicating the restoration possible period written in the management area in the nonvolatile memory 230 before performing the restoration process. The restoration process may be performed only at a point in time during the restoration possible period. The restoreable period T in the management area M may be set so that an arbitrary period desired by the user can be set by a period setting command given from the external device 500. Alternatively, when the initialization process is executed, a predetermined restoration possible period T may be automatically set based on the time of the initialization process. Once the recoverable period T is set, if the resetting cannot be performed unless the initialization process is performed, the period can be prevented from being rewritten by an unauthorized person. .

復元可能期間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 controller 140. If a function for synchronizing the time of the clock circuit in the controller 140 with the time of the clock circuit in the external device 500 at the time of connection to the external device 500 such as a personal computer is provided, the correct time can always be set. Become.

<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 magnetic recording device 130 and the nonvolatile memory 230, redundancy is ensured. In order to further improve the degree, it is also possible to construct a RAID system in the magnetic recording device 130 or the nonvolatile memory 230.

たとえば、図2に示すハードディスクドライブ装置30において、磁気記録装置130として、より小さな寸法規格のハードディスクドライブ装置を2台組み込むようにすれば、この2台のハードディスクドライブ装置によってRAIDシステムを構築することができる。このRAIDシステムをミラーリングモードで動作させれば、1つのデータファイルが2台のハードディスクドライブ装置に格納されることになり、かつ、当該データファイルのバックアップが不揮発性メモリ230にも格納されることになるので、冗長度は更に向上する。   For example, in the hard disk drive device 30 shown in FIG. 2, if two hard disk drive devices with smaller dimensions are incorporated as the magnetic recording device 130, a RAID system can be constructed with these two hard disk drive devices. it can. When this RAID system is operated in the mirroring mode, one data file is stored in two hard disk drive devices, and a backup of the data file is also stored in the nonvolatile memory 230. Therefore, the redundancy is further improved.

もちろん、不揮発性メモリ230側にRAIDシステムを構築することも可能である。たとえば、図2に示す例では、8枚のカード型メモリによって不揮発性メモリ230を構成しているが、これを4枚ずつ2つのグループに分け、これら2グループのメモリによってRAIDシステムを構築し、ミラーリングモードで動作させれば、同一のデータファイルを2つのグループに分散させて格納することができ、冗長度を向上させることができる。   Of course, it is also possible to construct a RAID system on the non-volatile memory 230 side. For example, in the example shown in FIG. 2, the nonvolatile memory 230 is configured by eight card-type memories, but this is divided into two groups of four each, and a RAID system is constructed with these two groups of memories. By operating in the mirroring mode, the same data file can be distributed and stored in two groups, and the redundancy can be improved.

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: Case 115 for magnetic recording unit: Relay terminal 116: Protrusion for fitting (detaching means)
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 : Memory units 200A to 200E: Memory unit 210: Memory unit housing 215: Relay terminal 216: Fitting hole (detachment means)
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に記載のハードディスクドライブ装置において、
コントローラが磁気記録ユニット内に設けられ、第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または2に記載のハードディスクドライブ装置において、
少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、外部装置から第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.
請求項1または2に記載のハードディスクドライブ装置において、
磁気記録ユニットもしくはメモリユニットに、電池もしくはバッテリが組み込まれており、少なくとも磁気記録ユニット用の筐体とメモリユニット用の筐体とが結合された状態において、前記電池もしくは前記バッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されるように、必要な配線が施されていることを特徴とするハードディスクドライブ装置。
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.
請求項1〜4のいずれかに記載のハードディスクドライブ装置において、
磁気記録ユニット用の筐体とメモリユニット用の筐体とに、それぞれ中継端子が設けられており、両筐体を結合したときに、前記中継端子を介して、磁気記録ユニット側の配線とメモリユニット側の配線とが接続されることを特徴とするハードディスクドライブ装置。
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の外部接続用端子が備わっており、
前記磁気記録装置は、前記第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:
請求項6に記載のハードディスクドライブ装置において、
筐体内に電池もしくはバッテリが組み込まれており、前記電池もしくは前記バッテリからの電力が、磁気記録装置とコントローラと不揮発性メモリとに供給されることを特徴とするハードディスクドライブ装置。
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.
請求項1〜7のいずれかに記載のハードディスクドライブ装置において、
モード設定手段が、ユーザの物理的な操作によって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〜7のいずれかに記載のハードディスクドライブ装置において、
モード設定手段が、少なくとも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. .
請求項1〜9のいずれかに記載のハードディスクドライブ装置において、
コントローラがバッファメモリを備え、
書込処理手段が、外部装置から与えられた書込対象となるデータを、前記バッファメモリに一時的に格納した上で、磁気記録装置と不揮発性メモリとの双方に対して書き込む処理を行うことを特徴とするハードディスクドライブ装置。
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.
請求項1〜10のいずれかに記載のハードディスクドライブ装置において、
同期処理手段および復元処理手段のいずれか一方、もしくは双方が、同期処理もしくは復元処理を行う際に、磁気記録装置に格納されているデータファイルと不揮発性メモリに格納されているデータファイルとの整合性を調べ、不一致が生じたデータファイルについてのみ書き換えを行うことを特徴とするハードディスクドライブ装置。
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.
請求項1〜11のいずれかに記載のハードディスクドライブ装置において、
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に有し、
同期処理手段が、前記リセット信号が送信されることを同期開始条件として、同期処理を行うことを特徴とするハードディスクドライブ装置。
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〜11のいずれかに記載のハードディスクドライブ装置において、
同期処理手段が、外部装置から第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.
請求項1〜11のいずれかに記載のハードディスクドライブ装置において、
ユーザのリセット操作によりコントローラにリセット信号を送信するリセットスイッチを更に有し、
復元処理手段が、前記リセット信号が送信されることを復元開始条件として、復元処理を行うことを特徴とするハードディスクドライブ装置。
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〜11のいずれかに記載のハードディスクドライブ装置において、
復元処理手段が、外部装置から第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.
請求項1〜15のいずれかに記載のハードディスクドライブ装置において、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを圧縮してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを伸張する処理を行うことを特徴とするハードディスクドライブ装置。
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.
請求項1〜16のいずれかに記載のハードディスクドライブ装置において、
書込処理手段および同期処理手段のいずれか一方、もしくは双方が、不揮発性メモリへの書き込みを行う際に、書込対象となるデータファイルを暗号化してから書き込む処理を行い、
読出処理手段および復元処理手段のいずれか一方、もしくは双方が、不揮発性メモリからの読み出しを行う際に、読み出したデータファイルを復号化する処理を行うことを特徴とするハードディスクドライブ装置。
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.
請求項17に記載のハードディスクドライブ装置において、
ユーザの設定操作により複数ビットの論理値を設定可能な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.
請求項17に記載のハードディスクドライブ装置において、
コントローラが、不揮発性メモリ内の管理領域に所定の暗号キーを書き込む機能と、外部装置から第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.
請求項1〜19のいずれかに記載のハードディスクドライブ装置において、
復元処理手段が、復元処理を行うたびに、不揮発性メモリ内の管理領域に復元処理の累積実行回数を書き込む処理を行い、前記累積実行回数が所定の上限回数に達していた場合には、復元処理を行わないことを特徴とするハードディスクドライブ装置。
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.
請求項1〜20のいずれかに記載のハードディスクドライブ装置において、
復元処理手段が、復元処理を行う前に、不揮発性メモリ内の管理領域に書き込まれている復元可能期間を示す情報を読み出してチェックし、前記復元可能期間内の時点にのみ、復元処理を行うことを特徴とするハードディスクドライブ装置。
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〜21のいずれかに記載のハードディスクドライブ装置において、
コントローラが、
通常モードが設定されており、外部装置から第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.
JP2009172844A 2009-07-24 2009-07-24 Hard disk drive device Active JP5233892B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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