Method for quickly repairing system based on disk block copy
A repair system and block technology, which is applied in the field of Internet communication, can solve the problems of low repair efficiency of embedded systems, and achieve the effect of improving repair efficiency, improving efficiency and saving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0039] Such as figure 1 As shown, the embodiment of the present invention provides a method for quickly repairing a system based on disk block copy, and the method includes the following steps:
[0040] S101. Before leaving the factory, logically partition the disk where the target system is located. For example, assuming that the target system with the restoration feature resides on a 100G disk, the disk can be logically divided into 1G blocks, such as figure 2 shown.
[0041] Wherein, the logical blocks are numbered starting from 1, and the logical blocks are continuous.
[0042] S102, backing up the logical block disk according to sectors, each logical block corresponds to a backup file, and saves each backup file; preferably, the backup file is named and saved with the number of the logical block, such as image 3 shown.
[0043] S103, calculate and save the hash value of each backup file, such as Figure 4 shown.
[0044] During specific implementation, a hash oper...
Embodiment 2
[0056] In order to further improve the efficiency of finding abnormal blocks, when logically dividing and backing up the disk where the target system resides, the backup files can be grouped, for example, backup files 1-10 are the first group, backup files 10-20 are the second group, and By analogy, the hash value of each group is calculated separately. When the system is abnormal, scan the disk where the system resides by block, group the logical blocks of the disk in the same way, calculate the hash value of the logical block group, and compare it with the hash value of each backup file group to find Find the abnormal block group, and then continue grouping and comparing the abnormal block group with the corresponding backup file group until the abnormal logical block is found and replaced. That is, the present embodiment provides a method for quickly repairing a system based on disk block copy, and the method includes the following steps:
[0057] S201. Before leaving the ...
Embodiment 3
[0067] Such as Figure 9 As shown, the present invention is applicable to many special-purpose computer system occasions, such as Internet cafe systems. The Internet cafe system does not need to retain any user operation information, that is, after restarting, the system will return to its original state. For this kind of system with recovery features, once it is damaged for some reason, the corresponding block data must be modified on the disk, and the hash value of the corresponding block will change.
[0068] The embodiment of the present invention also provides a device for a fast repair system based on disk block copy, which is suitable for a system with restoration features, and the device includes: a disk backup module and a disk repair module;
[0069] The disk backup module is used to carry out logical partitioning of the disk where the target system is located before leaving the factory; back up the logically partitioned disk according to sectors, and each logical p...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com