CN1131478C - Equipment and method for inventing one hard disk being several independent and isolated subdisks - Google Patents

Equipment and method for inventing one hard disk being several independent and isolated subdisks Download PDF

Info

Publication number
CN1131478C
CN1131478C CN 00114264 CN00114264A CN1131478C CN 1131478 C CN1131478 C CN 1131478C CN 00114264 CN00114264 CN 00114264 CN 00114264 A CN00114264 A CN 00114264A CN 1131478 C CN1131478 C CN 1131478C
Authority
CN
China
Prior art keywords
magnetic track
virtual subnet
dish
hard disk
track
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.)
Expired - Fee Related
Application number
CN 00114264
Other languages
Chinese (zh)
Other versions
CN1324023A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN 00114264 priority Critical patent/CN1131478C/en
Publication of CN1324023A publication Critical patent/CN1324023A/en
Application granted granted Critical
Publication of CN1131478C publication Critical patent/CN1131478C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Storage Device Security (AREA)

Abstract

The present invention relates to a method for mapping a hard disk into a plurality of mutually isolative physical hard disks and equipment thereof. The present invention is characterized in that a device is arranged between the hard disk and an IDE interface, or an input/output module which runs when a computer is started is reconstructed; in this way, after the computer is started, according to prearranged requirements, one of a plurality of mutually isolative parts which belong to the same physical hard disk is accessed, and other parts are not operated at all. Thus, the data in one hard disk is ensured to be absolutely safe in different environments.

Description

A hard disk is invented the apparatus and method of a plurality of independent son dishes that are isolated from each other
Technical field
The present invention relates to the memory management technique in the computer system, more particularly, relate to a kind of apparatus and method that a hard disk invented a plurality of independent son dishes that are isolated from each other.
Background technology
In the prior art, a physical computer hard disk, can be by partition, set up logical device and realize virtual a plurality of logical device, promptly a physical hard disk can be mapped to C, D, three or more memory devices of E, distribute to different users or operation and use, but any one constantly, a plurality of hard disks that map out are to exist simultaneously or inter-related, in other words, several logical device are not what be isolated from each other.This just brings problem to security, particularly under network environment, if outer net and Intranet are used such hard disk, (use driver C even use logical memory device different but that do not isolate as Intranet, outer net uses driver D), also there is great security hidden danger, for this reason, having patent to propose to use two discrete hard disks that are isolated from each other to take precautions against data by intranet and extranet is damaged, specifically be when the start energising, to determine only to one of them hard disk drive energising, to guarantee under any applied environment, can not influence employed another hard disk of another environment, obviously, its prerequisite is to use two (or a plurality of) can distinguish the hard disk of independent its energising of control (or work).
Summary of the invention
The technical problem to be solved in the present invention is, how a kind of method and apparatus that a hard disk is invented a plurality of independent son dishes that are isolated from each other is provided, utilize this method and apparatus, can effectively realize the isolation of a hard disk different storage zone, promptly pass through this virtual bench, the different piece on hard disk can exist each other fully isolator, in other words, during to one of them access, another is definitely idle, vice versa.Utilize this apparatus and method of the present invention, can with conventional hard equipment together, realize a physical hard disk is separated into two or more physical vlan hard disks that are isolated from each other, thereby guarantee data security and the making full use of of hard disc storage capacity.
The above-mentioned technical matters of the present invention solves like this, structure invents a hard disk in the device of a plurality of sub-hard disks of independence that are isolated from each other, it is characterized in that, this device is connected between former hard disk and the host hard drive interface, but make the storage space of described a plurality of independent virtual subnet dishes occupy the continuous storage space that described hard disk mutually disjoints respectively but have only an access in described at any time a plurality of independent virtual subnet dish, but described device comprise control module and parameter storage unit be used to store the parameter of former hard disk and each described independent virtual subnet dish the access storage space initial magnetic track and finish magnetic track, total track number sum of the end magnetic track of each independent virtual subnet dish and the difference of initial magnetic track is less than or equal to total track number of described former hard disk.
According to device provided by the invention, it is characterized in that, described device is when installing configuration, read hard disk praameter from described former hard disk, and be provided with according to the user and need virtual subnet dish number and each virtual subnet disk space requirement, determine the disk parameter of each virtual subnet dish, each virtual subnet dish difference each other is initial magnetic track and finishes magnetic track.
According to device provided by the invention, it is characterized in that, described device is when main frame powers up initialization, described control module selects signal and parameter storage unit to determine that current virtual subnet folds beginning magnetic track Sj, finishes magnetic track Lj according to the outside, and it is passed to described main frame as current physical hard disk parameter by hard-disk interface; The initial magnetic track of described current physical hard disk parameter is zero, and finishing magnetic track is Lj-Sj, and Lj and Sj are natural numbers, wherein, and Lj>Sj.
According to device provided by the invention, it is characterized in that, described control module is when receiving the read-write of host hard drive interface, fold beginning magnetic track and track number addition with powering up current virtual subnet that initialization determines from hard-disk interface, if addition result finishes magnetic track less than current virtual subnet dish, then, be sent to former hard disk with other data with the result of this addition initial magnetic track as the former disk of access, if addition result finishes magnetic track greater than current virtual subnet dish, then return the read-write mistake.
According to device provided by the invention, it is characterized in that described outside selection signal can be network seletion signals or user identification signal.
According to device provided by the invention, it is characterized in that, with C magnetic track (0,1, C-1) former hard disk partition is the individual virtual subnet dish of n (n 〉=2) that is adjacent to each other, described control module is determined the initial magnetic track of current virtual subnet dish (minidisk), end magnetic track like this when configuration is installed, the track number of j virtual subnet dish is defined as Cj=(Lj-Sj) by the difference that finishes track number Lj and initial magnetic track Sj, and this track number is imported definite by the user, wherein, S1=0, L1=C1-1, S2=C1, L2=C2-1, S3=C2.。。, i.e. Si=Ci-1, Li=CI, and if outside select signal select i (the individual virtual subnet dish of 1≤i≤n), current initial magnetic track then be set be ∑ Cj (j=1, i-1), be provided with current end magnetic track ∑ Cj (j=1, i-1)+Ci.
According to device provided by the invention, it is characterized in that described control module can be a microprocessor or a logical circuit.
Another technical matters of the present invention realizes like this, construct a kind of method that a hard disk is invented a plurality of sub-hard disks of independence that are isolated from each other, the basic input that can move when transforming machine startup/go out module BIOS to realize, specifically may further comprise the steps: with the hard disc storage capacity spatial division is a plurality of n that are isolated from each other parts (n>1), wherein the initial magnetic track of i part is that Si finishes magnetic track Li, when starting up BIOS, use the outside select command of which part that current initial track number and maximum track number are set, and it is rewritten among the BIOS hard disk addressing maximum address magnetic track and changes that the disk read-write function makes each read-write add certain deviation on the primary track basis among the BIOS according to expression.Above-mentioned division, setting all are that operating personnel directly are set in the machine by man-machine interface and man-machine interface.
Implement the apparatus and method that a hard disk invented a plurality of independent son dishes that are isolated from each other provided by the invention, the input that this device can be connected between hard disk and the host interface or move when transforming machine startup/go out module (BIOS), after being implemented in start, according to predefined requirement, automatically select to belong to same physical hard disk and be implemented in being perfectly safe of data under the hard disk environment but in a plurality of parts of being isolated from each other one carries out access (part then is failure to actuate fully in addition).On the basis that this hard disk is isolated, also can the virtual subnet dish be formatd and logical partition as conventional hard, except solving the network data security problem, more can solve data confidentiality problem under the multi-user environment.
Description of drawings
Fig. 1 is the theory diagram of device of the present invention.
Fig. 2 is the schematic flow sheet of the parameter configuration of device of the present invention.
Fig. 3 powers on and the process flow diagram of data in magnetic disk read-write at every turn.
Fig. 4 is based on the parameter configuration process flow synoptic diagram that passes through to rewrite BIOS parameter and increase expanded BIOS module realization the inventive method of software;
Fig. 5 is based on the initialization and the hard disc data read-write process synoptic diagram of software.
Embodiment
Below, in conjunction with the accompanying drawings and embodiments, further specify characteristics of the present invention:
Fig. 1 illustrates the structure situation of an embodiment of device of the present invention, this device can be connected the IDE bus of main frame 1 or other bus interface and by between the physical vlan hard disk 10, the one side of this device connects mainboard ide interface 1, connect hard disk 10 on the other hand, other has a configuration interface 5 and a selection signaling interface 9, the former is used for this interface is connected with PC and finishes setting to virtual hard disk by the operation on this PC, the latter is used for selecting to use the signal of which virtual hard disk to pass to this device the user when each start, control module 7 and command register 6 that this device is connected with bus except these four ports in addition, be connected with parameter register 3 with control module 7, described parameter register 3 is provided with interface 5 by interface processing unit 4 and configuration and is connected, described user's selection mode interface unit 9 is connected with described control module 7, described command register 6 also is connected with control module 7 can be by these control module 7 direct accesses, described control module 7 is connected to by virtual hard disk by IDE emulation interface 8, described bus is connected to mainboard 1 by the hard disk emulation interface, this control module 7 can be realized by a microprocessor, also can be realized by a logical circuit.Configuration interface 5 is used for the PC communication and passes data mutually, realizes that virtual subnet dish parameter is provided with, and this interface can be RS-232 interface or other interfaces; User Status selection mode interface 9 can be the level signal that accepting state signal, switch or other circuit transmit.
Interface processing unit 4 is used for the communication signal on the processing configuration interface 5, and the parameter that configures is deposited in parameter register 3.
Parameter register 3 is used to deposit hard disk praameter, virtual subnet disk parameter.
Command register 6 is used to receive the control command that ide interface is sent on the mainboard.
Control module 7 is used for the parameter of processing command register 6, is the data in the command register 6 and passes to hard disk that according to the data conversion in user's selection mode interface 9 and the parameter register 3 the various data that the hard disk that receives is transmitted send mainboard to.
The function of described control module 7 is mainly reflected in three links: 1) configuration is installed; 2) power-up initializing; 3) reading writing harddisk data.Division is as follows:
1) configuration is installed; The PORT COM that promptly connects a PC by configuration interface 5, this PC can be the PC that apparatus of the present invention are installed, it also can be other PC, need only PC and can communicate by configuration interface, by operation install software on this PC to apparatus of the present invention in parameter such as virtual subnet dish be configured, its process is like this: PC operational factor configuration software, read hard disk praameter from former hard disk, import virtual subnet dish number and size by the user, and the rights of using of each virtual subnet dish (condition), control module is provided with according to the user and needs virtual subnet dish number and each sub-hard drive space requirement, determine the disk parameter of each virtual subnet dish, each virtual subnet dish difference each other is initial magnetic track and finishes magnetic track, and with following data storage in the storage unit of this device:
1. all parameters of former hard disk comprise total track number, initial magnetic track and finish magnetic track etc.;
2. virtual subnet dish number n;
3. N virtual subnet dish at the initial magnetic track of former hard disk, finish disk parameter such as magnetic track;
4. the rights of using of each virtual subnet dish.
Fig. 2 shows the layoutprocedure of a simplification.
2) power-up initializing, promptly after finishing configuration, each computing machine powers up when starting determines current son dish according to user mode, and current son dish data is passed to the process of hard disc of computer interface.Following several links is specifically arranged:
1. read former hard disk praameter;
2. the former hard disk praameter with the parameter that reads and memory cell storage compares, if identically carry out following steps, if inequality, " hard disk mistake " information of then returning is given the host hard drive interface;
3. check current state, (network operating position or user situation) determines current virtual subnet dish according to the rights of using of the virtual subnet dish in this state and the storage unit,
4. according to the content that prestores in the current son dish corresponding stored unit, determine initial magnetic track, end magnetic track and other data in magnetic disk of current son dish, these current son dish data are passed to the hard disc of computer interface.
3) reading writing harddisk data.
When receiving the disk read-write data from main frame, initial magnetic track of current sub-disk that initialization determines and track number addition from hard-disk interface will be powered up, if addition result finishes magnetic track less than current son dish, then with the result of this addition initial magnetic track as the former disk of access, be sent to former hard disk with other data and carry out the data in magnetic disk read-write, if addition result finishes magnetic track greater than current sub-disk, then return the read-write mistake.
An example flow block diagram of power-up initializing and hard disc data read-write is shown in 3.The PC initialization is performed such, and after powering on, reads hard disk praameter, and it and parameter in the parameter register are compared, and as inconsistent, thinks the disk mistake; As both unanimities of comparative result, then read corresponding hard disk praameter and pass to PC, for showing and storage according to the current selection mode parameter of reading; When carrying out the hard disc data read-write, carry out parameter modification according to the disk read-write order of PC, mainly be that magnetic track adds a side-play amount, carry out conventional data in magnetic disk read-write at last.
As shown in Figure 4 and Figure 5, the inventive method can realize by rewriting bios program, concrete is exactly after executing existing bios program, carry out the hard drive program rewriting by a new module, the content of rewriting is exactly the initial magnetic track of addressing, this initial track data by when start the user select which network or have which user to determine, for example 900 magnetic tracks altogether can be divided into 2 parts, the 0-599 magnetic track is distributed to Intranet (or user A), the 600-899 magnetic track is distributed to outer net and is used (or user B), like this, when when start, selecting to enter outer net (can realize) by switch, hard disk management program through rewriting is considered as a physical hard disk (for example C :) with the storage space of 600-899 magnetic track, the actual access of magnetic track 0 is magnetic track 600 in the application program, owing to be to revise at bottom, therefore can carry out partition by disk utility more on this basis, be divided into several logic magnetic discs (C for example:, D:E :), at this moment, the part (magnetic track 0-599) that is equivalent to belong to Intranet user is irrelevant fully with the part of working, and can not carry out any operation to it.Equally, if select to enter Intranet during start, the actual access of magnetic track 0 is that magnetic track also is a magnetic track 0 in the application program, simultaneously, the maximum address scope of magnetic track is 0-599, and is same, partition becomes several logic magnetic discs (C for example:, D :) on this basis, at this moment, outer mesh portions (magnetic track 600-899) is irrelevant fully with the part of working, and can not carry out any operation to it.In addition, also comprise the step that zone bit is set according to network seletion signals or other switching signal.
Fig. 4 illustrates the parameter configuration process, and the virtual subnet dish of consequently user being determined is drawn parameter and is stored in the expanded BIOS parameter region; Fig. 5 illustrates and powers up operation and hard disc data read-write process at every turn, and its process mainly is to calculate read-write disk track side-play amount.

Claims (10)

1, a hard disk is invented the device of a plurality of sub-hard disks of independence that are isolated from each other, be connected between former hard disk and the host hard drive interface, but make the storage space of described a plurality of independent virtual subnet dishes occupy the continuous storage space that described hard disk mutually disjoints respectively but have only an access in described at any time a plurality of independent virtual subnet dish, it is characterized in that, but comprise control module and one be used to store the parameter of former hard disk and each described independent virtual subnet dish the access storage space initial magnetic track and finish the storage unit of magnetic track parameter, total track number sum of the end magnetic track of each independent virtual subnet dish and the difference of initial magnetic track is less than or equal to total track number of described former hard disk, when being installed, configuration determines each virtual subnet dish starting and ending magnetic track and be stored in described storage unit in hard disk, when main frame powers up initialization, transfer the starting and ending magnetic track of selected virtual subnet dish to current physical hard disk parameter, when carrying out the read-write of current physical hard disk, the read-write of virtual subnet disk track is converted into the read-write of its corresponding hard disk magnetic track.
2, device according to claim 1, it is characterized in that, it is described when configuration is installed, read hard disk praameter from described former hard disk, and be provided with according to the user and need virtual subnet dish number and each virtual subnet disk space requirement, determine the disk parameter of each virtual subnet dish, the difference between each virtual subnet dish is initial magnetic track and finishes magnetic track.
3, device according to claim 2, it is characterized in that, described device is when main frame powers up initialization, described control module selects signal and parameter storage unit to determine that current virtual subnet folds beginning magnetic track Sj, finishes magnetic track Lj according to the outside, and it is passed to described main frame as current physical hard disk parameter by hard-disk interface; The initial magnetic track of described current physical hard disk parameter is zero, and finishing magnetic track is Lj-Sj, and wherein, Sj, Lj are integer, Lj>Sj.
4, device according to claim 3, it is characterized in that, described control module is when receiving the read-write of host hard drive interface, fold beginning magnetic track and track number addition with powering up current virtual subnet that initialization determines from hard-disk interface, if addition result finishes magnetic track less than current virtual subnet dish, then with the result of this addition initial magnetic track as the former disk of access, be sent to former hard disk with other data, if addition result finishes magnetic track greater than current virtual subnet dish, then return the read-write mistake.
According to the described device of claim 3, it is characterized in that 5, described outside selection signal can be network seletion signals or user identification signal.
6, according to the described device of claim 1, it is characterized in that, is n the virtual subnet dish that is adjacent to each other with the former hard disk partition of C magnetic track, n 〉=2; Described control module so definite current virtual subnet when the installation configuration is folded beginning magnetic track, end magnetic track, the track number of j virtual subnet dish is defined as Cj=Lj-Sj by the difference that finishes track number Lj and initial magnetic track Sj, this track number is imported definite by the user, wherein, and S1=0, L1=C1-1, S2=C1, L2=C2-1, S3=C2,, i.e. Si=C I-1, Li=C IAnd if select i virtual subnet dish at the outside signal of selecting, 1≤i≤n, it is C1+C2+ that current initial magnetic track then is set ... + Ci-1, current end magnetic track C1+C2+ is set ... + Ci, wherein, C1, C2 ... Ci, S1, S2 ... Si and L1, L2 ... Li is respectively the sub-disk track number of expression, initial magnetic track and the natural number that finishes magnetic track.
According to any one described device of claim 1-5, it is characterized in that 7, described control module can be a microprocessor or a logical circuit.
8, a kind of method that a hard disk is invented a plurality of sub-hard disks of independence that are isolated from each other, the basic input that can move when transforming machine startup/go out module BIOS to realize is characterized in that comprising the step of virtual subnet dish being set when installing and powering up the step of taking out the setting of virtual subnet dish and the step of revising parameter when reading and writing data.
9, described according to Claim 8 method, it is characterized in that, the described step that the virtual subnet dish is set when mounted comprises: is a plurality of parts that are isolated from each other according to customer requirements with the hard disc storage capacity spatial division, and the magnetic track information of each part is stored in expanded BIOS.
10, described according to Claim 8 method, it is characterized in that, the step of taking out the setting of virtual subnet dish during described powering up comprises according to User Status to be selected virtual subnet dish parameter, determines track offset and revise BIOS data in magnetic disk read according to virtual subnet dish parameter, replaces with expanded BIOS; The described step of revising parameter when reading and writing data is included on the former read-write magnetic track basis and adds certain deviation.
CN 00114264 2000-05-13 2000-05-13 Equipment and method for inventing one hard disk being several independent and isolated subdisks Expired - Fee Related CN1131478C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 00114264 CN1131478C (en) 2000-05-13 2000-05-13 Equipment and method for inventing one hard disk being several independent and isolated subdisks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 00114264 CN1131478C (en) 2000-05-13 2000-05-13 Equipment and method for inventing one hard disk being several independent and isolated subdisks

Publications (2)

Publication Number Publication Date
CN1324023A CN1324023A (en) 2001-11-28
CN1131478C true CN1131478C (en) 2003-12-17

Family

ID=4583970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 00114264 Expired - Fee Related CN1131478C (en) 2000-05-13 2000-05-13 Equipment and method for inventing one hard disk being several independent and isolated subdisks

Country Status (1)

Country Link
CN (1) CN1131478C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7107385B2 (en) * 2002-08-09 2006-09-12 Network Appliance, Inc. Storage virtualization by layering virtual disk objects on a file system
US20080052708A1 (en) * 2004-12-31 2008-02-28 Juhang Zhong Data Processing System With A Plurality Of Subsystems And Method Thereof
US8627000B2 (en) * 2010-02-08 2014-01-07 Microsoft Corporation Virtual disk manipulation operations
CN101893999A (en) * 2010-06-08 2010-11-24 孟智平 System for virtually partitioning storage device into multiple devices
CN102339257A (en) * 2010-07-27 2012-02-01 董建飞 Hard disk and method for dividing and controlling storage space
CN103731402B (en) * 2012-10-12 2018-07-24 腾讯科技(深圳)有限公司 The access method and device of flag bit
CN109656764B (en) * 2018-12-18 2021-11-19 郑州云海信息技术有限公司 Method and system for automatically verifying independent power-on and power-off control of hard disk
CN111539034B (en) * 2020-06-21 2020-10-23 深圳市安信达存储技术有限公司 Solid state disk dual-protocol encryption method and device and solid state disk encryption chip

Also Published As

Publication number Publication date
CN1324023A (en) 2001-11-28

Similar Documents

Publication Publication Date Title
US11614873B2 (en) Virtual disk storage techniques
US6209059B1 (en) Method and apparatus for the on-line reconfiguration of the logical volumes of a data storage system
US9058125B2 (en) Computer system, computer and method for performing thin provisioning capacity management in coordination with virtual machines
US9201603B2 (en) Dynamic logical mapping
CN102667740B (en) Boundary alignment by data storage device subregion Yu physical data sector
US7215580B2 (en) Non-volatile memory control
US7984227B2 (en) Connecting device of storage device and computer system including the same connecting device
US7263596B1 (en) Logical library architecture for data storage applications and methods of use
JP4648751B2 (en) Storage control system and storage control method
US20030212854A1 (en) Computer system
US20110066823A1 (en) Computer system performing capacity virtualization based on thin provisioning technology in both storage system and server computer
JP4579492B2 (en) Method for securing drive access to a data storage medium based on a medium identifier
GB2377284A (en) Storage system with a point in time copy function
WO2007019059A2 (en) Interfacing systems operating through a logical address space and on a direct data file basis
GB2384884A (en) Concurrent relocation of sectors
US20070016745A1 (en) Method and apparatus for migrating data between heterogeneous data storage devices
CN1391672A (en) Raid controller system and method with ATA emulation host interface
WO2002056179A1 (en) Method for regenerating partition using virtual drive, data processor and data storage device
CN1131478C (en) Equipment and method for inventing one hard disk being several independent and isolated subdisks
EP0806005A2 (en) Method and arrangement for operating a mass memory storage peripheral computer device connected to a host computer
US7568069B2 (en) Method for creating a large-scale storage array system out of multiple mid-range storage arrays
JP4308152B2 (en) Method, system, and product for reserving memory
US20040148459A1 (en) RAID configuration protocol for SCSI drives and RAID controllers
CN1577252A (en) Method and equipment for automatic assembling equipment and driving program
Milligan et al. Online Storage Virtualization: The key to managing the data explosion

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
C19 Lapse of patent right due to non-payment of the annual fee
CF01 Termination of patent right due to non-payment of annual fee