CN111367717B - Electronic equipment recovery method, device and system - Google Patents

Electronic equipment recovery method, device and system Download PDF

Info

Publication number
CN111367717B
CN111367717B CN202010105053.5A CN202010105053A CN111367717B CN 111367717 B CN111367717 B CN 111367717B CN 202010105053 A CN202010105053 A CN 202010105053A CN 111367717 B CN111367717 B CN 111367717B
Authority
CN
China
Prior art keywords
data
data block
information
page
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010105053.5A
Other languages
Chinese (zh)
Other versions
CN111367717A (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.)
Guangzhou Ankai Microelectronics Co ltd
Original Assignee
Guangzhou Ankai Microelectronics 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 Guangzhou Ankai Microelectronics Co ltd filed Critical Guangzhou Ankai Microelectronics Co ltd
Priority to CN202010105053.5A priority Critical patent/CN111367717B/en
Publication of CN111367717A publication Critical patent/CN111367717A/en
Application granted granted Critical
Publication of CN111367717B publication Critical patent/CN111367717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • 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
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a method, a device and a system for recovering electronic equipment, wherein the method comprises the steps of firstly acquiring state information of a first data block in a storage medium; judging whether the first data block is damaged or not according to the state information of the first data block; if the first data block is not damaged, judging whether the data information of a first data page in the first data block can be acquired; if the data information of a first data page in the first data block cannot be acquired, restarting the first data page after marking an error identifier on the first data page; after the error identification is read, extracting backup information corresponding to the first data page from a backup library to the first data page; according to the technical scheme of the invention, the automatic recovery of the stored data can be realized on the premise of not changing the storage medium, so that the stability of the system is improved, the cost is reduced, and the user experience is further improved.

Description

Electronic equipment recovery method, device and system
Technical Field
The present invention relates to the field of system recovery technologies, and in particular, to a method, an apparatus, and a system for recovering an electronic device.
Background
At present, the storage medium of the consumer electronics product can have the problem of data block damage in the using process, when the system is started, if the storage information in the damaged data block is read, the system is disordered due to reading wrong data, so that the system is crashed, and the user experience is further influenced.
In the prior art, a recovery method for an electronic device mainly changes a new storage medium and re-records a program into the new storage medium to realize normal operation of a system. However, in the recovery method of the electronic device, when the system crashes due to reading of wrong data, one storage medium needs to be replaced, which is high in cost; in addition, the method also needs professional technicians to replace, and the system cannot recover by itself, so that the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for recovering electronic equipment, which can realize automatic recovery of stored data on the premise of not changing a storage medium, thereby improving the stability of the system, reducing the cost and further improving the user experience.
In order to solve the above technical problem, an embodiment of the present invention provides a method for recovering an electronic device, including:
acquiring storage information corresponding to each data block in a storage medium, and backing up the storage information to a backup library;
acquiring state information of a first data block in a storage medium, wherein the storage medium is SPI NAND;
judging whether the first data block is damaged or not according to the state information of the first data block;
if the first data block is not damaged, judging whether the data information of the first data page in the first data block can be acquired or not;
if the data information of a first data page in the first data block cannot be acquired, restarting the first data page after marking an error identifier on the first data page;
and after the error identification is read, extracting the backup information corresponding to the first data page from the backup library to the first data page.
As a preferred scheme, the determining whether the first data block is damaged according to the state information of the first data block specifically includes:
the first data block comprises K data pages, wherein K is an integer greater than 1;
acquiring data information of a data page arranged at the top according to the page number, and judging whether a flag bit of an ith character in the data information is a preset value or not, wherein i is an integer greater than 1;
if the flag bit is a preset value, the first data block is not damaged;
and if the flag bit is not a preset value, the first data block is damaged.
Preferably, after determining whether the first data block is damaged, the method further includes:
and if the first data block is damaged, acquiring the state information of a second data block in the storage medium.
As a preferred scheme, the determining whether the data information of the first data page in the first data block can be acquired specifically includes:
the first data block comprises K data pages, wherein K is an integer greater than 1;
comparing the data information of the first data page with the backup information corresponding to the first data page in the backup library;
if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is smaller than or equal to a preset threshold value, indicating that the data information of the first data page can be acquired;
and if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is larger than a preset threshold, indicating that the data information of the first data page cannot be acquired.
Preferably, after determining whether the data information of the first data page in the first data block can be acquired, the method further includes:
and if the data information of the first data page can be acquired, continuously acquiring the data information of a second data page in the first data block until the system is normally started after the data information of all data pages in the first data block is acquired.
Correspondingly, an embodiment of the present invention further provides a recovery apparatus for an electronic device, including:
the data acquisition module is used for acquiring the state information of a first data block in a storage medium, wherein the storage medium is an SPI NAND;
the first judging module is used for judging whether the first data block is damaged or not according to the state information of the first data block;
the first execution module is used for starting the second judgment module when the first judgment module determines that the first data block is not damaged;
the second judging module is used for judging whether the data information of the first data page in the first data block can be acquired or not;
the second execution module is used for restarting after marking an error identifier on a first data page when the second judgment module determines that the data information of the first data page in the first data block cannot be acquired;
and the recovery module extracts the backup information corresponding to the first data page from a backup library to the first data page after reading the error identifier.
Correspondingly, an embodiment of the present invention further provides a recovery system for an electronic device, including: a recovery device of the electronic device; further comprising: the recovery device is used for recovering the backup data in the system upgrading process;
the recovery device comprises a first upgrading module, a third judging module, a fifth executing module, a detecting module and a recovery module;
the first upgrading module is used for acquiring an upgrading instruction for upgrading a first data block and upgrading a first backup area corresponding to the first data block according to the upgrading instruction; the upgrading operation is to record an upgrading program into the first backup area;
the third judging module is used for judging whether the first backup area is upgraded successfully;
the fifth execution module is configured to mark, when the third determination module determines that the first backup area fails to be upgraded, the identification information being upgraded on the first data block;
the detection module is used for detecting whether the identification information which is being upgraded exists on the first data block;
the restoration module is configured to copy the storage information on the first data block to a first backup area when the detection module determines that the identification information being upgraded exists on the first data block.
Preferably, the restoring apparatus further includes a sixth executing module, configured to execute the third determining module to mark upgraded identification information on the first data block when the first backup area is determined to be upgraded successfully.
Preferably, the restoring apparatus further includes a second upgrading module, configured to, when the detection module determines that the identification information being upgraded does not exist on the first data block, enter an upgrading program of the first backup area into the first data block.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a recovery method of electronic equipment, which comprises the steps of firstly obtaining state information of a first data block in a storage medium; judging whether the first data block is damaged or not according to the state information of the first data block; if the first data block is not damaged, judging whether the data information of the first data page in the first data block can be acquired or not; if the data information of the first data page in the first data block cannot be acquired, the first data page is restarted after being marked with an error identifier; after reading the error identification, extracting backup information corresponding to the first data page from the backup library into the first data page; compared with the prior art, the recovery method of the electronic equipment realizes normal operation of the system by replacing a new storage medium and re-burning the program into the new storage medium, the technical scheme of the invention judges whether the data information on the first data page can be acquired without replacing the storage medium or re-burning the program, and if the data information on the first data page cannot be acquired, the backup information corresponding to the first data block is extracted from the backup library into the first data page, so that the phenomenon of system breakdown caused by wrong data information in the first data page is prevented, and the user experience is improved; in addition, the technical scheme of the invention also judges whether the first data block is damaged or not according to the state information of the first data block, prevents the phenomenon that the system is crashed because the first data block is not damaged but cannot read the data information of the data page, and further improves the stability of the system and the user experience.
Drawings
Fig. 1 is a schematic flowchart of a recovery method for an electronic device according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a second embodiment of a recovery apparatus of an electronic device provided in the present invention;
fig. 3 is a schematic structural diagram of a recovery device of an electronic apparatus according to a third embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
The first embodiment:
fig. 1 is a schematic flowchart of an embodiment of a recovery method for an electronic device according to the present invention. As shown in fig. 1, the construction method includes steps 101 to 105, and each step is as follows:
step 101: status information of a first data block within a storage medium is obtained.
In this embodiment, when the system is started, the boot program is first entered, the kernel is loaded in the boot program, and the kernel has the ROOT partition added therein, but the kernel and the ROOT partition are carriers for storing information and are stored in data blocks of the storage medium, so that the system can be started only when data in the ROOT partition is read, and the related application program can be executed only after the system is started.
In one preferred embodiment, step 101 further comprises: and acquiring storage information corresponding to each data block in the storage medium, and backing up the storage information to a backup library.
In this embodiment, each data block includes K data pages, and each data page has data information, so that the storage information of the data block includes K data information, the backup library has backup areas corresponding to the data blocks one by one, and each backup area has backup information corresponding to the data pages one by one.
In one preferred embodiment, the storage medium is an SPI NAND, and the SPI NAND has a plurality of data blocks, each of which is composed of a plurality of data pages.
Step 102: and judging whether the first data block is damaged or not according to the state information of the first data block.
In one preferred embodiment, step 102 specifically includes: the first data block includes K data pages, where K is an integer greater than 1; acquiring data information of a data page arranged at the top according to the page number, and judging whether a flag bit of an ith character in the data information is a preset value or not, wherein i is an integer greater than 1; if the flag bit is a preset value, the first data block is not damaged; and if the flag bit is not the preset value, the first data block is damaged.
For example, the first data block includes 64 data pages, the data information in the data pages is read sequentially according to the page number, if the flag bit FF of the 2048 th character in the data information of the data page arranged at the top is the first data block, the first data block is not damaged, and if the flag bit of the 2048 th character is not the flag bit FF, the first data block is damaged.
In one preferred embodiment, after determining whether the first data block is damaged, the method further includes: if the first data block is damaged, the status information of the second data block in the storage medium is obtained, and the content of step 102 is executed again.
In this embodiment, the kernel and the ROOT partition are carriers for storing information, and are stored in a data block of the storage medium, so that it is determined whether the data block is damaged, and if the data block is damaged, data in the data block cannot be extracted (which is equivalent to the data in the ROOT partition cannot be extracted), so that the next block is directly extracted in this embodiment, which is beneficial to improving the processing efficiency of the system, and further improving the boot speed of the system; it should be noted that, when all the data blocks in the storage medium are damaged, the user is prompted to replace the storage medium.
Step 103: and if the first data block is not damaged, judging whether the data information of the first data page in the first data block can be acquired or not.
In one preferred embodiment, step 103 is specifically: the first data block comprises K data pages, wherein K is an integer greater than 1; comparing the data information of the first data page with the backup information corresponding to the first data page in the backup library; if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is smaller than or equal to a preset threshold value, indicating that the data information of the first data page can be acquired; and if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is larger than a preset threshold, indicating that the data information of the first data page cannot be acquired.
For example, the first data block includes 64 data pages, the data information in the data pages is read sequentially according to the page number, and the spi nand has an internal automatic error correction function, and the principle is that the data information of the first data page is compared with the backup information corresponding to the first data page in the backup library; if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is less than or equal to 8, the data information of the first data page can be acquired; and if the data information of the first data page is different from the backup information corresponding to the first data page in the backup library by more than 8 points, the data information of the first data page is not acquired.
In one preferred embodiment, after step 103, the method further comprises: and if the data information of the first data page can be acquired, continuously acquiring the data information of the second data page in the first data block until the system is normally started after the data information of all the data pages in the first data block is acquired.
In this embodiment, the system can only be started normally when the system needs to acquire all the data information in the data block, and therefore, when the data information of a data page is acquired each time, it is determined whether the data information in the data page can be acquired, and once the data information in the data page is not acquired, the contents of step 104 and step 105 are repeated, so that a phenomenon that the system is crashed due to wrong data information in the data page is effectively prevented, and user experience is improved.
Step 104: and if the data information of the first data page in the first data block cannot be acquired, restarting the first data page after marking an error identifier on the first data page.
Step 105: and after the error identification is read, extracting the backup information corresponding to the first data page from the backup library into the first data page, and restarting the system.
As can be seen from the above, in the method for recovering an electronic device according to the embodiment of the present invention, first, state information of a first data block in a storage medium is obtained; judging whether the first data block is damaged or not according to the state information of the first data block; if the first data block is not damaged, judging whether the data information of the first data page in the first data block can be acquired or not; if the data information of the first data page in the first data block cannot be acquired, the first data page is restarted after being marked with an error identifier; after reading the error identification, extracting backup information corresponding to the first data page from the backup library into the first data page; compared with the prior art, the recovery method of the electronic equipment realizes normal operation of the system by replacing a new storage medium and rewriting the program into the new storage medium, the technical scheme of the invention judges whether the data information on the first data page can be acquired without replacing the storage medium or rewriting the program, and if the data information on the first data page cannot be acquired, the backup information corresponding to the first data block is extracted from the backup library into the first data page, so that the phenomenon of system breakdown caused by wrong data information in the first data page is prevented, and the user experience is improved; in addition, the technical scheme of the invention also judges whether the first data block is damaged or not according to the state information of the first data block, thereby preventing the phenomenon that the system is crashed because the first data block is not damaged but the data information of the data page can not be read, and further improving the system stability and the user experience.
Second embodiment:
referring to fig. 2, it is a schematic structural diagram of an embodiment of a recovery apparatus for an electronic device provided in the present invention, the apparatus includes a data obtaining module 201, a first determining module 202, a first executing module 203, a second determining module 204, a second executing module 205, and a recovering module 206.
A data obtaining module 201, configured to obtain status information of a first data block in a storage medium;
a first determining module 202, configured to determine whether the first data block is damaged according to the state information of the first data block;
the first execution module 203 is configured to start the second judgment module when the first judgment module determines that the first data block is not damaged;
a second judging module 204, configured to judge whether data information of a first data page in the first data block can be acquired;
the second executing module 205 is configured to restart the first data page after marking an error identifier on the first data page when the second determining module determines that the data information of the first data page in the first data block cannot be acquired;
and the recovery module 206 extracts the backup information corresponding to the first data page from the backup library to the first data page after the error identifier is read.
In one preferred embodiment, the system further includes a backup module, configured to obtain storage information corresponding to each data block in the storage medium, and backup the storage information in a backup library.
In a preferred embodiment of the present invention, the storage medium further includes a third executing module, configured to, when the first determining module determines that the first data block is damaged, obtain status information of a second data block in the storage medium.
In one preferred embodiment, the system further includes a fourth executing module, configured to, when the second determining module determines that the data information of the first data page can be acquired, continue to acquire the data information of the second data page in the first data block until the system is normally started after the data information of all the data pages in the first data block is acquired.
The more detailed working principle and flow of the present embodiment may be, but are not limited to, the recovery method of the electronic device of the first embodiment.
Therefore, compared with the prior art, the recovery method of the electronic device for realizing the normal operation of the system by replacing a new storage medium and rewriting the program into the new storage medium is not required, the technical scheme of the invention judges whether the data information on the first data page can be acquired without replacing the storage medium or rewriting the program, and extracts the backup information corresponding to the first data block from the backup library into the first data page if the data information on the first data page cannot be acquired, so that the system breakdown phenomenon caused by wrong data information in the first data page is prevented, and the user experience is improved; in addition, the technical scheme of the invention also judges whether the first data block is damaged or not according to the state information of the first data block, prevents the phenomenon that the system is crashed because the first data block is not damaged but cannot read the data information of the data page, and further improves the stability of the system and the user experience.
The third embodiment:
the embodiment of the invention also provides a recovery system of electronic equipment, which comprises a recovery device for recovering the main data in the starting process of the system and a recovery device for recovering the backup data in the upgrading process of the system, wherein the recovery device is used for recovering the main data in the starting process of the system;
referring to fig. 3, a schematic structural diagram of a recovery apparatus according to an embodiment of the present invention includes a first upgrading module 301, a third determining module 302, a fifth executing module 303, a detecting module 304, and a recovery module 305;
the first upgrading module 301 is configured to obtain an upgrading instruction for upgrading the first data block, and perform upgrading operation on the first backup area corresponding to the first data block according to the upgrading instruction; wherein the upgrading operation is to record an upgrading program into the first backup area.
A third determining module 302, configured to determine whether the first backup area is upgraded successfully.
In one preferred embodiment, the method for judging whether the first backup area is successfully upgraded comprises the following specific steps: judging whether the system is powered off or not; if the system is powered off and the upgrading program cannot be completely recorded into the first backup area, the upgrading of the first backup area fails; if the system is not powered off and the upgrading program is completely recorded into the first backup area, the first backup area is upgraded successfully.
In this embodiment, because the file system of the spi nand storage medium is yaffs2, and this file system needs to perform a background garbage collection mechanism at any time, when upgrading a program, if the program is directly upgraded from the main data, the system may be crashed due to the fact that the data cannot be restarted because of incorrect data, and after receiving an upgrade instruction for upgrading the first data block, the upgrade program is entered into the first backup area corresponding to the first data block, and the upgrade program in the first backup area is updated into the first data block, so that the situation that the first data block data is lost due to power failure or other abnormal situations is not required, thereby avoiding the phenomenon that the system cannot be used, and further improving the stability of the system. It should be noted that the data in the storage medium is the main data, and the system is always started according to the main data.
The fifth executing module 303 is configured to mark the identification information being upgraded on the first data block and restart the system when the third executing module determines that the first backup area fails to be upgraded.
A detecting module 304, configured to detect whether the first data block has the identification information being upgraded.
The restoring module 305 is configured to copy the storage information on the first data block to the first backup area when the detecting module determines that the identification information being upgraded exists on the first data block.
In a preferred embodiment, the restoring apparatus further includes a sixth executing module, configured to execute the third module to mark the upgraded identification information on the first data block when it is determined that the upgrade of the first backup area is successful.
In a preferred embodiment, the restoring apparatus further includes a second upgrading module, configured to, when the detection module determines that the identification information of the first data block being upgraded does not exist, enter the upgrading program of the first backup area into the first data block.
Therefore, the recovery system of the electronic device provided by the embodiment of the invention can avoid the phenomenon of system breakdown caused by data block damage or data reading error, thereby improving the stability of the system and further improving the user experience; in addition, the recovery system of the electronic equipment provided by the embodiment of the invention can not cause the loss of the main data due to power failure or other abnormal conditions in the upgrading process, thereby avoiding the phenomenon that the system cannot be used and further improving the stability of the system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and executed by a computer to implement the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (9)

1. A method for restoring an electronic device, comprising:
acquiring storage information corresponding to each data block in a storage medium, and backing up the storage information to a backup library;
acquiring state information of a first data block in a storage medium, wherein the storage medium is SPI NAND;
judging whether the first data block is damaged or not according to the state information of the first data block;
if the first data block is not damaged, judging whether the data information of the first data page in the first data block can be acquired or not;
if the data information of a first data page in the first data block cannot be acquired, restarting the first data page after marking an error identifier on the first data page;
and after the error identification is read, extracting the backup information corresponding to the first data page from the backup library to the first data page.
2. The method for recovering an electronic device according to claim 1, wherein the determining whether the first data block is damaged according to the status information of the first data block specifically includes:
the first data block comprises K data pages, wherein K is an integer greater than 1;
acquiring data information of a data page arranged at the top according to the page number, and judging whether a flag bit of an ith character in the data information is a preset value or not, wherein i is an integer greater than 1;
if the zone bit is a preset value, the first data block is not damaged;
and if the flag bit is not a preset value, the first data block is damaged.
3. The method for recovering an electronic device according to claim 1, further comprising, after determining whether the first data block is corrupted:
and if the first data block is damaged, acquiring the state information of a second data block in the storage medium.
4. The method for recovering an electronic device according to claim 1, wherein the determining whether the data information of the first data page in the first data block can be obtained specifically includes:
the first data block comprises K data pages, wherein K is an integer greater than 1;
comparing the data information of the first data page with the backup information corresponding to the first data page in the backup library;
if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is smaller than or equal to a preset threshold value, the data information of the first data page can be acquired;
and if the difference between the data information of the first data page and the backup information corresponding to the first data page in the backup library is larger than a preset threshold, indicating that the data information of the first data page cannot be acquired.
5. The method for recovering an electronic device according to any one of claims 1 to 4, further comprising, after determining whether the data information of the first data page in the first data block can be acquired, the steps of:
and if the data information of the first data page can be acquired, continuously acquiring the data information of a second data page in the first data block until the system is normally started after the data information of all data pages in the first data block is acquired.
6. A recovery apparatus for an electronic device, comprising:
the data acquisition module is used for acquiring the state information of a first data block in a storage medium, wherein the storage medium is SPINAND;
the first judging module is used for judging whether the first data block is damaged or not according to the state information of the first data block;
the first execution module is used for starting the second judgment module when the first judgment module determines that the first data block is not damaged;
the second judging module is used for judging whether the data information of the first data page in the first data block can be acquired or not;
the second execution module is used for restarting after marking an error identifier on a first data page when the second judgment module determines that the data information of the first data page in the first data block cannot be acquired;
and the recovery module extracts the backup information corresponding to the first data page from a backup library to the first data page after reading the error identifier.
7. A recovery system for an electronic device, comprising: a recovery apparatus of the electronic device of claim 6; further comprising: the recovery device is used for recovering the backup data in the system upgrading process;
the recovery device comprises a first upgrading module, a third judging module, a fifth executing module, a detecting module and a recovery module;
the first upgrading module is used for acquiring an upgrading instruction for upgrading a first data block and upgrading a first backup area corresponding to the first data block according to the upgrading instruction; wherein the upgrading operation is to input an upgrading program into the first backup area;
the third judging module is used for judging whether the first backup area is upgraded successfully;
the fifth execution module is configured to mark, when the third determination module determines that the first backup area fails to be upgraded, the identification information being upgraded on the first data block;
the detection module is used for detecting whether the identification information which is being upgraded exists on the first data block;
the restoration module is configured to copy the storage information on the first data block to a first backup area when the detection module determines that the identification information being upgraded exists on the first data block.
8. The electronic device recovery system according to claim 7, wherein the recovery apparatus further includes a sixth execution module, configured to execute the third determination module to mark the updated identification information on the first data block when the first backup area is determined to be updated successfully.
9. The electronic device recovery system according to claim 7, wherein the recovery apparatus further includes a second upgrade module, configured to, when the detection module determines that the identification information being upgraded does not exist on the first data block, enter the upgrade program of the first backup area into the first data block.
CN202010105053.5A 2020-02-20 2020-02-20 Electronic equipment recovery method, device and system Active CN111367717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010105053.5A CN111367717B (en) 2020-02-20 2020-02-20 Electronic equipment recovery method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010105053.5A CN111367717B (en) 2020-02-20 2020-02-20 Electronic equipment recovery method, device and system

Publications (2)

Publication Number Publication Date
CN111367717A CN111367717A (en) 2020-07-03
CN111367717B true CN111367717B (en) 2022-08-16

Family

ID=71208180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010105053.5A Active CN111367717B (en) 2020-02-20 2020-02-20 Electronic equipment recovery method, device and system

Country Status (1)

Country Link
CN (1) CN111367717B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017012507A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Data recovery method and apparatus
CN106648942A (en) * 2016-09-06 2017-05-10 深圳忆数存储技术有限公司 Data switching method and device based on flash storage medium
CN111752487A (en) * 2020-06-18 2020-10-09 深圳大普微电子科技有限公司 Data recovery method and device and solid state disk

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8495423B2 (en) * 2009-08-11 2013-07-23 International Business Machines Corporation Flash-based memory system with robust backup and restart features and removable modules
CN101710253B (en) * 2009-11-25 2012-06-13 安凯(广州)微电子技术有限公司 Deep-sleep method of embedded system
CN105260270B (en) * 2015-11-11 2018-12-11 恒宝股份有限公司 A kind of Dynamic- Recovery method and device of Flash memory space
CN110459259A (en) * 2019-07-31 2019-11-15 至誉科技(武汉)有限公司 Store test method, system and the storage medium of equipment write error error correcting capability

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017012507A1 (en) * 2015-07-17 2017-01-26 中兴通讯股份有限公司 Data recovery method and apparatus
CN106648942A (en) * 2016-09-06 2017-05-10 深圳忆数存储技术有限公司 Data switching method and device based on flash storage medium
CN111752487A (en) * 2020-06-18 2020-10-09 深圳大普微电子科技有限公司 Data recovery method and device and solid state disk

Also Published As

Publication number Publication date
CN111367717A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN102117234B (en) Method for recovering original software by mobile terminal in software upgrading failure
EP1469393A1 (en) A method for backing up and recovering data in a hard disk
EP1110147A1 (en) Boot failure recovery
CN103064752A (en) Method and device of repairing document
CN106227620A (en) Recoverable Flash data storage method
CN102369513A (en) Method for improving stability of computer system and computer system
CN107329855A (en) Reduce the method and device of firmware information
EP1103894A2 (en) Fragmented data recovery method
CN111367717B (en) Electronic equipment recovery method, device and system
CN102262573B (en) Operating system (OS) start-up protecting method and device
CN116627519A (en) Multisystem starting method of embedded equipment
CN109857708B (en) Data access method of embedded system and computer readable storage medium
CN112035417A (en) Method and device for managing storage block, storage medium and electronic device
CN112579179A (en) Partition mounting method of embedded system
CN106445737A (en) Multi-backup starting method
CN115827069A (en) Starting control method, system and device for server mainboard
CN111813748B (en) File system mounting method and device, electronic equipment and storage medium
CN103189840A (en) Method for backing up startup information about storage device
CN112908390B (en) Data storage method, device, electronic equipment and storage medium
CN110795155B (en) System starting method and device, electronic equipment and storage medium
CN114356455A (en) Method and device for improving chip starting reliability
CN112346788A (en) Partition safety method for Android smart television system
CN110795281A (en) File recovery method, device, equipment and storage medium
CN111897583A (en) Equipment starting method and embedded equipment
CN103049344B (en) The method and apparatus of hardware plug fault-tolerant processing

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
CB02 Change of applicant information

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Applicant after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: Unit 301, 302, 303, 3 / F, C1 area, 182 science Avenue, Science City, Guangzhou hi tech Industrial Development Zone, Guangzhou, Guangdong 510000

Applicant before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant