1. Field of Invention
This invention is relative to a method, a system and a computer-readable medium for switching access mode of a hard drive; in particular, relative to a method, a system and a computer-readable medium having processing instructions for implementing the method performed by a computer thereon for switching access mode of hard drive directly without any formatting process of the hard drive.
2. Related Art
As information storage and hardware technology advance, storage devices of new generation are being developed continuously, and requirements for both storage capacity and accessing speed thereof are also increasing. Therefore, Solid State Drives (SSDs) with higher accessing speed have been developed.
Unlike traditional hard drives such as hard disk drives (HDDs) which are electromechanical devices containing spinning disks and movable read/write heads, solid state drives do not employ any moving mechanical components but use Non-volatile memory (NVRAM) or Volatile memory to store the data, in which information or data is stored in a memory chip to be written or read directly through BUS transmission.
Compared with traditional hard drives, SSDs are typically less susceptible to physical shock, are silent, and have lower access time and latency, since they are essentially semiconductor memory devices mounted on a circuit board with no moving parts. Most advantages of SSDs over traditional hard drives come from the characteristic of data being accessed completely electronically instead of electro-mechanically.
Generally, because having no moving parts for storing the data, SSDs can achieve faster data access, greatly improving the performance of the computer. However, in spite of the above advantages, SSDs are much more expensive per unit of storage than traditional magnetic drives at present market prices, mainly due to the use of Non-volatile memory or Volatile memory.
For providing hard drives with high speed of data access at lower price, some manufacturers combined the features of SSD and HDD in the same unit to introduce “hybrid drives” containing a hard drive of large storage capacity and an SSD cache to improve performance of frequently accessed data. They may offer near-SSD performance for many applications. For example, Smart Response Technology (SRT) introduced by Intel® for their Z68 chipset allows a SATA SSD to function as cache for a traditional magnetic hard drive, and a hybrid storage has been developed by Marvell® by combining an SSD for a performance boost and an HDD for high capacity storage. During the combination thereof, the HDD has to be set to run in Redundant Array of Independent Drives (RAID) access mode; that is, the SSD and the HDD have to be combined into a logic drive and used as a hard drive array.
However, the default access mode of the HDD is commonly Non-Redundant Array of Independent Drives (Non-RAID) modes such as Integrated Drive Electronics (IDE) mode. If a user intends to change the access mode of the HDD into RAID mode, he has to format the magnetic hard drive first and then reset the access mode of the HDD through a Basic Input/Output System (BIOS) of the computer. During the formatting process, the files stored in the HDD will be deleted completely, so the user has to perform data backup prior thereto. Even only traditional hard drives are used, it is necessary for the hard drive to be subject to the formatting process so as to change the access mode of the hard drive. This is really time-consuming and inconvenient for the user.
In view of this, the object of the present invention is to solve the aforesaid problem by providing a method, a system and a computer-readable medium encoded with processing instructions for implementing the method for switching access mode of the hard drive directly without any formatting process of the hard drive.
The present invention discloses a method for switching access mode of a hard drive, the hard drive having a plurality of access modes, the method comprising steps of: detecting and writing digitally current access mode as a current registry code of a system registration information by a processing unit, then overwriting the current registry code with a new registry code that corresponds to a new access mode other than the current access mode by the processing unit, and then reloading the system registration information by the processing unit, and then changing the current access mode to the new access mode correspondingly by a Basic Input/Output System (BIOS).
Corresponding to aforesaid method, the present invention also discloses a system for switching access mode of a hard drive, the system includes the hard drive, a Basic Input/Output System (BIOS) and a processing unit. The hard drive has a plurality of access modes and stores a system registration information comprising a registry code, the registry code is digitally corresponded to the access mode of the hard drive, the BIOS electrically connects to the hard drive and sets the access mode of the hard drive, and the processing unit electrically connects to the hard drive and the BIOS respectively. The system is capable of switching the access mode of the hard drive by performing a method comprising steps of: generating and transmitting a signal for switching the access mode from the BIOS to the processing unit, modifying the registry code to a new registry code by the processing unit according to the signal, saving the new registry code and reloading the system registration information by the processing unit, and changing the access mode of the hard drive correspondingly by the BIOS.
Besides, Corresponding to aforesaid method, the present invention also discloses a computer-readable medium encoded with processing instructions for implementing a method for switching access mode of a hard drive performed by a computer, the method comprises following steps: detecting and writing digitally current access mode as a current registry code of a system registration information by a processing unit, then overwriting the current registry code with a new registry code that corresponds to a new access mode other than the current access mode by the processing unit, and then reloading the system registration information by the processing unit, and then changing the current access mode to the new access mode correspondingly by a Basic Input/Output System (BIOS).
The present invention is advantageous in that when a user intends to change the access mode of the hard drive, he may start with modifying and overwritting the registry code corresponding to the accessing mode of the hard drive, followed by reloading the system registration information. Since the formatting process of the hard drive is not required, it will be time-saving and more convenient for the user.
Meanwhile, the present invention is also applicable to the hard drive array system, which combines for example the solid state drive and the magnetic hard drive, from Non-RAID mode to RAID mode. A user may simply execute the solid state drive setup program provided by the hard drive manufacture without formatting process when combining the solid state drive and the magnetic hard drive. This significantly saves troubles, time and difficulty for the user if a solid state drive with low storage and a magnetic hard drive with high storage are combined for writing/reading data.
Further objects, embodiments and advantages are apparent in the drawings and in the detailed description which follows.
These and other features and advantages of the various embodiments disclosed herein will be better understood with respect to the following description and drawings, in which like numbers refer to like parts throughout, and in which:
Besides, system registration information having a registry code is also stored in the hard drive 101. The registry code of the system registration information indicates digitally the access mode of the hard drive 101 that will be identified by the operating system of the computer. The operating system or other application programs execute read/write operations to the hard drive 101 based on the current access mode indicated by the registry code. For example, if the access mode of the hard drive 101 is set as the Integrated Drive Electronics (IDE) mode, the registry code written digitally as, for example “0”, is also stored in the hard drive 101 as the current registry code. When the operating system or other application programs send a data transfer instruction to the hard drive 101, the hard drive 101 executes the data transfer according to the registry code where the access mode of the hard drive 101 is written.
In the system 10 of the present invention, the Basic Input/Output System (BIOS) 102 is electrically connected to the hard drive 101, and the access mode of the hard drive 101 is set using the Basic Input/Output System (BIOS) 102. The processing unit 103 is electrically connected to the hard drive 101 and the Basic Input/Output System (BIOS) 102 respectively.
It is noted that the access mode of the hard drive 101 in the present invention is not limited to those described above. Different types of hard drives may have different access modes based on hardware feature and/or demand. People with ordinary skill in this art can modify the access mode as required. Furthermore, the system registration information and registry code mentioned herein may be recorded in different ways depending on the operating system (examples: Windows, Linux, MAC OS . . . etc.). Hence, needless to say, people with ordinary skill may change the way of recording the system registration information or registry code as needed without departing from the spirit of the present invention.
In order to make the description of the present invention clear enough and fully disclosed for people with ordinary skill in this art to practice, two embodiments are explained in detail as follows in which two access modes of the hard drive 101 are provided. Among others, one is Non-Redundant Array of Independent Drives (Non-RAID) mode such as Integrated Drive Electronics (IDE) mode, and the other is Redundant Array of Independent Drives (RAID) mode. For the convenience of illustration, the registry codes for the Non-RAID and RAID modes are represented in terms of digits respectively by “0” and “3”. However, it will be appreciated that in practical situations, access modes of the hard drive 101 may have other possible access modes, and the number of the access modes may be determined as required. In other words, in the present invention, it is possible for the switching process to occur between any two access modes if more than two access modes are provided in the hard drive.
Besides, a computer-readable medium encoded with processing instructions for implementing the method for switching access mode of the hard drive 101 of the present invention performed by a computer and used for the system 10 mentioned above is also disclosed. The steps included in the method can be referred to the foresaid description and
It is noted that the computer-readable medium in the present invention includes but is not limited to the forms of compact discs, hard drives, portable hard drives and any other physical storage media for storing computer programs and can be read or executed by the computer. People with ordinary skill in this art can select different kinds of physical storage media as desired.
By way of the method, system and computer-readable medium encoded with processing instructions for implementing the method, the access mode of the hard drive may be switched directly and swiftly without any hard drive formatting process. Accordingly, a lot of trouble and a waste of time from backing up data in the hard drive and re-installing the operating system and/or application programs may be prevented effectively.
By the way, the present invention is also applicable to the so-called hard drive array system, which combines for example the solid state drive and the magnetic hard drive, from Non-RAID mode to RAID mode. A user simply has to execute the solid state drive setup program provided by the hard drive manufacture when combining the solid state drive and the magnetic hard drive. This significantly saves troubles, time and difficulty for the user if a solid state drive with low storage and a magnetic hard drive with high storage are combined for writing/reading data. In this way, both the advantages of high speed performance of the solid state drive and large storage of the magnetic hard drive may be obtained at the same time, which is quite desirable to the user.
While the disclosure has been described in terms of what is presently considered to be the preferred embodiments, it is to be understood that the disclosure needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modification and similar structures. It is therefore intended by the appended claims to define the true scope of the invention.
This application claims the benefit of the filing date of U.S. Provisional Patent Application No. 61491229, filed on 2011 May 30, in the United States Patent and Trademark Office, the disclosure of which is incorporated herein in its entirety by reference.
Number | Date | Country | |
---|---|---|---|
61491229 | May 2011 | US |