[go: nahoru, domu]

TWI386922B - Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods - Google Patents

Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods Download PDF

Info

Publication number
TWI386922B
TWI386922B TW98117669A TW98117669A TWI386922B TW I386922 B TWI386922 B TW I386922B TW 98117669 A TW98117669 A TW 98117669A TW 98117669 A TW98117669 A TW 98117669A TW I386922 B TWI386922 B TW I386922B
Authority
TW
Taiwan
Prior art keywords
hard disk
program
data
section
solid state
Prior art date
Application number
TW98117669A
Other languages
Chinese (zh)
Other versions
TW201042640A (en
Inventor
Yu Ting Chiu
Chih Liang Yen
Cheng Wei Yang
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 filed Critical
Priority to TW98117669A priority Critical patent/TWI386922B/en
Publication of TW201042640A publication Critical patent/TW201042640A/en
Application granted granted Critical
Publication of TWI386922B publication Critical patent/TWI386922B/en

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Description

能提高執行效率的硬碟裝置及其讀寫方法Hard disk device capable of improving execution efficiency and reading and writing method thereof

本發明係關於硬碟裝置,尤指一種能提高執行效率的硬碟裝置,該硬碟裝置之控制器能使用RAID 0(Redundant Array of Independent isks,簡稱RAID,獨立磁碟冗餘陣列)技術,將電腦指定的一程式的資料(如:開機資料、繪圖程式、文書作業程式……等)分成數個區段,分別寫入一常規硬碟(Hard Disk Drive,簡稱HDD)及一固態硬碟(Solid State Drive,簡稱SSD)中,並在讀取該程式的資料時,分別自各該硬碟中讀取該程式的資料,藉此提高該程式之執行效率。The present invention relates to a hard disk device, and more particularly to a hard disk device capable of improving execution efficiency, and the controller of the hard disk device can use a RAID 0 (Redundant Array of Independent isks, RAID, redundant array) technology. Divide the data of a program specified by the computer (such as boot data, drawing program, paperwork program, etc.) into several sections and write them to a conventional hard disk drive (HDD) and a solid state drive. In Solid State Drive (SSD), when reading the data of the program, the program data is read from each of the hard disks, thereby improving the execution efficiency of the program.

一般言,當使用者將一電腦開機時,該電腦均會執行一開機程序,讀取與其相連接之一硬碟中所儲存的一開機資料,使得該電腦之作業系統能依該開機資料完成各項初始化設定,該電腦始能順利執行該作業系統,完成整個開機程序,嗣,當使用者將該電腦關機時,該電腦亦需將使用者在操作該作業系統之期間,對該作業系統進行的變更設定,寫入該硬碟中,以在使用者下次將電腦開機時,能得到與前次進行關機時相同的作業系統的設定資料,故,根據前述可知,影響電腦開機(或關機)效率的主要因素,係電腦上開機硬碟的讀寫速度。Generally speaking, when the user turns on a computer, the computer performs a booting process to read a booting data stored in one of the hard disks connected thereto, so that the operating system of the computer can be completed according to the booting data. With each initialization setting, the computer can successfully execute the operating system and complete the entire booting process. When the user shuts down the computer, the computer also needs to operate the operating system during the operation of the operating system. The changed settings are written into the hard disk, so that when the user turns on the computer next time, the same operating system setting data as when the previous shutdown is performed can be obtained. Therefore, according to the foregoing, the computer is turned on (or Shutdown) The main factor of efficiency is the read and write speed of the bootable hard disk on the computer.

近年來,普及於市面上的硬碟共有下列二種類型:In recent years, there are two types of hard drives that are popular in the market:

1、常規硬碟(Hard Disk Drive,簡稱HDD),係包括一磁性讀寫頭及至少一個磁性碟片,其中該磁性讀寫頭係設在鄰近各該磁性碟片的位置,各該磁性碟片上分別設有複數個磁軌,該常規硬碟在執行資料讀寫動作時,各該磁性碟片將會被驅動旋轉,使該磁性讀寫頭能將資料依序寫入各該磁軌中,或自各該磁軌中依序搜尋及讀取資料;及A conventional hard disk drive (HDD) includes a magnetic read/write head and at least one magnetic disk, wherein the magnetic read/write head is disposed adjacent to each of the magnetic disks, and each of the magnetic disks Each of the plurality of magnetic tracks is disposed on the chip. When the conventional hard disk performs the data read/write operation, each of the magnetic disks will be driven to rotate, so that the magnetic read/write head can sequentially write the data to each of the magnetic tracks. Searching for and reading data sequentially from each of the tracks; and

2、固態硬碟(Solid State Drive,簡稱SSD),係包括一處理單元及至少一個儲存單元(DRAM或FLASH芯片),其中該處理單元分別與各該儲存單元相電氣連接,使該處理單元能直接地將資料寫入各該儲存單元中,或讀取儲存在各該儲存單元中的資料。2. A solid state drive (SSD) includes a processing unit and at least one storage unit (DRAM or FLASH chip), wherein the processing unit is electrically connected to each of the storage units, so that the processing unit can The data is directly written into each of the storage units, or the data stored in each of the storage units is read.

由於,該常規硬碟係屬於一種機械式結構,其體積及重量必然較大且較重,且在執行資料讀寫動作時,因必需驅動該磁性讀寫頭或磁性碟片等的機械式結構,故其執行資料讀寫動作所耗費的時間及電能均較多,惟,該常規硬碟不會如該固態硬碟之儲存單元,僅具備有限的寫入次數,故,一般言,該常規硬碟的使用壽命係高於該固態硬碟;反之,該固態硬碟係屬於一種電子式結構,其體積及重量顯然遠較常規硬碟小且輕,且在執行資料讀寫動作時,僅透過該處理單元或儲存單元等的電子式結構,故其執行資料讀寫動作所耗費的時間及電能亦遠較該常規硬碟為低,惟,美中不足者,乃該固態硬碟之儲存單元的使用壽命因與其執行資料寫入的次數成反比,故僅具備有限的寫入次數,且相同儲存容量的固態硬碟的價格亦遠高於常規硬碟。Since the conventional hard disk is a mechanical structure, its volume and weight are inevitably large and heavy, and it is necessary to drive the mechanical structure of the magnetic head or the magnetic disk when performing data reading and writing operations. Therefore, it takes a lot of time and power to perform data reading and writing. However, the conventional hard disk does not have a limited number of writes as the storage unit of the solid state hard disk. Therefore, in general, the conventional The life of the hard disk is higher than that of the solid state hard disk; on the contrary, the solid state hard disk is an electronic structure, and its volume and weight are obviously smaller and lighter than conventional hard disks, and when performing data reading and writing operations, only Through the electronic structure of the processing unit or the storage unit, the time and power required to perform the data reading and writing operation is much lower than that of the conventional hard disk. However, the fly in the ointment is the storage unit of the solid state hard disk. The service life is inversely proportional to the number of times it is executed. Therefore, there are only a limited number of writes, and the price of a solid-state hard disk of the same storage capacity is much higher than that of a conventional hard disk.

據上所述,常規硬碟顯然較固態硬碟更為經濟實惠,且具有較長的使用壽命,故仍被業者選擇作為各式電腦上的開機硬碟,然而,由於該常規硬碟在進行資料讀寫時,需驅動各該磁性碟片及該磁性讀寫頭,始能順利執行資料的讀寫動作,因此,導致各式電腦在執行開機程序或關機程序時,必需耗費極長的時間,甚至達到令使用者誤以為電腦故障的程度。因此,若欲有效提高電腦開機或關機之效率,業者似乎僅能選擇使用具有高讀寫速度之固態硬碟,目前,業者所使用的解決方案可概分為下列二種:According to the above, the conventional hard disk is obviously more economical than the solid state hard disk and has a long service life, so it is still selected by the industry as a bootable hard disk on various computers. However, since the conventional hard disk is in progress When reading and writing data, it is necessary to drive each of the magnetic discs and the magnetic head, and the data can be read and written smoothly. Therefore, it takes a very long time for various computers to execute the booting or shutdown programs. Even to the extent that the user mistakenly think that the computer is malfunctioning. Therefore, if you want to effectively improve the efficiency of turning the computer on or off, the industry seems to be able to choose only SSDs with high read/write speed. At present, the solutions used by the operators can be divided into the following two types:

(A)開發出一種新型的混合式硬碟(Hybrid Hard Drive),如美國微軟公司與硬碟大廠專為Windows Vista作業系統量身設計的混合式硬碟,該混合式硬碟係內建NAND快閃記憶體(即固態硬碟之一種)於一常規硬碟的電路板上,該混合式硬碟中,費用較低廉之常規硬碟的部分,係採用較大的儲存容量,以儲存一般性的數據資料,而費用較昂貴之NAND快閃記憶體的部分,則採用較小的儲存容量,僅用以儲存該電腦開機時Windows Vista作業系統所需的開機資料,藉此避免採用單一大容量的NAND快閃記憶體,導致成本大幅增加,且造成消費者必須負擔該NAND快閃記憶體的昂貴費用的問題;及(A) Developed a new hybrid hard drive (Hybrid Hard Drive), such as the hybrid hard drive designed by Microsoft and Hard Disk Drive for Windows Vista operating system. The hybrid hard drive is built-in. NAND flash memory (a type of solid state hard disk) is on a conventional hard disk board. The portion of the conventional hard disk that is cheaper and cheaper uses a larger storage capacity for storage. General data, and the more expensive part of the NAND flash memory, uses a smaller storage capacity, which is only used to store the boot data required by the Windows Vista operating system when the computer is turned on, thereby avoiding a single Large-capacity NAND flash memory, resulting in a significant increase in cost and causing consumers to bear the high cost of the NAND flash memory; and

(B)採用一種近似於該混合式硬碟的概念,如Intel公司的Robson系列電腦,將NAND快閃記憶體設計在搭載Robson晶片組的電腦主機板上,其儲存容量僅供儲存該電腦開機時Windows Vista作業系統所需的開機資料,常規硬碟則係與電腦相連接,且採用較大的儲存容量,供儲存一般性的數據資料。(B) Adopting a concept similar to the hybrid hard disk, such as Intel's Robson series computer, the NAND flash memory is designed on a computer motherboard equipped with a Robson chipset, and its storage capacity is only for storing the computer. When booting data required by the Windows Vista operating system, the regular hard disk is connected to the computer and uses a large storage capacity for storing general data.

但,無論使用前述何種方案,均係將該開機資料完全儲存於固態硬碟(如:NAND快閃記憶體)中,由於該固態硬碟僅具備有限的寫入次數,故在該固態硬碟使用一段期間後,極有可能在無預警的狀態下,因屆滿一定的寫入次數,而發生損壞,導致資料毀損的風險及困擾,況且,一般言,電腦不僅在開機與關機時,須對該固態硬碟內儲存的開機資料進行讀寫動作,在使用者操作電腦的過程中,電腦亦可能隨時針對各種執行程序的需要,而對該固態硬碟進行讀寫動作,因此,若將開機資料完全儲存於該固態硬碟中,可預見的是,該固態硬碟必定需執行大量的寫入動作,使得該固態硬碟的使用壽命更為縮短,進而造成使用者常會因該固態硬碟的損壞,而須重新購買或維修該開機硬碟或電腦,且必須重新安裝及設定該開機資料,故,前述方案仍將導致使用者在使用上的不便及困擾。However, regardless of the above scheme, the boot data is completely stored in a solid state hard disk (such as NAND flash memory). Since the solid state hard disk has only a limited number of writes, it is hard in the solid state. After using the disc for a period of time, it is very likely that in the state without warning, the damage will occur due to the number of writes that have expired, resulting in the risk of data corruption. Moreover, in general, the computer must not only be turned on or off. Reading and writing the boot data stored in the solid state hard disk. During the user's operation of the computer, the computer may read and write the solid state hard disk for various execution programs at any time. The boot data is completely stored in the solid state hard disk. It is foreseeable that the solid state hard disk must perform a large number of writing operations, so that the life of the solid state hard disk is shortened, and the user often causes the solid state hard. If the disc is damaged, the boot disk or computer must be re-purchased or repaired, and the boot data must be reinstalled and set. Therefore, the above solution will still cause the user to Spend the inconvenience and distress.

因此,如何設計出一種能提高執行效率的硬碟裝置及其讀寫方法,以令使用者能藉由該硬碟裝置,使該電腦在開機與關機時,能有效提高效率,並能防止因硬碟損壞,而發生該開機資料毀損的風險及困擾,有效地確保該開機資料之完整性及安全性,即成為目前硬碟相關業者致力研究並亟欲解決之一重要課題。Therefore, how to design a hard disk device capable of improving the execution efficiency and a reading and writing method thereof, so that the user can effectively improve the efficiency and prevent the cause of the computer when the computer is turned on and off by using the hard disk device. The hard disk is damaged, and the risk and trouble of the boot data corruption occur, effectively ensuring the integrity and security of the boot data, which has become an important issue for the hard disk related industry to study and hope to solve.

有鑑於前述習知用以提高執行效率的方法中存在的諸多問題與缺點,發明人乃根據多年的實務經驗及研究實驗,終於開發設計出本發明之一種「能提高執行效率的硬碟裝置及其讀寫方法」,以期藉由本發明,能有效地令硬碟裝置達成提高程式執行效率之目的,且解決習知方法可能因硬碟發生故障或損壞,而造成電腦所需執行之程式的資料(如:開機資料、繪圖程式、文書作業程式......等)毀損的問題,進而有效確保該程式的資料之完整性及安全性。In view of the many problems and shortcomings in the above-mentioned methods for improving the efficiency of execution, the inventors have finally developed and designed a "hard disk device capable of improving the execution efficiency according to the present invention based on years of practical experience and research experiments. With the present invention, it is possible to effectively achieve the purpose of improving the efficiency of program execution by the hard disk device, and to solve the problem that the conventional method may cause the program to be executed by the computer due to the failure or damage of the hard disk. (such as: boot data, drawing programs, paperwork programs, etc.) damage, and thus effectively ensure the integrity and security of the program's data.

本發明之一目的,係提供一種能提高執行效率的硬碟裝置,該硬碟裝置內設有一常規硬碟(Hard Disk Drive,簡稱HDD)、一固態硬碟(Solid State Drive,簡稱SSD)及一控制器,該常規硬碟及固態硬碟係分別與該控制器相連接,該控制器則係與一電腦相連接,當該硬碟裝置進行初始化作業時,該控制器係使用RAID 0(Redundant Array of Independent Disks,簡稱RAID,獨立磁碟冗餘陣列)技術,在該常規硬碟上規劃出一常規指定區段,使得該電腦將該常規指定區段及該固態硬碟視為一個獨立的邏輯儲存單元,用以儲存該程式的資料,該控制器能以RAID 0技術將該該程式資料分成數個區段,並寫入至該邏輯儲存單元中,分別對應該常規指定區段及固態硬碟的位置,且能以RAID 0技術由該邏輯儲存單元之該常規指定區段及固態硬碟的位置,分別讀取該程式的資料,以藉各該常規指定區段及固態硬碟的分工,提高該電腦讀寫該程式的資料及執行該程式的程序之效率,同時,該控制器能使用RAID 1技術,在該常規硬碟上規劃一常規備份區段,且將寫入至該固態硬碟中的該程式的資料鏡射至該常規備份區段中,以避免因使用壽命較短暫之固態硬碟發生故障或損壞,而使該固態硬碟中的該程式的資料毀損,導致該電腦無法順利完成執行該程式的程序之問題。An object of the present invention is to provide a hard disk device capable of improving the efficiency of execution. The hard disk device is provided with a conventional hard disk drive (HDD) and a solid state drive (SSD). A controller, the conventional hard disk and the solid state hard disk system are respectively connected to the controller, and the controller is connected to a computer, and when the hard disk device performs an initialization operation, the controller uses RAID 0 ( Redundant Array of Independent Disks (RAID, Redundant Array of Independent Disks) technology, in which a conventional designated section is planned on the conventional hard disk, so that the computer regards the conventional designated section and the solid state hard disk as an independent The logic storage unit is configured to store the data of the program, and the controller can divide the program data into a plurality of segments by using a RAID 0 technology, and write the data into the logical storage unit, respectively corresponding to the regular designated segment and The location of the SSD, and the data of the program can be read by the RAID 0 technology from the regular designated section of the logical storage unit and the location of the SSD, respectively, by using the conventional designated section and The division of the hard disk, improve the efficiency of the computer to read and write the program's data and the program to execute the program, while the controller can use RAID 1 technology to plan a regular backup section on the conventional hard disk, and will The data of the program written in the solid state hard disk is mirrored into the regular backup section to avoid failure or damage of the solid state hard disk with a short service life, so that the program in the solid state hard disk The data was corrupted, causing the computer to fail to successfully complete the program that executed the program.

本發明之另一目的,係提供一種應用在前述硬碟裝置之方法,以令該電腦能順利地藉由該硬碟裝置,達成提高執行該程式的效率之目的,且有效地將儲存在該固態硬碟中的該程式的資料,備份於該常規備份區段中,進而大幅提高該程式的資料的完整性及安全性。Another object of the present invention is to provide a method for applying the hard disk device to enable the computer to smoothly improve the efficiency of executing the program by using the hard disk device, and effectively store the data in the program. The data of the program in the SSD is backed up in the regular backup section, thereby greatly improving the integrity and security of the program data.

本發明之又一目的,係提供一種能提高執行效率的硬碟裝置,該硬碟裝置內設有一控制器,該控制器係分別與一常規硬碟及一固態硬碟相連接,當該硬碟裝置進行初始化作業時,該控制器係使用RAID 0技術,在該固態硬碟上規劃出一固態起始區段,且在該常規硬碟上規劃出一常規指定區段,使得該電腦將該常規指定區段及該固態起始區段視為一個獨立的邏輯儲存單元,用以儲存該程式的資料,該控制器能以RAID 0技術將該程式的資料分成數個區段,並寫入至該邏輯儲存單元中,分別對應該常規指定區段及固態起始區段的位置,且能以RAID 0技術由該邏輯儲存單元之該常規指定區段及固態起始區段的位置,分別讀取該程式的資料,以藉各該常規指定區段及固態起始區段的分工,提高該電腦讀寫該程式的資料及完成該程式的程序之效率,同時,該控制器能使用RAID 1技術,在該常規硬碟上規劃一常規備份區段,以備份該固態起始區段中的該程式的資料,且在該電腦進行常態作業,且對該固態起始區段之該程式的資料進行寫入的狀態下,將被寫入的資訊記錄為一變動表格,並儲存在該變動記錄區段中,使得該控制器能在滿足一預定條件(如:每間隔一預定時間、接收到一備份指令或待該硬碟裝置處於閒置……等)的狀態下,根據該變動表格,將被寫入更新過的該程式的資料備份於該常規備份區段中,如此,不僅能避免因使用壽命較短暫之固態硬碟發生故障或損壞,而使該固態硬碟中的該程式的資料毀損,導致該電腦無法順利完成該程式的程序之問題,尚能據以提高該硬碟裝置之執行效率。Another object of the present invention is to provide a hard disk device capable of improving execution efficiency, wherein the hard disk device is provided with a controller, which is respectively connected to a conventional hard disk and a solid state hard disk. When the disk device performs an initializing operation, the controller uses a RAID 0 technology to plan a solid starting segment on the solid state hard disk, and a conventional designated segment is planned on the conventional hard disk, so that the computer will The conventional designated section and the solid-state starting section are regarded as a separate logical storage unit for storing data of the program, and the controller can divide the data of the program into several sections by using RAID 0 technology, and write Into the logical storage unit, respectively corresponding to the location of the regular designated segment and the solid start segment, and can be the location of the regular designated segment and the solid starting segment of the logical storage unit by the RAID 0 technique. Reading the data of the program separately to improve the efficiency of the computer reading and writing the program and the program for completing the program by dividing the division of the conventional designated section and the solid start section, and the controller can RAID 1 technology, planning a regular backup section on the conventional hard disk to back up the data of the program in the solid start section, and performing normal operation on the computer, and the solid start section When the data of the program is written, the information to be written is recorded as a change table and stored in the change record section, so that the controller can satisfy a predetermined condition (eg, every predetermined time interval) In the state of receiving a backup command or waiting for the hard disk device to be idle, etc., according to the change table, the data written to the updated program is backed up in the regular backup segment, so that not only It can avoid the failure of the solid state hard disk with a short service life, and the data of the program in the solid state drive is damaged, which may cause the computer to fail to successfully complete the program of the program. The efficiency of the disc device.

本發明之又另一目的,係提供一種應用在前述硬碟裝置之方法,以令該電腦能順利地藉由該硬碟裝置,達成提高執行該程式的效率之目的,且有效地將儲存在該固態起始區段中的該程式的資料,間接地備份於該常規備份區段中,進而大幅提高該程式的資料的完整性及安全性,並能使該硬碟裝置在閒置的狀態下(或其他條件下,如:間隔一預定時間、接收到一備份指令……等),始將該程式的資料備份於讀寫速度較慢之常規硬碟的常規備份區段,以提高該硬碟裝置之執行效率。Still another object of the present invention is to provide a method for applying the hard disk device to enable the computer to smoothly improve the efficiency of executing the program by the hard disk device, and to effectively store the The data of the program in the solid start section is indirectly backed up in the regular backup section, thereby greatly improving the integrity and security of the program data, and enabling the hard disk device to be idle. (or other conditions, such as: a predetermined time interval, receiving a backup command, etc.), the data of the program is backed up in the regular backup section of the regular hard disk with slower read and write speed to improve the hard The efficiency of the disc device.

為便 貴審查委員能對本發明之構造、設計原理及其功效,有更進一步之認識與瞭解,茲列舉實施例,並配合圖式,詳細說明如下:In order to facilitate the review committee, we can have a better understanding and understanding of the structure, design principle and efficacy of the present invention. The examples are listed below, and the drawings are detailed as follows:

本發明係一種能提高執行效率的硬碟裝置及其讀寫方法,在本發明之一較佳實施例中,請參閱第1圖所示,該硬碟裝置1內設有一常規硬碟10(Hard Disk Drive,簡稱HDD)、一固態硬碟11(Solid state Drive,簡稱SSD)及一控制器12,該常規硬碟10係透過一第一連接介面100(如:ATA、SATA、SCSI、SAS……等)與該控制器12電氣連接,且該常規硬碟10之儲存容量係大於該固態硬碟11,該固態硬碟1係透過一第二連接介面110(如:ATA、SATA、SCSI、SAS……等)與該控制器12電氣連接,該固態硬碟11之儲存單元係可為單階儲存單元(Single-Level Cell,簡稱SLC)快閃記憶體、多階儲存單元(Multi-Level Cell,簡稱MLC)快閃記憶體或二者之組合,而該控制器12係透過一第三連接介面120(如:ATA、SATA、SCSI、SAS……等)與一電腦2電氣連接。The present invention is a hard disk device capable of improving execution efficiency and a method for reading and writing the same. In a preferred embodiment of the present invention, as shown in FIG. 1, the conventional hard disk device 1 is provided with a conventional hard disk 10 ( Hard Disk Drive (HDD), a Solid State Drive (SSD) and a controller 12. The conventional hard disk 10 is connected through a first connection interface 100 (eg, ATA, SATA, SCSI, SAS). The controller 12 is electrically connected to the controller 12, and the storage capacity of the conventional hard disk 10 is greater than the solid state hard disk 11 , and the solid state hard disk 1 is transmitted through a second connection interface 110 (eg, ATA, SATA, SCSI). , SAS, etc.) is electrically connected to the controller 12, and the storage unit of the solid state hard disk 11 can be a single-level storage unit (SLC) flash memory, multi-level storage unit (Multi- Level Cell (MLC) flash memory or a combination of the two, and the controller 12 is electrically connected to a computer 2 via a third connection interface 120 (eg, ATA, SATA, SCSI, SAS, etc.).

承上,當該硬碟裝置1被電氣連接至該電腦2,且該電腦2對該硬碟裝置1進行初始化作業或使用者經由該硬碟裝置1提供的人機介面來進行該硬碟裝置1的初始化作業時,該控制器12係使用RAID 0(Redundant Array of Independent Disks,簡稱RAID,獨立磁碟冗餘陣列)技術,在該常規硬碟10上規劃一常規指定區段101,使得該電腦2將該常規指定區段101及該固態硬碟11視為一個獨立的邏輯儲存單元,用以儲存電腦2指定的一程式的資料(如:開機資料、繪圖程式、文書作業程式……等),以在將該程式的資料寫入該邏輯儲存單元時,能將該程式的資料分成數個區段,分別寫入至該常規指定區段01及固態硬碟11中,而在讀取該邏輯儲存單元中的該程式的資料時,分別自該常規指定區段101及固態硬碟11中讀取該程式的資料,以藉各該常規指定區段101及固態硬碟11的分工,提高寫入及讀取該程式的資料之效率,同時,該控制器12並使用RAID 1技術,在該常規硬碟10上規劃一常規備份區段102,用以備份該固態硬碟11中儲存的該程式的資料,再者,該控制器12能將該常規硬碟10上,除該常規指定區段101及該常規備份區段102外的部分,規劃為一常規其他區段103,用以儲存一般性的數據資料。The hard disk device 1 is electrically connected to the computer 2, and the computer 2 performs an initialization operation on the hard disk device 1 or a human-machine interface provided by the user via the hard disk device 1 to perform the hard disk device. The controller 12 uses a RAID 0 (Redundant Array of Independent Disks, RAID for RAID) technology to plan a conventional designated section 101 on the conventional hard disk 10 so that the controller 12 The computer 2 regards the conventional designated section 101 and the solid state hard disk 11 as a separate logical storage unit for storing data of a program specified by the computer 2 (eg, booting data, drawing program, paperwork program, etc.) When the data of the program is written into the logical storage unit, the data of the program can be divided into several sections and written into the regular designated section 01 and the solid state hard disk 11 respectively, while being read. When the data of the program in the logic storage unit is read from the regular designated section 101 and the solid state drive 11 respectively, the division of the conventional designated section 101 and the solid state hard disk 11 is performed. Improve write and read The efficiency of the program data, at the same time, the controller 12 uses RAID 1 technology, and a conventional backup section 102 is planned on the conventional hard disk 10 for backing up the data of the program stored in the solid state hard disk 11, and then The controller 12 can program the portion of the conventional hard disk 10 except the regular designated section 101 and the regular backup section 102 as a regular other section 103 for storing general data. .

如此,當該控制器12接收到該電腦2傳來的一讀取指令時,若讀取的資料係位於包含該常規指定區段101及該固態硬碟11的獨立邏輯儲存單元的範圍內之該程式的資料,則該控制器12將以RAID 0技術,直接讀取儲存在該常規指定區段101及固態硬碟11內的該程式的資料,而當該控制器12接收到該電腦2傳來的一寫入指令時,若寫入的資料係位於包含該常規指定區段101及該固態硬碟11的獨立邏輯儲存單元的範圍內之該程式的資料,則該控制器12將以RAID 0技術,直接將該程式的資料寫入至該常規指定區段101及固態硬碟11,並使用RAID 1技術,將寫入至該固態硬碟11中的該程式的資料,鏡射至該常規備份區段102中,以在該固態硬碟11發生故障或損壞時,使該控制器12仍能分別透過該常規指定區段101及常規備份區段102中儲存的該程式的資料,完成該電腦2執行該程式的的程序。Thus, when the controller 12 receives a read command from the computer 2, if the read data is in the range of the independent logical storage unit including the regular designated segment 101 and the solid state hard disk 11 The data of the program, the controller 12 will directly read the data of the program stored in the regular designated section 101 and the solid state hard disk 11 in the RAID 0 technology, and when the controller 12 receives the computer 2 When a write command is sent, if the data to be written is located in the data of the program including the regular designated section 101 and the independent logical storage unit of the solid state drive 11, the controller 12 will The RAID 0 technology directly writes the data of the program to the regular designated section 101 and the solid state hard disk 11, and uses the RAID 1 technology to mirror the data of the program written in the solid state hard disk 11 to In the conventional backup section 102, when the solid state hard disk 11 is faulty or damaged, the controller 12 can still pass the data of the program stored in the regular designated section 101 and the regular backup section 102, respectively. Complete the program that the computer 2 executes the program.

在該實施例中,復請參閱第1圖所示,由於該固態硬碟11的讀寫速度遠較該常規硬碟10高,故該控制器12使用RAID 0技術,讀寫該程式的資料,將能大幅地提高電腦2執行該程式時的讀寫效率,且透過使用RAID 1技術,備份該固態硬碟11中的該程式的資料,尚能確保該程式的資料的完整性及安全性,進而有效避免因使用壽命較短暫之固態硬碟11發生故障或損壞,而使該固態硬碟11中的該程式的資料毀損,導致該電腦2無法順利完成執行該程式的程序之問題。In this embodiment, as shown in FIG. 1, since the read/write speed of the solid state hard disk 11 is much higher than that of the conventional hard disk 10, the controller 12 uses the RAID 0 technology to read and write data of the program. It will greatly improve the read and write efficiency of the computer 2 when executing the program, and by using the RAID 1 technology to back up the data of the program in the solid state drive 11, the integrity and security of the data of the program can be ensured. Therefore, the failure of the solid-state hard disk 11 having a short service life is prevented, and the data of the program in the solid-state hard disk 11 is damaged, resulting in the problem that the computer 2 cannot successfully execute the program for executing the program.

另,在該實施例中,請參閱第1及2圖所示,該硬碟裝置讀寫方法係應用在該硬碟裝置1上,當該硬碟裝置1被連接至該電腦2,且該電腦2對該硬碟裝置1進行初始化作業或使用者經由該硬碟裝置1提供的人機介面來進行該硬碟裝置1的初始化作業時,該控制器12能執行下列步驟:In addition, in this embodiment, as shown in FIGS. 1 and 2, the hard disk device reading and writing method is applied to the hard disk device 1 when the hard disk device 1 is connected to the computer 2, and the When the computer 2 initializes the hard disk device 1 or the user performs an initialization operation of the hard disk device 1 via the human interface provided by the hard disk device 1, the controller 12 can perform the following steps:

(200)使用RAID 0技術,在該常規硬碟10上規劃出一常規指定區段101,使得該電腦2將該常規指定區段101及該固態硬碟11視為一個獨立的邏輯儲存單元,用以儲存電腦2指定的一程式的資料;(200) Using the RAID 0 technology, a conventional designated section 101 is planned on the conventional hard disk 10, so that the computer 2 regards the regular designated section 101 and the solid state hard disk 11 as a separate logical storage unit. Used to store data of a program specified by computer 2;

(201)在該程式的資料寫入至該邏輯儲存單元時,係以RAID 0技術,將該程式的資料分成數個區段,分別寫入至該常規指定區段101及固態硬碟11中;(201) when the data of the program is written to the logical storage unit, the data of the program is divided into several segments by using the RAID 0 technology, and are respectively written into the regular designated segment 101 and the solid state hard disk 11 ;

(202)在讀取該邏輯儲存單元中的該程式的資料時,係以RAID 0技術分別自該常規指定區段101及固態硬碟11中讀取該程式的資料;及(202) when reading the data of the program in the logical storage unit, reading the data of the program from the regular designated section 101 and the solid state hard disk 11 by using the RAID 0 technology; and

(203)使用RAID 1技術,在該常規硬碟10上規劃出一常規備份區段102,嗣,將寫入至該固態硬碟11內的該程式的資料鏡射至該常規備份區段102,以在該固態硬碟11發生故障或損壞時,能分別透過該常規指定區段101及常規備份區段102內儲存的該程式的資料,完成該電腦2執行該程式的程序。(203) Using the RAID 1 technology, a conventional backup section 102 is planned on the conventional hard disk 10, and the data of the program written in the solid state drive 11 is mirrored to the regular backup section 102. When the solid-state hard disk 11 is faulty or damaged, the program for executing the program by the computer 2 can be completed through the data of the program stored in the regular designated section 101 and the regular backup section 102, respectively.

如此,該硬碟裝置1藉由該方法,即能在處理電腦2之開機、關機程序或一般作業程序的資料時,透過各該硬碟10、11的分工,而大幅地提升其執行效率,且有效地將儲存在該固態硬碟11中的該程式的資料,備份於該常規備份區段102中,進而大幅提高該程式的資料的完整性及安全性。In this way, the hard disk device 1 can greatly improve the execution efficiency of the hard disk 10, 11 through the division of labor of the hard disk 10, 11 when processing the data of the computer 2 booting, shutdown, or general operating program. The data of the program stored in the solid state drive 11 is effectively backed up in the regular backup section 102, thereby greatly improving the integrity and security of the data of the program.

在本發明之另一較佳實施例中,請參閱第3圖所示,該硬碟裝置1內設有一常規硬碟10、一固態硬碟11、一控制器12及一記憶體13,該常規硬碟10係透過一第一連接介面100與該控制器12電氣連接,且該常規硬碟10之儲存容量係大於該固態硬碟11,該固態硬碟11係透過一第二連接介面110與該控制器12電氣連接,該固態硬碟11之儲存單元係可為單階儲存單元快閃記憶體、多階儲存單元快閃記憶體或二者之組合,而該控制器12係透過一第三連接介面120與一電腦2電氣連接,又,該記憶體13係與該控制器12相電氣連接,該記憶體13係可為揮發性或非揮發性記憶體。In another preferred embodiment of the present invention, as shown in FIG. 3, the hard disk device 1 is provided with a conventional hard disk 10, a solid state hard disk 11, a controller 12, and a memory 13. The conventional hard disk 10 is electrically connected to the controller 12 through a first connection interface 100, and the storage capacity of the conventional hard disk 10 is greater than the solid state hard disk 11 , and the solid state hard disk 11 is transmitted through a second connection interface 110 . Electrically connected to the controller 12, the storage unit of the solid state hard disk 11 can be a single-stage storage unit flash memory, a multi-level storage unit flash memory or a combination of the two, and the controller 12 is transmitted through a The third connection interface 120 is electrically connected to a computer 2, and the memory 13 is electrically connected to the controller 12. The memory 13 can be a volatile or non-volatile memory.

承上,當該硬碟裝置1被電氣連接至該電腦2,且該電腦2對該硬碟裝置1進行初始化作業或使用者經由該硬碟裝置1提供的人機介面來進行該硬碟裝置1的初始化作業時,該控制器12係使用RAID 0技術,在該常規硬碟10上規劃一常規指定區段101,且在該固態硬碟11上規劃出一固態起始區段111,使得該電腦2將該常規指定區段101及該固態起始區段111視為一個獨立的邏輯儲存單元,用以儲存電腦2指定的一程式的資料,以在將該程式的資料寫入該邏輯儲存單元時,能將該程式的資料分成數個區段,分別寫入至該常規指定區段101及固態起始區段111中,而在讀取該邏輯儲存單元中的該程式的資料時,分別自該常規指定區段101及固態起始區段111中讀取該程式的資料,以藉各該常規指定區段101及固態起始區段111的分工,提高寫入及讀取該程式的資料之效率,同時,該控制器12並使用RAID 1技術,在該常規硬碟10上規劃一常規備份區段102,該常規備份區段102能用以備份該固態起始區段111中儲存的該程式的資料,且該控制器12能在該固態硬碟11(或該記憶體13或該常規其他區段103)上規劃出一變動記錄區段112,再者,該控制器12能將該常規硬碟10上,除該常規指定區段101及該常規備份區段102外的部分,規劃為一常規其他區段103,用以儲存一般性的數據資料。The hard disk device 1 is electrically connected to the computer 2, and the computer 2 performs an initialization operation on the hard disk device 1 or a human-machine interface provided by the user via the hard disk device 1 to perform the hard disk device. When the initialization operation of 1 is performed, the controller 12 uses a RAID 0 technology, a conventional designated section 101 is planned on the conventional hard disk 10, and a solid start section 111 is planned on the solid state hard disk 11, so that The computer 2 regards the regular designated section 101 and the solid state starting section 111 as a separate logical storage unit for storing data of a program specified by the computer 2 to write the data of the program to the logic. When the unit is stored, the data of the program can be divided into a plurality of sections, which are respectively written into the regular designated section 101 and the solid-state starting section 111, and when the data of the program in the logical storage unit is read. And reading the data of the program from the regular designated section 101 and the solid state starting section 111, respectively, to improve the writing and reading by the division of the conventional designated section 101 and the solid starting section 111. The efficiency of the program data, at the same time, the controller 12 And using the RAID 1 technology, a conventional backup section 102 is planned on the conventional hard disk 10, and the regular backup section 102 can be used to back up the data of the program stored in the solid start section 111, and the controller 12 can program a change recording section 112 on the solid state hard disk 11 (or the memory 13 or the other conventional section 103), and further, the controller 12 can replace the conventional hard disk 10 The conventional designated section 101 and the portion outside the regular backup section 102 are planned as a regular other section 103 for storing general data.

如此,當該控制器12接收到該電腦2傳來的一讀取指令時,若讀取的資料係位於包含該常規指定區段101及該固態起始區段111的獨立邏輯儲存單元的範圍內之該程式的資料,則該控制器12將以RAID 0技術,直接讀取儲存在該常規指定區段101及固態起始區段111內的該程式的資料,而當該控制器12接收到該電腦2傳來的一寫入指令時,若寫入的資料係位於包含該常規指定區段101及該固態起始區段11的獨立邏輯儲存單元的範圍內之該程式的資料,則該控制器12將以RAID 0技術,直接將該程式的資料寫入至該常規指定區段101及固態起始區段111,並使用RAID 1技術,在該電腦2進行常態作業,且對該固態起始區段111之該程式的資料進行寫入的狀態下,將被寫入的資訊(如:資料位置、資料長度、寫入時間……等)記錄為一變動表格,並儲存在該變動記錄區段112、常規其他區段103或該記憶體3中,且在滿足一預定條件(如:每間隔一預定時間、接收到一備份指令或待該硬碟裝置處於閒置……等)的狀態下,使得該控制器12能根據該變動表格,將該固態起始區段111中被寫入更新過的該程式的資料,鏡射至該常規備份區段102中,以在該固態硬碟11發生故障或損壞時,使該控制器12仍能分別透過該常規指定區段101及常規備份區段102中儲存的該程式的資料,順利地完成該電腦2執行該程式的程序。Thus, when the controller 12 receives a read command from the computer 2, if the read data is in the range of the independent logical storage unit including the regular designated section 101 and the solid start section 111. Within the data of the program, the controller 12 will directly read the data of the program stored in the regular designated section 101 and the solid start section 111 by the RAID 0 technology, and when the controller 12 receives When a write command is sent to the computer 2, if the data to be written is located in the range of the program including the regular designated section 101 and the independent logical storage unit of the solid start section 11, The controller 12 will directly write the data of the program to the regular designated section 101 and the solid state starting section 111 by using the RAID 0 technology, and perform normal operation on the computer 2 using the RAID 1 technology, and In the state in which the data of the program of the solid start section 111 is written, the information to be written (eg, data location, data length, write time, etc.) is recorded as a change table and stored in the Change record section 112, regular other section 103 In the memory 3, and in a state in which a predetermined condition is satisfied (eg, every predetermined time interval, receiving a backup command, or waiting for the hard disk device to be idle, etc.), the controller 12 can And a change table for mirroring the data of the program written in the solid start block 111 to the updated backup block 102 to make the control when the solid state drive 11 fails or is damaged. The program 12 can still successfully complete the program for executing the program by the computer 2 through the data of the program stored in the regular designated section 101 and the regular backup section 102, respectively.

在該實施例中,復請參閱第3圖所示,由於該固態硬碟11的讀寫速度遠較該常規硬碟10高,故該控制器12使用RAID 0技術,讀寫該程式的資料,將能大幅地提高電腦2執行該程式時的讀寫效率,且透過使用RAID 1技術,將該程式的資料被寫入更新過的資訊先儲存於該變動記錄區段112、常規其他區段103或記憶體13中,並在滿足該預定條件的狀態下,始對照該變動表格,將該程式的資料中受到更新寫入的部分,備份於該常規備份區段102中,意即該常規備份區段102僅需更新該程式的資料中受到寫入過的部分,而無須重新將整個該程式的資料進行更新或備份,因此,不僅能避免因使用壽命較短暫之固態硬碟11發生故障或損壞,而使該固態硬碟11中的該程式的資料毀損,導致該電腦2無法順利完成執行該程式的程序之問題,尚能據以提高該硬碟裝置1之執行效率。In this embodiment, as shown in FIG. 3, since the read/write speed of the solid state hard disk 11 is much higher than that of the conventional hard disk 10, the controller 12 uses the RAID 0 technology to read and write data of the program. It will greatly improve the read/write efficiency of the computer 2 when executing the program, and by using the RAID 1 technology, the information of the program is written into the updated information first stored in the change record section 112, other regular sections. In the memory 103 or the memory 13, and in a state in which the predetermined condition is satisfied, the portion of the program data that has been updated and written is backed up in the regular backup section 102, that is, the routine. The backup section 102 only needs to update the part of the program data that has been written, without having to re-update or back up the entire program data, thereby avoiding the failure of the solid-state hard disk 11 which has a short service life. Alternatively, the data of the program in the solid state drive 11 is damaged, resulting in the problem that the computer 2 cannot successfully complete the program for executing the program, and the execution efficiency of the hard disk device 1 can be improved accordingly.

又,在該實施例中,請參閱第3及4圖所示,該硬碟裝置讀寫方法係應用在該硬碟裝置1上,當該硬碟裝置1被連接至該電腦2,且該電腦2對該硬碟裝置1進行初始化作業或使用者經由該硬碟裝置1提供的人機介面來進行該硬碟裝置1的初始化作業時,該控制器12能執行下列步驟:Moreover, in this embodiment, as shown in FIGS. 3 and 4, the hard disk device reading and writing method is applied to the hard disk device 1 when the hard disk device 1 is connected to the computer 2, and the When the computer 2 initializes the hard disk device 1 or the user performs an initialization operation of the hard disk device 1 via the human interface provided by the hard disk device 1, the controller 12 can perform the following steps:

(400)使用RAID 0技術,在該常規硬碟10上規劃出一常規指定區段101,且在該固態硬碟11上規劃出一固態起始區段111,使得該電腦2將該常規指定區段101及該固態起始區段111視為一個獨立的邏輯儲存單元,用以儲存電腦2指定的一程式的資料;(400) Using the RAID 0 technique, a conventional designated section 101 is planned on the conventional hard disk 10, and a solid start section 111 is planned on the solid state hard disk 11, so that the computer 2 specifies the regular The segment 101 and the solid state starting segment 111 are regarded as a separate logical storage unit for storing data of a program specified by the computer 2;

(401)在該程式的資料寫入至該邏輯儲存單元時,係以RAID 0技術,將該程式的資料分成數個區段,分別寫入至該常規指定區段101及固態起始區段111中;(401) when the data of the program is written to the logical storage unit, the data of the program is divided into a plurality of segments by the RAID 0 technology, and respectively written to the regular designated segment 101 and the solid start segment. 111;

(402)在讀取該邏輯儲存單元中的該程式的資料時,係以RAID 0技術分別自該常規指定區段101及固態起始區段111中讀取該程式的資料;及(402) reading the data of the program in the logical storage unit, and reading the data of the program from the regular designated section 101 and the solid start section 111 by using a RAID 0 technology; and

(403)使用RAID 1技術,在該常規硬碟10上規劃出一常規備份區段102,以備份該固態起始區段111中的該程式的資料,且在該固態硬碟11(或該記憶體13或該常規其他區段103)上規劃出一變動記錄區段112,嗣,在該電腦2進行常態作業,且對該固態起始區段111之該程式的資料進行寫入的狀態下,將被寫入的資訊記錄為變動表格,並儲存在該變動記錄區段112、常規其他區段103或記憶體13中,以在滿足一預定條件的狀態下,如:每間隔一預定時間、接收到一備份指令或待該硬碟裝置1處於閒置……等,即根據該變動表格,將該固態起始區段111內被寫入更新過的該程式的資料鏡射至該常規備份區段102,以在該固態硬碟11發生故障或損壞時,能分別透過該常規指定區段101及常規備份區段102內儲存的該程式的資料,完成該電腦2執行該程式的程序。(403) Using the RAID 1 technology, a conventional backup section 102 is planned on the conventional hard disk 10 to back up the data of the program in the solid start section 111, and the solid state hard disk 11 (or the A change recording section 112 is planned on the memory 13 or the conventional other section 103), and the normal operation of the computer 2 is performed, and the data of the program of the solid start section 111 is written. Next, the information to be written is recorded as a change table, and stored in the change record section 112, the other other section 103 or the memory 13 to satisfy a predetermined condition, such as: every predetermined interval Time, receiving a backup command or waiting for the hard disk device 1 to be idle, etc., according to the change table, mirroring the data of the program written in the solid start block 111 to the updated program to the conventional The backup section 102 can complete the program for executing the program by the computer 2 through the data of the program stored in the regular designated section 101 and the regular backup section 102 respectively when the solid state hard disk 11 is faulty or damaged. .

如此,該硬碟裝置1藉由該方法,即能在處理電腦2之開機、關機程序或一般作業程序的資料時,透過各該硬碟10、11的分工,而大幅地提升其執行效率,且有效地將儲存在該固態起始區段111中的該程式的資料,間接地備份於該常規備份區段102中,進而大幅提高該程式的資料的完整性及安全性,並能使該硬碟裝置1在閒置的狀態下(或前述其他條件下,如:間隔一預定時間、接收到一備份指令……等),始將被寫入更新過該程式的資料備份於讀寫速度較慢之常規硬碟0的常規備份區段102,而無須重新將整個該程式的資料進行更新或備份,進而達成提高該硬碟裝置1之執行效率的目的。In this way, the hard disk device 1 can greatly improve the execution efficiency of the hard disk 10, 11 through the division of labor of the hard disk 10, 11 when processing the data of the computer 2 booting, shutdown, or general operating program. And effectively backing up the data of the program stored in the solid start section 111 in the regular backup section 102, thereby greatly improving the integrity and security of the program data, and enabling the When the hard disk device 1 is in an idle state (or other conditions as described above, such as: a predetermined time interval, receiving a backup command, etc.), the data that has been updated and updated by the program is backed up at a read/write speed. The conventional backup section 102 of the conventional conventional hard disk 0 does not need to re-update or back up the entire program data, thereby achieving the purpose of improving the execution efficiency of the hard disk device 1.

綜上所述,復請參閱第3圖所示,藉由本發明,主要係能使電腦2透過該硬碟裝置1及其讀寫方法,有效地提升開機與關機效率暨一般作業的執行效率,並有效確保該該程式的資料之完整性及安全性,解決當該固態硬碟11毀損時,使用者即必須重新購買用以儲存該該程式的資料的硬碟,並必須重新安裝及設定該作業系統之開機資料的問題。以上所述,僅係本發明之較佳實施例,惟,本發明所主張之權利範圍,並不局限於此,按凡熟悉該項技藝人士,依據本發明所揭露之技術內容,可輕易思及之等效變化,均應屬不脫離本發明之保護範疇。In summary, as shown in FIG. 3, the present invention mainly enables the computer 2 to effectively improve the efficiency of booting and shutdown and the efficiency of general operations through the hard disk device 1 and its reading and writing method. It is effective to ensure the integrity and security of the data of the program. When the SSD 11 is damaged, the user must re-purchase the hard disk for storing the data of the program and must reinstall and set the hard disk. Problems with the boot data of the operating system. The above is only the preferred embodiment of the present invention, but the scope of the claims of the present invention is not limited thereto, and those skilled in the art can easily think according to the technical contents disclosed in the present invention. And equivalent changes shall be made without departing from the scope of protection of the present invention.

1...硬碟裝置1. . . Hard disk device

10...常規硬碟10. . . Conventional hard drive

100...第一連接介面100. . . First connection interface

101...常規指定區段101. . . Regular specified section

102...常規備份區段102. . . Regular backup section

103...常規其他區段103. . . Regular other sections

11...固態硬碟11. . . Solid state hard drive

110...第二連接介面110. . . Second connection interface

111...固態起始區段111. . . Solid start section

112...變動記錄區段112. . . Change record section

12...控制器12. . . Controller

120...第三連接介面120. . . Third connection interface

13...記憶體13. . . Memory

2...電腦2. . . computer

第1圖所示乃本發明之硬碟裝置的第一個具體實施例之示意圖;Figure 1 is a schematic view showing a first embodiment of the hard disk device of the present invention;

第2圖所示乃本發明之硬碟裝置讀寫方法的第一個具體實施例之流程圖;2 is a flow chart showing a first embodiment of the hard disk device reading and writing method of the present invention;

第3圖所示乃本發明之硬碟裝置的第二個具體實施例之示意圖;及3 is a schematic view showing a second embodiment of the hard disk device of the present invention; and

第4圖所示乃本發明之硬碟裝置讀寫方法的第二個具體實施例之流程圖。Fig. 4 is a flow chart showing a second embodiment of the hard disk device reading and writing method of the present invention.

1...硬碟裝置1. . . Hard disk device

10...常規硬碟10. . . Conventional hard drive

100...第一連接介面100. . . First connection interface

101...常規指定區段101. . . Regular specified section

102...常規備份區段102. . . Regular backup section

103...常規其他區段103. . . Regular other sections

11...固態硬碟11. . . Solid state hard drive

110...第二連接介面110. . . Second connection interface

12...控制器12. . . Controller

120...第三連接介面120. . . Third connection interface

2...電腦2. . . computer

Claims (13)

一種能提高執行效率的硬碟裝置,包括:一固態硬碟;一常規硬碟,其儲存容量係大於該固態硬碟;及一控制器,係分別與該常規硬碟、固態硬碟及一電腦相連接,該控制器在該硬碟裝置進行初始化作業時,該控制器係使用RAID 0技術,在該常規硬碟上規劃出一常規指定區段,使得該電腦將該常規指定區段及該固態硬碟視為一個獨立的邏輯儲存單元,用以儲存電腦指定的一程式的資料,以RAID 0技術將該程式的資料寫入至該邏輯儲存單元時,係將該程式的資料分成數個區段,分別寫入至該常規指定區段及固態硬碟,而以RAID 0技術讀取該邏輯儲存單元內的該程式的資料時,係分別自該常規指定區段及固態硬碟內讀取該程式的資料,且該控制器使用RAID 1技術,在該常規硬碟上規劃出一常規備份區段,以將寫入至該固態硬碟中的該程式的資料,鏡射至該常規備份區段,使得該控制器能在該固態硬碟損壞時,分別透過該常規指定區段及常規備份區段內儲存的該程式的資料,完成該電腦執行該程式的程序。A hard disk device capable of improving execution efficiency, comprising: a solid state hard disk; a conventional hard disk having a storage capacity larger than the solid state hard disk; and a controller separately from the conventional hard disk, the solid state hard disk and the The computer is connected to the controller, and when the hard disk device performs an initializing operation, the controller uses a RAID 0 technology to plan a regular designated segment on the conventional hard disk, so that the computer selects the regular designated segment and The SSD is regarded as a separate logical storage unit for storing data of a program specified by the computer. When the data of the program is written to the logical storage unit by the RAID 0 technology, the data of the program is divided into several numbers. The segments are respectively written to the regular designated segment and the solid state hard disk, and the data of the program in the logical storage unit is read by the RAID 0 technology from the regular designated segment and the solid state hard disk respectively. Reading the data of the program, and the controller uses RAID 1 technology to plan a regular backup section on the conventional hard disk to mirror the data of the program written in the solid state hard disk to the conventional Parts section so that the controller can, are designated in the data storage section and a section of the regular backup program through the routine when the SSD is damaged, to complete the execution of the computer program. 如請求項1所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係為單階儲存單元快閃記憶體。A hard disk device capable of improving execution efficiency as described in claim 1, wherein the storage unit of the solid state hard disk is a single-stage storage unit flash memory. 如請求項1所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係為多階儲存單元快閃記憶體。The hard disk device of claim 1, wherein the storage unit of the solid state hard disk is a multi-level storage unit flash memory. 如請求項1所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係包括單階儲存單元快閃記憶體及多階儲存單元快閃記憶體。The hard disk device of claim 1 , wherein the storage unit of the solid state hard disk comprises a single-stage storage unit flash memory and a multi-level storage unit flash memory. 一種能提高執行效率的硬碟裝置,包括:一固態硬碟;一常規硬碟,其儲存容量係大於該固態硬碟;及一控制器,係分別與該常規硬碟、固態硬碟及一電腦相連接,該控制器在該硬碟裝置進行初始化作業時,該控制器係使用RAID 0技術,在該常規硬碟上規劃出一常規指定區段,且在該固態硬碟上規劃出一固態起始區段,使得該電腦將該常規指定區段及該固態起始區段視為一個獨立的邏輯儲存單元,用以儲存電腦指定的一程式的資料,以RAID 0技術將該程式的資料寫入至該邏輯儲存單元時,係將該程式的資料分成數個區段,分別寫入至該常規指定區段及固態起始區段,而以RAID 0技術讀取該邏輯儲存單元內的該程式的資料時,係分別自該常規指定區段及固態起始區段內讀取該程式的資料,且該控制器使用RAID 1技術,在該常規硬碟上規劃出一常規備份區段,以備份該固態起始區段中的該程式的資料,並該控制器能在該電腦進行常態作業,且對該固態起始區段之該程式的資料進行寫入的狀態下,將被寫入的資訊記錄為一變動表格,使得該控制器能根據該變動表格,將該固態起始區段中被寫入更新過的該程式的資料,鏡射至該常規備份區段,使得該控制器能在該固態硬碟損壞時,分別透過該常規指定區段及常規備份區段內儲存的該程式的資料,完成該電腦執行該程式的程序。A hard disk device capable of improving execution efficiency, comprising: a solid state hard disk; a conventional hard disk having a storage capacity larger than the solid state hard disk; and a controller separately from the conventional hard disk, the solid state hard disk and the The computer is connected, and the controller uses the RAID 0 technology to prepare a conventional designated section on the conventional hard disk when the initial operation of the hard disk device is performed, and a planned one is planned on the solid hard disk. a solid-state starting section, such that the computer treats the regular designated section and the solid-state starting section as a separate logical storage unit for storing data of a program specified by the computer, and the program is implemented by RAID 0 technology. When the data is written to the logical storage unit, the data of the program is divided into a plurality of sections, which are respectively written into the regular designated section and the solid-state starting section, and the logical storage unit is read by the RAID 0 technology. The data of the program is read from the regular designated section and the solid start section respectively, and the controller uses RAID 1 technology to plan a regular backup area on the conventional hard disk. segment, Backing up the data of the program in the solid start section, and the controller can perform normal operation on the computer, and write the data of the program in the solid start section, and write The information record is a change table, so that the controller can mirror the data of the program written in the solid start segment to the updated backup segment according to the change table, so that the controller When the solid state hard disk is damaged, the program for executing the program is completed by the data of the program stored in the regular designated section and the regular backup section respectively. 如請求項5所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係為單階儲存單元快閃記憶體。The hard disk device of claim 5, wherein the storage unit of the solid state hard disk is a single-stage storage unit flash memory. 如請求項5所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係為多階儲存單元快閃記憶體。The hard disk device of claim 5, wherein the storage unit of the solid state hard disk is a multi-level storage unit flash memory. 如請求項5所述之能提高執行效率的硬碟裝置,其中該固態硬碟之儲存單元係包括單階儲存單元快閃記憶體及多階儲存單元快閃記憶體。The hard disk device of claim 5, wherein the storage unit of the solid state hard disk comprises a single-stage storage unit flash memory and a multi-level storage unit flash memory. 一種能提高執行效率的硬碟裝置讀寫方法,該方法係應用至一硬碟裝置,該硬碟裝置內設有一常規硬碟、一固態硬碟及一控制器,該常規硬碟及固態硬碟係分別與該控制器相連接,該控制器則係與一電腦相連接,當該硬碟裝置進行初始化作業時,該控制器能執行下列步驟:使用RAID 0技術,在該常規硬碟上規劃出一常規指定區段,使得該電腦將該常規指定區段及該固態硬碟視為一個獨立的邏輯儲存單元,用以儲存電腦指定的一程式的資料,以RAID 0技術將該程式的資料寫入至該邏輯儲存單元時,係將該程式的資料分成數個區段,分別寫入至該常規指定區段及固態硬碟中,而以RAID 0技術讀取該邏輯儲存單元中的該程式的資料時,係分別自該常規指定區段及固態硬碟中讀取該程式的資料;及使用RAID 1技術,在該常規硬碟上規劃出一常規備份區段,嗣,將寫入至該固態硬碟內的該程式的資料鏡射至該常規備份區段,以在該固態硬碟損壞時,能分別透過該常規指定區段及常規備份區段內儲存的該程式的資料,完成該電腦執行該程式的程序。A hard disk device reading and writing method capable of improving the execution efficiency, the method is applied to a hard disk device having a conventional hard disk, a solid state hard disk and a controller, the conventional hard disk and solid state hard The discs are respectively connected to the controller, and the controller is connected to a computer. When the hard disc device is initialized, the controller can perform the following steps: using the RAID 0 technology on the conventional hard disc. Planning a regular designated section, so that the computer regards the regular designated section and the solid state hard disk as a separate logical storage unit for storing data of a program specified by the computer, and the program is implemented by RAID 0 technology. When the data is written to the logical storage unit, the data of the program is divided into a plurality of segments, which are respectively written into the regular designated segment and the solid state hard disk, and the RAID 0 technology is used to read the logical storage unit. The data of the program is read from the regular designated section and the solid state hard disk respectively; and a conventional backup section is planned on the conventional hard disk using RAID 1 technology, 嗣, will be written The data of the program in the solid state drive is mirrored to the regular backup section to transmit the data of the program stored in the regular designated section and the regular backup section respectively when the solid state hard disk is damaged. Complete the program that the computer executes the program. 一種能提高執行效率的硬碟裝置讀寫方法,該方法係應用至一硬碟裝置,該硬碟裝置內設有一常規硬碟、一固態硬碟及一控制器,該常規硬碟及固態硬碟係分別與該控制器相連接,該控制器則係與一電腦相連接,當該硬碟裝置進行初始化作業時,該控制器能執行下列步驟:使用RAID 0技術,在該常規硬碟上規劃出一常規指定區段,且在該固態硬碟上規劃出一固態起始區段,使得該電腦將該常規指定區段及該固態起始區段視為一個獨立的邏輯儲存單元,用以儲存電腦指定的一程式的資料,以RAID 0技術將該程式的資料寫入至該邏輯儲存單元時,係將該程式的資料分成數個區段,分別寫入至該常規指定區段及固態起始區段中,而以RAID 0技術讀取該邏輯儲存單元中的該程式的資料時,係分別自該常規指定區段及固態起始區段中讀取該程式的資料;及使用RAID 1技術,在該常規硬碟上規劃出一常規備份區段,以備份該固態起始區段中的該程式的資料,接著在該硬碟裝置上規劃出一變動記錄區段,嗣,在該電腦進行常態作業,且對該固態起始區段之該程式的資料進行寫入的狀態下,將被寫入的資訊記錄為一變動表格,並儲存在該變動記錄區段中,以在滿足一預定條件的狀態下,根據該變動表格將該固態起始區段內被寫入更新過的該程式的資料鏡射至該常規備份區段,以在該固態硬碟損壞時,能分別透過該常規指定區段及常規備份區段內儲存的該程式的資料,完成該電腦執行該程式的程序。 A hard disk device reading and writing method capable of improving the execution efficiency, the method is applied to a hard disk device having a conventional hard disk, a solid state hard disk and a controller, the conventional hard disk and solid state hard The discs are respectively connected to the controller, and the controller is connected to a computer. When the hard disc device is initialized, the controller can perform the following steps: using the RAID 0 technology on the conventional hard disc. A conventional designated segment is planned, and a solid starting segment is planned on the solid state hard disk, so that the computer regards the regular designated segment and the solid starting segment as a separate logical storage unit. When storing the data of a program specified by the computer and writing the data of the program to the logical storage unit by using the RAID 0 technology, the data of the program is divided into several sections and written into the regular designated section and In the solid state start segment, when the data of the program in the logical storage unit is read by the RAID 0 technology, the data of the program is read from the regular designated segment and the solid start segment respectively; and the data is used. RAID 1 a conventional backup section is planned on the conventional hard disk to back up the data of the program in the solid start section, and then a change recording section is planned on the hard disk device, and When the computer performs a normal operation and writes the data of the program in the solid start section, the written information is recorded as a change table and stored in the change record section to satisfy Under the condition of a predetermined condition, the data of the program written in the solid start section is mirrored to the regular backup section according to the change table, so that when the solid state hard disk is damaged, it can be separately transmitted. The program of the program stored in the regular designated section and the regular backup section completes the program for executing the program on the computer. 如請求項10所述之能提高執行效率的硬碟裝置讀寫方法,其中該預定條件係每間隔一預定時間,即根據該變動表格,將該固態起始區段內被寫入更新過的該程式的資料鏡射至該常規備份區段。 A hard disk device read/write method capable of improving execution efficiency as described in claim 10, wherein the predetermined condition is written to the updated start section within a predetermined time interval, that is, according to the change table The program's data is mirrored to the regular backup section. 如請求項10所述之能提高執行效率的硬碟裝置讀寫方法,其中該預定條件係待該硬碟裝置處於開置的狀態下,即根據該變動表格,將該固態起始區段內被寫入更新過的該程式的資料鏡射至該常規備份區段。The method for reading and writing a hard disk device according to claim 10, wherein the predetermined condition is that the hard disk device is in an open state, that is, according to the change table, the solid state starting segment is The data written to the updated program is mirrored to the regular backup section. 如請求項10所述之能提高執行效率的硬碟裝置讀寫方法,其中該預定條件係待該控制器接收到一備份指令的狀態下,即根據該變動表格,將該固態起始區段內被寫入更新過的該程式的資料鏡射至該常規備份區段。The method for reading and writing a hard disk device according to claim 10, wherein the predetermined condition is that the controller starts receiving the backup instruction, that is, according to the change table, the solid start segment. The data written to the updated program is mirrored to the regular backup section.
TW98117669A 2009-05-27 2009-05-27 Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods TWI386922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW98117669A TWI386922B (en) 2009-05-27 2009-05-27 Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW98117669A TWI386922B (en) 2009-05-27 2009-05-27 Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods

Publications (2)

Publication Number Publication Date
TW201042640A TW201042640A (en) 2010-12-01
TWI386922B true TWI386922B (en) 2013-02-21

Family

ID=45000644

Family Applications (1)

Application Number Title Priority Date Filing Date
TW98117669A TWI386922B (en) 2009-05-27 2009-05-27 Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods

Country Status (1)

Country Link
TW (1) TWI386922B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8819328B2 (en) 2010-12-30 2014-08-26 Sandisk Technologies Inc. Controller and method for performing background operations
TW201508484A (en) 2013-08-22 2015-03-01 Acer Inc Data writing method, hard disc module, and data writing system
CN104423892A (en) * 2013-08-29 2015-03-18 宏碁股份有限公司 Data writing method, disk module and data writing system
TWI620067B (en) * 2016-12-01 2018-04-01 英業達股份有限公司 Server system and reading method
CN115826882B (en) * 2023-02-15 2023-05-30 苏州浪潮智能科技有限公司 Storage method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWM344552U (en) * 2008-05-28 2008-11-11 Silicon Power Comp & Comm Inc Solid state disk
US20080279382A1 (en) * 2007-05-09 2008-11-13 Kingston Technology Corporation Secure and scalable solid state disk system
US20080320214A1 (en) * 2003-12-02 2008-12-25 Super Talent Electronics Inc. Multi-Level Controller with Smart Storage Transfer Manager for Interleaving Multiple Single-Chip Flash Memory Devices
TW200921675A (en) * 2007-09-04 2009-05-16 Micron Technology Inc Scaleable and maintainable solid state drive

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320214A1 (en) * 2003-12-02 2008-12-25 Super Talent Electronics Inc. Multi-Level Controller with Smart Storage Transfer Manager for Interleaving Multiple Single-Chip Flash Memory Devices
US20080279382A1 (en) * 2007-05-09 2008-11-13 Kingston Technology Corporation Secure and scalable solid state disk system
TW200921675A (en) * 2007-09-04 2009-05-16 Micron Technology Inc Scaleable and maintainable solid state drive
TWM344552U (en) * 2008-05-28 2008-11-11 Silicon Power Comp & Comm Inc Solid state disk

Also Published As

Publication number Publication date
TW201042640A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
US9923562B1 (en) Data storage device state detection on power loss
US9841911B2 (en) Green NAND device (GND) driver with DRAM data persistence for enhanced flash endurance and performance
TWI385516B (en) Flash memory storage system and data writing method thereof
US9483203B2 (en) Temporary mirroring, logical segregation, and redundant programming or addressing for solid state drive operation
TWI467581B (en) Hybrid storage apparatus and hybrid storage medium controlller and addressing method thereof
US9348520B2 (en) Lifetime extension of non-volatile semiconductor memory for data storage device
TWI738739B (en) Hard disk data erasing method, server and system
CN102508724B (en) Disk bad block processing method based on soft RAID (redundant array of independent disks)
US9864529B1 (en) Host compatibility for host managed storage media
US8850128B2 (en) Implementing data storage and dual port, dual-element storage device
CN111124758A (en) Data recovery method for failed hard disk
US20120221771A1 (en) Data storage system and data mapping method of the same
TWI386922B (en) Can improve the efficiency of the implementation of the hard disk device and its reading and writing methods
US9015459B2 (en) Method of initializing operation of a memory system
US20150234595A1 (en) Storage device
US20170116131A1 (en) Division of data storage in single-storage device architecture
US9459802B1 (en) Hybrid-HDD that limits dirty data in NAND
CN103019894A (en) Reconstruction method for redundant array of independent disks
US8917471B1 (en) Power management for data storage device
US20150143024A1 (en) Redundant array of independent modules
US10628051B2 (en) Reducing a data storage device boot time
US9785563B1 (en) Read command processing for data storage system based on previous writes
US20120311195A1 (en) Method, system and computer-readable medium for switching access mode of hard drive
CN101176075A (en) Circuit and method for improving service lifetime of memory device
TWI407304B (en) Speed ​​up access to data