CN102087623A - Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating - Google Patents
Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating Download PDFInfo
- Publication number
- CN102087623A CN102087623A CN 201010577434 CN201010577434A CN102087623A CN 102087623 A CN102087623 A CN 102087623A CN 201010577434 CN201010577434 CN 201010577434 CN 201010577434 A CN201010577434 A CN 201010577434A CN 102087623 A CN102087623 A CN 102087623A
- Authority
- CN
- China
- Prior art keywords
- data
- flag
- special
- zone
- fail
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Images
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a data protection method during power-fail of special USB (Universal Serial Bus) storage equipment with the data field length exceeding 512KB in data updating. The method comprises the following steps of: arranging a backup area in a storage area of the special USB storage equipment; copying data to the backup area before updating the data. Because the data is backed up in the backup area before updating the data, the special USB storage equipment can automatically use the backup data to restore original data in case of updating fail caused by accidental power fail; and the integrity of the data is kept.
Description
Technical field
The invention belongs to the technical field of computing machine, the data guard method of power down when relating to special-purpose USB storage device data particularly and upgrading.
Background technology
Special-purpose USB memory device has characteristics such as capacity is big, portable, therefore is used widely.But the sector read-write protection of present special-purpose USB memory device is the physical block protection; General N and Flash (Not AND Flash; non-volatile flash memory) physical block of storage chip size is 512KB; promptly write in the physical block process; if extract suddenly or accident power-off, these physical block data can be recovered, if the data updated segment length exceeds 512KB; the partial update problem will occur after the unexpected power down when doing the data recovery, it is imperfect to cause data to write.When special-purpose USB memory device powered on once more, the data segment before upgrading was destroyed, can influence a lot of practical applications.
Summary of the invention
Technology of the present invention is dealt with problems and is: overcome the deficiencies in the prior art, the data guard method of power down when the special-purpose USB storage device data that provides a kind of data segment, length to exceed 512KB is upgraded.
Technical solution of the present invention is: this method is provided with a backup zone in the memory block of special-purpose USB memory device, copied data to the backup zone before Data Update.
Since more before the new data earlier in the backup zone with data backup, and then new data more, when unexpected power down caused upgrading failure, special-purpose USB memory device can use Backup Data to recover legacy data automatically, the integrality of maintenance data like this.
Description of drawings
Fig. 1 shows process flow diagram according to a preferred embodiment of the present invention.
Embodiment
Below by accompanying drawing, technical scheme of the present invention is described in further detail, the intelligent code key in the accompanying drawing (SMART KEY) is a kind of of special-purpose USB memory device, described data are the privately owned hiding sectors of data of user.
The basic thought of this method is that a backup zone is set in the memory block of special-purpose USB memory device, copies data to the backup zone before Data Update.
Preferably, this method may further comprise the steps:
(1) beginning;
(2) intelligent code key powers on;
(3) whether complete detect expression data Flag zone bit, it is 0 execution in step (4), and it returns to former memory location from backing up the zone with data automatically for non-0 intelligent code key, i.e. the privately owned hiding sector of user;
(4) application interface initiates to upgrade data manipulation;
(5) the privately owned hiding sectors of data of user is copied to backup zone, the Flag mark position is 1 back execution in step (6) if data are duplicated success, if power down takes place then the Flag zone bit remains 0 back jump procedure (2);
(6) new data more in the privately owned hiding sector of user;
(7) if upgrading data manipulation normally finishes, then the Flag mark position is 0 back execution in step (8), if power down takes place then the Flag zone bit is 1 back jump procedure (2);
(8) finish.
Wherein, if the middle generation of step (5) power down etc. are unusual, the Flag value of remaining 0 so, and former data are not modified, and therefore are still complete; If the middle generation of step (7) power down etc. are unusual, the Flag value of remaining 1 so.Intelligent code key powers on or reset next time, checks Flag, finds that Flag is 1, then from back up the zone raw data is returned to original position automatically, guarantees the integrality of raw data.
The present invention is exactly when solving data length greater than 512KB, the integrity issue of new data more, the particularly renewal of significant data section in some practical applications, (this program is the inner power-on self-test program of intelligent code key to program when unexpected power down causes upgrading failure, be similar to windows startup self-detection on the computing machine, possess data recovery function) can use Backup Data to recover legacy data automatically, the integrality that keeps data has improved the reliability of intelligent code key Data Update to a great extent.
Preferably, the Flag zone bit is kept at a fixed position in the intelligent code key.
Preferably, special-purpose USB memory device is non-volatile flash memory NAND Flash.
This method is applicable to the above operating system of Windows2000, and uCLINUX 2.4, and uCLINUX 2.6, UCOSII.
The above; it only is preferred embodiment of the present invention; be not that the present invention is done any pro forma restriction, every foundation technical spirit of the present invention all still belongs to the protection domain of technical solution of the present invention to any simple modification, equivalent variations and modification that above embodiment did.
Claims (5)
1. the data guard method of power down when special-purpose USB storage device data is upgraded is characterized in that: a backup zone is set in the memory block of movable storage device, copied data to the backup zone before Data Update.
2. method according to claim 1 is characterized in that: described special-purpose USB memory device is an intelligent code key, and described data are the privately owned hiding sectors of data of user.
3. method according to claim 2 is characterized in that: this method may further comprise the steps:
(1) beginning;
(2) intelligent code key powers on;
(3) whether complete detect expression data Flag zone bit, it is 0 execution in step (4), and it returns to former memory location from backing up the zone with data automatically for non-0 intelligent code key, i.e. the privately owned hiding sector of user;
(4) application interface initiates to upgrade data manipulation;
(5) the privately owned hiding sectors of data of user is copied to backup zone, the Flag mark position is 1 back execution in step (6) if data are duplicated success, if power down takes place then the Flag zone bit remains 0 back jump procedure (2);
(6) new data more in the privately owned hiding sector of user;
(7) if upgrading data manipulation normally finishes, then the Flag mark position is 0 back execution in step (8), if power down takes place then the Flag zone bit is 1 back jump procedure (2);
(8) finish.
4. method according to claim 3 is characterized in that: the Flag zone bit is kept at a fixed position in the intelligent code key.
5. method according to claim 1 is characterized in that: special-purpose USB memory device is non-volatile flash memory NAND Flash.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010577434 CN102087623A (en) | 2010-12-02 | 2010-12-02 | Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN 201010577434 CN102087623A (en) | 2010-12-02 | 2010-12-02 | Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN102087623A true CN102087623A (en) | 2011-06-08 |
Family
ID=44099440
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN 201010577434 Pending CN102087623A (en) | 2010-12-02 | 2010-12-02 | Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN102087623A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102890647A (en) * | 2012-07-04 | 2013-01-23 | 漳州科能电器有限公司 | Method and device for storing and updating data |
| CN103064752A (en) * | 2011-09-27 | 2013-04-24 | 奇智软件(北京)有限公司 | Method and device of repairing document |
| CN105589767A (en) * | 2015-12-21 | 2016-05-18 | 北京时代民芯科技有限公司 | System power failure protection realizing method for NAND FLASH |
| CN106878399A (en) * | 2017-01-22 | 2017-06-20 | 新华三技术有限公司 | A kind of data transmission method for uplink and device |
| WO2018166072A1 (en) * | 2017-03-13 | 2018-09-20 | 华为技术有限公司 | Method and device for data processing |
| CN110008059A (en) * | 2019-02-20 | 2019-07-12 | 深圳市汇顶科技股份有限公司 | Data-updating method, device and the storage medium of non-volatile memory medium |
| CN113538754A (en) * | 2021-06-08 | 2021-10-22 | 福建新大陆通信科技股份有限公司 | CTID intelligent door lock authorization data management method and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060149893A1 (en) * | 2004-12-30 | 2006-07-06 | Barfuss Dale C | Data storage management for flash memory devices |
| CN101079010A (en) * | 2006-05-25 | 2007-11-28 | 中兴通讯股份有限公司 | Method for implementation of FLASH chip data security |
| US20100115257A1 (en) * | 2008-11-06 | 2010-05-06 | Dell Products L.P. | Systems and Methods to Provide Failover Support for Booting Embedded Hypervisor From an Internal Non-Volatile Memory Card |
| CN101763295A (en) * | 2009-12-28 | 2010-06-30 | 北京握奇数据系统有限公司 | Data backup method, data backup device, backup item erasing method, backup item erasing device, data recovery method and data recovery device |
-
2010
- 2010-12-02 CN CN 201010577434 patent/CN102087623A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060149893A1 (en) * | 2004-12-30 | 2006-07-06 | Barfuss Dale C | Data storage management for flash memory devices |
| CN101079010A (en) * | 2006-05-25 | 2007-11-28 | 中兴通讯股份有限公司 | Method for implementation of FLASH chip data security |
| US20100115257A1 (en) * | 2008-11-06 | 2010-05-06 | Dell Products L.P. | Systems and Methods to Provide Failover Support for Booting Embedded Hypervisor From an Internal Non-Volatile Memory Card |
| CN101763295A (en) * | 2009-12-28 | 2010-06-30 | 北京握奇数据系统有限公司 | Data backup method, data backup device, backup item erasing method, backup item erasing device, data recovery method and data recovery device |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103064752A (en) * | 2011-09-27 | 2013-04-24 | 奇智软件(北京)有限公司 | Method and device of repairing document |
| CN102890647A (en) * | 2012-07-04 | 2013-01-23 | 漳州科能电器有限公司 | Method and device for storing and updating data |
| CN102890647B (en) * | 2012-07-04 | 2015-04-22 | 漳州科能电器有限公司 | Method and device for storing and updating data |
| CN105589767A (en) * | 2015-12-21 | 2016-05-18 | 北京时代民芯科技有限公司 | System power failure protection realizing method for NAND FLASH |
| CN105589767B (en) * | 2015-12-21 | 2018-07-31 | 北京时代民芯科技有限公司 | A kind of system power failure for NAND FLASH protects implementation method |
| CN106878399A (en) * | 2017-01-22 | 2017-06-20 | 新华三技术有限公司 | A kind of data transmission method for uplink and device |
| CN106878399B (en) * | 2017-01-22 | 2021-05-07 | 新华三技术有限公司 | Data sending method and device |
| WO2018166072A1 (en) * | 2017-03-13 | 2018-09-20 | 华为技术有限公司 | Method and device for data processing |
| CN110008059A (en) * | 2019-02-20 | 2019-07-12 | 深圳市汇顶科技股份有限公司 | Data-updating method, device and the storage medium of non-volatile memory medium |
| CN110008059B (en) * | 2019-02-20 | 2021-05-11 | 深圳市汇顶科技股份有限公司 | Data update method, device and storage medium of non-volatile storage medium |
| CN113538754A (en) * | 2021-06-08 | 2021-10-22 | 福建新大陆通信科技股份有限公司 | CTID intelligent door lock authorization data management method and system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102087623A (en) | Data protection method during power-fail of special USB (Universal Serial Bus) storage equipment in data updating | |
| US20120284551A1 (en) | Deep standby method and device for embedded system | |
| US8984316B2 (en) | Fast platform hibernation and resumption of computing systems providing secure storage of context data | |
| WO2016078202A1 (en) | Power failure protection method and solid state drive | |
| CN104133740A (en) | The method of abnormal power failure data recovery | |
| CN103530138A (en) | Method and device for protecting file system data based on embedded LINUX | |
| CN106227680A (en) | A kind of data process and power fail preventing data guard method | |
| CN101593083A (en) | Device, computing machine and method that computer profile is protected and recovered | |
| CN103514013A (en) | Gateway product FLASH configuration loss processing method | |
| CN111143132A (en) | BIOS recovery method, device, equipment and readable storage medium | |
| CN105786545B (en) | Breakpoint recovery method and system based on heterogeneous hybrid memory | |
| CN103531234B (en) | Power-down protection method in write operation process of NandFlash memory | |
| US20160124816A1 (en) | Computing device and method for recovering bios of computing device | |
| CN101901174B (en) | Method for enhancing reliability of program of multi-replica contrast mechanism based on code segment | |
| CN101140537A (en) | Backup and recovery operation method of built-in operating system | |
| CN101582044A (en) | Key information area maintenance method of file system and device | |
| CN105468544A (en) | Method and apparatus for realizing power-failure-proof file system, and power-failure-proof file system | |
| CN102495812A (en) | Hard disk data protection and recovery method of Linux platform | |
| CN102622281A (en) | Intelligent terminal and method of data backup and restore thereof | |
| CN103530242B (en) | Nand Flash memorizer write operation process power down means of defence | |
| CN103135735A (en) | Power down protection control method and system | |
| CN103593301A (en) | Bad block management method and system | |
| CN104484289A (en) | Sector-based embedded system write protection device and method | |
| JP2010176389A (en) | Data storage device | |
| CN103092719A (en) | Power-off protection method for file system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C12 | Rejection of a patent application after its publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110608 |