The invention relates to a storage device in a computer system and the method for controlling the same, and, more particularly, to a storage device with large capacity programmed by a master boot record (MBR) partition table scheme in a computer system and the method for controlling the same.
To be compatible with International Business Machines Corporation (IBM) computers in early days, a master boot record (MBR) partition table scheme is used to program hard disks. In a disk partition table, the length of each logical block address is stored as 32 bits, and the size of each logical block is 512 bytes. Therefore, conventionally, when the hard disk is programmed by the MBR partition table scheme, the maximum supportive capacity is: 232×512(byte)=2.2 trillion bytes (TB).
With the fast development of the storage device, the storage devices whose capacity is larger than 2.2 TB are developed. As shown in
The size of the above logical block is, for example, 512 bytes, and if the size of the logical block is 2048 bytes, the maximum supportive capacity of the storage device programmed by the MBR partition table scheme is 8.8 TB. The maximum supportive capacity is 2.2 TB hereinafter, and it is not limited in the invention.
As a result, a GUID partition table scheme is disclosed to program the storage device. To the computer system having a motherboard with traditional BIOS, the current operating system (such as Linux or Windows) can read information in the storage device programmed by the GUID partition table scheme, but the computer system cannot be booted from the storage device.
Consequently, if the computer system needs to be booted from the storage device programmed by the GUID partition table scheme, the computer system needs to have a motherboard with a new extensible firmware interfaces (EFI) BIOS. However, not only the new BIOS different from the traditional BIOS needs to be updated, the operating system and other applications also needs to be updated, which increases the expense of the user.
The invention discloses a storage device in a computer system and the method for controlling the same. The storage device is adapted to the computer system having a traditional basic input/output system (BIOS). To the storage device with maximum supportive capacity programmed by the MBR partition table scheme, the computer system may access the maximum storage capacity as well as the capacity exceeding the maximum supportive capacity in the storage device.
The invention discloses a storage device in a computer system including a first storage portion having a first capacity, and a second storage portion having a second capacity. A virtual storage unit is installed in an operating system of the computer system, and the operating system may directly access data in the first capacity of the storage device. In addition, the operating system may access the second capacity via the virtual storage unit mapped to the second capacity in the storage device.
The invention further discloses a method for controlling the storage device in the computer system. The method includes the steps of: detecting whether a storage device programmed by the MBR partition table scheme in the computer system exists; detecting whether the total capacity of the storage device is larger than a first capacity when the storage device programmed by the MBR partition table scheme exists, and generating a virtual storage unit for controlling the second capacity when the total capacity of the storage device is larger than the first capacity, and the second capacity is smaller than or equal to the capacity resulting from the total capacity minus the first capacity of the storage device. An operating system of the computer system directly accesses the data in the first capacity in the storage device, and the operating system accesses data in the second capacity via the virtual storage unit.
These and other features, aspects and advantages of the present invention will become better understood with regard to the following description, appended claims, and accompanying drawings.
According to an embodiment of the invention, the second capacity of the virtual storage unit 260 is (A-2.2) TB, and that is, the virtual storage unit 260 may be mapped to the second storage portion 208 of the storage device 200. When the user accesses the data in the virtual storage unit 260 via the operating system 250, the application may transmit the accessed data to the (A-2.2) TB capacity of the mapped second storage portion 208.
In addition, the application may set the virtual storage unit 260 to be a hard disk, a network adapter, a CD-ROM driver and other physical devices, or a file, a volume, a partition and other virtual devices. In the embodiment of the invention, the second capacity is (A-2.2) TB, and it also may be smaller than (A-2.2) TB. For example, the (A-2.2) TB capacity can be divided into multiple blocks, and each block may be controlled by a corresponding virtual storage unit. The virtual storage unit is equipment or an equipment combination directly or indirectly with an information storage function.
Consequently, the invention discloses a storage device of the computer system and the method for controlling the same. The storage device is adapted to the computer system with a traditional BIOS. After the storage device with the capacity larger than 2.2 TB is programmed by the MBR partition table scheme, the user may access the data within or exceeding the 2.2 TB capacity in the storage device with any operating system (such as the Linux or Windows) capable of supporting the MBR partition table scheme.
Although the present invention has been described in considerable detail with reference to certain preferred embodiments thereof, the disclosure is not for limiting the scope of the invention. Persons having ordinary skill in the art may make various modifications and changes without departing from the scope. Therefore, the scope of the appended claims should not be limited to the description of the preferred embodiments described above.
Number | Date | Country | Kind |
---|---|---|---|
099113938 | Apr 2010 | TW | national |