CN102214074B - Storage device in computer system and control method of storage device - Google Patents

Storage device in computer system and control method of storage device Download PDF

Info

Publication number
CN102214074B
CN102214074B CN201010160634.5A CN201010160634A CN102214074B CN 102214074 B CN102214074 B CN 102214074B CN 201010160634 A CN201010160634 A CN 201010160634A CN 102214074 B CN102214074 B CN 102214074B
Authority
CN
China
Prior art keywords
capacity
storage device
operating system
table mode
computer system
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
CN201010160634.5A
Other languages
Chinese (zh)
Other versions
CN102214074A (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.)
HUASHUO SCIENCE AND TECHNOLOGY (SUZHOU) Co Ltd
Asus Technology Suzhou Co Ltd
Asustek Computer Inc
Original Assignee
HUASHUO SCIENCE AND TECHNOLOGY (SUZHOU) Co Ltd
Asustek Computer Inc
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 HUASHUO SCIENCE AND TECHNOLOGY (SUZHOU) Co Ltd, Asustek Computer Inc filed Critical HUASHUO SCIENCE AND TECHNOLOGY (SUZHOU) Co Ltd
Priority to CN201010160634.5A priority Critical patent/CN102214074B/en
Publication of CN102214074A publication Critical patent/CN102214074A/en
Application granted granted Critical
Publication of CN102214074B publication Critical patent/CN102214074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a storage device in a computer system and a control method of the storage device. The storage device in the computer system comprises a first storage part having a first capacity, and a second storage part having a second capacity, wherein a virtual storage unit is arranged in an operating system of the computer system; the operating system can directly perform data accessing on the first capacity in the storage device and map to the second capacity through the virtual storage unit so as to realize data accessing of the second capacity in the storage device. The invention can be applied to the storage device which uses a main guide partition table and of which the capacity is greater than the maximum supportive capacity 2.2TB of the main guide partition table.

Description

Storage device in computer system and control method thereof
Technical field
The invention relates to storage device and control method thereof in a kind of computer system, and particularly relevant for large capacity storage device and the control method thereof of using main boot partition table mode (Master Boot Recordpartition table scheme) planning in a kind of computer system.
Background technology
Compatible for the IBM personal computer with early stage, hard disk is all to use main boot partition table mode (Master Boot Record partition table scheme) to plan hard disk.Wherein, in hard disk, distinguish in table (Disk Partition Table), it is 32 (bit) that the length of each logical block addresses (Logical BlockAddress) is all stored, and the size of each logical blocks (size) is 512 bytes (byte).Therefore, the known main boot partition table mode of utilizing is when hard disk is planned, maximum can support 2 32* 512 (byte)=2.2 terabytes (Trillion Byte, hereinafter to be referred as TB).
Because the development of storage device is maked rapid progress, now can production capacity be greater than the storage device of 2.2TB.Please refer to Fig. 1, its illustrate is for utilizing main boot partition table mode to plan and capacity is greater than the storage device of 2.2TB.Utilize the storage device 100 of main boot partition table mode planned capacity A, at most only can support 2.2TB capacity, namely the first storage compartment 104.And remaining the second storage compartment 108, that is (A-2.2) TB capacity, by only locating 2.2TB because of the logical block addresses of main boot partition table, cannot be utilized.For instance, the hard disk of a 2.5TB, after utilizing main boot partition table mode to plan, will have 0.3TB (300GB) capacity cannot be utilized.Therefore, user for example,, under any operating system (, Linux or Windows) 150, it will be appreciated that in computer system and has a storage device 100, and its total volume is 2.5TB, and can use capacity only to have 2.2TB.In other words, in storage device 100, the 2.2TB of the first storage compartment 104 carries out the region of access data for user can utilize operating system 150, (A-2.2) TB of all the other the second storage compartments 108, user cannot utilize operating system 150 to carry out access data.
Certainly, the size of above-mentioned logical blocks is to take 512 bytes as example, if the size of logical blocks is 2048 bytes, utilizes the storage device of main boot partition table mode planned capacity, and maximum support storage volume is 8.8TB.And following description all be take maximum and supported that storage volume explains as 2.2TB as example, but be not limited to 2.2TB.
In order to solve the above problems, a kind of GUID partition table mode (GUID partition table) plans that storage device is suggested.To there is the motherboard computer system of traditional B IOS, current operating system (for example, Linux or Windows) can read the storage device of supporting that GUID partition table mode is planned, but do not support by this storage device activating computer system.
Therefore, must use the computer system of the motherboard of a kind of new extensible firmware interface (Extensible FirmwareInterfaces is called for short EFI) BIOS to carry out activating computer system by the storage device of supporting GUID partition table mode to plan.Yet this type of computer system, also must a nearly step upgrading operation system and other application software except must upgrade different from BIOS.So, will increase user's cost.
Summary of the invention
The object of the invention is to propose storage device and control method thereof in a kind of computer system, it operates on the computer system of using traditional B IOS.For utilizing main boot partition table mode to plan and capacity is greater than the maximum storage device of supporting storage volume, computer system in can accessing storing device maximum support the data within storage volume scope also can accessing storing device in the maximum data of supporting outside storage volume scope.
The present invention proposes the storage device in a kind of computer system, comprising: one first storage compartment, has one first capacity; And one second storage compartment, there is one second capacity; Wherein, in an operating system in computer system, be mounted a virtual storage element, operating system is directly carried out data access to the first capacity in storage device, and operating system maps to the second capacity by virtual storage element, reaches the data access of the second capacity in storage device.
The present invention also proposes the control method of storage device in a kind of computer system, comprises the following steps: in detection computations machine system, whether there is a storage device that utilizes a main boot partition table mode to plan; When the storage device of planning when main boot partition table mode exists, whether the total volume that detects storage device is greater than one first capacity; And when the total volume of storage device is greater than the first capacity, producing a virtual storage element of one second capacity of control, the total volume that the second capacity is less than or equal to storage device deducts the first capacity; Wherein, the operating system in computer system is directly carried out data access to the first capacity in storage device, and operating system is carried out data access by virtual storage element to the second capacity.
In order to make your auditor can further understand feature of the present invention and technology contents, refer to following about detailed description of the present invention and accompanying drawing, yet appended graphic only provide with reference to and explanation, be not used for the present invention to be limited.
Accompanying drawing explanation
Fig. 1 illustrate is for utilizing main boot partition table mode to plan and capacity is greater than the storage device of 2.2TB.
Fig. 2 illustrate for the present invention utilizes main boot partition table mode plan and capacity is greater than the storage device of 2.2TB.
Fig. 3 illustrate produces the method flow diagram of virtual storage element for program of the present invention.
[main element label declaration]
100 storage device 104 first storage compartments
108 second storage compartment 150 operating systems
200 storage device 204 first storage compartments
208 second storage compartment 250 operating systems
260 virtual storage elements
Embodiment
Please refer to Fig. 2, its illustrate for the present invention utilizes main boot partition table mode plan and capacity is greater than the storage device of 2.2TB.The storage device 200 that utilizes main boot partition table mode planned capacity A, it can support 2.2TB capacity, namely the first storage compartment 204.And user can utilize in operating system 250 accessing storing devices 200 data of 2.2TB in the first storage compartment 204.Moreover, user can install a program in operating system 250, this program can create a virtual storage element (Storage device) 260, these virtual storage element 260 mapping second capacity, this second capacity can be the remainder that storage device 200 is greater than 2.2TB, for example equal (A-2.2) TB or be less than (A-2.2) TB, and user can be by the data in the virtual storage element 260 of operating system 250 access.
According to embodiments of the invention, the second capacity of virtual storage element 260 equals (A-2.2) TB.That is to say, virtual storage element 260 can map to the second storage compartment 208 in storage device 200.And when user is when the virtual storage element 260 of operating system 250 access, program can be sent to access data (A-2.2) TB range of capacity in the second storage compartment 208 of mapping.
Moreover, program can be set as virtual storage element 260 virtual units (Virtual device) such as the physical equipments such as hard disk, network card, CD-ROM drive (Physical Device) or a file (file), a file (folder), a volume (Volume) or a subregion (Partition), or the combination of several equipment composition.Certainly embodiments of the invention be take the second capacity as (A-2.2) TB be example, certain the second capacity also can be less than (A-2.2) TB, for example (A-2.2) TB is divided into a plurality of blocks, then by a plurality of virtual storage element of correspondence, control respectively, virtual storage element is equipment or the device combination with data storage function, or can indirectly have equipment or the device combination of data storage function.
Please refer to Fig. 3, its illustrate produces the method flow diagram of virtual storage element for program of the present invention.First, in detection computations machine system, whether there is the storage device (step S300) that utilizes main boot partition table mode to plan; After determining, detect storage device total volume and whether be greater than 2.2TB (step S310); After determining, its capacity of virtual storage element (step S320) of generation equals to be greater than in storage device the part of 2.2TB capacity.Therefore,, after virtual storage element produces, user can be by the data in the virtual storage element of operating system access.
Therefore, advantage of the present invention is to propose storage device and control method thereof in a kind of computer system.It can operate on the computer system of using traditional B IOS, for utilizing main boot partition table mode to plan and capacity is greater than the storage device of 2.2TB, user can utilize for example, in operating system (DOS or Linux or the Windows operating system) accessing storing device of the main boot partition of any support table mode data within 2.2TB range of capacity also can accessing storing device in data outside 2.2TB range of capacity.
In sum; although the present invention discloses as above with preferred embodiment; so it is not in order to limit the present invention; any those skilled in the art; without departing from the spirit and scope of the present invention; when doing various changes and retouching, so protection scope of the present invention is when being as the criterion depending on the appended claim scope person of defining.

Claims (7)

1. the storage device in computer system, comprising:
One first storage compartment, has one first capacity; And
One second storage compartment, has one second capacity;
Wherein, in an operating system in this computer system, be mounted a virtual storage element, this operating system is directly carried out data access to this first capacity in this storage device, this operating system maps to this second capacity by this virtual storage element, reaches the data access of this second capacity in this storage device;
Wherein, this operating system is the operating system of the main boot partition of a support table mode, and this first capacity is that the maximum that this main boot partition table mode is planned is supported capacity.
2. storage device according to claim 1, wherein, this supports that operating system of main boot partition table mode is a dos operating system, (SuSE) Linux OS or a Windows operating system.
3. storage device according to claim 1, wherein, this first capacity is 2.2 terabytes or 8.8 terabytes.
4. storage device according to claim 1, wherein, the total volume that this second capacity is equal to or less than this storage device deducts this first capacity.
5. a control method for storage device in computer system, comprises the following steps:
Detect and in this computer system, whether have a storage device that utilizes a main boot partition table mode to plan;
When this storage device of planning when this main boot partition table mode exists, whether the total volume that detects this storage device is greater than one first capacity; And
When the total volume of this storage device is greater than this first capacity, produce a virtual storage element of one second capacity of control, the total volume that this second capacity is less than or equal to this storage device deducts this first capacity;
Wherein, the operating system in this computer system is directly carried out data access to this first capacity in this storage device, and this operating system is carried out data access by this virtual storage element to this second capacity;
Wherein, this operating system is the operating system of the main boot partition of a support table mode, and this first capacity is that the maximum that this main boot partition table mode is planned is supported capacity.
6. control method according to claim 5, wherein, this supports that operating system of main boot partition table mode is dos operating system, a (SuSE) Linux OS or a Windows operating system.
7. control method according to claim 5, wherein, the maximum support capacity that this main boot partition table mode is planned is 2.2 terabytes or 8.8 terabytes.
CN201010160634.5A 2010-04-30 2010-04-30 Storage device in computer system and control method of storage device Active CN102214074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010160634.5A CN102214074B (en) 2010-04-30 2010-04-30 Storage device in computer system and control method of storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010160634.5A CN102214074B (en) 2010-04-30 2010-04-30 Storage device in computer system and control method of storage device

Publications (2)

Publication Number Publication Date
CN102214074A CN102214074A (en) 2011-10-12
CN102214074B true CN102214074B (en) 2014-09-10

Family

ID=44745398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010160634.5A Active CN102214074B (en) 2010-04-30 2010-04-30 Storage device in computer system and control method of storage device

Country Status (1)

Country Link
CN (1) CN102214074B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493811B1 (en) * 1998-01-26 2002-12-10 Computer Associated Think, Inc. Intelligent controller accessed through addressable virtual space
CN101187877A (en) * 2007-12-10 2008-05-28 上海北大方正科技电脑系统有限公司 Computer system loading method
CN101609393A (en) * 2009-07-21 2009-12-23 北京数帅科技有限公司 The operating system access of non-LVM is based on the method for the memory device of LV volume
CN102135860A (en) * 2010-01-26 2011-07-27 英业达股份有限公司 Method for automatically programming volume of hard disk

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493811B1 (en) * 1998-01-26 2002-12-10 Computer Associated Think, Inc. Intelligent controller accessed through addressable virtual space
CN101187877A (en) * 2007-12-10 2008-05-28 上海北大方正科技电脑系统有限公司 Computer system loading method
CN101609393A (en) * 2009-07-21 2009-12-23 北京数帅科技有限公司 The operating system access of non-LVM is based on the method for the memory device of LV volume
CN102135860A (en) * 2010-01-26 2011-07-27 英业达股份有限公司 Method for automatically programming volume of hard disk

Also Published As

Publication number Publication date
CN102214074A (en) 2011-10-12

Similar Documents

Publication Publication Date Title
US9164895B2 (en) Virtualization of solid state drive and mass storage drive devices with hot and cold application monitoring
CN107908571B (en) Data writing method, flash memory device and storage equipment
KR102329762B1 (en) Electronic system with memory data protection mechanism and method of operation thereof
CN101236524A (en) Hybrid hard disk drive, computer system including the same, and flash memory DMA circuit
US20080229046A1 (en) Unified support for solid state storage
TW201841118A (en) Method and apparatus for providing multi-namespace using mapping memory
US20200293191A1 (en) Electronic system with storage management mechanism and method of operation thereof
CN108132890B (en) Garbage recycling method, device and equipment for memory chip and storage medium
CN102110196A (en) Method and system for safely transmitting data among parallel-running multiple user operating systems
KR101805627B1 (en) Method and apparatus for controlling booting of computer system
CN104572656A (en) Method and device for recycling space of disk mirror image
CN103092673A (en) Snapshot processing method and device for virtual machine
US20150131379A1 (en) Bad block compensation for solid state storage devices
CN111736945A (en) Virtual machine thermal migration method, device, equipment and medium based on intelligent network card
US8930968B2 (en) Method and driver for processing data in a virtualized environment
CN106095528A (en) A kind of method detecting virtual machine drive
CN114765051A (en) Memory test method and device, readable storage medium and electronic equipment
CN103229150A (en) Data control method and system
CN105653539A (en) Index distributed storage implement method and device
US9535796B2 (en) Method, apparatus and computer for data operation
CN102214074B (en) Storage device in computer system and control method of storage device
CN107766385B (en) Method and equipment for converting file format of virtual disk
US20180032351A1 (en) Information processing method and storage device
CN104268005B (en) Virtual machine awakening method and device
US20080281992A1 (en) Method for detecting order of attached devices and computer readable storage media storing program thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant