CN1831786A - Data completeness protection method of flash storage - Google Patents

Data completeness protection method of flash storage Download PDF

Info

Publication number
CN1831786A
CN1831786A CN 200510022335 CN200510022335A CN1831786A CN 1831786 A CN1831786 A CN 1831786A CN 200510022335 CN200510022335 CN 200510022335 CN 200510022335 A CN200510022335 A CN 200510022335A CN 1831786 A CN1831786 A CN 1831786A
Authority
CN
China
Prior art keywords
data
storage area
storage
verification
main storage
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
CN 200510022335
Other languages
Chinese (zh)
Other versions
CN100590606C (en
Inventor
王振辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Sinosun Technology Co., Ltd.
Original Assignee
Sinosun Technology (Shenzhen) 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 Sinosun Technology (Shenzhen) Co Ltd filed Critical Sinosun Technology (Shenzhen) Co Ltd
Priority to CN200510022335A priority Critical patent/CN100590606C/en
Publication of CN1831786A publication Critical patent/CN1831786A/en
Application granted granted Critical
Publication of CN100590606C publication Critical patent/CN100590606C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

A method for protecting data completeness of flash storage includes calculating out calibration sum of data to be written in and storing data and said sum in blank region of write in storing zone then writing data with said sum in corresponding position in backup storing zone ( BSZ ), erasing off a block of data in main storing zone ( MSZ ) first and then erasing off a block of data in said position on BSZ, fetching and calibrating data of MSZ and fetching as well as calibrating data stored in said position on BSZ if data in MSZ is damaged, using effective data in BSZ to cover damaged data in MSZ.

Description

Data completeness protection method of flash storage
Technical field
The present invention relates to data storage, relate in particular to a kind of data completeness protection method of flash storage.
Background technology
Flash memory is a kind of high density, low cost, non-volatile, the semiconductor memory that can repeat to write, the interior data memory block is divided into many storage blocks of identical size, write operation to flash memory must carry out in the zone of blank, erase operation must be undertaken by storage block, if that is to say for a zone that has write data and want to write once more data, must earlier this regional place piece be wiped, write related data then and just can write success.Flash memory data recording write operation and erase operation speed are relatively slow, and it is when carrying out erase operation and write operation, and powered-off fault may make the data failure of whole storage block.
Usually the way that solves is to use a reserve battery, and is charged for a long time, and when powered-off fault, reserve battery can continue to power and guarantee normally finishing that data write down.But the method has its weak point, at first, increases reserve battery, has not only increased the complexity of hardware circuit design, and has increased cost; Secondly reserve battery has certain serviceable life; In addition, can't guarantee under some particular surroundingss that battery has electricity always, then still powered-off fault can take place in this case, make data failure in the whole storage block.
Therefore, the safe reliability of data storage function is lower in the prior art.
Summary of the invention
The objective of the invention is to overcome the deficiencies in the prior art, a kind of safe and reliable data completeness protection method of flash storage is provided.
The present invention realizes that the scheme of above-mentioned purpose is: this data completeness protection method of flash storage is characterized in that: comprise following process:
Data write operation: calculate data to be written verification and, and with data and verification thereof with write the zone of the blank in the memory block; Look for relevant position, back-up storage district again, write above-mentioned have verification and data;
Data erase operation: wipe main storage area one blocks of data earlier, wipe a blocks of data of relevant position, back-up storage district again;
Data integrity detects and recovers: read the data with the verification main storage area, if the main storage area data damage, then read the storage block data with relevant position, verification back-up storage district, and cover main storage area corrupt data with the valid data in back-up storage district.Data are passed through the checking data checksum validation in main storage area and the back-up storage district,
If checksum validation is correct, then is valid data;
If checksum validation failure, then be corrupt data.
The main storage area is identical with back-up storage district data space size.
The invention has the beneficial effects as follows: in the present invention, flash memory is provided with main storage area and back-up storage district, when carrying out the write operation of data or erase operation, at first carry out in the main storage area, after operation is finished, carry out the backup of data in relevant position, back-up storage district again, so, if special circumstances take place when flash memory carries out write operation and erase operation, as abnormal power-down, and make the corrupted data in main storage area, promptly can be in energising laggard line data integrity detection and recovery, the valid data of back-up storage district same position are covered main storage area corrupt data, make the data of flash memory return to state before the outage, avoid loss of data, the safe and reliable storage of carrying out data.
In the present invention, the storage block data in main storage area and back-up storage district are by detecting data check and checking, promptly one piece of data is calculated and produce a value, whether change by the original data of this value check, and this value and raw data are preserved together, with the validity of this detection of stored blocks of data, further improved the safe reliability of data storage.
Description of drawings
Fig. 1 is the schematic flow sheet of data write operation of the present invention;
Fig. 2 is the schematic flow sheet of data erase operation of the present invention;
The schematic flow sheet that Fig. 3 detects and recovers for data integrity of the present invention;
Embodiment
The contrast accompanying drawing also is described in further detail the present invention in conjunction with the embodiments below:
Flash memory of the present invention is provided with main storage area and back-up storage district, and wherein main storage area and back-up storage district have one or more storage blocks respectively, and the write operation of flash memory data and erase operation are undertaken by storage block.
Main storage area and back-up storage district stored blocks of data if checksum validation is correct, then are valid data by detecting data check and checking; If checksum validation failure, then be corrupt data.Whether described verification and be that one piece of data calculate is produced a value can check original data to change by this value, and this value and raw data are preserved together.
Figure 1 shows that new data records write operation process, be specially: look for the zone of a blank in the main storage area, calculate data to be written verification and, and with data and verification thereof with write the zone of this blank; Look for relevant position, back-up storage district again, write above-mentioned have verification and data.
Figure 2 shows that storage block data recording erase operation process, be specially: wipe main storage area one blocks of data earlier, wipe a blocks of data of relevant position, back-up storage district again.
Figure 3 shows that the flash memory data integrity detects and rejuvenation, be specially: at first program reads data from the main storage area reference position; Verify these data verification and, if checksum validation is correct, read and verify next bar data by the main storage area Data Position, until reading and verification main storage area the last item data; If the checksum validation failure, then data are damaged, read the data of relevant position in the back-up storage district; The verification of checking back-up storage district relevant position data and, if checksum validation is correct, then the data with the back-up storage district cover main storage area corrupt data record, if the checksum validation failure, then data recording and data recording are invalid data, return and carry out the main storage area data recording.Repeat said process, finish, then finish the integrity detection and the recovery of main storage area data recording until main storage area the last item Data Detection.

Claims (3)

1. data completeness protection method of flash storage is characterized in that: comprise following process: data write operation: calculate data to be written verification and, and with data and verification thereof with write the zone of the blank in the memory block; Look for relevant position, back-up storage district again, write above-mentioned have verification and data;
Data erase operation: wipe main storage area one blocks of data earlier, wipe a blocks of data of relevant position, back-up storage district again;
Data integrity detects and recovers: read the data with the verification main storage area, if the main storage area data damage, then read the storage block data with relevant position, verification back-up storage district, and cover main storage area corrupt data with the valid data in back-up storage district.
2. data completeness protection method of flash storage according to claim 1 is characterized in that: data are passed through the checking data checksum validation in described main storage area and the back-up storage district,
If checksum validation is correct, then is valid data;
If checksum validation failure, then be corrupt data.
3. data completeness protection method of flash storage according to claim 2 is characterized in that: described main storage area is identical with back-up storage district data space size.
CN200510022335A 2005-12-14 2005-12-14 Data completeness protection method of flash storage Active CN100590606C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200510022335A CN100590606C (en) 2005-12-14 2005-12-14 Data completeness protection method of flash storage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200510022335A CN100590606C (en) 2005-12-14 2005-12-14 Data completeness protection method of flash storage

Publications (2)

Publication Number Publication Date
CN1831786A true CN1831786A (en) 2006-09-13
CN100590606C CN100590606C (en) 2010-02-17

Family

ID=36994098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200510022335A Active CN100590606C (en) 2005-12-14 2005-12-14 Data completeness protection method of flash storage

Country Status (1)

Country Link
CN (1) CN100590606C (en)

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100462944C (en) * 2007-03-07 2009-02-18 北京飞天诚信科技有限公司 Power-fail protection method based on two continuous logical blocks for non-volatile memory
WO2009033397A1 (en) * 2007-09-07 2009-03-19 Artek Microelectronics Co., Ltd. Method for accessing data in flash memory and data accessing controller
CN101154447B (en) * 2006-09-28 2010-08-18 北京握奇数据系统有限公司 Flash memory and its control method
CN101452409B (en) * 2007-12-04 2010-10-13 无锡江南计算技术研究所 Data verification redundant method and device
CN101894137A (en) * 2010-06-23 2010-11-24 中兴通讯股份有限公司 Method and device for restoring data in embedded database
WO2010139245A1 (en) * 2009-06-02 2010-12-09 中兴通讯股份有限公司 Method and device for reading and writing memory card
CN101430705B (en) * 2008-11-29 2011-01-19 中兴通讯股份有限公司 Memory method and apparatus based on embedded database
CN101515259B (en) * 2009-03-26 2011-05-25 浙江大华技术股份有限公司 Inserted device configuring data protecting method
CN101635020B (en) * 2008-07-25 2011-12-07 联想(北京)有限公司 Data erasing method and data storage device
CN101782875B (en) * 2010-01-29 2012-01-04 成都市华为赛门铁克科技有限公司 Storage unit and data storage method
CN102411523A (en) * 2011-11-30 2012-04-11 广东威创视讯科技股份有限公司 Method and device for storing file backups and backup method for file systems
CN101589399B (en) * 2006-09-27 2012-11-14 信托逻辑流动有限公司 System and method for securing data
CN103092727A (en) * 2013-01-18 2013-05-08 大唐移动通信设备有限公司 Data error correction method and device on flash storage medium
CN102103834B (en) * 2009-12-22 2013-10-02 上海天马微电子有限公司 Method and device for maintaining data of drive circuit
CN103608866A (en) * 2013-03-15 2014-02-26 华为技术有限公司 Data wiping method and device for flash memory
CN104424051A (en) * 2013-09-03 2015-03-18 北京谊安医疗系统股份有限公司 Respirator and log file read-write method and device therefor
CN105912418A (en) * 2016-04-25 2016-08-31 湖南省湘电试验研究院有限公司 Power distribution security chip power-down protection method based on CRC check manner
CN106227625A (en) * 2016-09-05 2016-12-14 深圳震有科技股份有限公司 The restoration methods of a kind of flash data damaged because of power down and system
CN106325773A (en) * 2016-08-23 2017-01-11 浪潮(北京)电子信息产业有限公司 Data consistency guaranteeing method and system of storage system and cache apparatus
CN107729769A (en) * 2017-09-27 2018-02-23 深信服科技股份有限公司 Data completeness protection method, equipment, system and readable storage medium storing program for executing
CN107808686A (en) * 2016-09-09 2018-03-16 北京忆恒创源科技有限公司 Read error method of testing and device
CN108228380A (en) * 2016-12-22 2018-06-29 广州周立功单片机科技有限公司 Critical data Safety Redundancy stores algorithm
CN110348245A (en) * 2018-04-02 2019-10-18 深信服科技股份有限公司 Data completeness protection method, system, device and storage medium based on NVM
CN111159781A (en) * 2019-12-31 2020-05-15 海光信息技术有限公司 Storage device data integrity protection method, controller thereof and system on chip
CN112527566A (en) * 2020-12-24 2021-03-19 广东芬尼科技股份有限公司 Equipment power-down operation parameter read-write abnormity protection method, system and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4701618B2 (en) * 2004-02-23 2011-06-15 ソニー株式会社 Information processing apparatus, information processing method, and computer program

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589399B (en) * 2006-09-27 2012-11-14 信托逻辑流动有限公司 System and method for securing data
CN101154447B (en) * 2006-09-28 2010-08-18 北京握奇数据系统有限公司 Flash memory and its control method
CN100462944C (en) * 2007-03-07 2009-02-18 北京飞天诚信科技有限公司 Power-fail protection method based on two continuous logical blocks for non-volatile memory
WO2009033397A1 (en) * 2007-09-07 2009-03-19 Artek Microelectronics Co., Ltd. Method for accessing data in flash memory and data accessing controller
US8234541B2 (en) 2007-09-07 2012-07-31 Artek Microelectronics Co., Ltd. Method and controller for data access in a flash memory
CN101452409B (en) * 2007-12-04 2010-10-13 无锡江南计算技术研究所 Data verification redundant method and device
CN101635020B (en) * 2008-07-25 2011-12-07 联想(北京)有限公司 Data erasing method and data storage device
CN101430705B (en) * 2008-11-29 2011-01-19 中兴通讯股份有限公司 Memory method and apparatus based on embedded database
CN101515259B (en) * 2009-03-26 2011-05-25 浙江大华技术股份有限公司 Inserted device configuring data protecting method
WO2010139245A1 (en) * 2009-06-02 2010-12-09 中兴通讯股份有限公司 Method and device for reading and writing memory card
US8775866B2 (en) 2009-06-02 2014-07-08 Zte Corporation Method and device for reading and writing a memory card
CN102103834B (en) * 2009-12-22 2013-10-02 上海天马微电子有限公司 Method and device for maintaining data of drive circuit
CN101782875B (en) * 2010-01-29 2012-01-04 成都市华为赛门铁克科技有限公司 Storage unit and data storage method
CN101894137A (en) * 2010-06-23 2010-11-24 中兴通讯股份有限公司 Method and device for restoring data in embedded database
CN102411523A (en) * 2011-11-30 2012-04-11 广东威创视讯科技股份有限公司 Method and device for storing file backups and backup method for file systems
CN102411523B (en) * 2011-11-30 2014-08-20 广东威创视讯科技股份有限公司 Method and device for storing file backups and backup method for file systems
CN103092727A (en) * 2013-01-18 2013-05-08 大唐移动通信设备有限公司 Data error correction method and device on flash storage medium
CN103092727B (en) * 2013-01-18 2015-08-26 大唐移动通信设备有限公司 Data error-correcting method in flash storage medium and device
WO2014139184A1 (en) * 2013-03-15 2014-09-18 华为技术有限公司 Data erasing method and device for flash memory
US9823878B2 (en) 2013-03-15 2017-11-21 Huawei Technologies Co., Ltd. Method and apparatus for erasing data in flash memory
CN103608866A (en) * 2013-03-15 2014-02-26 华为技术有限公司 Data wiping method and device for flash memory
US10007468B2 (en) 2013-03-15 2018-06-26 Huawei Technologies Co., Ltd. Method and apparatus for erasing data in data section in flash memory
CN104424051A (en) * 2013-09-03 2015-03-18 北京谊安医疗系统股份有限公司 Respirator and log file read-write method and device therefor
CN105912418A (en) * 2016-04-25 2016-08-31 湖南省湘电试验研究院有限公司 Power distribution security chip power-down protection method based on CRC check manner
CN106325773A (en) * 2016-08-23 2017-01-11 浪潮(北京)电子信息产业有限公司 Data consistency guaranteeing method and system of storage system and cache apparatus
CN106325773B (en) * 2016-08-23 2019-05-28 浪潮(北京)电子信息产业有限公司 A kind of consistency ensuring method of memory system data, system and buffer storage
CN106227625A (en) * 2016-09-05 2016-12-14 深圳震有科技股份有限公司 The restoration methods of a kind of flash data damaged because of power down and system
CN106227625B (en) * 2016-09-05 2019-08-20 深圳震有科技股份有限公司 A kind of restoration methods and system of the flash data damaged by power down
CN107808686A (en) * 2016-09-09 2018-03-16 北京忆恒创源科技有限公司 Read error method of testing and device
CN108228380A (en) * 2016-12-22 2018-06-29 广州周立功单片机科技有限公司 Critical data Safety Redundancy stores algorithm
CN107729769A (en) * 2017-09-27 2018-02-23 深信服科技股份有限公司 Data completeness protection method, equipment, system and readable storage medium storing program for executing
CN110348245A (en) * 2018-04-02 2019-10-18 深信服科技股份有限公司 Data completeness protection method, system, device and storage medium based on NVM
CN111159781A (en) * 2019-12-31 2020-05-15 海光信息技术有限公司 Storage device data integrity protection method, controller thereof and system on chip
CN111159781B (en) * 2019-12-31 2023-09-26 海光云芯集成电路设计(上海)有限公司 Storage device data integrity protection method, controller thereof and system on chip
CN112527566A (en) * 2020-12-24 2021-03-19 广东芬尼科技股份有限公司 Equipment power-down operation parameter read-write abnormity protection method, system and storage medium
CN112527566B (en) * 2020-12-24 2023-11-21 广东芬尼科技股份有限公司 Method, system and storage medium for protecting read-write abnormality of equipment power-down operation parameters

Also Published As

Publication number Publication date
CN100590606C (en) 2010-02-17

Similar Documents

Publication Publication Date Title
CN100590606C (en) Data completeness protection method of flash storage
CN102081577B (en) Data storage structure of Flash memory and data manipulation mode thereof
CN103853582B (en) Flash memory update method
KR101608679B1 (en) Torn write mitigation
CN102890657B (en) The method that the reading and writing data of a kind of EEPROM of minimizing is made mistakes
US8046528B2 (en) Data writing method for flash memory, and flash memory controller and storage device thereof
CN101446921B (en) Dynamic storage method of Flash memory
US20090259896A1 (en) Bad block identifying method for flash memory, storage system, and controller thereof
CN102902637B (en) Solid-state hard disk data power-off protection method
CN102541676B (en) Method for detecting and mapping states of NAND FLASH
CN102609334B (en) Nonvolatile flash memory is wiped abnormal memory block restorative procedure and device
CN101859604A (en) Utilization method of flash memory bad block
CN101599305A (en) Storage system with data repair function and data repair method thereof
CN101567220B (en) The bad block identifying method of flash memory, stocking system and controller thereof
CN101963891A (en) Method and device for data storage and processing, solid-state drive system and data processing system
CN101482837B (en) Error correction method and apparatus for flash memory file system
CN101000569A (en) Method of correcting error code for multiple sector
CN102004706A (en) Flash erasing power-fail protection method based on FTL(Flash Translation Layer)
CN101546294A (en) Method for storing data in Flash memory
CN103914407A (en) Secure digital memory (SD) card power down protection and restoring method and SD card with power down protection function
CN101699476A (en) Data processing method and device of smart cards
CN103092728A (en) Recovery method and recovery device of abrasion errors of nonvolatile memory
CN109426440A (en) The data store system and method for non-volatile memory
US20090164869A1 (en) Memory architecture and configuration method thereof
CN101923896A (en) Electronic storage device and error correcting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: SHENZHEN ZHAORI TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: ZHAORI SCIENCE + TECHNOLOGY (SHENZHEN) CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 518040 Guangdong city of Shenzhen province Futian District Che Kung Temple Tairan Industrial Zone 213 6C

Patentee after: Shenzhen Sinosun Technology Co., Ltd.

Address before: 518040 Guangdong city of Shenzhen province Futian District Che Kung Temple Tairan Industrial Zone 213 6C

Patentee before: Sinosun Technology (Shenzhen) Co., Ltd.