CN104216796A - Data backup and recovery method and electronic device - Google Patents

Data backup and recovery method and electronic device Download PDF

Info

Publication number
CN104216796A
CN104216796A CN201310219638.XA CN201310219638A CN104216796A CN 104216796 A CN104216796 A CN 104216796A CN 201310219638 A CN201310219638 A CN 201310219638A CN 104216796 A CN104216796 A CN 104216796A
Authority
CN
China
Prior art keywords
hard disk
mapping table
physical address
disc physical
hard disc
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.)
Granted
Application number
CN201310219638.XA
Other languages
Chinese (zh)
Other versions
CN104216796B (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.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310219638.XA priority Critical patent/CN104216796B/en
Publication of CN104216796A publication Critical patent/CN104216796A/en
Application granted granted Critical
Publication of CN104216796B publication Critical patent/CN104216796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a data backup method which is a good data backup method for the SSD. The method includes the steps of determining at least one valid hard disk physical address in a hard disk from a first mapping table where the corresponding relation between the hard disk logic address and the hard disk physical address is stored, setting at least one piece of first identification information for the effective hard disk physical address in the first mapping table so as to obtain a second mapping table, and conducting data backup according to the second mapping table and the first identification information. The invention further discloses a data recovery method and a corresponding electronic device.

Description

A kind of data backup, restoration methods and electronic equipment
Technical field
The present invention relates to computing machine and built-in field, particularly a kind of data backup, restoration methods and electronic equipment.
Background technology
Solid state hard disc (Solid State Disk, SSD) is the hard disk made with solid-state electronic storage chip array.Identical with common hard disc in definition, function and using method of the interface specification of solid state hard disc is also completely consistent with common hard disc in product design with size.Be widely used in the field such as military, vehicle-mounted, industry control, video monitoring, network monitoring, the network terminal, electric power, medical treatment, aviation etc., navigator.
The storage medium of solid state hard disc is divided into two kinds, one adopts flash memory (FLASH) as storage medium, another adopts DRAM (Dynamic Random Access Memory, dynamic RAM) as storage medium.
Solid state hard disc based on flash memory adopts FLASH chip as storage medium, and this is also our usually said SSD.Its outward appearance can be made into multiple apperance, such as: the patterns such as laptop hard, micro harddisk, storage card, USB flash disk.The maximum advantage of this SSD solid state hard disc can move exactly, and data protection is not by Energy control, can be adapted to various environment.
Current FLASH memory device comes into the market in a large number, and the share that the substitute products SSD as traditional magnetic disk occupies in the market is also increasing.But due to the otherness of traditional magnetic disk and SSD, be no longer applicable to SSD based on the backup of traditional magnetic disk and restoration methods.
But there is no the special data backup mode for SSD preferably in prior art.
Summary of the invention
The embodiment of the present invention provides a kind of data backup, restoration methods and electronic equipment, for solving in prior art the technical matters not having the good data backup mode for SSD, provides the good data backup mode for SSD.
One aspect of the present invention, provides a kind of data back up method, is applied to and includes in the electronic equipment of hard disk, said method comprising the steps of:
At least one the effective hard disc physical address in described hard disk is determined from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation;
In described first mapping table, at least one first identification information is set at least one effective hard disc physical address described, obtains the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
Preferably, characterize the first mapping table of the mapping item of hard disk logical address and hard disc physical address corresponding relation determine that the step of at least one effective hard disc physical address in described hard disk comprises from storing at least one:
Determine the valid data stored in described hard disk distinguish corresponding at least one effective hard disc physical address described;
At least one effective hard disc physical address described is determined according to each mapping item in described first mapping table.
Preferably, the valid data determining to store in described hard disk corresponding respectively described in also comprise step before at least one effective hard disc physical address: obtain the first instruction for carrying out data backup that described operating system sends.
Preferably, at least one first identification information described is being set at least one effective hard disk address described, also step is comprised: be stored in the internal memory of described operating system using described second mapping table as current mapping table after obtaining the second mapping table, and, described second mapping table is stored in described hard disk as backup mapping table.
Preferably, described second mapping table is being stored in the internal memory of described operating system as current mapping table, and, described second mapping table is also comprised step after backup mapping table is stored in described hard disk:
When needing the first hard disk position of the first hard disc physical address sensing in hard disk to carry out the first operation, judge that whether described first hard disc physical address is with the first identification information according to described current mapping table;
If described first hard disc physical address strap has described first identification information, the first content stored in described first hard disk position is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and record modification information, described first hard disc physical address is different from described second hard disc physical address.
Preferably, the step of record modification information comprises: in described backup mapping table, record described amendment information.
Preferably, determine that the step needing the first hard disk position pointed to the first hard disc physical address in hard disk to carry out the first operation comprises:
Obtain the second instruction for operating the first hard disk logical address in described hard disk that described operating system sends;
By inquiring about described current mapping table, determine that described first hard disk logical address and described first hard disc physical address belong to same mapping list item;
Determine to need the described first hard disk position pointed to described first hard disc physical address to carry out described first operation.
Preferably, the step first content stored in described first hard disc physical address being copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to comprises:
Described second hard disc physical address is determined from the protected location of described hard disk;
Described first content is copied to the described second hard disk position that described second hard disc physical address is pointed to.
Preferably, described first is operating as the operation described first content being carried out garbage reclamation, or described first is operating as the operation writing the second content to described first hard disk position, or described first is operating as the operation being carried out by described first content backing up.
Preferably, when described first be operating as described first content is carried out the operation of garbage reclamation time, after record modification information, also comprise step: the mapping item between the described first hard disk logical address store described current mapping table Central Plains and the first hard disc physical address changes to the mapping item between described first hard disk logical address and described second hard disc physical address.
Preferably, when described first be operating as described first content is carried out the operation of garbage reclamation time, before the first operation is carried out in the first hard disk position needing in hard disk the first hard disc physical address to point to, also comprise step:
Judge in described current mapping table, whether there is at least one mapping item described different from least one mapping item corresponding in described backup mapping table;
If there is at least one mapping item described different from least one mapping item corresponding in described backup mapping table in described current mapping table, determine at least one mapping item described to be write in described backup mapping table, and discharge at least one mapping item described in described current mapping table.
Preferably, judge whether to have in described current mapping table at least one mapping item described different from least one mapping item corresponding in described backup mapping table before also comprise step:
Obtain the 3rd instruction for reading the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address in described hard disk;
When the first mapping item that described 4th hard disc physical address is corresponding is not present in described current mapping table, and when there is no free space in described current mapping table, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
Preferably, when described first be operating as write the operation of the second content to described first hard disk position time, in the second hard disk position that the second hard disc physical address copied to by the first content stored in described first address in described hard disk is pointed to, and also comprise step after record modification information: from described hard disk, determine the 3rd hard disc physical address, by the 3rd hard disk position pointed by the described second described 3rd hard disc physical address of content write, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address different between two.
Preferably, from described hard disk, determine that the step of the 3rd hard disc physical address comprises:
Judge in described hard disk, whether available free described 3rd hard disk position can supply described second content of write;
Can, for when writing described second content, determine to carry out described garbage reclamation operation to described hard disk, to obtain clear position in described hard disk when there is no idle described 3rd hard disk position in described hard disk.
Second aspect of the present invention, provides a kind of data reconstruction method, is applied to the electronic equipment with hard disk, said method comprising the steps of:
When needs carry out the second operation to operating system, judge whether to there is the second instruction for carrying out date restoring;
If there is described second instruction, according to described second instruction, load the second mapping table stored in hard disk;
According to described second mapping table, described second operation is carried out to described operating system.
Preferably, when carrying out the second operation when needs to operating system, before judging whether to there is the second instruction for carrying out date restoring, also comprise step:
Obtain described second instruction for carrying out date restoring;
According to the second identification information, described second instruction is marked.
Preferably, according to described second instruction, the step loading the second mapping table stored in hard disk comprises:
Read at least one amendment record in described second mapping table;
According to described second mapping table of described at least one amendment record amendment;
Load amended described second mapping table.
Preferably, described second the operation starting described operating system is operating as.
3rd aspect of the present invention, provide a kind of electronic equipment, described electronic equipment includes hard disk, and described hard disk comprises:
First determination module, for determining at least one the effective hard disc physical address in described hard disk from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation;
First acquisition module, for arranging at least one first identification information at least one effective hard disc physical address described in described first mapping table, obtain the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
Preferably, described first determination module comprises first and determines that submodule and second determines submodule;
Described first determine submodule for determine the valid data that store in described hard disk distinguish at least one effective hard disc physical address described in correspondence;
Described second determines that submodule for determining at least one effective hard disc physical address described according to each mapping item in described first mapping table.
Preferably, described hard disk also comprises the second acquisition module, for obtaining the first instruction for carrying out data backup that described operating system sends.
Preferably, described hard disk also comprises the first processing module, for described second mapping table is stored in the internal memory of described operating system as current mapping table, and, described second mapping table is stored in described hard disk as backup mapping table.
Preferably, described hard disk also comprises the first judge module and the second processing module;
Described first judge module is used for, when needing the first hard disk position of the first hard disc physical address sensing in hard disk to carry out the first operation, judging that whether described first hard disc physical address is with the first identification information according to described current mapping table;
If described second processing module is used for described first hard disc physical address strap described first identification information, the first content stored in described first hard disk position is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and record modification information, described first hard disc physical address is different from described second hard disc physical address.
Preferably, described second processing module specifically for recording described amendment information in described backup mapping table.
Preferably, described hard disk also comprises the second determination module, needs the first hard disk position to the first hard disc physical address in hard disk is pointed to carry out the first operation for determining; Wherein, described second determination module comprises the first acquisition submodule, the 3rd and determines that submodule and the 4th determines submodule;
Described first obtains submodule for obtaining second instruction for operating the first hard disk logical address in described hard disk of described operating system transmission;
Described 3rd determines that submodule is for by the described current mapping table of inquiry, determines that described first hard disk logical address and described first hard disc physical address belong to same mapping list item;
Described 4th determines that submodule needs the described first hard disk position pointed to described first hard disc physical address to carry out described first operation for determining.
Preferably, described second processing module comprise the 5th determine submodule and first process submodule;
Described 5th determines that submodule is for determining described second hard disc physical address in the protected location from described hard disk;
Described first process submodule is used for described first content being copied to the described second hard disk position pointed to described second hard disc physical address.
Preferably, described first is operating as the operation described first content being carried out garbage reclamation, or described first is operating as the operation writing the second content to described first hard disk position, or described first is operating as the operation being carried out by described first content backing up.
Preferably, when described first be operating as described first content is carried out the operation of garbage reclamation time, described hard disk also comprises the first change module, for the mapping item between the described first hard disk logical address of described current mapping table Central Plains storage and the first hard disc physical address being changed to the mapping item between described first hard disk logical address and described second hard disc physical address.
Preferably, when described first be operating as described first content is carried out the operation of garbage reclamation time, described electronic equipment also comprises the second judge module and the 3rd determination module;
Described second judge module is different from least one mapping item corresponding in described backup mapping table for judging whether there is at least one mapping item described in described current mapping table;
If described 3rd determination module is used for having at least one mapping item described different from least one mapping item corresponding in described backup mapping table in described current mapping table, determine at least one mapping item described to be write in described backup mapping table, and discharge at least one mapping item described in described current mapping table.
Preferably, described hard disk also comprises the 3rd acquisition module and the 4th determination module;
Described 3rd acquisition module is for obtaining the 3rd instruction of the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address for reading in described hard disk;
The first mapping item that described 4th determination module is used for when described 4th hard disc physical address is corresponding is not present in described current mapping table, and when there is no free space in described current mapping table, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
Preferably, when described first be operating as write the operation of the second content to described first hard disk position time, described hard disk also comprises the 5th determination module, for determining the 3rd hard disc physical address from described hard disk, by the 3rd hard disk position pointed by the described second described 3rd hard disc physical address of content write, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address are different between two.
Preferably, described 5th determination module comprises the first judgement submodule and the 5th and determines submodule;
Described first judges that submodule is for judging in described hard disk, whether available free described 3rd hard disk position can supply described second content of write;
Described 5th determines that submodule is not for when having idle described 3rd hard disk position can supply described second content of write in described hard disk, determine to carry out described garbage reclamation operation to described hard disk, to obtain clear position in described hard disk.
4th aspect of the present invention, provide a kind of electronic equipment, described electronic equipment has hard disk, and described hard disk comprises:
3rd judge module, for when needs carry out the second operation to operating system, judges whether to there is the second instruction for carrying out date restoring;
Load-on module, if for there is described second instruction, according to described second instruction, loads the second mapping table stored in hard disk;
Operational module, for carrying out described second operation according to described second mapping table to described operating system.
Preferably, described hard disk also comprises the 4th acquisition module and mark module;
Described 4th acquisition module is for obtaining described second instruction for carrying out date restoring;
Described mark module is used for described second instruction being marked according to the second identification information.
Preferably, described load-on module comprises reading submodule, amendment submodule and loads submodule;
Described reading submodule is for reading at least one amendment record in described second mapping table;
Described amendment submodule is used for according to described second mapping table of described at least one amendment record amendment;
Described loading submodule is for loading amended described second mapping table.
Preferably, described second the operation starting described operating system is operating as.
Data back up method in the embodiment of the present invention, described method can be applied to and include in the electronic equipment of hard disk, and described method can comprise: from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation, determine at least one the effective hard disc physical address in described hard disk; In described first mapping table, at least one first identification information is set at least one effective hard disc physical address described, obtains the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
In the embodiment of the present invention, when needs carry out data backup, at least one effective hard disc physical address described in can determining in described hard disk from described first mapping table, wherein each effective hard disc physical address corresponds to the valid data stored in described hard disk, after determining at least one effective hard disc physical address described, can at least one effective hard disc physical address described arranges at least one first identification information described respectively in described first mapping table, be each effective hard disc physical address and described first identification information is set, obtain described second mapping table, like this, in follow-up operation, no matter the write operation for described hard disk or garbage reclamation operation, can back up the valid data stored in described hard disk according to described second mapping table.Like this, both the effect of data backup can not have been affected, simultaneously when receiving data backup commands, only need arrange described first identification information in described first mapping table, without the need to carrying out concrete back-up job, obvious electronic equipment can not need to process more task a moment, for electronic equipment, need task to be processed comparatively to disperse, can not cause the burden of electronic equipment, also shorter concerning the stand-by period user, treatment effeciency is higher.
Accompanying drawing explanation
Fig. 1 is the main flow figure of data back up method in the embodiment of the present invention;
Fig. 2 is the main flow figure of data reconstruction method in the embodiment of the present invention;
Fig. 3 is the detailed structure view of a kind of electronic equipment in the embodiment of the present invention;
Fig. 4 is the detailed structure view of another kind of electronic equipment in the embodiment of the present invention.
Embodiment
Data back up method in the embodiment of the present invention, described method can be applied to and include in the electronic equipment of hard disk, and described method can comprise: from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation, determine at least one the effective hard disc physical address in described hard disk; In described first mapping table, at least one first identification information is set at least one effective hard disc physical address described, obtains the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
In the embodiment of the present invention, when needs carry out data backup, at least one effective hard disc physical address described in can determining in described hard disk from described first mapping table, wherein each effective hard disc physical address corresponds to the valid data stored in described hard disk, after determining at least one effective hard disc physical address described, can at least one effective hard disc physical address described arranges at least one first identification information described respectively in described first mapping table, be each effective hard disc physical address and described first identification information is set, obtain described second mapping table, like this, in follow-up operation, no matter the write operation for described hard disk or garbage reclamation operation, can back up the valid data stored in described hard disk according to described second mapping table.Like this, both the effect of data backup can not have been affected, simultaneously when receiving data backup commands, only need arrange described first identification information in described first mapping table, without the need to carrying out concrete back-up job, obvious electronic equipment can not need to process more task a moment, for electronic equipment, need task to be processed comparatively to disperse, can not cause the burden of electronic equipment, also shorter concerning the stand-by period user, treatment effeciency is higher.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, described electronic equipment can be the electronic equipment that PC (personal computer), notebook, PAD (panel computer), mobile phone etc. are different, as long as described electronic equipment has hard disk.
In the embodiment of the present invention, described hard disk, that refer to can be SSD.
Known, the minimum memory unit in SSD is page (page), can include 128 or 256 page in a general block (block).In the embodiment of the present invention, a page is called a hard disk position, the address of a page is called hard disc physical address.
In addition, term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
Below in conjunction with accompanying drawing, the preferred embodiment of the present invention is described in detail.
Embodiment one
Refer to Fig. 1, the embodiment of the present invention provides a kind of data back up method, and described method can be applied to and include in the electronic equipment of hard disk, and the main flow of described method is as follows:
Step 101: determine at least one the effective hard disc physical address in described hard disk from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation.
In the embodiment of the present invention, described first mapping table can be the mapping table be stored in the internal memory of operating system, and it may be used for characterizing the mapping relations between hard disk logical address and hard disc physical address.
Can store at least one mapping item in described first mapping table, each mapping item can represent the mapping relations between a hard disk logical address and a hard disc physical address.
Such as, operating system may send an instruction, instruction will operate the address A in hard disk, so this address A is exactly hard disk logical address, the mapping item A corresponding to the A of address will be determined from described first mapping table after hard disk receives instruction, can determine the address B corresponding to the A of address according to mapping item A, hard disk need operate address B.Address B is just called hard disc physical address.
Concrete, in the embodiment of the present invention, at least one effective hard disc physical address described in will determining in described hard disk from described first mapping table, can be first collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Preferably, in the embodiment of the present invention, the valid data determining to store in described hard disk distinguish at least one effective hard disc physical address described in correspondence before, first can receive the first instruction for carrying out data backup that described operating system sends.
Namely, a comparatively complete process can be: operating system sends described first instruction for carrying out data backup, after described hard disk receives described first instruction, first can collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Step 102: arrange at least one first identification information at least one effective hard disc physical address described in described first mapping table, obtain the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
In the embodiment of the present invention, determine at least one effective hard disc physical address described in described first mapping table after, can at least one effective hard disc physical address described arranges at least one first identification information described in described first mapping table, namely can for each hard disc physical address at least one effective hard disc physical address described arranges described first identification information in described first mapping table, thus obtain described second mapping table, data backup can be carried out according to described second mapping table and at least one first identification information described in follow-up operation.
Further, in an alternative embodiment of the invention, after obtaining described second mapping table, described second mapping table can be stored.
Preferably, described second mapping table can be stored in simultaneously in the internal memory of described operating system with in described hard disk.In the embodiment of the present invention, described second mapping table be stored in the internal memory of described operating system is called current mapping table, described second mapping table be stored in described hard disk is called backup mapping table.
Further, in an alternative embodiment of the invention, described second mapping table to be stored in simultaneously in the internal memory of described operating system and in described hard disk after, when needing the first hard disk position pointed to the first hard disc physical address in described hard disk to carry out the first operation, can judge that whether described first hard disc physical address is with described first identification information according to described current mapping table.
That is, if need to operate described first hard disk position, can first judge in described current mapping table, whether described first hard disc physical address is provided with described first identification information.
If judge to determine that the first hard disc physical address strap has described first identification information described in described current mapping table, then the first content stored in described first hard disk position can be copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and can record modification information, the specifying information that the position of described amendment information i.e. described first content changes.In the embodiment of the present invention, described first hard disc physical address is different from described second hard disc physical address, then described first hard disk position is also naturally different from described second hard disk position accordingly.
Preferably, in the embodiment of the present invention, when recording described amendment information, can be specifically record described amendment information in described backup mapping table.
Concrete, in the embodiment of the present invention, determine to need the first hard disk position to the first hard disc physical address in described hard disk is pointed to carry out the first operation, can be specifically: obtain the second instruction for operating the first hard disk logical address in described hard disk that described operating system sends, after described second instruction of acquisition, described current mapping table can be inquired about, determine that described first hard disk logical address and described first hard disc physical address belong to same mapping list item, namely determine that described first hard disk logical address is mapped to described first hard disc physical address, can determine afterwards to need the described first hard disk position pointed to described first hard disc physical address to carry out described first operation.
Preferably; in an alternative embodiment of the invention; the first content stored in described first hard disc physical address is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to; can be specifically: first from the protected location of described hard disk, determine described second hard disc physical address; after determining described second hard disc physical address, described first content can be copied to the described second hard disk position that described first hard disc physical address is pointed to.
In this embodiment; at least one protected location can be determined in advance in described hard disk; for SSD; a protected location also can refer to a b1ock; can be prespecified; the data stored in described protected location, do not participate in the operations such as garbage reclamation, can ensure that the data stored in described protected location can not be lost to a certain extent.Like this, after described first content is copied to described protected location, be also just equivalent to described first content to carry out data backup.
Preferably, in the embodiment of the present invention, described first operation can be the operation described first content being carried out garbage reclamation, or described first operation can be the operation writing the second content to described first hard disk position, or described first operation can be the operation being carried out by described first content backing up.Wherein, if described first operation is the operation being carried out by described first content backing up, then described first operation can be the operation carried out when described hard disk is in idle condition (idle).Such as, if described operating system does not use the duration of described hard disk to exceed preset duration, then described hard disk can enter described idle condition.Below be described respectively.
Optionally, in the embodiment of the present invention, if described first is operating as the operation to described second content of described first hard disk position write, so, it can first be described operating system sends instruction from described second content of position write will pointed to the first hard disk logical address to described hard disk, after described hard disk receives this instruction, can determine in described current mapping table that described first hard disk logical address is mapped to described first hard disc physical address, namely determine described second content of described first hard disk position write will pointed to described first hard disc physical address.
Described hard disk can judge in described current mapping table that whether described first hard disc physical address is with described first identification information, if judge to determine that described first hard disc physical address strap has described first identification information, the described first content stored in the described first hard disk position then described first hard disc physical address can pointed to copies to the described second hard disk position that the described second hard disc physical address in described hard disk is pointed to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described second hard disk position can be arranged in described protected location, namely first can determine described second hard disk position in described protected location, described first content be copied to described second hard disk position afterwards.
In this embodiment, after described first content being copied to described second hard disk position, the 3rd hard disc physical address being in idle condition can be determined in described hard disk, and described second content can be written to the 3rd hard disk position pointed to described 3rd hard disc physical address.Wherein, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address are different between two.
Visible, in this embodiment, if after described first content being copied to described second hard disk position, if judge to determine that the described 3rd hard disc physical position not being in idle condition in described hard disk is for writing described second content, then can determine will carry out garbage reclamation operation to described hard disk, to obtain clear position to write described second content in described hard disk.
In this embodiment, after judging that according to described current mapping table described first hard disc physical address is whether with described first identification information, if judge to determine that described first hard disc physical address is without described first identification information, then can perform as the SSD writing disk manipulation in normal flow.
Optionally, in the embodiment of the present invention, if described first is operating as the operation being carried out by described first content backing up, then when described hard disk enters described idle condition, described current mapping table can be traveled through, such as, can judge that whether hard disc physical address in each mapping item in described current mapping table is with described first identification information respectively.Such as, for the first mapping item in described current mapping table, it is the mapping relations between sign first hard disk logical address and the first hard disc physical address, then, if described hard disk needs the first hard disk position to described first hard disc physical address is pointed to operate, just can judge that whether described first hard disc physical address is with described first identification information according to described current mapping table.
If judge to determine that described first hard disc physical address strap has described first identification information, the described first content stored in the described first hard disk position so described first hard disc physical address can pointed to copies to the described second hard disk position that the described second hard disc physical address in described hard disk is pointed to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described second hard disk position can be arranged in described protected location, namely first can determine described second hard disk position in described protected location, described first content be copied to described second hard disk position afterwards.
Preferably, in this embodiment, after described first content being copied to described second hard disk position, described current mapping table can also be revised, such as, the mapping item between the described first hard disc physical address of record original in described current mapping table and described first hard disk logical address can be revised as the mapping item between described second hard disc physical address and described first hard disk logical address.Because after carrying out data backup operation; data are copied; and the data copied in described protected location to ensure integrality to a certain extent; therefore can directly call according to amended current mapping table the data stored in described protected location when needing to use these data, probably can be cleaned in the operations such as garbage reclamation with the data avoiding originally being stored in described first hard disk position.
Further, in this embodiment, when revising described current mapping table, after amendment, can remove is described first identification information that described first hard disc physical address is arranged originally.Because now described first content has been moved to the described second hard disk position in described protected location, without the need to arranging described first identification information for described first hard disc physical address again.
In the embodiment of the present invention, can find out, generally, be all that system carries out some normal runnings, such as, during the operation such as garbage reclamation, write, just can carry out data backup work according to described first identification information of described second mapping table and setting accordingly, like this, can either well complete data backup work, data backup work can not be made again to take the too many time, the pool effectively reaching the time utilizes.
But when described hard disk is in idle condition; also data backup work can be carried out specially; like this; the data that storage backup is carried out in a comparatively complete region can be set specially in described protected location; what data can be made to store in described hard disk is comparatively concentrated, and avoiding increases the complexity of searching because of dispersion.
Therefore, in the embodiment of the present invention, when described hard disk is in described idle condition, the movement of described hard disk Ergodic Maps table also just can be regarded as and will operate described hard disk, namely can regard that described first operation is carried out in the first hard disk position will pointed to the first hard disc physical address in described hard disk as.
In this embodiment, after judging that according to described current mapping table described first hard disc physical address is whether with described first identification information, if judge to determine that described first hard disc physical address is without described first identification information, then can continue to judge whether by complete for described current mapping table traversal, if judge to determine that described current mapping table does not also travel through complete, then can continue to judge that whether next hard disc physical address in described current mapping table is with described first identification information, if judge to determine that described current mapping table has traveled through complete, then can stop traversal, continue to remain in described idle condition.
Optionally, in the embodiment of the present invention, if described first is operating as the operation described first content being carried out garbage reclamation, so, first described hard disk enters garbage reclamation (Garbage Collection) flow process, afterwards, sacrificial block selected by described hard disk, namely the block carrying out garbage reclamation is needed, after the described sacrificial block of selection, judge in described sacrificial block, whether have hard disk position to store effective hard disc data, in embodiments of the present invention, namely judge that whether each hard disc physical address corresponding in described sacrificial block is with described first identification information according to described current mapping table, namely, for the first hard disc physical address in described sacrificial block, described hard disk can be judge that whether described first hard disc physical address is with described first identification information according to described current mapping table.
If described first hard disc physical address strap has described first identification information, the described first content stored in the described first hard disk position then described first hard disc physical address can pointed to copies to the described second hard disk position that the described second hard disc physical address in described hard disk is pointed to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described second hard disk position can be arranged in described protected location, namely first can determine described second hard disk position in described protected location, described first content be copied to described second hard disk position afterwards.
Preferably, in this embodiment, after described first content being copied to described second hard disk position, described current mapping table can also be revised, such as, the mapping item between the described first hard disc physical address of record original in described current mapping table and the first hard disk logical address can be revised as the mapping item between described second hard disc physical address and described first hard disk logical address.Because when carrying out garbage reclamation, the described first content stored in described first hard disk position possibly cleaned fall, if and described operating system also needs to search described first content, described hard disk directly can find described first content according to described current mapping table in described second hard disk position, ensures that described first content can not be lost.
Further, in this embodiment, when revising described current mapping table, after amendment, can remove is described first identification information that described first hard disc physical address is arranged originally.Because now described first content has been moved to the described second hard disk position in described protected location, without the need to arranging described first identification information for described first hard disc physical address again.
In this embodiment, judging whether to have in described sacrificial block after hard disk position stores effective hard disc data, if do not have hard disk position to store described effective hard disc data in described sacrificial block, namely in described current mapping table, all not with described first identification information in each hard disc physical address that described sacrificial block is corresponding, then when processing the described five stiffness dish position that described five stiffness dish physical address corresponding to described sacrificial block points to, if described 5th content stored in described five stiffness dish position is effective hard disc data, the 6th hard disk position then described 5th content replication can pointed to the 6th hard disc physical address, described five stiffness dish position is the clear position in described hard disk, described current mapping table can be revised simultaneously, such as the mapping item between the described five stiffness dish physical address of record original in described current mapping table and five stiffness dish logical address can be revised as the mapping item between described 6th hard disc physical address and described five stiffness dish logical address.
Further, if described operating system indicates the data that need read in described hard disk, namely need to carry out read operation, then also may can relate to the operation of described garbage reclamation.Specifically describe as follows:
When described first be operating as described first content is carried out the operation of garbage reclamation time, before needing that described first operation is carried out to the described first hard disk position of the first hard disc physical address sensing described in described hard disk, first can judge in described current mapping table, whether there is at least one mapping item described different from least one the corresponding mapping item in described backup mapping table.In the embodiment of the present invention, disregard described amendment record, described current mapping table should be identical with described backup mapping table.So, if the mapping item had in described current mapping table is different from mapping item corresponding in described backup mapping table, then can illustrate that described current mapping table was modified, so just should upgrade described backup mapping table according to amended current mapping table.
If it is different from least one the corresponding mapping item in described backup mapping table to judge to determine there is at least one mapping item described in described current mapping table, then can determine need at least one mapping item described in described current mapping table be write in described backup mapping table, at least one mapping item described in described current mapping table can be discharged simultaneously.Concrete at least one mapping item described that why will discharge in described current mapping table, be relevant to the operation of read data, rear extended meeting makes an explanation.
Before at least one mapping item described in described current mapping table is write described backup mapping table, first to judge in described backup mapping table, whether available free position is for storing at least one mapping item described, namely judge in described hard disk, whether available free position is for storing at least one mapping item described, if judge to determine there is no clear position in described hard disk for storing at least one mapping item described, so just determine to start garbage reclamation flow process, before concrete garbage collection procedure, existing introduction, repeats no more herein.
After obtaining clear position by garbage reclamation, at least one mapping item described can be write described backup mapping table, at least one mapping item described in described current mapping table can be discharged afterwards.
In this embodiment, judge whether to have in described current mapping table at least one mapping item described different from least one mapping item corresponding in described backup mapping table before, first can obtaining the 3rd instruction for reading the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address in described hard disk that described operating system sends, namely obtaining described 3rd instruction being used for carrying out read data from described hard disk.
When the first mapping item that described 4th hard disc physical address is corresponding is not present in described current mapping table, and for store described current mapping table the first region of memory in there is no a storage space time, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
Concrete, after described 3rd instruction of acquisition, can judge whether described first mapping item corresponding to described 4th hard disc physical address is present in described current mapping table, if judge to determine that described first mapping item corresponding to described 4th hard disc physical address is not present in described current mapping table, can continue to judge in described current mapping table, whether available free space can be used in storing described first mapping item, if judge to determine do not have free space to can be used in storing described first mapping item in described current mapping table, then can determine to need at least one mapping item described of release from described current mapping table, so that described first mapping item can be stored with the space discharged, and can determine described first mapping item in described backup mapping item will to be loaded in described current mapping table.That is, if there is no described first mapping item in described current mapping table, just normal read data operation can be carried out after then described first mapping item stored in described backup mapping table must being loaded into described current mapping table, therefore, if now do not have in described current mapping table to can be used between space empty storing described first mapping item, that just needs from described current mapping table, to discharge space to deposit described first mapping item.
Concrete, when needs discharge at least one mapping item described from described current mapping table, first can judge whether there is at least one mapping item described in described current mapping table different from least one mapping item corresponding in described backup mapping table, this also just enters in the step as above described.And if it is different from least one the corresponding mapping item in described backup mapping table to judge to determine do not have at least one mapping item described in described current mapping table, namely each mapping item stored in described current mapping table is all identical with the corresponding mapping item stored in described backup mapping table, so can discharge, to reserve free space to deposit described first mapping item by optional at least one mapping item described from described current mapping table.
Below provide several specific embodiment to introduce the information processing method in the present invention, the following examples mainly describe several possible application scenarios of described method.It should be noted that, the embodiment in the present invention only for explaining the present invention, and can not be used for limiting the present invention.Every embodiment meeting inventive concept is all within protection scope of the present invention.
Embodiment two
Described electronic equipment is notebook, has the hard disk of SSD type in described notebook.
Operating system in described notebook sends the first instruction for carrying out data backup, after described hard disk receives described first instruction, first can collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Determine at least one effective hard disc physical address described in described first mapping table after, can at least one effective hard disc physical address described arranges at least one first identification information described in described first mapping table, obtain the second mapping table, after obtaining described second mapping table, described second mapping table can be stored.In the present embodiment, described second mapping table can be stored in simultaneously in the internal memory of described operating system with in described hard disk.Described second mapping table be stored in the internal memory of described operating system can be called current mapping table, described second mapping table be stored in described hard disk is called backup mapping table.
Described operating system sends to described hard disk the instruction that the position will pointed to hard disk logical address A writes the second content, after described hard disk receives this instruction, can determine that in described current mapping table described hard disk logical address A is mapped to hard disc physical address A, namely determine that the hard disk position A that will point to described hard disc physical address A writes described second content.
Described hard disk can judge in described current mapping table that whether described hard disc physical address A is with described first identification information, if judge to determine that described hard disc physical address A is with described first identification information, the described first content stored in the hard disk position A that then described hard disc physical address A can be pointed to copies to the described B hard disk position that the described hard disc physical address B in described hard disk points to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described hard disk position B can be arranged in described protected location, namely first can determine described hard disk position B in described protected location, described first content be copied to described hard disk position B afterwards.And described hard disk position B is free hard disk position, namely inside does not store data.
In this embodiment, after described first content being copied to described hard disk position B, the hard disc physical address C being in idle condition can be determined in described hard disk, and described second content can be written to the hard disk position C of described hard disc physical address C sensing.Wherein, described hard disc physical address C, described hard disc physical address A and described hard disc physical address B different between two.
Visible, in this embodiment, if after described first content being copied to described hard disk position B, if judge to determine that the described hard disc physical position C not being in idle condition in described hard disk is for writing described second content, then can determine will carry out garbage reclamation operation to described hard disk, to obtain clear position to write described second content in described hard disk.
Embodiment three
Described electronic equipment is PC, has the hard disk of SSD type in described PC.
Operating system in described PC sends the first instruction for carrying out data backup, after described hard disk receives described first instruction, first can collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Determine at least one effective hard disc physical address described in described first mapping table after, can at least one effective hard disc physical address described arranges at least one first identification information described in described first mapping table, obtain the second mapping table, after obtaining described second mapping table, described second mapping table can be stored.In the present embodiment, described second mapping table can be stored in simultaneously in the internal memory of described operating system with in described hard disk.Described second mapping table be stored in the internal memory of described operating system can be called current mapping table, described second mapping table be stored in described hard disk is called backup mapping table.
When described hard disk enters described idle condition, described current mapping table can be traveled through, such as, can judge that whether hard disc physical address in each mapping item in described current mapping table is with described first identification information respectively.Such as, for the first mapping item in described current mapping table, it characterizes the mapping relations between hard disk logical address A and hard disc physical address A, then, if described hard disk needs the hard disk position A to described hard disc physical address A points to operate, just can judge that whether described hard disc physical address A is with described first identification information according to described current mapping table.
If judge to determine that described hard disc physical address A is with described first identification information, the described first content stored in the described hard disk position A that so described hard disc physical address A can be pointed to copies to the described hard disk position B that the described hard disc physical address B in described hard disk points to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described hard disk position B can be arranged in described protected location, namely first can determine described hard disk position B in described protected location, described first content be copied to described hard disk position B afterwards.
Preferably, in this embodiment, after described first content being copied to described hard disk position B, described current mapping table can also be revised, such as, the mapping item between the described hard disc physical address A of record original in described current mapping table and described hard disk logical address A can be revised as the mapping item between described hard disc physical address B and described hard disk logical address A.Because after carrying out data backup operation; data are copied; and the data copied in described protected location to ensure integrality to a certain extent; therefore can directly call according to amended current mapping table the data stored in described protected location when needing to use these data, probably can be cleaned in the operations such as garbage reclamation with the data avoiding originally being stored in described hard disk position A.
Further, in this embodiment, when revising described current mapping table, after amendment, can remove is described first identification information that described hard disc physical address A is arranged originally.Because now described first content has been moved to the described hard disk position B in described protected location, without the need to arranging described first identification information for described hard disc physical address A again.
In the present embodiment, can find out, generally, be all that system carries out some normal runnings, such as, during the operation such as garbage reclamation, write, just can carry out data backup work according to described first identification information of described second mapping table and setting accordingly, like this, can either well complete data backup work, data backup work can not be made again to take the too many time, the pool effectively reaching the time utilizes.
But when described hard disk is in idle condition; also data backup work can be carried out specially; like this; the data that storage backup is carried out in a comparatively complete region can be set specially in described protected location; what data can be made to store in described hard disk is comparatively concentrated, and avoiding increases the complexity of searching because of dispersion.
Therefore, in the present embodiment, when described hard disk is in described idle condition, the movement of described hard disk Ergodic Maps table also just can be regarded as and will operate described hard disk, namely can regard that the hard disk position A that will point to hard disc physical address A in described hard disk carries out described first operation as.
In this embodiment, after judging that according to described current mapping table described hard disc physical address A is whether with described first identification information, if judge to determine that described hard disc physical address A is without described first identification information, then can continue to judge whether by complete for described current mapping table traversal, if judge to determine that described current mapping table does not also travel through complete, then can continue to judge that whether next hard disc physical address in described current mapping table is with described first identification information, if judge to determine that described current mapping table has traveled through complete, then can stop traversal, continue to remain in described idle condition.
Embodiment four
Described electronic equipment is PAD, has the hard disk of SSD type in described PAD.
Operating system in described PAD sends the first instruction for carrying out data backup, after described hard disk receives described first instruction, first can collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Determine at least one effective hard disc physical address described in described first mapping table after, can at least one effective hard disc physical address described arranges at least one first identification information described in described first mapping table, obtain the second mapping table, after obtaining described second mapping table, described second mapping table can be stored.In the present embodiment, described second mapping table can be stored in simultaneously in the internal memory of described operating system with in described hard disk.Described second mapping table be stored in the internal memory of described operating system can be called current mapping table, described second mapping table be stored in described hard disk is called backup mapping table.
Described hard disk enters garbage reclamation (Garbage Collection) flow process, afterwards, sacrificial block selected by described hard disk, namely the block carrying out garbage reclamation is needed, after the described sacrificial block of selection, judge in described sacrificial block, whether have hard disk position to store effective hard disc data, in embodiments of the present invention, namely judge that whether each hard disc physical address corresponding in described sacrificial block is with described first identification information according to described current mapping table, namely, when described hard disk processing is to hard disc physical address A in described sacrificial block, described hard disk can be judge that whether described hard disc physical address A is with described first identification information according to described current mapping table.
If described hard disc physical address A is with described first identification information, the described first content stored in the described hard disk position A that then described hard disc physical address A can be pointed to copies to the described hard disk position B that the described hard disc physical address B in described hard disk points to, and can record described amendment information in described backup mapping table.
Preferably, in this embodiment, described hard disk position B can be arranged in described protected location, namely first can determine described hard disk position B in described protected location, described first content be copied to described hard disk position B afterwards.
Preferably, in this embodiment, after described first content being copied to described hard disk position B, described current mapping table can also be revised, such as, the mapping item between the described hard disc physical address A of record original in described current mapping table and hard disk logical address A can be revised as the mapping item between described hard disc physical address B and described hard disk logical address B.Because when carrying out garbage reclamation, the described first content stored in described hard disk position A possibly cleaned fall, if and described operating system also needs to search described first content, described hard disk directly can find described first content according to described current mapping table in described hard disk position B, ensures that described first content can not be lost.
Further, in this embodiment, when revising described current mapping table, after amendment, can remove is described first identification information that described hard disc physical address A is arranged originally.Because now described first content has been moved to the described hard disk position B in described protected location, without the need to arranging described first identification information for described hard disc physical address B again.
Embodiment five
Described electronic equipment is PAD, has the hard disk of SSD type in described PAD.
Operating system in described PAD sends the first instruction for carrying out data backup, after described hard disk receives described first instruction, first can collect the valid data in described hard disk, determine that the valid data collected correspond at least one effective hard disc physical address described, thus at least one effective hard disc physical address described can be determined according to each mapping item in described first mapping table.
Determine at least one effective hard disc physical address described in described first mapping table after, can at least one effective hard disc physical address described arranges at least one first identification information described in described first mapping table, obtain the second mapping table, after obtaining described second mapping table, described second mapping table can be stored.In the present embodiment, described second mapping table can be stored in simultaneously in the internal memory of described operating system with in described hard disk.Described second mapping table be stored in the internal memory of described operating system can be called current mapping table, described second mapping table be stored in described hard disk is called backup mapping table.
Obtaining the 3rd instruction for reading the 3rd content in the hard disk position D pointed by the hard disc physical address D in described hard disk that described operating system sends, namely obtaining described 3rd instruction being used for carrying out read data from described hard disk.
Concrete, after described 3rd instruction of acquisition, can judge whether described first mapping item corresponding to described hard disc physical D address is present in described current mapping table, if judge to determine that described first mapping item corresponding to described hard disc physical address D is not present in described current mapping table, can continue to judge in described current mapping table, whether available free space can be used in storing described first mapping item, if judge to determine do not have free space to can be used in storing described first mapping item in described current mapping table, then can determine to need at least one mapping item described of release from described current mapping table, so that described first mapping item can be stored with the space discharged, and can determine described first mapping item in described backup mapping item will to be loaded in described current mapping table.That is, if there is no described first mapping item in described current mapping table, just normal read data operation can be carried out after then described first mapping item stored in described backup mapping table must being loaded into described current mapping table, therefore, if now do not have in described current mapping table to can be used between space empty storing described first mapping item, that just needs from described current mapping table, to discharge space to deposit described first mapping item.
Concrete, when needs discharge at least one mapping item described from described current mapping table, first can judge in described current mapping table, whether there is at least one mapping item described different from least one mapping item corresponding in described backup mapping table, in the present embodiment, disregard described amendment record, described current mapping table should be identical with described backup mapping table.So, if the mapping item had in described current mapping table is different from mapping item corresponding in described backup mapping table, then can illustrate that described current mapping table was modified, so just should upgrade described backup mapping table according to amended current mapping table.
If it is different from least one the corresponding mapping item in described backup mapping table to judge to determine to have in described current mapping table at least one mapping item described, then can determine at least one mapping item described in described current mapping table need be write in described backup mapping table.
Before writing, first to judge in described backup mapping table, whether available free position is for storing at least one mapping item described, namely judge in described hard disk, whether available free position is for storing at least one mapping item described, if judge to determine there is no clear position in described hard disk for storing at least one mapping item described, so just determine to start as the garbage reclamation flow process in embodiment four.
After obtaining clear position by garbage reclamation, at least one mapping item described can be write described backup mapping table, at least one mapping item described in described current mapping table can be discharged afterwards.
After discharging at least one mapping item described in described current mapping table, described first mapping item in described backup mapping table can be loaded in described current mapping table, like this, described hard disk can read the data in described hard disk according to described first mapping item in described current mapping table.
The data reconstruction method in the embodiment of the present invention is introduced below in conjunction with accompanying drawing.
Embodiment six
Refer to accompanying drawing 2, the embodiment of the present invention provides a kind of data reconstruction method, and described method can be applied to be had in the electronic equipment of hard disk, and wherein, described data reconstruction method is corresponding method flow to the described data back up method in front several embodiment.The main flow of described method is as follows:
Step 201: when needs carry out the second operation to operating system, judges whether to there is the second instruction for carrying out date restoring.
In the embodiment of the present invention, described second instruction can be such as the instruction for starting the operating system in described electronic equipment.
That is, when needs start described operating system, first can judge whether to there is described second instruction.
Preferably, in an alternative embodiment of the invention, described operating system can send described second instruction carrying out date restoring, described hard disk is after receiving described second instruction, mark can be recovered for described second instruction is arranged, and described second instruction being provided with described second mark is stored.Because in general described operating system can send described second instruction when shutting down, now described hard disk is by power down, and therefore described second instruction is just carried out marking and storing by described hard disk.
Described operating system when once starting, namely when needs carry out described second operation to described operating system, can judge whether to exist described second instruction with described recovery mark.
Step 202: if there is described second instruction, according to described second instruction, loads the second mapping table stored in hard disk.
In the embodiment of the present invention, have described described second instruction recovering mark if existed, then described second mapping table that can store in hard disk according to described second instruction load is in the internal memory of described operating system.
In the embodiment of the present invention, according to the description of front several embodiment, described amendment information also may be recorded in the described backup mapping table stored in described hard disk, so, the second mapping table according to described second instruction load, can be specifically: first read at least one amendment record in described backup mapping table, can be such as read the whole amendment records in described backup mapping table, described at least one amendment record according to reading revises described backup mapping table, and the work such as revising described backup mapping table can be complete in described hard disk.After by described backup mapping table amendment, amended described backup mapping table can be loaded in the internal memory of described operating system.
Step 203: described second operation is carried out to described operating system according to described second mapping table.
After described second mapping table of loading, described operating system can be started according to described second mapping table, also just complete the work of date restoring.
The electronic equipment in the present invention is introduced below in conjunction with accompanying drawing.
Embodiment seven
Refer to Fig. 3, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment can include hard disk, and preferably, described hard disk can be SSD hard disk.Described hard disk can comprise the first determination module 301 and the first acquisition module 302.
Preferably, described hard disk can also comprise the second acquisition module 303, first processing module 304, first judge module 305, second processing module 306, second determination module 307, first change module 308, second judge module 309, the 3rd determination module 310, the 3rd acquisition module 311, the 4th determination module 312 and the 5th determination module 313.
First determination module 301 may be used at least one the effective hard disc physical address determined from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation in described hard disk.
In the embodiment of the present invention, the first determination module 301 can comprise first and determine that submodule and second determines submodule.
Described first determine submodule may be used for the valid data determining to store in described hard disk distinguish corresponding at least one effective hard disc physical address described.
Described second determines that submodule may be used for determining at least one effective hard disc physical address described according to each mapping item in described first mapping table.
First acquisition module 302 may be used for arranging at least one first identification information at least one effective hard disc physical address described in described first mapping table, obtain the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
Second acquisition module 303 may be used for the first instruction for carrying out data backup obtaining the transmission of described operating system.
First processing module 304 may be used for described second mapping table to be stored in the internal memory of described operating system as current mapping table, and, described second mapping table is stored in described hard disk as backup mapping table.
First judge module 305 may be used for, when needing the first hard disk position of the first hard disc physical address sensing in hard disk to carry out the first operation, judging that whether described first hard disc physical address is with the first identification information according to described current mapping table.
If the second processing module 306 may be used for described first hard disc physical address strap described first identification information, the first content stored in described first hard disk position is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and record modification information, described first hard disc physical address is different from described second hard disc physical address.
Second processing module 306 specifically may be used for recording described amendment information in described backup mapping table.
Second processing module 306 can comprise the 5th and determine submodule and the first process submodule.
Described 5th determines that submodule may be used for from the protected location of described hard disk, determine described second hard disc physical address.
Described first process submodule may be used for described first content being copied to the described second hard disk position pointed to described second hard disc physical address.
Second determination module 307 may be used for determining to need the first hard disk position to the first hard disc physical address in hard disk is pointed to carry out the first operation.
In the embodiment of the present invention, the second determination module 307 can comprise the first acquisition submodule, the 3rd and determine that submodule and the 4th determines submodule.
Described first obtains the second instruction for operating the first hard disk logical address in described hard disk that submodule may be used for obtaining the transmission of described operating system.
Described 3rd determines that submodule may be used for by inquiring about described current mapping table, determines that described first hard disk logical address and described first hard disc physical address belong to same mapping list item.
Described 4th determines that submodule may be used for determining to need the described first hard disk position pointed to described first hard disc physical address to carry out described first operation.
In the embodiment of the present invention, described first operation can for carrying out the operation of garbage reclamation by described first content, or described first operation can be the operation writing the second content to described first hard disk position, or described first operation can for carrying out the operation backed up by described first content.
In the embodiment of the present invention, when described first be operating as described first content is carried out the operation of garbage reclamation time, the first change module 308 mapping item that may be used between the described first hard disk logical address that stored in described current mapping table Central Plains and the first hard disc physical address changes to the mapping item between described first hard disk logical address and described second hard disc physical address.
In the embodiment of the present invention, when described first be operating as described first content is carried out the operation of garbage reclamation time, it is different from least one mapping item corresponding in described backup mapping table that the second judge module 309 may be used for judging whether have at least one mapping item described in described current mapping table.
If the 3rd determination module 310 may be used for having at least one mapping item described different from least one mapping item corresponding in described backup mapping table in described current mapping table, determine at least one mapping item described to be write in described backup mapping table, and discharge at least one mapping item described in described current mapping table.
3rd acquisition module 311 may be used for obtaining the 3rd instruction for reading the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address in described hard disk.
The first mapping item that 4th determination module 312 may be used for when described 4th hard disc physical address is corresponding is not present in described current mapping table, and when there is no free space in described current mapping table, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
In the embodiment of the present invention, when described first be operating as write the operation of the second content to described first hard disk position time, 5th determination module 313 may be used for from described hard disk, determine the 3rd hard disc physical address, by the 3rd hard disk position pointed by the described second described 3rd hard disc physical address of content write, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address are different between two.
5th determination module 313 can comprise the first judgement submodule and the 5th and determine submodule.
Described first judges that submodule may be used for judging in described hard disk, whether available free described 3rd hard disk position can supply described second content of write.
Described 5th determines that submodule may be used for when not having idle described 3rd hard disk position for when writing described second content, to determine to carry out described garbage reclamation operation to described hard disk, to obtain clear position in described hard disk in described hard disk.
Embodiment eight
Refer to Fig. 4, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment can have hard disk, and described hard disk can comprise the 3rd judge module 401, load-on module 402 and operational module 403.Preferably, the described electronic equipment in the embodiment of the present invention and embodiment one---the described electronic equipment in embodiment seven can be same electronic equipment.
Preferably, described hard disk can also comprise the 4th acquisition module 404 and mark module 405.
3rd judge module 401 may be used for when needs carry out the second operation to operating system, judges whether to there is the second instruction for carrying out date restoring.
If load-on module 402 may be used for there is described second instruction, according to described second instruction, load the second mapping table stored in hard disk.
Load-on module 402 can comprise reading submodule, amendment submodule and load submodule.
Described reading submodule may be used for reading at least one amendment record in described second mapping table.
Described amendment submodule may be used for according to described second mapping table of described at least one amendment record amendment.
Described loading submodule may be used for loading amended described second mapping table.
Operational module 403 may be used for carrying out described second operation according to described second mapping table to described operating system.
4th acquisition module 404 may be used for obtaining described second instruction for carrying out date restoring.
Mark module 405 may be used for described second instruction being marked according to the second identification information.
In the embodiment of the present invention, described second operation can for starting the operation of described operating system.
Data back up method in the embodiment of the present invention, described method can be applied to and include in the electronic equipment of hard disk, and described method can comprise: from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation, determine at least one the effective hard disc physical address in described hard disk; In described first mapping table, at least one first identification information is set at least one effective hard disc physical address described, obtains the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
In the embodiment of the present invention, when needs carry out data backup, at least one effective hard disc physical address described in can determining in described hard disk from described first mapping table, wherein each effective hard disc physical address corresponds to the valid data stored in described hard disk, after determining at least one effective hard disc physical address described, can at least one effective hard disc physical address described arranges at least one first identification information described respectively in described first mapping table, be each effective hard disc physical address and described first identification information is set, obtain described second mapping table, like this, in follow-up operation, no matter the write operation for described hard disk or garbage reclamation operation, can back up the valid data stored in described hard disk according to described second mapping table.Like this, both the effect of data backup can not have been affected, simultaneously when receiving data backup commands, only need arrange described first identification information in described first mapping table, without the need to carrying out concrete back-up job, obvious electronic equipment can not need to process more task a moment, for electronic equipment, need task to be processed comparatively to disperse, can not cause the burden of electronic equipment, also shorter concerning the stand-by period user, treatment effeciency is higher.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that the technical scheme of the application contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the application.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above, above embodiment is only in order to be described in detail the technical scheme of the application, but the explanation of above embodiment just understands method of the present invention and core concept thereof for helping, and should not be construed as limitation of the present invention.Those skilled in the art are in the technical scope that the present invention discloses, and the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.

Claims (36)

1. a data back up method, is applied to and includes in the electronic equipment of hard disk, it is characterized in that, said method comprising the steps of:
At least one the effective hard disc physical address in described hard disk is determined from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation;
In described first mapping table, at least one first identification information is set at least one effective hard disc physical address described, obtains the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
2. the method for claim 1, it is characterized in that, characterize the first mapping table of the mapping item of hard disk logical address and hard disc physical address corresponding relation determine that the step of at least one effective hard disc physical address in described hard disk comprises from storing at least one:
Determine the valid data stored in described hard disk distinguish corresponding at least one effective hard disc physical address described;
At least one effective hard disc physical address described is determined according to each mapping item in described first mapping table.
3. method as claimed in claim 2, it is characterized in that, the valid data determining to store in described hard disk corresponding respectively described in also comprise step before at least one effective hard disc physical address: obtain the first instruction for carrying out data backup that described operating system sends.
4. the method for claim 1, it is characterized in that, at least one first identification information described is being set at least one effective hard disk address described, also step is comprised: be stored in the internal memory of described operating system using described second mapping table as current mapping table after obtaining the second mapping table, and, described second mapping table is stored in described hard disk as backup mapping table.
5. method as claimed in claim 4, is characterized in that, be stored in the internal memory of described operating system by described second mapping table as current mapping table, and, described second mapping table is also comprised step after backup mapping table is stored in described hard disk:
When needing the first hard disk position of the first hard disc physical address sensing in hard disk to carry out the first operation, judge that whether described first hard disc physical address is with the first identification information according to described current mapping table;
If described first hard disc physical address strap has described first identification information, the first content stored in described first hard disk position is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and record modification information, described first hard disc physical address is different from described second hard disc physical address.
6. method as claimed in claim 5, it is characterized in that, the step of record modification information comprises: in described backup mapping table, record described amendment information.
7. method as claimed in claim 5, is characterized in that, determines that the step needing the first hard disk position pointed to the first hard disc physical address in hard disk to carry out the first operation comprises:
Obtain the second instruction for operating the first hard disk logical address in described hard disk that described operating system sends;
By inquiring about described current mapping table, determine that described first hard disk logical address and described first hard disc physical address belong to same mapping list item;
Determine to need the described first hard disk position pointed to described first hard disc physical address to carry out described first operation.
8. method as claimed in claim 5, is characterized in that, the step first content stored in described first hard disc physical address being copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to comprises:
Described second hard disc physical address is determined from the protected location of described hard disk;
Described first content is copied to the described second hard disk position that described second hard disc physical address is pointed to.
9. method as claimed in claim 5, it is characterized in that, described first is operating as the operation described first content being carried out garbage reclamation, or described first is operating as the operation writing the second content to described first hard disk position, or described first is operating as the operation being carried out by described first content backing up.
10. method as claimed in claim 9, it is characterized in that, when described first be operating as described first content is carried out the operation of garbage reclamation time, after record modification information, also comprise step: the mapping item between the described first hard disk logical address store described current mapping table Central Plains and the first hard disc physical address changes to the mapping item between described first hard disk logical address and described second hard disc physical address.
11. methods as claimed in claim 9, it is characterized in that, when described first be operating as described first content is carried out the operation of garbage reclamation time, before the first operation is carried out in the first hard disk position needing in hard disk the first hard disc physical address to point to, also comprise step:
Judge in described current mapping table, whether there is at least one mapping item described different from least one mapping item corresponding in described backup mapping table;
If there is at least one mapping item described different from least one mapping item corresponding in described backup mapping table in described current mapping table, determine at least one mapping item described to be write in described backup mapping table, and discharge at least one mapping item described in described current mapping table.
12. methods as claimed in claim 11, is characterized in that, judge whether to have in described current mapping table at least one mapping item described different from least one mapping item corresponding in described backup mapping table before also comprise step:
Obtain the 3rd instruction for reading the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address in described hard disk;
When the first mapping item that described 4th hard disc physical address is corresponding is not present in described current mapping table, and when there is no free space in described current mapping table, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
13. methods as claimed in claim 9, it is characterized in that, when described first be operating as write the operation of the second content to described first hard disk position time, in the second hard disk position that the second hard disc physical address copied to by the first content stored in described first address in described hard disk is pointed to, and also comprise step after record modification information: from described hard disk, determine the 3rd hard disc physical address, by the 3rd hard disk position pointed by the described second described 3rd hard disc physical address of content write, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address different between two.
14. methods as claimed in claim 13, is characterized in that, determine that the step of the 3rd hard disc physical address comprises from described hard disk:
Judge in described hard disk, whether available free described 3rd hard disk position can supply described second content of write;
Can, for when writing described second content, determine to carry out described garbage reclamation operation to described hard disk, to obtain clear position in described hard disk when there is no idle described 3rd hard disk position in described hard disk.
15. 1 kinds of data reconstruction methods, are applied to the electronic equipment with hard disk, it is characterized in that, said method comprising the steps of:
When needs carry out the second operation to operating system, judge whether to there is the second instruction for carrying out date restoring;
If there is described second instruction, according to described second instruction, load the second mapping table stored in hard disk;
According to described second mapping table, described second operation is carried out to described operating system.
16. methods as claimed in claim 15, is characterized in that, when carrying out the second operation when needs to operating system, also comprise step before judging whether to there is the second instruction for carrying out date restoring:
Obtain described second instruction for carrying out date restoring;
According to the second identification information, described second instruction is marked.
17. methods as claimed in claim 15, is characterized in that, according to described second instruction, the step loading the second mapping table stored in hard disk comprises:
Read at least one amendment record in described second mapping table;
According to described second mapping table of described at least one amendment record amendment;
Load amended described second mapping table.
18. methods as described in any one of claim 15-17, it is characterized in that, described second is operating as the operation starting described operating system.
19. 1 kinds of electronic equipments, described electronic equipment includes hard disk, it is characterized in that, described hard disk comprises:
First determination module, for determining at least one the effective hard disc physical address in described hard disk from the first mapping table storing hard disk logical address and hard disc physical address corresponding relation;
First acquisition module, for arranging at least one first identification information at least one effective hard disc physical address described in described first mapping table, obtain the second mapping table, to carry out data backup according to described second mapping table and at least one first identification information described.
20. electronic equipments as claimed in claim 19, is characterized in that, described first determination module comprises first and determines that submodule and second determines submodule;
Described first determine submodule for determine the valid data that store in described hard disk distinguish at least one effective hard disc physical address described in correspondence;
Described second determines that submodule for determining at least one effective hard disc physical address described according to each mapping item in described first mapping table.
21. electronic equipments as claimed in claim 20, it is characterized in that, described hard disk also comprises the second acquisition module, for obtaining the first instruction for carrying out data backup that described operating system sends.
22. electronic equipments as claimed in claim 19, it is characterized in that, described hard disk also comprises the first processing module, for described second mapping table is stored in the internal memory of described operating system as current mapping table, and, described second mapping table is stored in described hard disk as backup mapping table.
23. electronic equipments as claimed in claim 22, it is characterized in that, described hard disk also comprises the first judge module and the second processing module;
Described first judge module is used for, when needing the first hard disk position of the first hard disc physical address sensing in hard disk to carry out the first operation, judging that whether described first hard disc physical address is with the first identification information according to described current mapping table;
If described second processing module is used for described first hard disc physical address strap described first identification information, the first content stored in described first hard disk position is copied to the second hard disk position that the second hard disc physical address in described hard disk is pointed to, and record modification information, described first hard disc physical address is different from described second hard disc physical address.
24. electronic equipments as claimed in claim 23, is characterized in that, described second processing module specifically for recording described amendment information in described backup mapping table.
25. electronic equipments as claimed in claim 23, it is characterized in that, described hard disk also comprises the second determination module, needs the first hard disk position to the first hard disc physical address in hard disk is pointed to carry out the first operation for determining; Wherein, described second determination module comprises the first acquisition submodule, the 3rd and determines that submodule and the 4th determines submodule;
Described first obtains submodule for obtaining second instruction for operating the first hard disk logical address in described hard disk of described operating system transmission;
Described 3rd determines that submodule is for by the described current mapping table of inquiry, determines that described first hard disk logical address and described first hard disc physical address belong to same mapping list item;
Described 4th determines that submodule needs the described first hard disk position pointed to described first hard disc physical address to carry out described first operation for determining.
26. electronic equipments as claimed in claim 23, is characterized in that, described second processing module comprises the 5th and determines submodule and the first process submodule;
Described 5th determines that submodule is for determining described second hard disc physical address in the protected location from described hard disk;
Described first process submodule is used for described first content being copied to the described second hard disk position pointed to described second hard disc physical address.
27. electronic equipments as claimed in claim 23, it is characterized in that, described first is operating as the operation described first content being carried out garbage reclamation, or described first is operating as the operation writing the second content to described first hard disk position, or described first is operating as the operation being carried out by described first content backing up.
28. electronic equipments as claimed in claim 27, it is characterized in that, when described first be operating as described first content is carried out the operation of garbage reclamation time, described hard disk also comprises the first change module, for the mapping item between the described first hard disk logical address of described current mapping table Central Plains storage and the first hard disc physical address being changed to the mapping item between described first hard disk logical address and described second hard disc physical address.
29. electronic equipments as claimed in claim 27, is characterized in that, when described first be operating as described first content is carried out the operation of garbage reclamation time, described electronic equipment also comprises the second judge module and the 3rd determination module;
Described second judge module is different from least one mapping item corresponding in described backup mapping table for judging whether there is at least one mapping item described in described current mapping table;
If described 3rd determination module is used for having at least one mapping item described different from least one mapping item corresponding in described backup mapping table in described current mapping table, determine at least one mapping item described to be write in described backup mapping table, and discharge at least one mapping item described in described current mapping table.
30. electronic equipments as claimed in claim 29, is characterized in that, described hard disk also comprises the 3rd acquisition module and the 4th determination module;
Described 3rd acquisition module is for obtaining the 3rd instruction of the 3rd content in the 4th hard disk position pointed by the 4th hard disc physical address for reading in described hard disk;
The first mapping item that described 4th determination module is used for when described 4th hard disc physical address is corresponding is not present in described current mapping table, and when there is no free space in described current mapping table, determine at least one mapping item described in described current mapping table to be discharged, and described first mapping item in described backup mapping table is loaded in described current mapping table.
31. electronic equipments as claimed in claim 27, it is characterized in that, when described first be operating as write the operation of the second content to described first hard disk position time, described hard disk also comprises the 5th determination module, for determining the 3rd hard disc physical address from described hard disk, by the 3rd hard disk position pointed by the described second described 3rd hard disc physical address of content write, described 3rd hard disc physical address, described first hard disc physical address and described second hard disc physical address are different between two.
32. electronic equipments as claimed in claim 31, is characterized in that, described 5th determination module comprises the first judgement submodule and the 5th and determines submodule;
Described first judges that submodule is for judging in described hard disk, whether available free described 3rd hard disk position can supply described second content of write;
Described 5th determines that submodule is not for when having idle described 3rd hard disk position can supply described second content of write in described hard disk, determine to carry out described garbage reclamation operation to described hard disk, to obtain clear position in described hard disk.
33. 1 kinds of electronic equipments, described electronic equipment has hard disk, it is characterized in that, described hard disk comprises:
3rd judge module, for when needs carry out the second operation to operating system, judges whether to there is the second instruction for carrying out date restoring;
Load-on module, if for there is described second instruction, according to described second instruction, loads the second mapping table stored in hard disk;
Operational module, for carrying out described second operation according to described second mapping table to described operating system.
34. electronic equipments as claimed in claim 33, it is characterized in that, described hard disk also comprises the 4th acquisition module and mark module;
Described 4th acquisition module is for obtaining described second instruction for carrying out date restoring;
Described mark module is used for described second instruction being marked according to the second identification information.
35. electronic equipments as claimed in claim 33, is characterized in that, described load-on module comprises reading submodule, amendment submodule and loads submodule;
Described reading submodule is for reading at least one amendment record in described second mapping table;
Described amendment submodule is used for according to described second mapping table of described at least one amendment record amendment;
Described loading submodule is for loading amended described second mapping table.
36. electronic equipments as described in any one of claim 33-35, it is characterized in that, described second is operating as the operation starting described operating system.
CN201310219638.XA 2013-06-04 2013-06-04 A kind of data backup, restoration methods and electronic equipment Active CN104216796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310219638.XA CN104216796B (en) 2013-06-04 2013-06-04 A kind of data backup, restoration methods and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310219638.XA CN104216796B (en) 2013-06-04 2013-06-04 A kind of data backup, restoration methods and electronic equipment

Publications (2)

Publication Number Publication Date
CN104216796A true CN104216796A (en) 2014-12-17
CN104216796B CN104216796B (en) 2018-02-09

Family

ID=52098315

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310219638.XA Active CN104216796B (en) 2013-06-04 2013-06-04 A kind of data backup, restoration methods and electronic equipment

Country Status (1)

Country Link
CN (1) CN104216796B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243025A (en) * 2015-09-25 2016-01-13 联想(北京)有限公司 Mapping table forming and loading methods and electronic device
CN105893183A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Method for protecting data of hard disks
CN105893177A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Hard disk data protection method
CN106919342A (en) * 2015-12-28 2017-07-04 成都华为技术有限公司 Storage resource distribution method and device based on automatic simplify configuration
CN107957852A (en) * 2017-10-13 2018-04-24 记忆科技(深圳)有限公司 A kind of method for lifting solid state hard disc consistency of performance
CN108170562B (en) * 2018-01-12 2020-10-09 深圳大普微电子科技有限公司 Solid state disk and data processing method and system thereof
CN112015341A (en) * 2020-08-26 2020-12-01 合肥康芯威存储技术有限公司 Data storage method, storage system and storage medium
CN113126895A (en) * 2019-12-30 2021-07-16 爱思开海力士有限公司 Storage device and operation method thereof
WO2022063020A1 (en) * 2020-09-24 2022-03-31 International Business Machines Corporation Data storage volume recovery management

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936866A (en) * 2006-08-18 2007-03-28 福昭科技(深圳)有限公司 Flash memory body storing mechanism with data restoring function
CN101477492A (en) * 2009-01-21 2009-07-08 华中科技大学 Circulating rewriting flash memory equalization method used for solid state disk
US7716184B1 (en) * 2003-06-12 2010-05-11 Symantec Operating Corporation System and method for performing sparse backups
CN102043727A (en) * 2009-10-10 2011-05-04 成都市华为赛门铁克科技有限公司 Method and device for recovering solid-state hard disc mapping table
CN102696010A (en) * 2009-09-08 2012-09-26 弗森-艾奥公司 Apparatus, system, and method for caching data on a solid-state storage device
CN102945208A (en) * 2012-10-25 2013-02-27 记忆科技(深圳)有限公司 Multiuser hard disk system and implementation method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716184B1 (en) * 2003-06-12 2010-05-11 Symantec Operating Corporation System and method for performing sparse backups
CN1936866A (en) * 2006-08-18 2007-03-28 福昭科技(深圳)有限公司 Flash memory body storing mechanism with data restoring function
CN101477492A (en) * 2009-01-21 2009-07-08 华中科技大学 Circulating rewriting flash memory equalization method used for solid state disk
CN102696010A (en) * 2009-09-08 2012-09-26 弗森-艾奥公司 Apparatus, system, and method for caching data on a solid-state storage device
CN102043727A (en) * 2009-10-10 2011-05-04 成都市华为赛门铁克科技有限公司 Method and device for recovering solid-state hard disc mapping table
CN102945208A (en) * 2012-10-25 2013-02-27 记忆科技(深圳)有限公司 Multiuser hard disk system and implementation method thereof

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105243025A (en) * 2015-09-25 2016-01-13 联想(北京)有限公司 Mapping table forming and loading methods and electronic device
CN106919342A (en) * 2015-12-28 2017-07-04 成都华为技术有限公司 Storage resource distribution method and device based on automatic simplify configuration
CN105893183A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Method for protecting data of hard disks
CN105893177A (en) * 2016-03-30 2016-08-24 苏州美天网络科技有限公司 Hard disk data protection method
CN107957852A (en) * 2017-10-13 2018-04-24 记忆科技(深圳)有限公司 A kind of method for lifting solid state hard disc consistency of performance
CN107957852B (en) * 2017-10-13 2021-08-13 记忆科技(深圳)有限公司 Method for improving performance consistency of solid state disk
US11307936B2 (en) 2018-01-12 2022-04-19 Shenzhen Dapu Microelectronics Co., Ltd. Solid-state drive data security
CN108170562B (en) * 2018-01-12 2020-10-09 深圳大普微电子科技有限公司 Solid state disk and data processing method and system thereof
CN113126895A (en) * 2019-12-30 2021-07-16 爱思开海力士有限公司 Storage device and operation method thereof
CN112015341A (en) * 2020-08-26 2020-12-01 合肥康芯威存储技术有限公司 Data storage method, storage system and storage medium
CN112015341B (en) * 2020-08-26 2024-03-22 合肥康芯威存储技术有限公司 Data storage method, storage system and storage medium
WO2022063020A1 (en) * 2020-09-24 2022-03-31 International Business Machines Corporation Data storage volume recovery management
US11461193B2 (en) 2020-09-24 2022-10-04 International Business Machines Corporation Data storage volume recovery management
GB2614675A (en) * 2020-09-24 2023-07-12 Ibm Data storage volume recovery management

Also Published As

Publication number Publication date
CN104216796B (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN104216796A (en) Data backup and recovery method and electronic device
CN103268201B (en) A kind of date storage method, memory storage and read method
CN109783017B (en) Storage device bad block processing method and device and storage device
CN102360317B (en) Method to separate and persist static and dynamic portions of a control application
CN102667703A (en) System and method for optimized reclamation processing in a virtual tape library system
CN102929748A (en) Method and device for data backup
CN103150256A (en) Method and device to improve usb flash write performance
CN111007985B (en) Compatible processing method, system and equipment for space recovery of storage system
CN103729300A (en) Method and related device for managing non-volatile memories
CN105260267A (en) Data refreshing method and solid state disk
CN103853566A (en) Basic input output system (BIOS) updating system and method
CN104424122A (en) Electronic equipment and memory dividing method
CN103970665A (en) FPGA (field programmable gate array) system for simulating SPI (serial peripheral interface) FLASH and debugging method
CN102207905A (en) System recovery method, storage media controller and storage system
CN113190241B (en) Method and device for expanding capacity of data partition, electronic equipment and storage medium
CN104281505B (en) Data back up method, device and electronic equipment
CN102025758A (en) Method, device and system fore recovering data copy in distributed system
CN103176920A (en) Nor flash power down protection method and Nor flash power down protection device
CN104765631B (en) A kind of application recovery method and device of mobile terminal
CN104408126B (en) A kind of persistence wiring method of database, device and system
CN113641446A (en) Memory snapshot creating method, device and equipment and readable storage medium
CN104252366B (en) System recovery method, device, processor and memory
CN104199687A (en) Method and device for processing data in virtual machine system
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN108874318A (en) The data reconstruction method and solid state hard disk of solid state hard disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20170214

Address after: The 100176 branch of Beijing Daxing District economic and Technological Development Zone, fourteen Street No. 99 building 33 building D No. 2226

Applicant after: Beijing legend core technology Co., Ltd.

Address before: 100085 Beijing on the road to entrepreneurship, No. 6 Haidian District

Applicant before: Lenovo (Beijing) Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190808

Address after: 518067 Dongjiaotou Workshop D24/F-02, Houhai Avenue, Shekou Street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Yi Lian Information System Co., Ltd.

Address before: The 100176 branch of Beijing Daxing District economic and Technological Development Zone, fourteen Street No. 99 building 33 building D No. 2226

Patentee before: Beijing legend core technology Co., Ltd.