[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116737451A - Data recovery method and device of flash memory, solid state disk and storage medium - Google Patents

Data recovery method and device of flash memory, solid state disk and storage medium Download PDF

Info

Publication number
CN116737451A
CN116737451A CN202310612948.1A CN202310612948A CN116737451A CN 116737451 A CN116737451 A CN 116737451A CN 202310612948 A CN202310612948 A CN 202310612948A CN 116737451 A CN116737451 A CN 116737451A
Authority
CN
China
Prior art keywords
data recovery
flash memory
data
strategy
policy
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
CN202310612948.1A
Other languages
Chinese (zh)
Other versions
CN116737451B (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.)
Zhuhai Miaocun Technology Co ltd
Original Assignee
Zhuhai Miaocun Technology Co 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 Zhuhai Miaocun Technology Co ltd filed Critical Zhuhai Miaocun Technology Co ltd
Priority to CN202310612948.1A priority Critical patent/CN116737451B/en
Publication of CN116737451A publication Critical patent/CN116737451A/en
Application granted granted Critical
Publication of CN116737451B publication Critical patent/CN116737451B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/10Programming or data input circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The embodiment of the application provides a data recovery method and device of a flash memory, a solid state disk and a storage medium, wherein the method comprises the following steps: under the condition that the flash memory is lost, performing feature fitting identification processing on the flash memory to generate an identification result; matching the identification result with each piece of application scene information in a preset application scene library, and determining target scene information in the application scene library from each piece of application scene information, wherein the target scene information is at least one piece of application scene information matched with the identification result; determining a data recovery strategy for the flash memory according to the target scene information; and carrying out data recovery processing on the flash memory according to the data recovery strategy. Compared with the related art, the embodiment of the application can match corresponding data recovery strategies aiming at different application scenes, adapt to different situations of flash memory data loss, and can improve the data recovery efficiency of the flash memory.

Description

Data recovery method and device of flash memory, solid state disk and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for recovering data from a flash memory, a solid state disk, and a storage medium.
Background
At present, in the process of recovering flash memory data, the problem of flash memory data loss is diversified, and the existing data recovery means is single and cannot adapt to different situations of flash memory data loss, so that the data recovery efficiency of the flash memory is low. Therefore, how to improve the data recovery efficiency of the flash memory becomes a technical problem to be solved.
Disclosure of Invention
The embodiment of the application mainly aims to provide a data recovery method and device of a flash memory and a computer readable storage medium, aiming to improve the data recovery efficiency of the flash memory.
In order to achieve the above object, a first aspect of an embodiment of the present application provides a data recovery method for a flash memory, including:
under the condition that the flash memory is lost, performing feature fitting recognition processing on the flash memory to generate a recognition result;
matching the identification result with each piece of application scene information in a preset application scene library, and determining target scene information in the application scene library from each piece of application scene information, wherein the target scene information is at least one piece of application scene information matched with the identification result;
determining a data recovery strategy for the flash memory according to the target scene information;
and carrying out data recovery processing on the flash memory according to the data recovery strategy.
In some embodiments, the performing feature fitting recognition processing on the flash memory to generate a recognition result includes:
reading characteristic data of a data page of the flash memory;
performing fitting analysis on the characteristic data to obtain fitting analysis information, wherein the fitting analysis information is used for indicating the reasons of the data loss of the flash memory;
and generating a recognition result according to the fitting analysis information.
In some embodiments, the characteristic data includes at least one of:
a read voltage;
reading and writing temperature;
the number of times of erasing;
and (5) recording power failure.
In some embodiments, the data recovery policy includes a first data recovery policy, and after performing data recovery processing on the flash memory according to the data recovery policy, the method further includes:
performing failure judgment on the first data recovery strategy to generate a failure judgment result;
and generating a switching strategy for the first data recovery strategy according to the failure judgment result.
In some embodiments, the performing the invalidation judgment on the first data recovery policy, generating an invalidation judgment result includes:
acquiring a data recovery success rate of the flash memory under the first data recovery strategy;
and performing failure judgment on the first data recovery strategy according to the data recovery success rate and a preset recovery success rate threshold value, and generating a failure judgment result.
In some embodiments, the performing failure judgment on the first data recovery policy according to the data recovery success rate and a preset recovery success rate threshold value, and generating a failure judgment result includes:
when the data recovery success rate is smaller than the recovery success rate threshold, generating a first judgment result, wherein the first judgment result indicates that the first data recovery strategy fails;
or,
and when the data recovery success rate is greater than or equal to the recovery success rate threshold, generating a second judgment result, wherein the second judgment result indicates that the first data recovery strategy is effective.
In some embodiments, the data recovery policy further includes a second data recovery policy, and the generating a switching policy for the first data recovery policy according to the failure determination result includes:
when the first data recovery strategy is determined to be invalid according to the invalidation judging result, switching the first data recovery strategy into the second data recovery strategy;
or,
and when the first data recovery strategy is determined to be effective according to the failure judgment result, maintaining the first data recovery strategy.
To achieve the above object, a second aspect of the embodiments of the present application provides a data recovery device for a flash memory, including at least one processor and a memory for communication connection with the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of recovering data of a flash memory as described in the first aspect above.
In order to achieve the above objective, a third aspect of the embodiments of the present application provides a solid state disk, which includes a data recovery device of a flash memory as described in the second aspect.
To achieve the above object, a fourth aspect of the embodiments of the present application proposes a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the data recovery method of the flash memory according to the above first aspect.
According to the data recovery method and device for the flash memory, the solid state disk and the storage medium, under the condition that the data loss of the flash memory is confirmed, the characteristic fitting identification processing is carried out on the flash memory to generate the identification result, and then the identification result is matched with each application scene information in the application scene library, so that the target scene information matched with the identification result in the application scene library is determined from each application scene information, the data recovery strategy of the flash memory can be determined according to the target scene information, the data recovery processing is carried out on the flash memory through the data recovery strategy, and compared with the related art, the data recovery method and the device can adapt to different conditions of the data loss of the flash memory according to the corresponding data recovery strategy matched with different application scenes, and can improve the data recovery efficiency of the flash memory.
Drawings
FIG. 1 is a flow chart of a method for recovering data of a flash memory according to an embodiment of the present application;
fig. 2 is a flowchart of step S101 in fig. 1;
fig. 3 is a flowchart of steps subsequent to step S104 in fig. 1;
fig. 4 is a flowchart of step S301 in fig. 3;
fig. 5 is a flowchart of step S402 in fig. 4;
fig. 6 is a flowchart of step S302 in fig. 3;
fig. 7 is a schematic hardware structure of a data recovery device of a flash memory according to an embodiment of the application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
It should be noted that although functional block division is performed in a schematic of the apparatus and a logic sequence is shown in a flowchart, in some cases, steps shown or described may be performed in a different order than block division in the apparatus or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the application only and is not intended to be limiting of the application.
First, several nouns involved in the present application are parsed:
flash memory: flash Memory (Flash Memory), a form of electronically erasable programmable read-only Memory, allows Memory to be erased or written multiple times during operation. The method is mainly used for general data storage and data exchange and transmission between a computer and other digital products, such as a memory card, a USB flash disk and the like. Flash Memory is a special, macroblock-erasable, erasable programmable read-Only Memory (EPROM).
At present, in the process of recovering flash memory data, the problem of flash memory data loss is diversified, and the existing data recovery means is single and cannot adapt to different situations of flash memory data loss, so that the data recovery efficiency of the flash memory is low. Therefore, how to improve the data recovery efficiency of the flash memory becomes a technical problem to be solved.
Based on the above, the embodiment of the application provides a data recovery method and device of a flash memory, a solid state disk and a storage medium, aiming at improving the data recovery efficiency of the flash memory.
The embodiment of the application provides a data recovery method and device for a flash memory, a solid state disk and a storage medium, and specifically describes the following embodiment.
The embodiment of the application provides a data recovery method of a flash memory, and relates to the technical field of data processing. The data recovery method of the flash memory provided by the embodiment of the application can be applied to the communication node, can be applied to the server side, and can also be software running in the communication node or the server side. In some embodiments, the communication node may be a smart phone, tablet computer, notebook computer, desktop computer, or the like; the server side can be configured as an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms and the like; the software may be an application or the like that implements the data recovery method of the flash memory, but is not limited to the above form.
The application is operational with numerous general purpose or special purpose computer system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
Fig. 1 is an optional flowchart of a method for recovering data of a flash memory according to an embodiment of the present application, where the method in fig. 1 may include, but is not limited to, steps S101 to S104.
Step S101: under the condition that the flash memory is lost, performing feature fitting identification processing on the flash memory to generate an identification result;
step S102: matching the identification result with each piece of application scene information in a preset application scene library, and determining target scene information in the application scene library from each piece of application scene information, wherein the target scene information is at least one piece of application scene information matched with the identification result;
step S103: determining a data recovery strategy for the flash memory according to the target scene information;
step S104: and carrying out data recovery processing on the flash memory according to the data recovery strategy.
In the steps S101 to S104 shown in the embodiment of the present application, in the case of confirming that the data loss occurs in the flash memory, the feature fitting identification is performed on the flash memory to generate an identification result, and then the identification result is matched with each application scene information in the application scene library, so that the target scene information matched with the identification result in the application scene library is determined from each application scene information, thereby determining the data recovery policy for the flash memory according to the target scene information, performing the data recovery processing on the flash memory through the data recovery policy, and compared with the related art, matching the corresponding data recovery policy for different application scenes, adapting to different situations of the data loss of the flash memory, and improving the data recovery efficiency of the flash memory.
In step S101 of some embodiments, the manner of confirming that the flash memory has data loss may be various, for example, taking out the data block of the flash memory for confirmation, etc., which is not limited herein; the specific manner of the feature fitting recognition process is described in the following examples, and is not described here.
In step S102 of some embodiments, the application scenario library and the application scenario information therein may be various, and those skilled in the art may select and set according to specific situations, which is not limited herein.
In step S103 of some embodiments, the manner of determining the data recovery policy for the flash memory according to the target scene information is multiple, for example, the correspondence between each scene information and the data recovery policy is set in advance, and when the target scene information is acquired, the data recovery policy corresponding to the target scene information is determined by comparing and comparing, which is not limited herein. Specifically, possible correspondence may be, but is not limited to, as shown by the following example:
when the scene is reflow soldering, the data recovery strategy is reflow soldering rereading effective groups and soft solution;
when the scene is read interference, the data recovery strategy is read interference re-reading the effective group;
when the scene is power-down starting, the data recovery strategy is power-down rereading the effective group;
when the scene is at high and low temperatures, the data recovery strategy is a high and low temperature effective group, such as high temperature writing and low temperature reading, or low temperature writing and high temperature reading, or high temperature writing and high temperature reading, or low temperature writing and low temperature reading.
When the scene is the first data retention condition, the data recovery strategy is low-erasure high-maintenance rereading effective group;
when the scene is the second data retention condition, the data recovery strategy is low-erasure low-maintenance rereading effective group;
when the scene is the third data holding condition, the data recovery strategy is to maintain the reread effective group in the middle erasure;
when the scene is the fourth data holding condition, the data recovery strategy is high erasure and high maintenance rereading effective group and soft solution.
It should be noted that, considering the case of worse scene, soft solution support is required, or whether soft solution support is required may be selected according to the specific situation.
In step S103 of some embodiments, the data recovery policies may be multiple, for example, there are multiple application scenario information, and each application scenario information corresponds to one data recovery policy, then there are ultimately multiple data recovery policies, and the like, which is not limited herein.
In step S104 of some embodiments, the specific manner of performing the data recovery processing on the flash memory according to the data recovery policy is well known to those skilled in the art, and will not be described herein.
Referring to fig. 2, in some embodiments, step S101 may include, but is not limited to including, steps S201 to S203.
Step S201: reading characteristic data of a data page of the flash memory;
step S202: fitting analysis is carried out on the characteristic data to obtain fitting analysis information, wherein the fitting analysis information is used for indicating the reasons of data loss of the flash memory;
step S203: and generating a recognition result according to the fitting analysis information.
In the step, the characteristic data of the data page of the flash memory are read so as to carry out fitting analysis on the characteristic data, fitting analysis information is obtained, namely, the reason for the data loss of the flash memory is determined through the fitting analysis information, and on the basis, a reliable identification result can be generated according to the fitting analysis information.
In step S201 of some embodiments, the types of feature data may be various, for example, but not limited to, including at least one of: a read voltage; reading and writing temperature; the number of times of erasing; power down logging, etc., without limitation herein.
In step S202 of some embodiments, the fitting analysis may be performed by a computer or a corresponding algorithm system, and a person skilled in the art may also perform a corresponding selection setting, which is not limited herein.
Referring to fig. 3, in some embodiments, the data recovery policy includes a first data recovery policy, and step S104 may further include, but is not limited to, steps S301 to S302.
Step S301: performing failure judgment on the first data recovery strategy to generate a failure judgment result;
step S302: and generating a switching strategy for the first data recovery strategy according to the failure judgment result.
In this step, it is unclear whether the current first data recovery policy is completely suitable for the application scenario of the flash memory, for example, the first data recovery policy is not adapted to the recovery policy due to the fact that some external additional factors are not excluded, so that a failure judgment result can be generated by performing failure judgment on the first data recovery policy, so that whether the first data recovery policy fails or not is confirmed by the failure judgment result, and further, a switching policy for the first data recovery policy can be generated according to the failure judgment result, so as to implement more effective data recovery processing for the flash memory.
In step S302 of some embodiments, the switching policy may be to switch the first data recovery policy to another data recovery policy, or may be to maintain the first data recovery policy, which is not limited herein.
Referring to fig. 4, in some embodiments, step S301 may include, but is not limited to including, steps S401 to S402.
Step S401: acquiring a data recovery success rate under a first data recovery strategy of flash memory;
step S402: and performing failure judgment on the first data recovery strategy according to the data recovery success rate and a preset recovery success rate threshold value, and generating a failure judgment result.
In this step, under the condition of executing the first data recovery policy, the data recovery success rate under the first data recovery policy can be obtained in a corresponding manner, so that the data recovery success rate can be compared with a preset recovery success rate threshold to determine whether the first data recovery policy fails, and a failure determination result is generated.
In step S401 of some embodiments, the success rate of data recovery under the first data recovery policy of the flash memory may be obtained by monitoring the data flow condition of the flash memory, or may be obtained by other preset algorithms, which is not limited herein.
In step S402 of some embodiments, the preset recovery success rate threshold may be various, and needs to be reasonably set according to the approximate range of the data recovery success rate, and may be selected and set by a person skilled in the art, which is not limited herein.
Referring to fig. 5, in some embodiments, step S402 may include, but is not limited to including step S501.
Step S501: when the data recovery success rate is smaller than the recovery success rate threshold, generating a first judgment result, wherein the first judgment result indicates that the first data recovery strategy fails; or generating a second judgment result when the data recovery success rate is greater than or equal to the recovery success rate threshold, wherein the second judgment result indicates that the first data recovery strategy is effective.
In this step, the corresponding determination result is generated by comparing the magnitude relation between the data recovery success rate and the recovery success rate threshold, that is, the data recovery success rate is smaller than the recovery success rate threshold, and the first data recovery policy is determined to be invalid, or the data recovery success rate is greater than or equal to the recovery success rate threshold, and the first data recovery policy is determined to be valid, so that whether the first data recovery policy is invalid can be simply and effectively determined by the simple comparison mode.
Referring to fig. 6, in some embodiments, the data recovery policy further includes a second data recovery policy, and step S302 may include, but is not limited to including step S601.
Step S601: when the first data recovery strategy is determined to be invalid according to the invalidation judging result, switching the first data recovery strategy into a second data recovery strategy; or when the first data recovery strategy is determined to be effective according to the failure judgment result, maintaining the first data recovery strategy.
In this step, when the first data recovery policy is determined to be invalid according to the invalidation judgment result, it is indicated that the first data recovery policy is not applicable, and at this time, the first data recovery policy may be switched to the second data recovery policy to improve the adaptation to the application scenario, otherwise, when the first data recovery policy is determined to be valid according to the invalidation judgment result, it is indicated that the first data recovery policy is still applicable, and at this time, the first data recovery policy may be maintained.
In step S601 of some embodiments, the second data recovery policy may be any policy other than the first data recovery policy, that is, there may be a case where the second data recovery policy is plural, and one second data recovery policy is selected for switching.
It should be noted that, for the second data recovery policy after switching, monitoring may still be continued, and then the failure determination procedure of the above embodiment is repeated, for example, if it is determined that the second data recovery policy after switching fails, the second data recovery policy may be further switched, and finally, the objective is to find a data recovery policy suitable for the scenario, and since this part of the procedure is already described in detail in the foregoing embodiments, details will not be repeated here.
Another embodiment of the present application also provides a data recovery device for a flash memory, including at least one processor and a memory for communication connection with the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data recovery method of the flash memory as described in the above embodiments.
The application also provides a solid state disk, which comprises the data recovery device of the flash memory shown in the embodiment.
Referring to fig. 7, fig. 7 illustrates a hardware structure of a communication optimizing apparatus of another embodiment, the communication optimizing apparatus includes:
the processor 901 may be implemented by a general purpose CPU (Central Processing Unit ), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solution provided by the embodiments of the present application;
the Memory 902 may be implemented in the form of a Read Only Memory (ROM), a static storage device, a dynamic storage device, or a random access Memory (Random Access Memory, RAM). The memory 902 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present disclosure are implemented by software or firmware, relevant program codes are stored in the memory 902, and the processor 901 invokes a training optimization method for executing the embodiments of the present disclosure;
an input/output interface 903 for inputting and outputting information;
the communication interface 904 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (e.g. USB, network cable, etc.), or may implement communication in a wireless manner (e.g. mobile network, WIFI, bluetooth, etc.);
a bus 905 that transfers information between the various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 are communicatively coupled to each other within the device via a bus 905.
The memory is used as a non-transitory computer readable storage medium for storing non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment of the application also provides a computer readable storage medium storing computer executable instructions for causing a computer to execute the data recovery method of the flash memory as shown in the above embodiment.
In one typical configuration, a computer device includes one or more processors (CPUs), an input/output interface, a network interface, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computer device.
The implementation manner of the embodiment of the present application is described for the purpose of more clearly explaining the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided by the embodiment of the present application, and as a person skilled in the art can know that with the evolution of technology and the appearance of new application scenarios, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for apparatus, devices, computer readable storage medium embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The apparatus, the device, the computer readable storage medium and the method provided by the embodiments of the present application correspond to each other, and therefore, the apparatus, the device, the non-volatile computer storage medium also have similar beneficial technical effects as those of the corresponding method, and since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding apparatus, device, and computer storage medium are not described here again.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
The foregoing description is only exemplary embodiments of the application and is not intended to limit the application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for recovering data of a flash memory, comprising:
under the condition that the flash memory is lost, performing feature fitting recognition processing on the flash memory to generate a recognition result;
matching the identification result with each piece of application scene information in a preset application scene library, and determining target scene information in the application scene library from each piece of application scene information, wherein the target scene information is at least one piece of application scene information matched with the identification result;
determining a data recovery strategy for the flash memory according to the target scene information;
and carrying out data recovery processing on the flash memory according to the data recovery strategy.
2. The method for recovering data from a flash memory according to claim 1, wherein said performing feature fitting identification processing on said flash memory to generate an identification result comprises:
reading characteristic data of a data page of the flash memory;
performing fitting analysis on the characteristic data to obtain fitting analysis information, wherein the fitting analysis information is used for indicating the reasons of the data loss of the flash memory;
and generating a recognition result according to the fitting analysis information.
3. The method for recovering data of a flash memory according to claim 2, wherein the characteristic data includes at least one of:
a read voltage;
reading and writing temperature;
the number of times of erasing;
and (5) recording power failure.
4. The method for recovering data from a flash memory according to claim 1, wherein said data recovery policy includes a first data recovery policy, and wherein said performing data recovery processing on said flash memory according to said data recovery policy further comprises:
performing failure judgment on the first data recovery strategy to generate a failure judgment result;
and generating a switching strategy for the first data recovery strategy according to the failure judgment result.
5. The method for recovering data from a flash memory according to claim 4, wherein said performing a failure determination on said first data recovery policy, generating a failure determination result, comprises:
acquiring a data recovery success rate of the flash memory under the first data recovery strategy;
and performing failure judgment on the first data recovery strategy according to the data recovery success rate and a preset recovery success rate threshold value, and generating a failure judgment result.
6. The method for recovering data from a flash memory according to claim 5, wherein said performing a failure determination on said first data recovery policy according to said data recovery success rate and a preset recovery success rate threshold value, generating a failure determination result, comprises:
when the data recovery success rate is smaller than the recovery success rate threshold, generating a first judgment result, wherein the first judgment result indicates that the first data recovery strategy fails;
or,
and when the data recovery success rate is greater than or equal to the recovery success rate threshold, generating a second judgment result, wherein the second judgment result indicates that the first data recovery strategy is effective.
7. The method for recovering data from a flash memory according to claim 4, wherein said data recovery policy further comprises a second data recovery policy, said generating a switching policy for said first data recovery policy based on said failure determination result comprises:
when the first data recovery strategy is determined to be invalid according to the invalidation judging result, switching the first data recovery strategy into the second data recovery strategy;
or,
and when the first data recovery strategy is determined to be effective according to the failure judgment result, maintaining the first data recovery strategy.
8. A data recovery device for a flash memory, comprising at least one processor and a memory for communication with the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data recovery method of the flash memory according to any one of claims 1 to 7.
9. A solid state disk comprising the data recovery device of claim 8.
10. A computer-readable storage medium storing computer-executable instructions for causing a computer to perform the method of recovering data of a flash memory according to any one of claims 1 to 7.
CN202310612948.1A 2023-05-26 2023-05-26 Data recovery method and device of flash memory, solid state disk and storage medium Active CN116737451B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310612948.1A CN116737451B (en) 2023-05-26 2023-05-26 Data recovery method and device of flash memory, solid state disk and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310612948.1A CN116737451B (en) 2023-05-26 2023-05-26 Data recovery method and device of flash memory, solid state disk and storage medium

Publications (2)

Publication Number Publication Date
CN116737451A true CN116737451A (en) 2023-09-12
CN116737451B CN116737451B (en) 2024-06-04

Family

ID=87905489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310612948.1A Active CN116737451B (en) 2023-05-26 2023-05-26 Data recovery method and device of flash memory, solid state disk and storage medium

Country Status (1)

Country Link
CN (1) CN116737451B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931524A (en) * 2024-02-02 2024-04-26 四川和恩泰半导体有限公司 Solid state disk data recovery method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5502812A (en) * 1991-10-04 1996-03-26 Aerospatiale Societe Nationale Industrielle Method and system for automatic fault detection and recovery in a data processing system
JP2007049336A (en) * 2005-08-09 2007-02-22 Nippon Telegr & Teleph Corp <Ntt> Method for restoring fault, communication node and network
CN108596475A (en) * 2018-04-23 2018-09-28 华北电力大学 A kind of PMU data restoration methods based on interpolation section dynamic change
US10769019B2 (en) * 2017-07-19 2020-09-08 Oracle International Corporation System and method for data recovery in a distributed data computing environment implementing active persistence
CN111858574A (en) * 2020-07-30 2020-10-30 暨南大学 Approximately optimal data fragment block rewriting method oriented to data deduplication technology
CN116048880A (en) * 2022-12-29 2023-05-02 浙江大华技术股份有限公司 SMR hard disk data recovery method, node and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5502812A (en) * 1991-10-04 1996-03-26 Aerospatiale Societe Nationale Industrielle Method and system for automatic fault detection and recovery in a data processing system
JP2007049336A (en) * 2005-08-09 2007-02-22 Nippon Telegr & Teleph Corp <Ntt> Method for restoring fault, communication node and network
US10769019B2 (en) * 2017-07-19 2020-09-08 Oracle International Corporation System and method for data recovery in a distributed data computing environment implementing active persistence
CN108596475A (en) * 2018-04-23 2018-09-28 华北电力大学 A kind of PMU data restoration methods based on interpolation section dynamic change
CN111858574A (en) * 2020-07-30 2020-10-30 暨南大学 Approximately optimal data fragment block rewriting method oriented to data deduplication technology
CN116048880A (en) * 2022-12-29 2023-05-02 浙江大华技术股份有限公司 SMR hard disk data recovery method, node and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117931524A (en) * 2024-02-02 2024-04-26 四川和恩泰半导体有限公司 Solid state disk data recovery method

Also Published As

Publication number Publication date
CN116737451B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
EP3917115B1 (en) Data processing method and apparatus, computer device, and storage medium
CN107516038B (en) Method and device for determining device fingerprint
CN106708653B (en) Mixed tax big data security protection method based on erasure code and multiple copies
CN112714359B (en) Video recommendation method and device, computer equipment and storage medium
CN104113576A (en) Method and device for updating client
CN116737451B (en) Data recovery method and device of flash memory, solid state disk and storage medium
CN112162773B (en) Differential upgrading method and device, storage medium and terminal
CN112486915B (en) Data storage method and device
CN112579602A (en) Multi-version data storage method and device, computer equipment and storage medium
KR102147026B1 (en) Application download method and device
CN111460394A (en) Copyright file verification method and device and computer readable storage medium
CN111258756A (en) Load balancing method and device, computer equipment and readable storage medium
CN109195157B (en) Application management method and device and terminal
CN110222046B (en) List data processing method, device, server and storage medium
CN109446754A (en) The guard method of algorithm, device, equipment and storage medium in intelligent contract
CN109753384B (en) Cloud host snapshot backup method and device, computer equipment and storage medium
CN111008181A (en) Method, system, terminal and storage medium for switching storage strategies of distributed file system
CN108133026B (en) Multi-data processing method, system and storage medium
CN112235422B (en) Data processing method and device, computer readable storage medium and electronic device
CN115033551A (en) Database migration method and device, electronic equipment and storage medium
CN111382179B (en) Data processing method and device and electronic equipment
CN111339054A (en) Storage system hierarchical management method, device, equipment and storage medium
US20170286440A1 (en) Method, business processing server and data processing server for storing and searching transaction history data
CN114840488B (en) Distributed storage method, system and storage medium based on super fusion structure
CN112463460B (en) Erasure code-based small block data recovery method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant