CN106445737B - Multi-backup starting method - Google Patents
Multi-backup starting method Download PDFInfo
- Publication number
- CN106445737B CN106445737B CN201610819149.1A CN201610819149A CN106445737B CN 106445737 B CN106445737 B CN 106445737B CN 201610819149 A CN201610819149 A CN 201610819149A CN 106445737 B CN106445737 B CN 106445737B
- Authority
- CN
- China
- Prior art keywords
- file
- partition
- starting
- started
- loading
- 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.)
- Active
Links
Images
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
Abstract
The invention discloses a multi-backup starting method, which comprises the following steps: step 1, establishing a starting sequence table and a starting file list of a file which is firstly started on a partition table needing to be started preferentially; step 2: sequentially entering the partitions according to a starting sequence table, and judging the types of the partition tables; and step 3: loading files according to the type of the partition table; and 4, step 4: searching whether the file started firstly exists in any partition, and jumping to the next partition if the file started firstly does not exist in any partition; if yes, whether the file is matched with the file of the starting file list or not is checked through an algorithm, if so, step 5 is executed, and if not, the partition is marked as an error partition and is not scanned any more; and 5: the file associated with the first launched file is loaded.
Description
Technical Field
The invention relates to a computer starting technology, in particular to a multi-backup starting method.
Background
There is currently no method of initiating multiple backups of the same file for multiple storage types. It is impossible to effectively manage the backups of the same file that exist simultaneously.
Disclosure of Invention
The present invention aims to provide a multi-backup startup method for solving the above-mentioned problems of the prior art.
The invention discloses a multi-backup starting method, which comprises the following steps: step 1, establishing a file which is firstly started, a starting sequence table and a starting file list on a partition table needing to be started preferentially; and 2, step: sequentially entering the partitions according to a starting sequence table, and judging the types of the partition tables; and step 3: starting to load files according to the type of the partition table; and 4, step 4: searching whether the file started firstly exists in any partition, and jumping to the next partition if the file started firstly does not exist in any partition; if yes, whether the file is matched with the file of the starting file list or not is checked through an algorithm, if so, step 5 is executed, and if not, the partition is marked as an error partition and is not scanned any more; and 5: the file associated with the first launched file is loaded.
According to an embodiment of the multi-backup starting method of the present invention, the partition table may be USB, nand flash, sd card and/or hard disk.
According to an embodiment of the multi-backup starting method of the present invention, step 4 further includes: if all partitions do not have the first file to be started, starting the partitions according to a default sequence until one partition can be verified successfully, and then starting the partitions.
According to an embodiment of the multi-backup starting method of the present invention, step 3 includes, if the partition table is of nand type, executing step 31, if the partition table is of USB type, executing step 32, if the partition table is of sd card, executing step 33, and if the partition table is of hard disk, executing step 33; step 31: carrying out nand loading, and if loading is successful, turning to the step 4; step 32: carrying out USB loading, and if the loading is successful, turning to the step 4; step 33: carrying out sd card loading, and if the loading is successful, turning to the step 4; step 34: and (5) loading the hard disk, and turning to the step 4 if the loading is successful.
According to an embodiment of the multi-backup starting method of the present invention, the starting file list includes a file name, file size information, and a check code, the first started file is compared with the file name, the file size information, and the check code, if the first started file is matched with the first started file, step 5 is executed, and if the first started file is not matched with the first started file, the partition is marked as an error partition and is not scanned any more.
In summary, the multi-backup startup method of the present invention has the following effects: the method solves the problem that no starting method for multiple backups of the same file of multiple storage types exists at present, and can effectively manage the backups of the same file existing at the same time.
Drawings
FIG. 1 is a flowchart illustrating a multi-backup booting method according to the present invention.
Detailed Description
The following describes the hard disk operation state monitoring system provided by the present invention in detail with reference to the accompanying drawings.
Fig. 1 is a flowchart of a multi-backup startup method of the present invention, and as shown in fig. 1, the multi-backup startup method of the present invention includes:
step 1, establishing a file which is started firstly by each partition table and a starting file list on the partition table which needs to be started preferentially;
step 2: polling the partition table and judging the type of the partition table;
polling the partition table, namely sequentially confirming whether the partitions can be started according to the starting sequence of the partitions;
for example, the start sequence is (usb, 0) (nand, 1) (usb, 2); representing that the starting sequence is usb partition 0, nand partition 1 and usb partition 2, judging the partition type before entering the partitions, then entering the partitions to search whether the update files exist, if all the partitions do not have the update files, then checking whether the file check codes are correct according to the sequence.
The type of the partition table can be USB, nand flash, sd card, hard disk and the like;
and step 3: loading software according to the type of the partition table;
the loading type can be USB, nand flash, sd card, hard disk, etc., and corresponds to the partition table type in step 2;
and 4, step 4: firstly, searching whether a first started file exists in any partition, if so, checking whether the first started file is matched with the file in the file starting list through an algorithm, if the checking fails, marking the partition as a wrong partition and not scanning any more, and if no first started file exists, jumping to the next partition; if all partitions do not have the first file to be started, starting the partitions according to a default sequence until one partition can be verified successfully, and then starting the partitions.
As shown in fig. 1, for a preferred embodiment, wherein,
the step 3 comprises the following steps: judging the type of the partition table, if the type is nand, executing step 41, if the type is USB, executing step 42, if the type is sd, executing step 43, and if the type is hard disk, executing step 43;
step 4 comprises the following steps:
step 41: performing nand loading, if the loading is successful, and step 5;
step 42: carrying out USB loading, and turning to the step 5 if the loading is successful;
step 43: carrying out sd card loading, and if the loading is successful, turning to the step 5;
step 44: loading the hard disk, and if the hard disk is loaded successfully, turning to the step 5;
as shown in FIG. 1, the first started file of each partition table may be named an Update file, which may be an empty file and generated by a touch command. Such as creating an empty file call update on windows without a suffix. Judging the partition type before entering the partition, then entering the partition to search whether the update file exists, if all the partitions do not have the update file, then checking whether the file check code is correct according to the sequence.
Txt, which is a file to be stored in each partition root directory, contains information of all software to be checked. Each software package is described, and the file name, the file size and the check value of the software package are sequentially contained.
The checking whether the files in the step 5 match the files in the startup file list by the algorithm comprises:
the format of the File _ list File is similar:
filename 1 File size check code;
filename 2 file size check code;
the step of checking whether the file is matched with the file of the start file list through an algorithm specifically comprises the following steps: 512K bytes of data are defined to be read each time, and the accumulated data sum of the data block in bytes is calculated. And then carrying out exclusive OR operation on the accumulated data sum and the previously calculated data sum until the file is completely calculated, finally calculating the accumulated sum with actual bytes if the remaining bytes are less than 512K bytes, and carrying out exclusive OR operation on the calculation result and the previous data.
Polling the file _ list, checking whether the update file exists in the folder or not according to the file name in the file content, if so, calculating the size, calculating the checksum, comparing the checksum with the value in the file _ list, if so, continuously comparing the next update file, if all the comparison is finished, judging that the files of the partition can be started, starting the partition, and if the starting fails, reporting an error. The main function of the checksum is to ensure the accuracy of data and to ensure that the problems of missing version files or incorrect versions cannot occur. The update files of the plurality of partitions are executed in sequence, and the update file appears first and the version check is passed, so that the file can be loaded.
In summary, the multi-backup startup method of the present invention has the following effects: the method solves the problem that no starting method for multiple backups of the same file of multiple storage types exists at present, and can effectively manage the backups of the same file existing at the same time.
Claims (3)
1. A method for multiple backup boots, comprising:
step 1: establishing a starting sequence table and a starting file list of a file which is firstly started on a partition table needing to be started preferentially;
step 2: sequentially entering partitions according to the sequence of a starting sequence table, and judging the types of partition tables before entering the partitions, wherein the types of the partition tables are USB, nand flash, sd cards and hard disks;
and step 3: starting to load files according to the type of the partition table, executing a step 31 if the partition table is of a nand flash type, executing a step 32 if the partition table is of a USB type, executing a step 33 if the partition table is of an sd card, and executing a step 34 if the partition table is of a hard disk;
step 31: carrying out nand flash loading, and if the loading is successful, turning to the step 4;
step 32: carrying out USB loading, and if the loading is successful, turning to the step 4;
step 33: carrying out sd card loading, and if the loading is successful, turning to the step 4;
step 34: loading the hard disk, and if the hard disk is loaded successfully, turning to the step 4;
and 4, step 4: searching whether the file started firstly exists in any partition, and jumping to the next partition if the file started firstly does not exist in any partition; if yes, checking whether the file is matched with the file of the starting file list through an algorithm, if so, executing step 5, and if not, marking the partition as an error partition and not scanning;
and 5: the file associated with the first started file is loaded, the update files of the plurality of partitions are executed in sequence, and the file is loaded when the update file appears first and the version check passes.
2. The multi-backup startup method of claim 1, wherein step 4 further comprises: if all partitions do not have the files started first, starting according to a default sequence until one partition is verified successfully, and then starting the partition.
3. The method as claimed in claim 1, wherein the startup file list comprises a file name, file size information and a check code, the first startup file is compared with the file name, the file size information and the check code, if there is a match, step 5 is executed, and if there is no match, the partition is marked as an error partition and is not scanned any more.
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 CN106445737A (en) | 2017-02-22 |
CN106445737B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN113488082B (en) * | 2021-07-02 | 2022-07-29 | 山东恒宇电子有限公司 | Audio and video storage method for embedded equipment mechanical hard disk |
Citations (12)
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 |
CN103019785A (en) * | 2012-12-11 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for processing program upgrading |
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 |
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 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8533231B2 (en) * | 2011-08-12 | 2013-09-10 | Nexenta Systems, Inc. | Cloud storage system with distributed metadata |
US9141468B2 (en) * | 2011-12-12 | 2015-09-22 | Cleversafe, Inc. | Managing memory utilization in a distributed storage and task network |
CN103473099B (en) * | 2013-09-13 | 2017-02-01 | 惠州Tcl移动通信有限公司 | Software upgrading method and system for mobile terminal |
-
2016
- 2016-09-12 CN CN201610819149.1A patent/CN106445737B/en active Active
Patent Citations (12)
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 |
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 |
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".2007,第67卷(第9期),第1007-1017页. * |
梁邦乾."基于ARM的TPCM的设计".2014,(2014年第03期),第I138-82页. * |
Also Published As
Publication number | Publication date |
---|---|
CN106445737A (en) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170322796A1 (en) | Device and method for updating firmware and firmware update system | |
EP1738256B1 (en) | Method and apparatus for reliably updating a stored version of content | |
US11017091B2 (en) | Firmware map data | |
CN106445737B (en) | Multi-backup starting method | |
CN111078481B (en) | Method, device, electronic equipment and storage medium for acquiring configuration checklist | |
US7689981B1 (en) | Mobile handset with efficient interruption point detection during a multiple-pass update process | |
CN111045713A (en) | Method, system and device for upgrading computer system | |
CN107908417B (en) | Firmware upgrading method and electronic equipment | |
CN111158948B (en) | Data storage and verification method and device based on deduplication and storage medium | |
EP2998902A1 (en) | Method and apparatus for processing file | |
US20210349710A1 (en) | Software update agent device and software patching method through the same | |
US20170052779A1 (en) | Method and Device for Running Version File | |
CN106843947B (en) | Method and device for processing code defects | |
CN111258666A (en) | Reading method and device of computer file, computer system and storage medium | |
CN111316235A (en) | Method for starting system, electronic device and machine-readable storage medium | |
CN106201640A (en) | A kind of method and device of BootLoader program of upgrading | |
CN112015447A (en) | System updating method and device for electronic equipment, electronic equipment and storage medium | |
WO2021012170A1 (en) | Firmware booting method and device, and computer-readable storage medium | |
CN105278993B (en) | A kind of drive module upgrade method and device based on linux system | |
CN116521405A (en) | sd card state detection method, device, equipment and storage medium | |
CN109683980B (en) | Method for realizing reliable loading of U disk configuration file of trackside safety platform | |
CN109144967B (en) | Maintenance system and method for improving distributed computing system | |
CN107656747B (en) | Data upgrading method and mobile terminal | |
CN111414212B (en) | Global process control method, device, computer equipment and storage medium | |
CN110673869B (en) | Library file loading method, device and 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 |