[go: up one dir, main page]

CN114217851A - System recovery mechanism establishing method and system starting and recovery method - Google Patents

System recovery mechanism establishing method and system starting and recovery method Download PDF

Info

Publication number
CN114217851A
CN114217851A CN202010922452.0A CN202010922452A CN114217851A CN 114217851 A CN114217851 A CN 114217851A CN 202010922452 A CN202010922452 A CN 202010922452A CN 114217851 A CN114217851 A CN 114217851A
Authority
CN
China
Prior art keywords
judgment result
establishing
executed
computer
yes
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
CN202010922452.0A
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.)
Apacer Technology Inc
Original Assignee
Apacer Technology Inc
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 Apacer Technology Inc filed Critical Apacer Technology Inc
Priority to CN202010922452.0A priority Critical patent/CN114217851A/en
Publication of CN114217851A publication Critical patent/CN114217851A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30145Instruction analysis, e.g. decoding, instruction word fields
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Retry When Errors Occur (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure relates to a method for establishing a system recovery mechanism and a method for starting and recovering the system, which are applicable to a computer comprising a storage device and an operating system, wherein the method for establishing the system recovery mechanism comprises the following steps: (a) starting the computer; (b) recording all instructions sent to the storage device within a time interval after the computer is started; (c) analyzing the operation times and the time sequence of at least one specific instruction and generating an analysis result; (d) judging whether the number of the analysis results is greater than or equal to a preset value; and (e) establishing a system restoration mechanism according to all the analysis results. If the determination result in step (d) is yes, performing step (e) after step (d), and if the determination result in step (d) is no, re-performing step (a) after step (d).

Description

System recovery mechanism establishing method and system starting and recovery method
Technical Field
The present disclosure relates to a mechanism establishing method, and more particularly, to a system restoring mechanism establishing method based on automatic learning and a system starting and restoring method.
Background
When a general user uses a computer, one of the most feared situations is that the computer cannot be normally started, whether the computer is stopped in a BIOS picture or enters a repair mode, or even a picture with a blue screen represents that a system startup process has an error or a related startup file is lost, which all have an opportunity to cause that an original internal important program or data cannot be used any more, and thus, the intangible loss is difficult to estimate.
In order to ensure the normal operation of the computer, a system recovery program has been extensively used and developed to recover the operating system to a normal state when the computer is abnormal. In the system recovery method in the prior art, a program is installed in an operating system, and a user self-defines a backup time point. When the user feels the system is unstable, the system restoring action is executed again to ensure that the operating system is not damaged or crashed suddenly.
However, this method still has several disadvantages, especially before the user does not perform the system recovery, the computer may have failed, and at this time, the user may be confronted with the dilemma that the user cannot enter the operating system to perform the system recovery, which may affect the working or production efficiency of the user and even cause great loss to the user. In addition, it takes a lot of time to install the system restore program and perform the backup, which reduces the productivity of the user.
Therefore, how to develop a method for establishing a system recovery mechanism and a method for starting and recovering a system, which can effectively solve the problems and disadvantages of the prior art, is a problem that is yet to be solved.
Disclosure of Invention
It is a primary objective of the present disclosure to provide a method for establishing a system restore mechanism and a system startup and restore method, so as to solve and improve the problems and disadvantages of the prior art.
Another objective of the present disclosure is to provide a method for establishing a system recovery mechanism and a method for starting and recovering the system, in which all instructions in a time interval after a computer is started are recorded, and the running times and timing sequence of specific instructions are analyzed to generate an analysis result, and then a system recovery mechanism is established according to the analysis result, so that an automatic system recovery mechanism dedicated to the computer can be established in an automatic learning manner without installing a system recovery program, and at the same time, the labor and time of a user for backup or recovery can be reduced, thereby achieving the technical effect of improving the production efficiency.
Another objective of the present disclosure is to provide a method for establishing a system recovery mechanism and a method for starting and recovering the system, which can effectively detect whether an operating system is normally started, and automatically recover to a normal state when an abnormality is detected, so as to reduce the risk of damage to an important program or data.
Another objective of the present disclosure is to provide a method for establishing a system recovery mechanism and a method for starting and recovering the system, wherein when a problem occurs during the startup process of the system, the firmware of the storage device triggers the system recovery mechanism, so that the computer can start the system normally when starting the computer next time, thereby avoiding the loss of important data or the failure of program execution, and eliminating the tedious work of taking out the storage device from the computer and reinstalling the operating system.
To achieve the above objects, a preferred embodiment of the present disclosure provides a method for establishing a system restoring mechanism, which is suitable for a computer including a storage device and an operating system, the method comprising: (a) starting the computer; (b) recording all instructions sent to the storage device within a time interval after the computer is started; (c) analyzing the operation times and the time sequence of at least one specific instruction in all the instructions and generating an analysis result; (d) judging whether the number of the analysis results is greater than or equal to a preset value; and (e) establishing a system recovery mechanism according to all the analysis results; wherein the step (e) is executed after the step (d) when the determination result of the step (d) is yes, and the step (a) is re-executed after the step (d) when the determination result of the step (d) is no.
To achieve the above objects, a preferred embodiment of the present disclosure provides a system booting and restoring method, which is applied to a computer including a storage device and an operating system, including the steps of: (a) starting the computer; (b) recording all instructions in a time interval after the computer is started; (c) judging whether a system restoring mechanism exists or not; (d) judging whether the storage device is a storage device started by the operating system; (e) analyzing the operation times and the time sequence of at least one specific instruction in all the instructions and generating an analysis result; (f) judging whether the number of the analysis results is greater than or equal to a preset value; (g) establishing a system restoration mechanism according to all the analysis results; (h) normally starting the operating system; (i) judging whether to execute a system restoration; and (j) performing the system restore; wherein, when the determination result of the step (c) is yes, the step (i) is executed after the step (c), when the determination result of the step (c) is no, the step (d) is executed after the step (c), when the determination result of the step (d) is yes, the step (e) is executed after the step (d), when the determination result of the step (d) is no, no step is executed after the step (d), when the determination result of the step (f) is yes, the step (g) is executed after the step (f), when the determination result of the step (f) is no, the step (a) is re-executed after the step (f), the determination result of the step (i) is determined according to the analysis result and the system recovery mechanism, when the determination result of the step (i) is yes, the step (j) is executed after the step (i), and if the determination result of the step (i) is negative, the step (h) is executed after the step (i).
Drawings
Fig. 1 is a flowchart illustrating a method for establishing a system restore mechanism according to an embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating a method for establishing a system restore mechanism according to an embodiment of the present disclosure.
Fig. 3 is a flow chart illustrating a system restore mechanism according to an embodiment of the disclosure.
Fig. 4 is a flow chart illustrating a system restore mechanism according to an embodiment of the disclosure.
Fig. 5 is a flow chart illustrating a system restore mechanism according to an embodiment of the disclosure.
Fig. 6 is a flowchart illustrating a system startup and recovery method according to an embodiment of the disclosure.
Description of reference numerals:
s100, S200, S300, S400, S500: step (ii) of
S510, S520, S530, S540, S580, S590: step (ii) of
S1, S2, S3, S4, S5, S6, S7, S8, S9, S10: step (ii) of
Detailed Description
Some exemplary embodiments that incorporate the features and advantages of the present disclosure will be described in detail in the specification which follows. It is to be understood that the disclosure is capable of various modifications in various embodiments without departing from the scope of the disclosure, and that the description and drawings are to be regarded as illustrative in nature, and not as restrictive.
Please refer to fig. 1, which is a flowchart illustrating a method for establishing a system restore mechanism according to an embodiment of the present disclosure. As shown in fig. 1, the method for establishing a system restoring mechanism according to an embodiment of the present disclosure is suitable for a computer including a storage device and an operating system, wherein the storage device may be, for example, but not limited to, a Solid-State Drive (SSD). The method for establishing the system restoring mechanism comprises the following steps. First, as shown in step S100, the computer is started. Next, as shown in step S200, all instructions issued to the storage device within a time interval after the computer is started are recorded, wherein the time interval is 30 seconds, 1 minute, 3 minutes or 5 minutes, but not limited thereto. Next, in step S300, the operation times and the timing sequence of at least one specific instruction in all the instructions are analyzed to generate an analysis result. After step S300 is completed, as shown in step S400, it is determined whether the number of analysis results is greater than or equal to a preset value. It should be noted that, when the number of the analysis results is not greater than or equal to the predetermined value, that is, the determination result is no, step S100 is executed again after step S400, and the subsequent steps are executed to step S400; when the number of the analysis results is greater than or equal to the predetermined value, that is, the determination result is yes, step S500 is executed after step S400, that is, a system recovery mechanism is established according to all the analysis results. If the default value is equal to 10, the method for establishing the system recovery mechanism of the present disclosure continuously records and analyzes all instructions until the computer is restarted for 9 times and 10 analysis results are generated, and then establishes the system recovery mechanism according to the 10 analysis results, but not limited thereto. Therefore, an automatic system restoring mechanism dedicated to the computer can be established in an automatic learning mode without additionally installing a system restoring program, and the labor and time for a user to backup or execute restoring can be reduced, so that the technical effect of improving the production efficiency is achieved.
In some embodiments, the method for establishing the system restore mechanism of the present disclosure may include a step of determining whether the storage device is a system disk. Please refer to fig. 2, which is a flowchart illustrating a method for establishing a system restore mechanism according to an embodiment of the present disclosure. As shown in fig. 2, the method for establishing the restore mechanism of the system of the present disclosure may further include a step S250 between the steps S200 and S300. Step S250 determines whether the storage device is a storage device for which the operating system is started. If the determination result in step S250 is "no", it means that the storage device is not a system disk and does not involve the booting of the operating system, so that no step is performed after step S250, and the method for establishing the system restore mechanism is ended. If the determination result in step S250 is yes, step S300 is executed after step S250.
According to the concept of the present disclosure, the time interval can be set according to actual requirements, and can be a time range with any length, which is mainly to record and analyze all instructions from power-up to complete operation of the operating system in the time range, but not limited thereto. The preset value is preferably any integer from 1 to 50, but not limited thereto. If the analysis accuracy is to be improved, it can be set to any integer larger than 50.
In some embodiments, step S100 of the method for establishing the restore mechanism of the system of the present disclosure may be implemented by a user or triggered by step S400. Step S200 may be implemented by firmware of a storage device, for example, firmware of a solid state disk. Step S250 may be implemented by firmware. Step S300 may be implemented by firmware. Step S400 may be implemented by firmware. Step S500 may be implemented by firmware. The system restore mechanism may be implemented by firmware. Therefore, when the system is started, the firmware of the storage device triggers the system recovery mechanism, the computer can start the system normally when the computer is started next time, the loss of important data and the complex work of taking out the storage device from the computer and reinstalling the operating system are avoided.
Please refer to fig. 3, which is a flowchart illustrating a system restoring mechanism according to an embodiment of the disclosure. As shown in fig. 3, the system restoring mechanism established by the method for establishing a system restoring mechanism of the present disclosure includes the following steps: as shown in step S510, it is determined whether the number of times the specific instruction is executed is less than the lower limit value or greater than the upper limit value. If the determination result in step S510 is yes, that is, if the operation frequency of the specific instruction is less than the lower limit value or greater than the upper limit value, it represents that the operation of the computer is abnormal, and step S580 is executed after step S510, and the system recovery is executed; otherwise, if the determination result in step S510 is no, that is, the number of times the specific command is executed is not less than the lower limit and not greater than the upper limit, it indicates that the computer is operating normally, and step S590 is executed after step S510, and the operating system is started normally. Specifically, the lower limit value is equal to the minimum value of the number of operations of the specific command in all the analysis results, minus the difference between the maximum value and the minimum value of the number of operations, that is, the lower limit value is equal to the minimum value of the number of operations- (the maximum value of the number of operations-the minimum value of the number of operations). The upper limit value is equal to the maximum value of the operation times of the specific instruction in all the analysis results, and the difference between the maximum value and the minimum value of the operation times is added, namely the upper limit value is equal to the maximum value + (the maximum value of the operation times-the minimum value of the operation times).
Please refer to fig. 4, which is a flowchart illustrating a system restoring mechanism according to an embodiment of the disclosure. As shown in fig. 4, the system restoring mechanism established by the method for establishing a system restoring mechanism of the present disclosure includes the following steps: in step S520, it is determined whether the operation timing sequence of the specific command does not conform to the specific rule. If the determination result in step S520 is yes, that is, if the operation timing sequence of the specific instruction does not conform to the specific rule, it represents that the operation of the computer is abnormal, and step S580 is executed after step S520, and the system recovery is executed; otherwise, if the determination result in the step S520 is negative, that is, the operation timing sequence of the specific command conforms to the specific rule, it represents that the computer is operating normally, and the step S590 is executed after the step S520 to start the operating system normally. It should be noted that the specific rule is obtained by generalizing all the analysis results, and the number of the specific instructions is preferably three, but not limited thereto. In other words, the method for establishing the system recovery mechanism of the present disclosure may perform statistics and induction on the occurrence sequence of a plurality of specific instructions, which is preferably 3 specific instructions, from among the instructions recorded from the multiple-time computer startup, so as to finally obtain a specific rule that inevitably indicates the normal operation or normal startup of the computer, and use the specific rule as a basis for determining whether to perform the system recovery.
Of course, according to the concept of the present disclosure, the present disclosure can also combine the above two embodiments to make a more conservative system recovery determination. Please refer to fig. 5, which is a flowchart illustrating a system restoring mechanism according to an embodiment of the disclosure. As shown in fig. 5, the system restoring mechanism established by the method for establishing a system restoring mechanism of the present disclosure includes the following steps: in step S530, it is determined whether the number of times the specific instruction is executed is less than the lower limit value or greater than the upper limit value. If the determination result in step S530 is "no", which indicates that the computer is operating normally, then step S590 is executed after step S530, and the operating system is started normally; otherwise, if the determination result in the step S530 is yes, which indicates that the computer may be abnormal in operation, the step S540 is executed after the step S530, and it is further determined whether the operation timing of the specific instruction does not conform to a specific rule. If the determination result in step S540 is "no", which indicates that the computer is operating normally, then step S590 is executed after step S540, and the operating system is started normally; otherwise, if the determination result in step S540 is yes, that is, if both determinations indicate that the computer operation is possibly abnormal, the computer operation is considered to be abnormal, and step S580 is executed after step S540 to execute the system recovery.
It can be seen from the above embodiments of the system recovery mechanism that the system recovery mechanism of the present disclosure can effectively detect whether the operating system is normally started, and automatically recover to a normal state when an abnormality is detected, thereby reducing the risk of damage to an important program or data.
Based on the above method for establishing the system recovery mechanism and the system recovery mechanism established by the method, the present disclosure further provides a system startup and recovery method. Please refer to fig. 6, which is a flowchart illustrating a system booting and restoring method according to an embodiment of the disclosure. As shown in fig. 6, the system starting and recovering method according to an embodiment of the present disclosure includes the following steps. First, as shown in step S1, the computer is started. Then, in step S2, all commands within a time interval after the computer is started are recorded. Then, as shown in step S3, it is determined whether a system restoration mechanism exists. If the determination result in the step S3 is "no", that is, if there is no system restoring mechanism, the process proceeds to a step S4 after the step S3, where it is determined whether the storage device is a storage device for which the operating system is started. If the determination in step S4 is NO, that is, the storage device is not an OS-booted storage device, no further steps are performed after step S4. If the determination result in the step S4 is yes, that is, the storage device is an operating system boot storage device, the steps S4 are followed by performing steps S5 and S6, wherein the step S5 is a step of analyzing the operation times and timing of at least one specific instruction of all the instructions and generating an analysis result, and the step S6 is a step of determining whether the number of the analysis results is greater than a predetermined value.
If the determination result in the step S6 is no, that is, the number of analysis results is not greater than the predetermined value, the steps S1 to S3 are executed again after the step S6; otherwise, if the determination result in the step S6 is yes, that is, the number of analysis results is greater than the predetermined value, the steps S7 and S8 are performed after the step S6. In step S7, a system restoration mechanism is established according to all the analysis results. Next, in step S8, the operating system is normally started.
On the other hand, if the determination result in the step S3 is yes, that is, the system recovery mechanism exists, then step S9 is executed after the step S3 to determine whether to execute the system recovery. It should be noted that, in some embodiments, the determination result of step S9 is determined according to the analysis result and the system recovery mechanism, but not limited thereto. If the determination result in the step S9 is yes, i.e., it is determined that the system recovery should be performed, then step S10 is performed after the step S9, i.e., the system recovery is performed; otherwise, if the determination result in the step S9 is negative, that is, if it is determined that the system recovery is not required to be performed, the operation system is normally started after the step S9 is executed in step S8.
In summary, the present disclosure provides a method for establishing a system recovery mechanism and a method for starting and recovering the system, in which all instructions in a time interval after a computer is started are recorded, and the running times and time sequence of specific instructions are analyzed to generate an analysis result, and then a system recovery mechanism is established according to the analysis result, so that an automatic system recovery mechanism dedicated to the computer can be established in an automatic learning manner without installing a system recovery program, and meanwhile, the labor and time for a user to perform backup or recovery can be reduced, thereby achieving the technical effect of improving the production efficiency. Furthermore, through the system restoring mechanism disclosed by the invention, whether the operating system is normally started or not can be effectively detected, and the operating system is automatically restored to a normal state when abnormality is detected, so that the risk of damaging important programs or data is reduced. In other words, when the system is booted, the firmware of the storage device triggers the system recovery mechanism, so that the computer can be booted normally when the computer is booted next time, thereby avoiding the loss of important data or the loss of programs, and eliminating the tedious work of taking out the storage device from the computer and reinstalling the operating system.
While the present invention has been described in detail with respect to the above embodiments, it will be apparent to those skilled in the art that various modifications can be made without departing from the scope of the invention as defined in the appended claims.

Claims (11)

1.一种系统还原机制的建立方法,适用于包括一存储装置及一作业系统的一电脑,该系统还原机制的建立方法包括步骤:1. A method for establishing a system restoration mechanism, applicable to a computer comprising a storage device and an operating system, the establishment method for the system restoration mechanism comprising the steps: (a)启动该电脑;(a) start the computer; (b)记录该电脑启动后的一时间区间内对该存储装置发出的所有指令;(b) record all instructions issued to the storage device within a time interval after the computer is started; (c)分析该所有指令中的至少一特定指令的运行次数及时序,并产生一分析结果;(c) analyzing the execution times and timing of at least one specific instruction among all the instructions, and generating an analysis result; (d)判断该分析结果的数量是否大于或等于一预设值;以及(d) judging whether the number of analysis results is greater than or equal to a predetermined value; and (e)根据所有的该分析结果建立一系统还原机制;(e) establishing a system restoration mechanism based on all of the analysis results; 其中当该步骤(d)的判断结果为是,于该步骤(d)之后是执行该步骤(e),且当该步骤(d)的判断结果为否,于该步骤(d)之后是重新执行该步骤(a)。Wherein, when the judgment result of the step (d) is yes, the step (e) is executed after the step (d), and when the judgment result of the step (d) is no, after the step (d), the step (e) is executed again. Perform this step (a). 2.如权利要求1所述的系统还原机制的建立方法,于该步骤(b)及该步骤(c)之间,还包括步骤:(b1)判断该存储装置是否为该作业系统启动的存储装置,其中当该步骤(b1)的判断结果为是,于该步骤(b1)之后是执行该步骤(c),当该步骤(b1)的判断结果为否,于该步骤(b1)之后不进行任何步骤。2. The method for establishing a system restoration mechanism as claimed in claim 1, further comprising a step between the step (b) and the step (c): (b1) judging whether the storage device is a storage device activated by the operating system The apparatus, wherein when the judgment result of the step (b1) is yes, the step (c) is executed after the step (b1), and when the judgment result of the step (b1) is no, no after the step (b1) Take any steps. 3.如权利要求1所述的系统还原机制的建立方法,其中该系统还原机制包括步骤:3. The method for establishing a system restoration mechanism as claimed in claim 1, wherein the system restoration mechanism comprises the steps of: (e1)判断该特定指令的运行次数是否小于一下限值或大于一上限值;(e1) judging whether the running times of the specific instruction is less than a lower limit value or greater than an upper limit value; (e2)执行一系统还原;以及(e2) perform a system restore; and (e3)正常启动该作业系统;(e3) start the operating system normally; 其中,当该步骤(e1)的判断结果为是,于该步骤(e1)之后是执行该步骤(e2),且当该步骤(e1)的判断结果为否,于该步骤(e1)之后是执行该步骤(e3)。Wherein, when the judgment result of the step (e1) is yes, the step (e2) is executed after the step (e1), and when the judgment result of the step (e1) is no, after the step (e1) is This step (e3) is performed. 4.如权利要求3所述的系统还原机制的建立方法,其中该下限值等于所有的该分析结果中,该特定指令的运行次数的最小值,减去运行次数的最大值与最小值的差值。4. The method for establishing a system restoration mechanism as claimed in claim 3, wherein the lower limit value is equal to the minimum value of the execution times of the specific instruction in all the analysis results, minus the difference between the maximum value and the minimum value of the execution times. difference. 5.如权利要求3所述的系统还原机制的建立方法,其中该上限值等于所有的该分析结果中,该特定指令的运行次数的最大值,加上运行次数的最大值与最小值的差值。5. The method for establishing a system restoration mechanism as claimed in claim 3, wherein the upper limit value is equal to the maximum value of the execution times of the specific instruction in all the analysis results, plus the difference between the maximum value and the minimum value of the execution times. difference. 6.如权利要求1所述的系统还原机制的建立方法,其中该系统还原机制包括步骤:6. The method for establishing a system restoration mechanism as claimed in claim 1, wherein the system restoration mechanism comprises the steps of: (e1)判断该特定指令的运行时序是否不符合一特定规律;(e1) judging whether the running sequence of the specific instruction does not conform to a specific rule; (e2)执行一系统还原;以及(e2) perform a system restore; and (e3)正常启动该作业系统;(e3) start the operating system normally; 其中,当该步骤(e1)的判断结果为是,于该步骤(e1)之后是执行该步骤(e2),且当该步骤(e1)的判断结果为否,于该步骤(e1)之后是执行该步骤(e3)。Wherein, when the judgment result of the step (e1) is yes, the step (e2) is executed after the step (e1), and when the judgment result of the step (e1) is no, after the step (e1) is This step (e3) is performed. 7.如权利要求6所述的系统还原机制的建立方法,其中该特定规律是由所有的该分析结果归纳获得。7. The method for establishing a system restoration mechanism as claimed in claim 6, wherein the specific law is obtained by summarizing all the analysis results. 8.如权利要求1所述的系统还原机制的建立方法,其中该系统还原机制包括步骤:8. The method for establishing a system restoration mechanism as claimed in claim 1, wherein the system restoration mechanism comprises the steps of: (e1)判断该特定指令的运行次数是否小于一下限值或大于一上限值;(e1) judging whether the running times of the specific instruction is less than a lower limit value or greater than an upper limit value; (e2)判断该特定指令的运行时序是否不符合一特定规律;(e2) judging whether the running sequence of the specific instruction does not conform to a specific rule; (e3)执行一系统还原;以及(e3) perform a system restore; and (e4)正常启动该作业系统;(e4) start the operating system normally; 其中,当该步骤(e1)的判断结果为是,于该步骤(e1)之后是执行该步骤(e2),当该步骤(e1)的判断结果为否,于该步骤(e1)之后是执行该步骤(e4),当该步骤(e2)的判断结果为是,于该步骤(e2)之后是执行该步骤(e3),且当该步骤(e2)的判断结果为否,于该步骤(e2)之后是执行该步骤(e4)。Wherein, when the judgment result of the step (e1) is yes, the step (e2) is executed after the step (e1), and when the judgment result of the step (e1) is no, the execution is performed after the step (e1). In the step (e4), when the judgment result of the step (e2) is yes, the step (e3) is executed after the step (e2), and when the judgment result of the step (e2) is no, in the step (e2) e2) is followed by the execution of this step (e4). 9.如权利要求1所述的系统还原机制的建立方法,其中该时间区间为30秒、1分钟、3分钟或5分钟,且该预设值为1至50中的一任意整数。9 . The method for establishing a system restoration mechanism as claimed in claim 1 , wherein the time interval is 30 seconds, 1 minute, 3 minutes or 5 minutes, and the preset value is an arbitrary integer from 1 to 50. 10 . 10.如权利要求1所述的系统还原机制的建立方法,其中该步骤(a)是由一使用者实现或由该步骤(d)触发,该步骤(b)是由该存储装置的一固件实现,该步骤(c)是由该固件实现,该步骤(d)是由该固件实现,该步骤(e)是由该固件实现,且该系统还原机制是由该固件实现。10. The method for establishing a system restore mechanism as claimed in claim 1, wherein the step (a) is implemented by a user or triggered by the step (d), and the step (b) is performed by a firmware of the storage device The step (c) is realized by the firmware, the step (d) is realized by the firmware, the step (e) is realized by the firmware, and the system restoration mechanism is realized by the firmware. 11.一种系统启动与还原方法,适用于包括一存储装置及一作业系统的一电脑,包括步骤:11. A system startup and restoration method, applicable to a computer comprising a storage device and an operating system, comprising the steps of: (a)启动该电脑;(a) start the computer; (b)记录该电脑启动后的一时间区间内的所有指令;(b) record all instructions within a time interval after the computer is started; (c)判断是否存在一系统还原机制;(c) judging whether there is a system restoration mechanism; (d)判断该存储装置是否为该作业系统启动的存储装置;(d) judging whether the storage device is a storage device activated by the operating system; (e)分析该所有指令中的至少一特定指令的运行次数及时序,并产生一分析结果;(e) analyzing the execution times and timing of at least one specific instruction among all the instructions, and generating an analysis result; (f)判断该分析结果的数量是否大于或等于一预设值;(f) judging whether the number of the analysis results is greater than or equal to a preset value; (g)根据所有的该分析结果建立一系统还原机制;(g) establishing a system reduction mechanism based on all of the analysis results; (h)正常启动该作业系统;(h) start the operating system normally; (i)判断是否执行一系统还原;以及(i) determine whether to perform a system restore; and (j)执行该系统还原;(j) perform such system restore; 其中,当该步骤(c)的判断结果为是,于该步骤(c)之后是执行该步骤(i),Wherein, when the judgment result of the step (c) is yes, the step (i) is executed after the step (c), 当该步骤(c)的判断结果为否,于该步骤(c)之后是进行该步骤(d),当该步骤(d)的判断结果为是,于该步骤(d)之后是执行该步骤(e),当该步骤(d)的判断结果为否,于该步骤(d)之后是不进行任何步骤,当该步骤(f)的判断结果为是,于该步骤(f)之后是执行该步骤(g),当该步骤(f)的判断结果为否,于该步骤(f)之后是重新执行该步骤(a),该步骤(i)的判断结果是根据该分析结果及该系统还原机制决定,当该步骤(i)的判断结果为是,于该步骤(i)之后是执行该步骤(j),且当该步骤(i)的判断结果为否,于该步骤(i)之后是执行该步骤(h)。When the judgment result of the step (c) is no, the step (d) is performed after the step (c); when the judgment result of the step (d) is yes, the step (d) is performed after the step (d). (e), when the judgment result of this step (d) is NO, no step is performed after this step (d), and when the judgment result of this step (f) is YES, after this step (f) is executed In the step (g), when the judgment result of the step (f) is no, the step (a) is re-executed after the step (f), and the judgment result of the step (i) is based on the analysis result and the system The reduction mechanism determines that when the judgment result of the step (i) is yes, the step (j) is executed after the step (i), and when the judgment result of the step (i) is no, the step (i) This is followed by the execution of step (h).
CN202010922452.0A 2020-09-04 2020-09-04 System recovery mechanism establishing method and system starting and recovery method Pending CN114217851A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010922452.0A CN114217851A (en) 2020-09-04 2020-09-04 System recovery mechanism establishing method and system starting and recovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010922452.0A CN114217851A (en) 2020-09-04 2020-09-04 System recovery mechanism establishing method and system starting and recovery method

Publications (1)

Publication Number Publication Date
CN114217851A true CN114217851A (en) 2022-03-22

Family

ID=80695695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010922452.0A Pending CN114217851A (en) 2020-09-04 2020-09-04 System recovery mechanism establishing method and system starting and recovery method

Country Status (1)

Country Link
CN (1) CN114217851A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641517A (en) * 2004-01-09 2005-07-20 顺德市顺达电脑厂有限公司 Automatic formatting method for computer hard disk
US20050223279A1 (en) * 2004-04-06 2005-10-06 Intel Corporation. Error detection and recovery in a storage driver
CN109086085A (en) * 2018-07-26 2018-12-25 深圳控道智能科技有限公司 A kind of os starting management method and device
CN110941516A (en) * 2019-12-06 2020-03-31 深圳市科力锐科技有限公司 Operating system restoration method, device, equipment and storage medium
CN111258817A (en) * 2020-01-17 2020-06-09 深圳宝龙达信创科技股份有限公司 Recovery method of basic input and output system, terminal equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1641517A (en) * 2004-01-09 2005-07-20 顺德市顺达电脑厂有限公司 Automatic formatting method for computer hard disk
US20050223279A1 (en) * 2004-04-06 2005-10-06 Intel Corporation. Error detection and recovery in a storage driver
CN109086085A (en) * 2018-07-26 2018-12-25 深圳控道智能科技有限公司 A kind of os starting management method and device
CN110941516A (en) * 2019-12-06 2020-03-31 深圳市科力锐科技有限公司 Operating system restoration method, device, equipment and storage medium
CN111258817A (en) * 2020-01-17 2020-06-09 深圳宝龙达信创科技股份有限公司 Recovery method of basic input and output system, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110515820B (en) Server fault maintenance method and device, server and storage medium
US7386752B1 (en) Using asset dependencies to identify the recovery set and optionally automate and/or optimize the recovery
US7574626B2 (en) Trace information collecting system, method and program
CN102810073B (en) Background real-time monitoring processing method for data
WO2018149396A1 (en) Service flow processing method and apparatus, readable storage medium and terminal device
JPH05151036A (en) Control system for operating database
CN105718340A (en) Crontab-based CPU stability test method
CN111737039A (en) A kind of error information auxiliary extraction method, device, device and readable storage medium
JPH08263183A (en) System termination processing method and device
CN117472457A (en) Dual BIOS (basic input output system), system switching method, device, equipment and storage medium
CN111090546A (en) Operating system restarting method, apparatus, device and readable storage medium
CN114217851A (en) System recovery mechanism establishing method and system starting and recovery method
TWI760839B (en) Building method of system restore mechanism and system booting and restoring method
CN111124737A (en) Cloud platform operation conflict judgment method and electronic equipment
CN116795626A (en) Software operation stability maintenance methods
CN116974832A (en) Fault checking method, device, equipment and storage medium
TW201944244A (en) Computer system, updating method thereof and computer program product
US20160004607A1 (en) Information processing apparatus and information processing method
CN101826039B (en) System setting recovery method and computer system
CN109710319B (en) A method and system for identifying a computer in-place hard disk
CN113110955A (en) System disk repair method, storage medium and device
JP2001005693A (en) System and method for automatically restoring fault and recording medium recording automatic fault restoration program
CN111124729A (en) A kind of fault disk determination method, device, equipment and computer readable storage medium
CN111382009A (en) System automatic maintenance method and computer equipment with automatic maintenance function
CN113708981B (en) Method and system for repairing fault of cloud host system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination