CN106445737A - Multi-backup starting method - Google Patents
Multi-backup starting method Download PDFInfo
- Publication number
- CN106445737A CN106445737A CN201610819149.1A CN201610819149A CN106445737A CN 106445737 A CN106445737 A CN 106445737A CN 201610819149 A CN201610819149 A CN 201610819149A CN 106445737 A CN106445737 A CN 106445737A
- Authority
- CN
- China
- Prior art keywords
- file
- subregion
- startup
- partition table
- partition
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management 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)
- Stored Programmes (AREA)
Abstract
The invention discloses a multi-backup starting method. The multi-backup starting method comprises the steps that 1, a file-start sequence table started earliest and a start file list are established on a partition table required to be started preferably; 2, partitions are accessed according to a start sequence table, and the type of the partition table is judged; 3, file loading begins according the type of the partition table; 4, whether a file started earliest exists in any partition or not is retrieved, if the file started earliest does not exist, operation jumps to a next partition, if so, whether the file started earliest is matched with a file in the file list or not is checked through an algorithm, if so, the step 5 is executed, if not, the partition is marked as a mistaken partition, and no scanning is performed; 5, files relevant with the file started earliest are loaded.
Description
Technical field
The present invention relates to computer starting technology, more particularly to a kind of many backup startup methods.
Background technology
The startup method of the multiple backups of the identical file of multiple storage classes is not still directed at present.Cannot be to while depositing
The backup of identical file effectively managed.
Content of the invention
It is an object of the invention to provide a kind of many backup startup methods, for solving above-mentioned problem of the prior art.
One kind of the present invention backs up startup method, wherein, including:Step 1:To needing to build on the partition table of preferential startup
Stand file, a boot sequence table and a startup file list that a table starts at first;Step 2:According to boot sequence table successively
Subregion is entered, judges the type of partition table;Step 3:Type according to partition table starts load document;Step 4:Arbitrary point of retrieval
With the presence or absence of the file that this starts at first in area, if the file not started at first, next subregion is jumped to;If it has, logical
Cross algorithm verification whether to match with the file of startup file list, if it does, execution step 5, if it does not match, mark
This subregion is wrong subregion, no longer scans;Step 5:Load the file being associated with the file that this starts at first.
Start an embodiment of method according to many backups of the present invention, wherein, the type of the partition table can be USB,
Nand flash, sd card and/or hard disk.
Start an embodiment of method according to many backups of the present invention, wherein, step 4 also includes:If all of subregion
There is no the file for starting at first, start according to default sequence, until there is a subregion verify successfully, then starting should
Subregion.
Start an embodiment of method according to many backups of the present invention, wherein, step 3 includes, if partition table is
Nand type execution step 31, if USB execution step 32, if sd card execution step 33, if hard disk executes step
Rapid 33;Step 31:Nand loading is carried out, is such as loaded successfully, go to step 4;Step 32:USB loading is carried out, is such as loaded successfully, turn
Step 4;Step 33:The loading of sd card is carried out, is such as loaded successfully, go to step 4;Step 34:Hard disk loading is carried out, is such as loaded successfully,
Go to step 4.
Start an embodiment of method according to many backups of the present invention, wherein, startup file list includes filename, text
Part size information and check code, the file for starting at first is compared with filename, document size information and check code
Right, if it does, execution step 5, if it does not match, indicating that this subregion, for wrong subregion, is no longer scanned.
To sum up, the effect of many backups startup method of the present invention is:Solve at present still not for multiple storage classes
Identical file multiple backups startup method, the backup of simultaneous identical file can effectively be managed.
Description of the drawings
Fig. 1 show the flow chart for backing up startup method the present invention more.
Specific embodiment
The hard disk running status monitoring system for below in conjunction with the accompanying drawings present invention being provided elaborates.
Fig. 1 show the flow chart for backing up startup method the present invention more, as shown in figure 1, backing up startup method the present invention more
Including:
Step 1:To needing to set up, on the partition table of preferential startup, file and the startup that each partition table starts at first
Listed files;
Step 2:Partition table is polled, and judges the type of partition table;
Poll partition table confirm whether subregion can start successively according to the boot sequence of subregion;
Such as boot sequence is, (usb, 0) (nand, 1) (usb, 2);Boot sequence is represented for usb subregion 0, nand subregion
1, usb subregion 2, judges divisional type before entering subregion, whether has update file subsequently into area search, if all points
Area is all without update file, then according to whether sequence check file verification code is correct.
The type of partition table can be USB, nand flash, sd card, hard disk etc.;
Step 3:Type according to partition table carries out loading software;
The type of loading can be USB, nand flash, sd card, hard disk etc., corresponding with the partition table type in step 2;
Step 4:Retrieved with the presence or absence of the file for starting at first in an arbitrary subregion, if it has, being verified by algorithm first
Whether match with the file of startup file list, if verification failure, indicate that this subregion, for wrong subregion, is no longer swept
Retouch, if the file not started at first, jump to next subregion;There is no the text for starting at first if all of subregion
Part, starts according to default sequence, until there is a subregion verify successfully, then starts the subregion.
As shown in figure 1, for a preferred embodiment, wherein,
Step 3 includes:Judge the type of partition table, if nand execution step 41, if USB execution step 42,
If sd card execution step 43, if hard disk execution step 43;
Step 4 includes:
Step 41:Nand loading is carried out, is such as loaded successfully, step 5;
Step 42:USB loading is carried out, is such as loaded successfully, go to step 5;
Step 43:The loading of sd card is carried out, is such as loaded successfully, go to step 5;
Step 44:Hard disk loading is carried out, is such as loaded successfully, go to step 5;
As shown in figure 1, the file that each partition table starts at first can be named as Update file, Update file is permissible
It is an empty file, is produced by touch order.An empty file is created such as on windows update, without suffix.
Divisional type being judged before entering subregion, whether has update file subsequently into area search, if all subregions all do not have
Update file, then according to whether sequence check file verification code is correct.
Startup file list can be named as file_list.txt, be to need under each subregion root to deposit at one
File, comprising verification in need software information.Each software kit is described, successively the filename comprising the software kit, file
Size and check value.
Whether being verified by algorithm of step 5 match with the file of startup file list including:
The form of File_list file is similar to:
1 file size check code of filename;
2 file size check code of filename;
Whether being verified by algorithm is matched with the file of startup file list specifically includes:Data are read in definition every time
512K byte, calculate this block number according to this byte for unit cumulative data and.Then by cumulative data and with front, number is once calculated
According to carry out xor operation, complete until this file is all calculated, if the last remaining byte of file be discontented with 512K byte with
Real bytes calculate cumulative and, result of calculation carries out XOR again with data before.
First poll file_list, according to the filename in file content, checks in file whether there is the update text
Part, if it has, calculating size, calculating and verifying and compare with the value in file_list, if correctly, continue to compare the next one
Update file, if all compare finished, all correct, the file for being considered as the subregion can start, and start the subregion, if
After starting failure, reported an error.The Main Function of verification sum is ensuring that the accurate of data, it is ensured that be not in that version file lacks
Lose, or version not to problem.The update file of multiple subregions is executed in order, and first update file occurs simultaneously
And version verification passes through, it is possible to load.
To sum up, the effect of many backups startup method of the present invention is:Solve at present still not for multiple storage classes
Identical file multiple backups startup method, the backup of simultaneous identical file can effectively be managed.
Claims (5)
1. one kind backs up startup method, it is characterised in that include:
Step 1:The one boot sequence table of file and one for starting to needing to set up a table on the partition table of preferential startup at first is opened
Dynamic listed files;
Step 2:Subregion is sequentially entered according to boot sequence table order, judge the type of partition table;
Step 3:Type according to partition table starts load document;
Step 4:The file for starting with the presence or absence of this at first in an arbitrary subregion is retrieved, if the file not started at first, is jumped
To next subregion;If it has, verified by algorithm whether match with the file of startup file list, if it does, execute
Step 5, if it does not match, indicate that this subregion, for wrong subregion, is no longer scanned;
Step 5:Load the file being associated with the file that this starts at first.
2. back up startup methods as claimed in claim 1, it is characterised in that the type of the partition table is USB, nand more
Flash, sd card and/or hard disk.
3. back up startup methods as claimed in claim 1, it is characterised in that step 4 also includes more:If all of subregion all
There is no the file for starting at first, start according to default sequence, until there is a subregion verify successfully, then start this point
Area.
4. back up startup methods as claimed in claim 2, it is characterised in that step 3 includes, if partition table is nand more
Type execution step 31, if USB execution step 32, if sd card execution step 33, if hard disk execution step 33;
Step 31:Nand loading is carried out, is such as loaded successfully, go to step 4;
Step 32:USB loading is carried out, is such as loaded successfully, go to step 4;
Step 33:The loading of sd card is carried out, is such as loaded successfully, go to step 4;
Step 34:Hard disk loading is carried out, is such as loaded successfully, go to step 4.
5. back up startup methods as claimed in claim 2, it is characterised in that startup file list includes filename, text more
Part size information and check code, the file for starting at first is compared with filename, document size information and check code
Right, if it does, execution step 5, if it does not match, indicating that this subregion, for wrong subregion, is no longer scanned.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819149.1A CN106445737B (en) | 2016-09-12 | 2016-09-12 | Multi-backup starting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610819149.1A CN106445737B (en) | 2016-09-12 | 2016-09-12 | Multi-backup starting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106445737A true CN106445737A (en) | 2017-02-22 |
CN106445737B CN106445737B (en) | 2023-03-10 |
Family
ID=58168751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610819149.1A Active CN106445737B (en) | 2016-09-12 | 2016-09-12 | Multi-backup starting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106445737B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111061514A (en) * | 2019-10-30 | 2020-04-24 | 翱捷智能科技(上海)有限公司 | Flash device, integrated circuit and Flash device starting method |
CN112486506A (en) * | 2019-09-12 | 2021-03-12 | 恒为科技(上海)股份有限公司 | NAND Flash burning method and device |
CN113488082A (en) * | 2021-07-02 | 2021-10-08 | 山东恒宇电子有限公司 | Audio and video storage method for embedded equipment mechanical hard disk |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053880A (en) * | 2011-01-07 | 2011-05-11 | 杭州电子科技大学 | Rar file carving recovery method based on contents |
CN102360299A (en) * | 2011-09-30 | 2012-02-22 | 奇智软件(北京)有限公司 | Software system resetting method, server and client |
US20130041872A1 (en) * | 2011-08-12 | 2013-02-14 | Alexander AIZMAN | Cloud storage system with distributed metadata |
CN103019785A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for processing program upgrading |
US20130232392A1 (en) * | 2011-12-12 | 2013-09-05 | Cleversafe, Inc. | Managing memory utilization in a distributed storage and task network |
CN103544069A (en) * | 2012-07-18 | 2014-01-29 | 肖祥省 | Fault-tolerant multiple startup system disk created with one area for multiple purposes |
CN103678042A (en) * | 2013-12-25 | 2014-03-26 | 上海爱数软件有限公司 | Backup strategy information generating method based on data analysis |
CN103729262A (en) * | 2012-10-12 | 2014-04-16 | 武汉海康威视系统技术有限公司 | Operating system hot backup method and device and file system reconstruction method |
CN103761124A (en) * | 2014-01-06 | 2014-04-30 | 武汉烽火富华电气有限责任公司 | Method for starting embedded-type Linux system used for protection measuring and controlling device |
CN104461768A (en) * | 2013-09-22 | 2015-03-25 | 华为技术有限公司 | Copy storing device and copy storing method |
CN104598334A (en) * | 2015-01-13 | 2015-05-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104636166A (en) * | 2015-02-06 | 2015-05-20 | 福建实达电脑设备有限公司 | NandFlash firmware programmer and programming method |
US20150277897A1 (en) * | 2013-09-13 | 2015-10-01 | Huizhou Tcl Mobile Communication Co., Ltd. | Software upgrade method and system for mobile terminal |
CN105389232A (en) * | 2015-10-28 | 2016-03-09 | 武汉噢易云计算有限公司 | Valid data analysis method for EXT file system |
CN105589767A (en) * | 2015-12-21 | 2016-05-18 | 北京时代民芯科技有限公司 | System power failure protection realizing method for NAND FLASH |
-
2016
- 2016-09-12 CN CN201610819149.1A patent/CN106445737B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102053880A (en) * | 2011-01-07 | 2011-05-11 | 杭州电子科技大学 | Rar file carving recovery method based on contents |
US20130041872A1 (en) * | 2011-08-12 | 2013-02-14 | Alexander AIZMAN | Cloud storage system with distributed metadata |
CN102360299A (en) * | 2011-09-30 | 2012-02-22 | 奇智软件(北京)有限公司 | Software system resetting method, server and client |
US20130232392A1 (en) * | 2011-12-12 | 2013-09-05 | Cleversafe, Inc. | Managing memory utilization in a distributed storage and task network |
CN103544069A (en) * | 2012-07-18 | 2014-01-29 | 肖祥省 | Fault-tolerant multiple startup system disk created with one area for multiple purposes |
CN103729262A (en) * | 2012-10-12 | 2014-04-16 | 武汉海康威视系统技术有限公司 | Operating system hot backup method and device and file system reconstruction method |
CN103019785A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for processing program upgrading |
US20150277897A1 (en) * | 2013-09-13 | 2015-10-01 | Huizhou Tcl Mobile Communication Co., Ltd. | Software upgrade method and system for mobile terminal |
CN104461768A (en) * | 2013-09-22 | 2015-03-25 | 华为技术有限公司 | Copy storing device and copy storing method |
CN103678042A (en) * | 2013-12-25 | 2014-03-26 | 上海爱数软件有限公司 | Backup strategy information generating method based on data analysis |
CN103761124A (en) * | 2014-01-06 | 2014-04-30 | 武汉烽火富华电气有限责任公司 | Method for starting embedded-type Linux system used for protection measuring and controlling device |
CN104598334A (en) * | 2015-01-13 | 2015-05-06 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN104636166A (en) * | 2015-02-06 | 2015-05-20 | 福建实达电脑设备有限公司 | NandFlash firmware programmer and programming method |
CN105389232A (en) * | 2015-10-28 | 2016-03-09 | 武汉噢易云计算有限公司 | Valid data analysis method for EXT file system |
CN105589767A (en) * | 2015-12-21 | 2016-05-18 | 北京时代民芯科技有限公司 | System power failure protection realizing method for NAND FLASH |
Non-Patent Citations (2)
Title |
---|
DIANA H.P.LOW: ""On the design of high-performance algorithms for aligning multiple protein sequences on mesh-based multiprocessor architectures"" * |
梁邦乾: ""基于ARM的TPCM的设计"" * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112486506A (en) * | 2019-09-12 | 2021-03-12 | 恒为科技(上海)股份有限公司 | NAND Flash burning method and device |
CN112486506B (en) * | 2019-09-12 | 2024-02-02 | 恒为科技(上海)股份有限公司 | NAND Flash burning method and device |
CN111061514A (en) * | 2019-10-30 | 2020-04-24 | 翱捷智能科技(上海)有限公司 | Flash device, integrated circuit and Flash device starting method |
CN113488082A (en) * | 2021-07-02 | 2021-10-08 | 山东恒宇电子有限公司 | Audio and video storage method for embedded equipment mechanical hard disk |
CN113488082B (en) * | 2021-07-02 | 2022-07-29 | 山东恒宇电子有限公司 | Audio and video storage method for embedded equipment mechanical hard disk |
Also Published As
Publication number | Publication date |
---|---|
CN106445737B (en) | 2023-03-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103150231B (en) | The method of computer booting and computer system | |
CN107885656B (en) | Automatic product algorithm testing method and application server | |
US9535781B2 (en) | System file repair method and apparatus | |
US8006125B1 (en) | Automatic detection and recovery of corrupt disk metadata | |
US20020194535A1 (en) | Backup of a computer | |
US7509544B2 (en) | Data repair and synchronization method of dual flash read only memory | |
CN106776122A (en) | A kind of method of main-apparatus protection in start-up course based on Flash | |
CN109445861A (en) | System start method, device, computer installation and storage medium | |
CN107133244B (en) | Method and device for testing database migration | |
CN110162429B (en) | System repair method, server and storage medium | |
CN107301070A (en) | A kind of upgrade method and terminal | |
CN106843947B (en) | Method and device for processing code defects | |
CN106445737A (en) | Multi-backup starting method | |
CN106201640A (en) | A kind of method and device of BootLoader program of upgrading | |
CN106095680A (en) | Verification disk out-of-order automatic test method applied to Linux | |
CN115357262A (en) | Method for upgrading driver firmware in batch | |
CN105550071A (en) | System file upgrading and detecting method and communication device | |
CN108196975B (en) | Data verification method and device based on multiple checksums and storage medium | |
CN109683980B (en) | Method for realizing reliable loading of U disk configuration file of trackside safety platform | |
CN111859402A (en) | Safe boot method and device based on UEFI BIOS start | |
CN111221795A (en) | Virtual disk data verification method, device and medium | |
CN109582334B (en) | Upgrading method and device for programmable logic device | |
CN113505026B (en) | Method, device and equipment for verifying backup data and storage medium | |
JP6668840B2 (en) | Software introduction support program, software introduction support device, and software introduction support method | |
CN105278993B (en) | A kind of drive module upgrade method and device based on linux system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |