CN101634957A - Method and system for managing data of flash memory - Google Patents

Method and system for managing data of flash memory Download PDF

Info

Publication number
CN101634957A
CN101634957A CN200810029684A CN200810029684A CN101634957A CN 101634957 A CN101634957 A CN 101634957A CN 200810029684 A CN200810029684 A CN 200810029684A CN 200810029684 A CN200810029684 A CN 200810029684A CN 101634957 A CN101634957 A CN 101634957A
Authority
CN
China
Prior art keywords
data
partition information
internal memory
read
backup area
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.)
Pending
Application number
CN200810029684A
Other languages
Chinese (zh)
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.)
Mitac Computer Shunde Ltd
Shunda Computer Factory Co Ltd
Original Assignee
Mitac Computer Shunde 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 Mitac Computer Shunde Ltd filed Critical Mitac Computer Shunde Ltd
Priority to CN200810029684A priority Critical patent/CN101634957A/en
Publication of CN101634957A publication Critical patent/CN101634957A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method and a system for managing data of a flash memory. The method comprises the following steps: a, reading data of a backup area in the flash memory in an internal memory, wherein the data comprises partition information and read-write information; b, updating the partition information of the backup area read in the step a when the partition information of the flash memory requires updating; c, writing updated partition information in the step b and the read-write information read in the step a in the exchange area; d, writing the partition information updated in the step b and the read-write information read in the step a in the backup area; and e, covering the partition information of an initial data area by the partition information updated in the step b. Furthermore, the system comprises the flash memory, a controller and the internal memory, wherein the controller controls the flash memory to read the data stored in the flash memory in the internal memory and write the data which is updated in the internal memory in the flash memory. The method and the system ensure that important data is not damaged after exception happens in an updating process by setting a secondary backup mechanism in the flash memory.

Description

The data managing method of flash storer and system thereof
Technical field
The present invention relates to a kind of data managing method and system thereof, relate in particular to a kind of data managing method and system thereof of the flash of being applied to storer.
Background technology
The flash storer is widely used in the various electronic equipments.In use, often needing, operation flash storer comes reading and writing, revise data, the unexpected power down of user's misoperation or system all may cause the damage of data, causes the flash out of memory or make electronic equipment lose some function maybe can't starting.
Certainly, now indivedual flash storeies are taked the one-level back mechanism, simply increase the Backup Data district, and the destroyed back of raw data adopts Backup Data to recover.
Because the flash storer all has a partition information to describe the district, if these district's data are made amendment, the descriptor of backup area should keep synchronous renewal.Sudden power when upgrading the backup area data causes system and user's default data to lose, and system can not start.
Summary of the invention
In view of the above problems, the invention provides a kind of data managing method and system thereof of flash storer.
In order to achieve the above object, the present invention has adopted following technical scheme: a kind of data managing method of flash storer and system thereof, and wherein, the data managing method of described flash storer mainly may further comprise the steps:
Step a: the data that read backup area in the flash storer are to internal memory, and the data of this backup area comprise partition information and reading writing information;
Step b: when needs upgrade the partition information of flash storer, the partition information of the backup area that renewal above-mentioned steps a reads in internal memory;
Step c: the reading writing information that the partition information that upgraded among the step b and step a read is write the exchange area;
Steps d: the reading writing information that the partition information that upgraded among the step b and step a read is write backup area; And
Step e: the partition information that the partition information that has upgraded among the step b is covered the raw data district.
In addition, the data management system of described flash storer, it mainly comprises flash storer, controller and internal memory, this controller is controlled data read that this flash storer puts this flash store memory to internal memory, in internal memory, more write this flash storer behind the new data, this flash storer mainly comprises: the raw data district, and stored data packet is drawn together partition information and reading writing information in it; Backup area, it comprises partition information description district, when needs upgrade the partition information in raw data district, the data read that this backup area is deposited is to internal memory, and the data of the backup area that renewal is read in internal memory, and this backup area use in internal memory data updated write, and this partition information is described the district and is used for the partition information that has upgraded in internal memory and write; The exchange area, use in internal memory data updated write, and this data updated in order to cover the data of depositing in the raw data district.
Compared to prior art, the present invention not only increases the description of its partition information, but also has increased an exchange area by in the flash storer secondary backup mechanism being set in backup area, can guarantee after renewal process occurs unusually, can guarantee that still significant data is not damaged.
Description of drawings
Fig. 1 is a structural representation of the present invention
Fig. 2 is a process flow diagram of the present invention
Embodiment
Please refer to shown in Figure 1ly, be structural representation of the present invention.The data management system of flash storer of the present invention mainly comprises flash storer 10, internal memory 20 and controller 30, this controller 30 these flash storeies 10 of control to internal memory 20, more write this flash storer 10 behind the new data with the data read deposited in this flash storer 10 in internal memory 20.
Wherein, this flash storer 10 mainly comprises raw data district 101, backup area 102 and exchange area 103.Stored data packet is drawn together partition information and reading writing information in this raw data district 101; This backup area 102 comprises partition information description district 1021, when needs upgrade the partition information in raw data district 101, the data read that needs earlier this backup area 102 to be deposited is to internal memory 20, and the data of the backup area 102 that renewal is read in internal memory 20, will be in internal memory 20 data updated write exchange area 103, and will be in internal memory 20 data updated write this backup area 102, the partition information that will upgrade in internal memory 20 writes this partition information and describes district 1021 simultaneously; At last, with this data updated cover the data of depositing in the raw data district 101.
Please refer to shown in Figure 2ly again, be process flow diagram of the present invention.The data managing method of flash storer of the present invention mainly may further comprise the steps:
Step 201: beginning;
Step 202: the data that read backup area in the flash storer are to internal memory, and the data of this backup area comprise partition information and reading writing information;
Step 203: when needs upgrade the partition information of flash storer, the partition information of the backup area that renewal above-mentioned steps 202 reads in internal memory;
Step 204: the reading writing information that the partition information that upgraded in the step 203 and step 202 read is write the exchange area;
Step 205: the reading writing information that the partition information that upgraded in the step 203 and step 202 read is write backup area; And
Step 206: the partition information that the partition information that has upgraded in the step 203 is covered the raw data district.
Step 207: finish.
By above-mentioned, if in the process that the backup area 102 to flash storer 10 upgrades, unusual (for example powering-off state) occur, the significant data of backup area 102 damages, at this moment, because the data integrity in raw data district 101, and exchange area 103 data have been upgraded and have been finished, therefore, when start flash storer 10 next time, can normally start, after the startup, check whether the data of depositing in the backup area 102 are complete,, thereby guarantee that significant data can't not recover because of outage is damaged if the imperfect data that can directly deposit by exchange area 103 of data are recovered the data of backup area 102.
If in the process that the raw data district 101 to flash storer 10 upgrades, unusual (for example powering-off state) occur, the data in raw data district 101 are destroyed, at this moment, because backup area 102 and exchange area 103 are upgraded already and are finished and data integrity, when start flash storer 10 next time, if the data of raw data district 101 stored are imperfect, then the data that can deposit by backup area 102 are recovered, thereby do not influence the normal operation of system.

Claims (2)

1. the data managing method of a flash storer is characterized in that, this method mainly may further comprise the steps:
Step a: the data that read backup area in the flash storer are to internal memory, and the data of this backup area comprise partition information and reading writing information;
Step b: when needs upgrade the partition information of flash storer, the partition information of the backup area that renewal above-mentioned steps a reads in internal memory;
Step c: the reading writing information that the partition information that upgraded among the step b and step a read is write the exchange area;
Steps d: the reading writing information that the partition information that upgraded among the step b and step a read is write backup area; And
Step e: the partition information that the partition information that has upgraded among the step b is covered the raw data district.
2. the data management system of a flash storer, it is characterized in that, this system mainly comprises flash storer, controller and internal memory, this controller is controlled data read that this flash storer puts this flash store memory to internal memory, more write this flash storer behind the new data in internal memory, this flash storer mainly comprises:
The raw data district, stored data packet is drawn together partition information and reading writing information in it;
Backup area, it comprises partition information description district, when needs upgrade the partition information in raw data district, the data read that this backup area is deposited is to internal memory, and the data of the backup area that renewal is read in internal memory, and this backup area use in internal memory data updated write, and this partition information is described the district and is used for the partition information that has upgraded in internal memory and write;
The exchange area, use in internal memory data updated write, and this data updated in order to cover the data of depositing in the raw data district.
CN200810029684A 2008-07-23 2008-07-23 Method and system for managing data of flash memory Pending CN101634957A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810029684A CN101634957A (en) 2008-07-23 2008-07-23 Method and system for managing data of flash memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810029684A CN101634957A (en) 2008-07-23 2008-07-23 Method and system for managing data of flash memory

Publications (1)

Publication Number Publication Date
CN101634957A true CN101634957A (en) 2010-01-27

Family

ID=41594154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810029684A Pending CN101634957A (en) 2008-07-23 2008-07-23 Method and system for managing data of flash memory

Country Status (1)

Country Link
CN (1) CN101634957A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916234A (en) * 2010-08-16 2010-12-15 深圳市江波龙电子有限公司 Information maintenance method and system of storage equipment
CN102467457A (en) * 2010-11-02 2012-05-23 英华达(南昌)科技有限公司 Electronic device and partitioning method for storage medium of electronic device
CN106528348A (en) * 2016-11-18 2017-03-22 合肥联宝信息技术有限公司 Method for constructing BIOS of intelligent terminal and BIOS component
CN107329850A (en) * 2017-05-26 2017-11-07 杭州赫智电子科技有限公司 It is a kind of to meet memory and date storage method that magnanimity reads and writes number of operations
CN113094369A (en) * 2021-04-13 2021-07-09 深圳市魔样科技有限公司 Flash memory data management method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101916234A (en) * 2010-08-16 2010-12-15 深圳市江波龙电子有限公司 Information maintenance method and system of storage equipment
CN102467457A (en) * 2010-11-02 2012-05-23 英华达(南昌)科技有限公司 Electronic device and partitioning method for storage medium of electronic device
CN102467457B (en) * 2010-11-02 2015-12-02 英华达(南昌)科技有限公司 The dividing method of electronic installation and storage medium thereof
CN106528348A (en) * 2016-11-18 2017-03-22 合肥联宝信息技术有限公司 Method for constructing BIOS of intelligent terminal and BIOS component
CN107329850A (en) * 2017-05-26 2017-11-07 杭州赫智电子科技有限公司 It is a kind of to meet memory and date storage method that magnanimity reads and writes number of operations
CN107329850B (en) * 2017-05-26 2021-05-14 杭州赫智电子科技有限公司 Memory satisfying mass read-write frequency operation and data storage method
CN113094369A (en) * 2021-04-13 2021-07-09 深圳市魔样科技有限公司 Flash memory data management method

Similar Documents

Publication Publication Date Title
CN102270144B (en) Embedded network equipment and method for upgrading firmware by using same
CN101634958B (en) Flash memory with secondary backup mechanism
CN102360298B (en) Software upgrading method of terminal equipment
CN101176074A (en) Nonvolatile memory device, method of writing data, and method of reading out data
CN103914393A (en) MCU-based (microprogrammed control unit-based) non-loss FLASH storage update method
EP2266039A1 (en) Data updating method, memory system and memory device
CN101923473B (en) Embedded electronic device and method for updating firmware thereof
US20150154110A1 (en) Data Storage Device and Flash Memory Control Method
CN102855146A (en) Firmware updating system and method
CN103780638A (en) Data synchronization method and system
CN102521289B (en) File synchronization method, device and system
CN101634957A (en) Method and system for managing data of flash memory
TW201933094A (en) Firmware updating method and electronic device using the same
CN103186387A (en) Electronic device and updating method for operating system thereof
CN101872306B (en) Embedded system for realizing software updating and software backup and implementation method thereof
CN101166229A (en) A TV software update method
CN106126277A (en) Multi-microprocessor and the upgrade method of external memory system
US11144299B2 (en) Firmware updating method
CN101667133B (en) Method for updating firmware and chip updating firmware by using same
CN104268097A (en) Metadata processing method and system
CN110618828B (en) Data updating method and device
CN106775636B (en) Battery firmware processing method and device and charging cabinet system
EP2678769B1 (en) A device controller for a memory device
CN112148203B (en) Memory management method, device, electronic equipment and storage medium
CN101655822B (en) Computer system, device information management system of computer system and 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
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20100127