CN103678140A - Method for data storage and electronic equipment - Google Patents
Method for data storage and electronic equipment Download PDFInfo
- Publication number
- CN103678140A CN103678140A CN201210322511.6A CN201210322511A CN103678140A CN 103678140 A CN103678140 A CN 103678140A CN 201210322511 A CN201210322511 A CN 201210322511A CN 103678140 A CN103678140 A CN 103678140A
- Authority
- CN
- China
- Prior art keywords
- data
- stored
- data storage
- track
- storage surface
- 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.)
- Pending
Links
- 238000013500 data storage Methods 0.000 title claims abstract description 169
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000003860 storage Methods 0.000 claims abstract description 103
- 230000005055 memory storage Effects 0.000 claims description 3
- 230000008569 process Effects 0.000 description 19
- 238000010586 diagram Methods 0.000 description 12
- 238000004590 computer program Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005194 fractionation Methods 0.000 description 2
- 241000931705 Cicada Species 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention provides a method for data storage. According to the method, stored data can be divided into at least two to-be-stored data, the first to-be-stored datum of the two to-be-stored data is stored on a Jth first data storage rail of a first data storage face in a first data storage device, and the second to-be-stored datum is stored on a Jth first data storage rail of a second data storage face. Accordingly, a portion of to-be-stored data are divided into at least two to-be-stored data to be stored on the symmetric data storage rails of symmetric sectors of symmetric storage faces, the portion of the to-be-stored data can be stored separately, storage time of data is shortened and storage efficiency of the data is improved.
Description
Technical field
The present invention relates to electronic technology field, relate in particular to a kind of method and electronic equipment of storing data.
Background technology
Raising along with electronic technology, the processing power of electronic equipment is also greatly improved, certainly, manage aloft under the prerequisite of speed, just need the data storage of electronic equipment and speed that data read to carry out the high speed processing of supported data, such as, in existing hard disk, in hard disk, be provided with at least two discs, each disc has two storage surfaces, after the full data of storage space storage of a storage surface, other data will be stored in another storage surface, and be all provided with two magnetic heads at each storage surface, thereby make each magnetic head can read the data of storing in each storage surface.
But the inventor is in implementing process of the present invention, in discovery prior art, there is following technical matters or defect:
In prior art hard-disc storage data can only be data storage at a storage surface of disc full after, other data could be stored on another storage surface, that is to say and need a magnetic head to complete separately data storage, the data in hard disk storage speed so just causing is slow, storage efficiency is low, thereby the space utilization rate of hard disk is reduced.
Because hard disk of the prior art is that complete data are stored on a storage surface, therefore, when magnetic head reads the data of storage, can only be, magnetic head reading out data on a storage surface, thereby cause the speed of hard disk reading out data slow, reduced the data reading speed of hard disk.
Summary of the invention
The invention provides a kind of method and electronic equipment of storing data, for solve prior art hard-disc storage data can only be data storage at a storage surface of disc full after, other data could be stored on another storage surface to the slow technical matters of storage speed in the hard disk causing.
Concrete technical scheme is as follows:
A kind of method of storing data, be applied to an electronic equipment, described electronic equipment at least comprises the first data fetch device and the second data fetch device, and at least one the first data storage device, wherein, described the first data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, and described method comprises:
Obtain data block to be stored;
According to preset rules, described data block to be stored is divided into at least two data to be stored, wherein said two data to be stored are the first data to be stored and the second data to be stored;
Described the first data to be stored are stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1.
Optionally, describedly according to preset rules, described data to be stored are divided into the first data to be stored and the second data to be stored, are specially: according to default algorithm, described data block to be stored is divided into described the first data to be stored and described the second data to be stored that data volume equates.
Optionally, the default algorithm of described basis is divided into by described data block to be stored described the first data to be stored and described the second data to be stored that data volume equates, be specially: according to described default algorithm, the odd bits data in described data block to be stored are divided into described the first data to be stored, the even bit data in described data block to be stored are divided into described the second data to be stored.
Optionally, described J the first data storage track that described the first data to be stored is stored in to described the first data storage surface, is stored in described the second data to be stored J the second data storage track of described the second storage surface, is specially:
Described the first data to be stored are stored in to described J the first data storage track of the first covering of the fan of described the first storage surface, described the second data to be stored are stored in to described J the first data storage track of the second covering of the fan of described the second storage surface, wherein, described the first covering of the fan and described the second covering of the fan are symmetrical covering of the fan.
Optionally, when described two data to be stored comprise the 3rd data to be stored, described method also comprises:
Described the 3rd data to be stored are stored in J first data storage track of arbitrary covering of the fan of the 3rd storage surface of the second memory storage.
A kind of method of reading out data, be applied to an electronic equipment, described electronic equipment at least comprises the first data fetch device and the second data fetch device, an and data storage device, wherein, described data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, obtain data block to be stored, according to preset rules, described data block to be stored is at least divided into the first data to be stored and the second data to be stored, described the first data to be stored are stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1, described method comprises:
Obtain the store path of described the first data to be stored and the second data to be stored;
According to the described store path obtaining, described data fetch device is moved and caused on described J the track that described store path is corresponding, and described in starting, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously.
Optionally, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously described in described startup, comprising:
In first moment, start described the first data to be stored that described the first data fetch device reads described first the above J of data storage surface the first data storage track;
In described first moment, start described the second data to be stored that described the second data fetch device reads described second the above J of data storage surface the first data storage track.
Optionally, after described in described startup, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously, described method also comprises:
According to preset rules, described the first data to be stored and described the second data to be stored are processed, obtain described data block to be stored.
A kind of electronic equipment, described electronic equipment at least comprises the first data fetch device and the second data fetch device, and at least one the first data storage device, wherein, described the first data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, and described electronic equipment also comprises:
The first acquiring unit, for obtaining data block to be stored;
Data division unit, for according to preset rules, described data block to be stored being divided into at least two data to be stored, wherein said two data to be stored are the first data to be stored and the second data to be stored;
Processing unit, for described the first data to be stored being stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1.
Optionally, described data division unit is specifically for being divided into by described data block to be stored described the first data to be stored and described the second data to be stored that data volume equates according to default algorithm.
Optionally, described data division unit also, for the odd bits data of described data block to be stored being divided into described the first data to be stored according to described default algorithm, is divided into described the second data to be stored by the even bit data in described data block to be stored.
Optionally, described electronic equipment also comprises:
Second acquisition unit, for obtaining the store path of described the first data to be stored and the second data to be stored;
Reading unit, the described store path obtaining for basis, described data fetch device is moved and caused on described J the track that described store path is corresponding, and described in starting, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously.
Optionally, described reading unit comprises:
The first data fetch device, in first moment, reads described first data to be stored of described first the above J of data storage surface the first data storage track;
The second data fetch device, in described first moment, reads described second data to be stored of described second the above J of data storage surface the first data storage track.
, at least there is following technique effect or advantage in the method for storage data that the embodiment of the present invention provides and the method for reading out data and electronic equipment:
In the embodiment of the present invention, portion data to be stored are divided in the symmetric data storage track that at least two parts of data to be stored are stored in the symmetrical covering of the fan of symmetrical storage face, thereby by separately storage of a piece of data, reduce like this storage time of data, improved the storage efficiency of data.
By the method for reading data in the embodiment of the present invention, the method can read the data on two or more storage surfaces simultaneously, thereby improved greatly the reading speed of data, reduced the time that data read, improved the data reading performance using redundancy of electronic equipment.Also further improved electronic device works efficiency.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram of storing data of the embodiment of the present invention;
Fig. 2 is the structural representation of hard disc in the embodiment of the present invention;
Fig. 3 is the method flow diagram of a kind of reading out data of the embodiment of the present invention;
Fig. 4 is the concrete structure schematic diagram of a kind of electronic equipment of the embodiment of the present invention.
Embodiment
The embodiment of the present invention provides a kind of method of storing data, storage data can be divided to two at least two data to be stored in the method, and the first data to be stored in these two data to be stored are stored in J the first data storage track of the first data storage surface in the first data storage device, the second data to be stored are stored in J the first data storage track of the secondth data storage surface, thereby solve memory device stores data in existing prior art and can only be data storage at a storage surface of disc full after, other data could be stored on another storage surface, the slow problem of storage speed in the hard disk causing.
Below by accompanying drawing and specific embodiment, technical scheme of the present invention is described further, be to be understood that, concrete technical characterictic in the embodiment of the present invention and embodiment is detailed description of the invention, rather than the restriction of technical solution of the present invention, in the situation that not conflicting, the specific features in the embodiment of the present invention and embodiment can combine mutually.
Be illustrated in figure 1 a kind of method flow diagram of storing data of the embodiment of the present invention.
Method in the embodiment of the present application is applied in an electronic equipment, this electronic equipment can be hard disk, the data storage devices such as portable hard drive, this electronic equipment at least comprises the first data read apparatus and the second data fetch device, and at least one the first data storage device, wherein, the first data storage device comprises the first data storage surface and the second data storage surface, on the first data storage surface, there is N the first data storage track, on the second data storage surface, be provided with N the second data storage track with N the first data storage track symmetry, N is more than or equal to 1 positive integer.
Specifically, in the method application and a hard disk, at least comprise a disc in this hard disk, this disc comprises two storage surfaces, and is symmetrically arranged with N data storage track on two storage surfaces.If in the prior art, electronic equipment is after getting data to be stored, can send the data to hard disk, thereby hard disk is stored in these data in the characteristic storage track of a storage surface of disc, and the path of this storage is stored in to the memory location of feature, thereby can transfer this store path when reading out data, carry out reading of data.
But the storage mode of this data makes data rate memory slow in the prior art, the efficiency of data storage is low, therefore, the method for storage data is provided in of the present invention, thereby has solved the problems of the technologies described above, and the method comprises:
Get data block to be stored in step 101 after, electronic equipment will be resolved this data block to be stored, and be determined the size of this data block to be stored and determined the required storage space of this data block to be stored by parsing.
After having determined, electronic equipment splits computing by the first operation rule based on default to this data block to be stored.The detailed process that splits computing is:
First, obtain the size of this data block to be stored, such as: this this data block to be stored is 100KB.Now, this difference algorithm need to be divided into this data block to be stored two data to be stored, i.e. the first data block to be stored and the second data block to be stored.Such as, when this data block to be stored is 100KB, this electronic equipment is divided into this data block to be stored the data of the data of 70KB+30KB or the data of 50KB+50KB or 40KB+60KB, by a large amount of facts have proved of the present invention, when data block is divided into the first data to be stored of 50KB+50KB and the second data to be stored, by data block difference to be stored, be namely equal-sized two data, at this moment the datum number storage in electronic equipment is according to the fastest, and storage speed improves more obviously.
Certainly, in embodiments of the present invention, in electronic equipment, also store the second preset algorithm, based on the second preset algorithm, can make the security of data storage higher, specifically, this electronic equipment is after getting data block to be stored, electronic equipment will be stored data block to this and resolve, thereby determine odd bits data and even bit data in this data block to be stored, by wherein odd bits data be divided into the first data to be stored, even bit data are divided into the second data to be stored, in the second preset algorithm, be also that data block to be stored is divided into two data to be stored that size is identical.In this fractionation mode, data block is the fractionation of carrying out according to data bits, thereby has improved the security of data in this electronic equipment, makes this electronic equipment when there is no the second preset algorithm, cannot obtain these data.
Certainly, it will be appreciated by those skilled in the art that the Data Division mode providing in the embodiment of the present invention, can also have other Data Division modes, again do not repeat.
After Data Division completes, electronic equipment will perform step 103.
Specifically, passing through step 102, after data block to be stored is split as to the first data to be stored and the second data to be stored, step 103 is in specific implementation process, first, electronic equipment will be determined the store path of the first data to be stored, the location positioning that this path need to be stored according to this, after obtaining this store path, electronic equipment sends to the first data fetch device by these first data to be stored, this first data fetch device can be by data carving on the first data storage surface, this first data fetch device is after receiving these first data to be stored, according to the store path of the first storage data, these data are stored on the first data storage surface, specifically, exactly the first data to be stored are stored in J data storage track of the first data storage surface.
At synchronization, electronic equipment sends to the second data fetch device by the second data to be stored, wherein, corresponding the second data storage surface of the second data fetch device, this second data fetch device is after receiving these second data to be stored, by the store path obtaining in these second data to be stored simultaneously, then according to this store path, the second data to be stored are stored in J data storage track of the second data storage surface, wherein, J data storage track of the first data storage surface and J data storage track of the second data storage surface are two symmetrical data storage track.
Below by the situation that this date storage method is applied in hard disk, technical scheme of the present invention is described further.
At hard disk, comprise 3 discs, each disc comprises positive and negative two storage surfaces, and each storage surface has a corresponding magnetic head, this magnetic head can be stored data and reading out data, in embodiments of the present invention, and after hard disk receives data to be stored, first can resolve these data, determine the size of these data, if when these data are 100KB, these data can be divided into be all the first data to be stored and the second data to be stored of 50KB for hard disk or computer.
Then, hard disk sends to the first data to be stored the first magnetic head of the positive storage surface of disc, then the first magnetic head is stored in the first data to be stored of this 50KB on the 5th magnetic track of positive storage surface of disc, and determine the store path of these first data to be stored on positive storage surface simultaneously, to determine the position of these data below while reading.At the same time, hard disk sends to the second data to be stored the second magnetic head of negative storage surface, then the second magnetic head just the second data to be stored of 50KB be stored on the 5th magnetic track of negative storage surface of disc, clearly, positive the 5th magnetic track of storage surface and the 5th magnetic track of negative storage surface are the magnetic track about card symmetry.Certainly, in embodiments of the present invention, being stored on symmetrical magnetic track is optimum embodiment, is stored in the scope of also protecting in the present invention on different magnetic tracks.
By the data storage method in the embodiment of the present invention, can a piece of data be stored on two storage surfaces simultaneously, rather than single being completed by a storage surface, thereby improved greatly the speed of data storages, and improved the efficiency of data storages.
Further, in order further to improve the datum number storage certificate of hard disk, in embodiments of the present invention, when storage data, be first to determine the sector that is stored in hard disc, and then determine the storage track of these data to be stored, detailed process is:
After hard disk gets data block to be stored, hard disk or computer are divided into equal-sized the first data to be stored of data volume and the second data to be stored by this data block to be stored, then these first data to be stored are sent to the first magnetic head that positive storage surface is corresponding, the second data to be stored are sent to negative the second magnetic head corresponding to storage surface, then hard disk is determined the memory sector of the first data second to be stored data to be stored on hard disk, then determines this storage track in this sector.Such as, Figure 2 shows that hard disc schematic diagram in the embodiment of the present invention, in this embodiment of the present invention, first be but to determine the first data to be stored to be stored on the 3rd magnetic track in 1 sector as shown in Figure 2, the back side of this disc is also provided with 1 same sector and same magnetic track simultaneously, and be to be symmetrical arranged about card, therefore, the second data to be stored are by the 3rd magnetic track being stored in the symmetrical sector of another storage surface.
After having determined being stored as of the first data to be stored and the second data to be stored, the magnetic head that front storage surface is corresponding is stored in the first data to be stored on the 3rd magnetic track of 1 sector, at magnetic head corresponding to synchronization back side storage surface, the second data to be stored are stored on the 3rd magnetic track of 1 sector of back side storage surface, so just realized while a minute storage surface more than many parts have been stored data, reduce like this storage time of data, improved the storage efficiency of data.
In addition, improving on the basis of data rate memory, in order to make data in the security of memory device stores process, therefore, in an embodiment of the present invention before storage data, data to be stored are carried out to replicate run, thereby obtain two parts of identical data to be stored, then the piece of data in two parts of data to be stored is divided into the first data to be stored and second data to be stored of formed objects, and the first data to be stored are kept on 3 magnetic tracks of front storage surface 1 sector, the second data to be stored are kept on 3 magnetic tracks of negative storage surface 1 sector.
Another piece of data is divided into the 3rd data to be stored and the 4th data to be stored, its storage mode is identical with the storage mode of last piece of data, but need to be stored on another disc, in the case, if when cannot read appears in the data on a disc, hard disk can read the identical data on another disc, thereby can guarantee when data are made mistakes, hard disk can read another identical data, thereby makes data storage safer.
In addition, in embodiments of the present invention, a kind of division methods of data is also provided, namely data block to be stored is divided into the first data to be stored, the second data to be stored and the 3rd data to be stored, then the first data to be stored and the second data to be stored are stored on the symmetrical magnetic track of symmetrical sector of same storage surface, then the 3rd data to be stored are stored in the same track in arbitrary sector of the 3rd storage surface of the second memory storage, certainly, by the first data to be stored, it is optimum embodiment that the second data to be stored and the 3rd data to be stored are stored in identical sector.
Specifically, exactly the first data to be stored are stored on the 3rd magnetic track of positive 1 sector of a disc, the second data to be stored are stored on the 3rd magnetic track of 1 sector, the back side, then the 3rd data to be stored are stored on the 3rd magnetic track of another card 1 sector.When hard disk district reads any two data to be stored in the first data to be stored, the second data to be stored and the 3rd data to be stored, hard disk just can obtain data block to be stored, that is to say that hard disk is when read block, if during the arbitrary corrupted data to be stored in the first data to be stored, the second data to be stored and the 3rd data to be stored, as long as hard disk reads and can read two other data to be stored, hard disk can read data block to be stored.Thereby reduced the mistake that hard disk exists when reading out data, and the security that has improved hard disc data storage, convenience, and the work efficiency that has improved hard disk.
In addition, in embodiments of the present invention after data have been stored, a kind of method of reading out data is also provided in the embodiment of the present invention, be illustrated in figure 3 the method flow diagram of a kind of reading out data of the embodiment of the present invention, the method is applied in an electronic equipment, and this electronic equipment has comprised the storage means in Fig. 1, namely data block to be stored is being divided into the first data to be stored and the second data to be stored, and after being stored in symmetrical sector and symmetrical magnetic track, the method comprises:
In this step, it is mainly the regional location of determining reading the first data to be stored and the second data to be stored, such as, in hard disk, the first data to be stored are stored on 3 magnetic tracks of positive 1 sector of a disc, and the second data to be stored are to be stored on 3 magnetic tracks of 1 sector, the disc back side, thereby make hard disk can read accurately these the first data second to be stored data to be stored.
After getting the path of the first data to be stored and the second data to be stored, perform step 302.
First, determine store path in step 301 after, in electronic equipment, the first data fetch device and the second data fetch device will start simultaneously, and in corresponding position, go to read the first data to be stored and the second data to be stored according to store path.
Such as, in hard disk, it in the path that gets the first data to be stored, is 1 sector the 3rd magnetic track, when the path of the second data to be stored is 1 sector 3 magnetic track, hard disk will start positive corresponding the second magnetic head corresponding to the first magnetic head and the back side of the first disc simultaneously, then the first magnetic head and the second magnetic head are moved on 3 magnetic tracks that cause 1 sector, when then, the first magnetic head reads the first data to be stored on the 3rd magnetic track of positive 1 sector of disc, the second magnetic head is by the second data to be stored that read on the 3rd magnetic track of 1 sector, the disc back side.Namely hard disk will read the first data to be stored and the second storage data to be stored simultaneously, with respect to prior art, save data below half during data and read the time reading storage, thereby increased the speed that data read, and reduced the time that data read, increased the efficiency that data read.
Certainly, if when data to be stored are divided into three data to be stored, hard disk removes start 3 corresponding magnetic heads simultaneously to reading out data.
Further, after the first data to be stored and the second data to be stored have been read, hard disk carries out data operation by these first data to be stored and the second data to be stored according to default rule, thereby obtains the data block to be stored of original storage.And by this data output to be stored.So just complete the process that reads of whole data.
By the method for reading data in the embodiment of the present invention, the method can read the data on two or more storage surfaces simultaneously, thereby improved greatly the reading speed of data, reduced the time that data read, improved the data reading performance using redundancy of electronic equipment.Also further improved electronic device works efficiency.
The method of the corresponding embodiment of the present invention, a kind of electronic equipment that the embodiment of the present invention also provides, be illustrated in figure 4 the concrete structure schematic diagram of a kind of electronic equipment of the embodiment of the present invention, described in this, electronic equipment at least comprises the first data fetch device 402 and the second data fetch device 403, and at least one the first data storage device 401, wherein, described the first data storage device 401 comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, this electronic equipment also comprises:
The first acquiring unit 404, for obtaining data block to be stored;
Wherein, data division unit 405 is specifically for being divided into by data block to be stored the first data to be stored and the second data to be stored that data volume equates according to default algorithm.
This data division unit 405 can also user be divided into the first data to be stored according to default algorithm by the odd bits data in data block to be stored, and the even bit data in data block to be stored are divided into the second data to be stored.
This electronic equipment also comprises: second acquisition unit 407, for obtaining the store path of described the first data to be stored and the second data to be stored;
Reading unit 408, the described store path obtaining for basis, described data fetch device is moved and caused on described J the track that described store path is corresponding, and described in starting, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously.
At this reading unit 408, comprise the first data fetch device 402, in first moment, read described first data to be stored of described first the above J of data storage surface the first data storage track;
The second data fetch device 403, in described first moment, reads described second data to be stored of described second the above J of data storage surface the first data storage track.
, at least there is following technique effect or advantage in the method for storage data that the embodiment of the present invention provides and the method for reading out data and electronic equipment:
In the embodiment of the present invention, portion data to be stored are divided in the symmetric data storage track that at least two parts of data to be stored are stored in the symmetrical covering of the fan of symmetrical storage face, thereby by separately storage of a piece of data, reduce like this storage time of data, improved the storage efficiency of data.
By the method for reading data in the embodiment of the present invention, the method can read the data on two or more storage surfaces simultaneously, thereby improved greatly the reading speed of data, reduced the time that data read, improved the data reading performance using redundancy of electronic equipment.Also further improved electronic device works efficiency.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect completely.And the present invention can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
The present invention is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present invention, equipment (system) and computer program.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction of carrying out by the processor of computing machine or other programmable data processing device is produced for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame on computing machine or other programmable devices.
Although described the preferred embodiments of the present invention, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification and not depart from the spirit and scope of the present invention the present invention.Like this, if within of the present invention these are revised and modification belongs to the scope of the claims in the present invention and equivalent technologies thereof, the present invention is also intended to comprise these changes and modification interior.
Claims (13)
1. a method of storing data, be applied to an electronic equipment, described electronic equipment at least comprises the first data fetch device and the second data fetch device, and at least one the first data storage device, wherein, described the first data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, it is characterized in that, described method comprises:
Obtain data block to be stored;
According to preset rules, described data block to be stored is divided into at least two data to be stored, wherein said two data to be stored are the first data to be stored and the second data to be stored;
Described the first data to be stored are stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1.
2. the method for claim 1, it is characterized in that, describedly according to preset rules, described data to be stored are divided into the first data to be stored and the second data to be stored, are specially: according to default algorithm, described data block to be stored is divided into described the first data to be stored and described the second data to be stored that data volume equates.
3. method as claimed in claim 2, it is characterized in that, the default algorithm of described basis is divided into by described data block to be stored described the first data to be stored and described the second data to be stored that data volume equates, be specially: according to described default algorithm, the odd bits data in described data block to be stored are divided into described the first data to be stored, the even bit data in described data block to be stored are divided into described the second data to be stored.
4. method as claimed in claim 3, it is characterized in that, described J the first data storage track that described the first data to be stored is stored in to described the first data storage surface, is stored in described the second data to be stored J the second data storage track of described the second storage surface, is specially:
Described the first data to be stored are stored in to described J the first data storage track of the first covering of the fan of described the first storage surface, described the second data to be stored are stored in to described J the first data storage track of the second covering of the fan of described the second storage surface, wherein, described the first covering of the fan and described the second covering of the fan are symmetrical covering of the fan.
5. the method for claim 1, is characterized in that, when described two data to be stored comprise the 3rd data to be stored, described method also comprises:
Described the 3rd data to be stored are stored in J first data storage track of arbitrary covering of the fan of the 3rd storage surface of the second memory storage.
6. the method for a reading out data, be applied to an electronic equipment, it is characterized in that, described electronic equipment at least comprises the first data fetch device and the second data fetch device, an and data storage device, wherein, described data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, it is characterized in that, obtain data block to be stored, according to preset rules, described data block to be stored is at least divided into the first data to be stored and the second data to be stored, described the first data to be stored are stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1, described method comprises:
Obtain the store path of described the first data to be stored and the second data to be stored;
According to the described store path obtaining, described data fetch device is moved and caused on described J the track that described store path is corresponding, and described in starting, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously.
7. method as claimed in claim 6, is characterized in that, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously described in described startup, comprising:
In first moment, start described the first data to be stored that described the first data fetch device reads described first the above J of data storage surface the first data storage track;
In described first moment, start described the second data to be stored that described the second data fetch device reads described second the above J of data storage surface the first data storage track.
8. method as claimed in claim 6, is characterized in that, after described in described startup, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously, described method also comprises:
According to preset rules, described the first data to be stored and described the second data to be stored are processed, obtain described data block to be stored.
9. an electronic equipment, it is characterized in that, described electronic equipment at least comprises the first data fetch device and the second data fetch device, and at least one the first data storage device, wherein, described the first data storage device comprises the first data storage surface and the second data storage surface, on described the first data storage surface, there is N the first data storage track, on described the second data storage surface, be provided with N the second data storage track with described N the first data storage track symmetry, N is more than or equal to 1 positive integer, and described electronic equipment also comprises:
The first acquiring unit, for obtaining data block to be stored;
Data division unit, for according to preset rules, described data block to be stored being divided into at least two data to be stored, wherein said two data to be stored are the first data to be stored and the second data to be stored;
Processing unit, for described the first data to be stored being stored in to J the first data storage track of described the first data storage surface, for described the first data fetch device, read, described the second data to be stored are stored in to J the second data storage track of described the second storage surface, for described the second data fetch device, read, wherein, J is arbitrary integer between N and 1.
10. electronic equipment as claimed in claim 9, is characterized in that, described data division unit is specifically for being divided into by described data block to be stored described the first data to be stored and described the second data to be stored that data volume equates according to default algorithm.
11. electronic equipments as claimed in claim 9, it is characterized in that, described data division unit also, for the odd bits data of described data block to be stored being divided into described the first data to be stored according to described default algorithm, is divided into described the second data to be stored by the even bit data in described data block to be stored.
12. electronic equipments as claimed in claim 9, is characterized in that, described electronic equipment also comprises:
Second acquisition unit, for obtaining the store path of described the first data to be stored and the second data to be stored;
Reading unit, the described store path obtaining for basis, described data fetch device is moved and caused on described J the track that described store path is corresponding, and described in starting, at least two data fetch devices read described the first data to be stored and described the second data to be stored simultaneously.
13. electronic equipments as claimed in claim 12, is characterized in that, described reading unit comprises:
The first data fetch device, in first moment, reads described first data to be stored of described first the above J of data storage surface the first data storage track;
The second data fetch device, in described first moment, reads described second data to be stored of described second the above J of data storage surface the first data storage track.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210322511.6A CN103678140A (en) | 2012-09-03 | 2012-09-03 | Method for data storage and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210322511.6A CN103678140A (en) | 2012-09-03 | 2012-09-03 | Method for data storage and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103678140A true CN103678140A (en) | 2014-03-26 |
Family
ID=50315773
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210322511.6A Pending CN103678140A (en) | 2012-09-03 | 2012-09-03 | Method for data storage and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678140A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978324A (en) * | 2014-04-03 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN112130769A (en) * | 2020-09-18 | 2020-12-25 | 苏州浪潮智能科技有限公司 | A mechanical hard disk data processing method, device, equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1212417A (en) * | 1997-09-25 | 1999-03-31 | 王夜辉 | Multi-head type magnetic disc driver |
CN1226333A (en) * | 1996-05-24 | 1999-08-18 | 美国西加特技术有限公司 | Disc drive servo system with dual head sampling |
CN1252879A (en) * | 1997-04-18 | 2000-05-10 | 西加特技术有限公司 | Microactulor servo system in a disc drive |
CN1335592A (en) * | 2000-10-09 | 2002-02-13 | 郑文赛 | Multiple magnetic head parallel write/read system |
CN1527285A (en) * | 2003-03-07 | 2004-09-08 | 谢建全 | Hard disc read and written by multiple magnetic heads parallelly and parallel reading and writting method of hard disc by multiple magnetic heads |
CN1577501A (en) * | 2003-06-30 | 2005-02-09 | 株式会社东芝 | Method and apparatus for servo writing using incorporated servo writer in a disk drive |
CN101046975A (en) * | 2006-03-31 | 2007-10-03 | 国际商业机器公司 | Disk driver system and its control method |
CN101256777A (en) * | 2007-02-27 | 2008-09-03 | 日立环球储存科技荷兰有限公司 | Disk drive employing an improved method of operating a thermal head fly height actuator |
CN102054507A (en) * | 2009-09-17 | 2011-05-11 | 钟磊 | Recoding and playing method of stereo video |
-
2012
- 2012-09-03 CN CN201210322511.6A patent/CN103678140A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1226333A (en) * | 1996-05-24 | 1999-08-18 | 美国西加特技术有限公司 | Disc drive servo system with dual head sampling |
CN1252879A (en) * | 1997-04-18 | 2000-05-10 | 西加特技术有限公司 | Microactulor servo system in a disc drive |
CN1212417A (en) * | 1997-09-25 | 1999-03-31 | 王夜辉 | Multi-head type magnetic disc driver |
CN1335592A (en) * | 2000-10-09 | 2002-02-13 | 郑文赛 | Multiple magnetic head parallel write/read system |
CN1527285A (en) * | 2003-03-07 | 2004-09-08 | 谢建全 | Hard disc read and written by multiple magnetic heads parallelly and parallel reading and writting method of hard disc by multiple magnetic heads |
CN1577501A (en) * | 2003-06-30 | 2005-02-09 | 株式会社东芝 | Method and apparatus for servo writing using incorporated servo writer in a disk drive |
CN101046975A (en) * | 2006-03-31 | 2007-10-03 | 国际商业机器公司 | Disk driver system and its control method |
CN101256777A (en) * | 2007-02-27 | 2008-09-03 | 日立环球储存科技荷兰有限公司 | Disk drive employing an improved method of operating a thermal head fly height actuator |
CN102054507A (en) * | 2009-09-17 | 2011-05-11 | 钟磊 | Recoding and playing method of stereo video |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104978324A (en) * | 2014-04-03 | 2015-10-14 | 腾讯科技(深圳)有限公司 | Data processing method and device |
CN112130769A (en) * | 2020-09-18 | 2020-12-25 | 苏州浪潮智能科技有限公司 | A mechanical hard disk data processing method, device, equipment and medium |
CN112130769B (en) * | 2020-09-18 | 2022-10-28 | 苏州浪潮智能科技有限公司 | Mechanical hard disk data processing method, device, equipment and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI515561B (en) | Data tree storage methods, systems and computer program products using page structure of flash memory | |
CN101436152B (en) | Method and device for data backup | |
KR102310246B1 (en) | Method for generating secondary index and apparatus for storing secondary index | |
CN102841907A (en) | Methods for processing data compression and decompression | |
CN106600708B (en) | A kind of processing method and system of map | |
WO2013023133A8 (en) | Shrinking virtual hard disk image | |
CN103678536A (en) | Method and device for implementing page returning | |
WO2012052800A8 (en) | Two stage checksummed raid storage model | |
CN103745732A (en) | Multihead multi-track parallel hard disk system | |
CN109213898A (en) | The video retrieval method and device of video monitoring system | |
CN105389268B (en) | Data storage system and operation method thereof | |
CN104572492A (en) | Method and apparatus of burning data to FAT (File Allocation Table)32 partition | |
CN103678140A (en) | Method for data storage and electronic equipment | |
CN103927215A (en) | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk | |
CN102375801A (en) | Multi-core processor storage system device and method | |
CN102629485B (en) | Real-time burning method and device of optical disk for synchronous audio and video recording | |
CN106611364B (en) | Storage fragment sorting method and device | |
CN106873905B (en) | The method, apparatus and solid state hard disk of data storage | |
CN102446261A (en) | A Method of Improving RAID Write Efficiency | |
CN103400587A (en) | Data writing method and mechanical hard disk | |
CN105573668A (en) | Data storage method and apparatus | |
CN105389124B (en) | A kind of information processing method and electronic equipment | |
CN110008175A (en) | A kind of distributed objects storage Snapshot Method, system, equipment and computer media | |
CN101350217B (en) | Device and method for writing data into memory | |
CN105335296A (en) | A data processing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140326 |