Unlock instant, AI-driven research and patent intelligence for your innovation.

Data recovery method and device after abnormal power failure

A data repair and abnormal technology, applied in the computer field, can solve the problems of incomplete writing, excessive storage space, insufficient storage space of equipment, etc., and achieve the effect of reducing the waste of storage space

Pending Publication Date: 2021-07-16
ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] For the current consumer electronics products, SPI NAND FLASH is often used as the storage medium; the embedded system based on the SPI NAND FLASH storage medium, the applied file system basically has a garbage collection design, and this garbage collection is a background The execution thread, as long as the background is idle, or when there are few available data blocks, the garbage collection thread will execute to move the data on SPINAND. There is always the possibility of an abnormal power failure. If these files happen to be moved and written to another block during the garbage collection process of the system, and the power is cut off at this time, then this page may be due to incomplete data writing. , For example, if the ECC data of OOB is not written down, then there will be an ECC error problem on this page, resulting in file corruption. In this way, when the power is turned on again, the damaged file will be read and cause an exception and cannot be started normally.
[0003] In order to solve the above problems, the existing technology adopts the method of file backup to repair the damaged data during abnormal power failure. The specific method is: all files are backed up. If any file data is damaged during the process, copy the corresponding backup file to the damaged file, and then re-read the file; but this method needs to take up twice as much storage space, and it is easy to cause insufficient storage space on the device The problem

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data recovery method and device after abnormal power failure
  • Data recovery method and device after abnormal power failure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0038] Such as figure 1 As shown, an embodiment of the present invention provides a data recovery method after an abnormal power failure, which is applicable to devices provided with SPI NAND FLASH, including:

[0039] Step S101: When the device is powered on again, scan all the blocks on the partition to obtain all the data blocks in the partition.

[0040] Step S102: Read the data pages in all the data blocks, and delete the data pages that fail to be read.

[...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a data recovery method after abnormal power failure, which comprises the following steps: when equipment is powered on again, scanning all blocks on a partition to obtain all data blocks in the partition; and reading the data pages in all the data blocks, and deleting the data pages which fail to be read. By implementing the embodiment of the invention, the problem of data recovery after the abnormal power failure of the equipment can be solved on the premise of not backing up the system file, so that the equipment can be normally started after being powered on again, and the storage space of the equipment is saved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for restoring data after abnormal power failure. Background technique [0002] For the current consumer electronics products, SPI NAND FLASH is often used as the storage medium; the embedded system based on the SPI NAND FLASH storage medium, the applied file system basically has a garbage collection design, and this garbage collection is a background The execution thread, as long as the background is idle, or when there are few available data blocks, the garbage collection thread will execute to move the data on SPINAND. There is always the possibility of an abnormal power failure. If these files happen to be moved and written to another block during the garbage collection process of the system, and the power is cut off at this time, then this page may be due to incomplete data writing. , For example, if the ECC data of OOB is not written down, then there w...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/0608G06F3/0619G06F3/0644G06F3/0652G06F3/064G06F3/0679
Inventor 黎兴建胡胜发
Owner ANYKA (GUANGZHOU) MICROELECTRONICS TECH CO LTD