WO2012116637A1 - System rescue method and device - Google Patents

System rescue method and device Download PDF

Info

Publication number
WO2012116637A1
WO2012116637A1 PCT/CN2012/071755 CN2012071755W WO2012116637A1 WO 2012116637 A1 WO2012116637 A1 WO 2012116637A1 CN 2012071755 W CN2012071755 W CN 2012071755W WO 2012116637 A1 WO2012116637 A1 WO 2012116637A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
environment
file
files
backup
Prior art date
Application number
PCT/CN2012/071755
Other languages
French (fr)
Chinese (zh)
Inventor
浦欣
赵剑锋
孙海
Original Assignee
北京奇虎科技有限公司
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 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2012116637A1 publication Critical patent/WO2012116637A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1417Boot up procedures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/1446Point-in-time backing up or restoration of persistent data

Definitions

  • the present invention relates to the field of computers, and in particular, to a method and apparatus for system rescue.
  • Installing a patch is a process that modifies an already installed program, including applications, utilities, operating system and operating system components, device drivers, and so on. Patching is useful for modifying programs for a variety of purposes, including correcting program errors, reducing or eliminating security risks, or improving the logic used by the modified program. Patching is typically initiated by the company or other organization that originally provided the program to install the patch.
  • the installed program is mainly composed of executable code modules.
  • many programs designed to run on the WINDOWS XP operating system from Microsoft Corp. of Washington Redmond are primarily composed of executable code modules called "EXE".
  • a popular traditional method of installing patches is to identify executable code modules containing the program code that you want to patch with in the executable code module that makes up the installer to be patched; create a new version of the identified Executing a code module in which the required modifications have been made; and assigning a new version of the identified executable code module to the installer along with the installer to the user who wishes to apply the patch. Each user then determines if it wishes to apply the patch, and if so, executes the installer that replaces the original version of the identified executable code module with the new version of the identified executable code module.
  • a computing system for automatically implementing a received code patch comprising: a library of pre-installed help functions; and an install patch agent that receives code patches, each code patch corresponding to a set of executable modules And identifying a help function in the library, and, when an executable module of the group corresponding to the received code patch is executed, calling a help function identified by a code patch corresponding to the executable module group including the executable module Confirm with the execution value.
  • the above technical solution solves the technical problem of a conventional example in which it is necessary to create a plurality of patches for allocation to implement individual modifications to a single program.
  • the invention discloses a method for system rescue, comprising:
  • the first operating system as the current operating environment, backing up the files and/or environment settings necessary for booting and entering the operating system before performing predetermined processing on the first operating system; and installing the second operating system to If the first operating system fails to operate normally, the second operating system is used as the current operating environment, and the first operating system is restored according to the backed up file and/or environment settings.
  • the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
  • the recovering the first operating system according to the backed up file and/or environment setting comprises: restoring the first operating system according to the location information and the identifier information in the generated list .
  • the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
  • the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
  • the files and/or environment settings necessary to start and enter the system to be modified when performing the predetermined processing are backed up.
  • the predetermined processing includes: installing an operating system, checking a Trojan, killing a virus, Software upgrades, clean-up plug-ins, clean up system garbage, and clean up system traces.
  • the recovering the first operating system according to the backed up file and/or environment setting comprises: uninstalling the predetermined processed file, or restoring the predetermined processed environment setting.
  • the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
  • the recovering the first operating system according to the backed up file and/or environment settings includes:
  • the method further comprises:
  • the installing the second operating system comprises:
  • the second operating system is installed before the predetermined process is performed.
  • a system rescue device comprising:
  • a backup module configured to use the first operating system as a current operating environment, and back up files and/or environment settings necessary for starting and entering the operating system before performing predetermined processing on the first operating system;
  • a recovery module configured to install a second operating system, so that the second operating system is used as a current operating environment when the first operating system fails to operate normally, and the first file is configured according to the backed up file and/or environment An operating system is restored.
  • a recovery module configured to install a second operating system, so that the second operating system is used as a current operating environment when the first operating system fails to operate normally, and the first file is configured according to the backed up file and/or environment An operating system is restored.
  • the backup module is specifically configured to generate, according to all or part of the backup of the file and/or the environment setting, a list of location information and identification information including the file and/or the environment setting;
  • the recovery module is specifically configured to: restore the first operating system according to the location information and the identifier information in the generated list.
  • the backup module is specifically configured to back up all files and/or environment settings necessary for starting and entering the system.
  • the backup module is specifically configured to back up files and/or environment settings necessary for starting and entering the system to be modified when the predetermined processing is performed.
  • the predetermined processing includes: operating system installation of patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, and cleaning system traces.
  • the recovery module is specifically configured to uninstall the predetermined processed file, or restore the predetermined processed environment setting.
  • the backup module is specifically configured to: back up files and/or environment settings necessary for starting and entering the operating system by establishing a restore point;
  • the recovery module is specifically configured to: use a restore program of the second operating system or a third-party restore program or a restore program in the second operating system that is simulated in the first operating system, according to the backup program
  • the first operating system is restored by file and/or environment settings.
  • the method further comprises:
  • a restarting module configured to restart the first operating system, and restart the first operating system
  • a predetermined recovery module configured to: in the second operating system, set the file and/or environment in the second operating system if the first operating system still fails to operate normally after the restarting by the first operating system
  • the first operating system performs recovery, wherein the predetermined file and/or environment settings include files and/or environment settings stored in a memory designated location during a history repair process.
  • the recovery module includes: an installation module, configured to install a second operating system while installing software for performing backup/restore; or installing a second operating system before or simultaneously with backing up files and/or environment settings Or, the second operating system is installed before the predetermined processing is performed.
  • a program product for storing a machine readable instruction code, the instruction code being executable by a machine and executing the method of the system of any of the foregoing.
  • a storage medium carrying the aforementioned program product.
  • a storage medium carrying a machine readable instruction code, the instruction code being executable by a machine and executing the system rescue method of any of the foregoing.
  • the method and apparatus for salvaging a method and apparatus of the present invention can prevent the system from appearing after patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system trace operations, and the like.
  • the problem that the backup cannot be restored when the fault cannot be continued, the present invention utilizes the installed second operating system to perform data recovery, thereby saving the first operating system that cannot operate normally, and making the system more secure.
  • the method and apparatus of the present invention automatically back up files and start the second operating system, saving user time, improving efficiency, and avoiding which content is required to be backed up by the user, thereby providing a more intelligent system for the user. Rescue plan.
  • FIG. 1 is a general flow diagram of a method of system rescue in accordance with an embodiment of the present invention
  • FIG. 2 is a flow chart of a method of system rescue in accordance with one embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an apparatus for system rescue in accordance with an embodiment of the present invention.
  • Step S102 The first operating system is used as the current operating environment, and files and/or environment settings necessary for starting and entering the operating system are backed up before performing predetermined processing on the first operating system.
  • the embodiment of the present invention proposes a specific solution, in which an application program can be installed in the operating system (for the convenience of description, the present invention is implemented. In the example, it is referred to as "system repair software", and various steps in the embodiments of the present invention are performed by the system repair software.
  • a list of location information and identification information including file or environment settings may be generated according to all or part of the backup of the file or environment settings.
  • the location information is used to indicate the location to be restored, and the identifier information may be an MD5 value.
  • All or part of the backed up files or system settings can be all necessary files and/or environment settings to boot and enter the system, or they can be modified when performing some sort of predetermined processing (including patching, killing Trojans, etc.) Part of the file and/or environment settings necessary to boot and enter the system.
  • the system repairing program, the file to be modified may be notified by an application that executes the predetermined processing, such as a vulnerability repairing program that performs patch processing, a killing program that performs a killing Trojan processing, and the like. And/or environment settings, so that the system fixer can first back up these files and/or environment settings to the specified path before performing the scheduled processing, and at the same time, record the location to be restored. With the backup of the above content, at least ensure that the system can be started normally by recovery.
  • Step S104 installing a second operating system, so that the first operating system cannot be operated normally, using the second operating system as the current operating environment, and performing the first operating system according to the backed up file and/or environment settings. restore.
  • the second operating system (for example, MSDOS system, etc.) can be installed, and after the second operating system is started, it can be automatically run.
  • the restoring step may be: searching for a location to be restored according to the location information, and identifying the required backup content by using the identification information, and then restoring the required backup content, the recovery action including using the backed up content. Insert, replace, delete, or restore all or part of the original environment settings with the environment settings of the backup.
  • the recovery step may also be to perform an uninstallation procedure to unload the file or restore the environment settings, which are typically processed files or environment settings after the backup.
  • the restoration may be performed according to the location information and the identification information in the already generated list. For example, restore the processed file or post-processing environment settings to the backed up files and/or environment settings.
  • step S104 may also be to restore all the files and/or environment settings necessary for starting and entering the system to all the files and/or environment settings necessary for starting and entering the system.
  • the full or partial backup can be implemented by establishing a restore point, and the restore can be performed by the restore point using the restore program of the second operating system or the third-party restore program or the restore of the first operating system simulated in the second operating system.
  • the program is implemented.
  • the so-called restore point indicates the storage state of the computer system file, which is equivalent to the time point when the backup is recorded after backing up many files and information.
  • the backup operation in the system repair software can be understood as creating a system restore point.
  • the so-called restore program is to read the above-mentioned restore point, and then restore the system to the state of the restore point. The simple understanding is to restore all the files backed up at that point in time to the current system.
  • the first operating system is restarted. If the first operating system still fails to operate normally after the first operating system is restarted, the second operating system is used as the current operating environment (ie, the second operating system is restarted.
  • Operating system recovering with predetermined file and/or environment settings, wherein the predetermined file and/or environment settings include files and/or environment settings stored in the memory designated location prior to step S1.
  • the file and/or environment settings stored in the memory designated location prior to step S1 may be, for example, files and/or environment settings backed up by the system at the previous recovery step, backup files and/or environment settings saved earlier, Or restore the system backup files in the disk and so on.
  • step S104 may further be that the second operating system is started by the user, and all or part of the backup file and/or environment settings are restored by the program in the second operating system.
  • the first operating system and the second operating system include but are not limited to: a Windows system, a Linux system, a DOS system, and a Unix system.
  • the file and/or environment settings in the computer can be performed before installing patches, killing Trojans, killing viruses, software upgrades, cleaning plugins, cleaning system garbage, and cleaning system traces. Record, in order to prevent the system from recovering due to the installation of patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces and causing abnormal operation, thus preventing the system from performing the above predetermined processing. A failure has occurred and cannot be used anymore.
  • the invention can be recovered under the condition that the first system cannot operate normally, which makes the system more secure, and, because of installing patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning systems Before the trace, the program automatically records the files on the computer, so there is no need to manually back up the files before the patch is installed, which improves the efficiency.
  • FIG. 1 shows a specific embodiment.
  • Figure 2 shows this particular embodiment.
  • Step S202 It is determined whether or not predetermined processing needs to be performed.
  • the predetermined processing includes: operating system installation patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, and the like.
  • Step S204 In the case where the determination result is YES, the file and/or environment settings to be modified when performing the predetermined processing are backed up, and the second operating system is installed.
  • Step S206 Generate a list corresponding to the file and/or environment setting to be modified when the predetermined process is executed, wherein the list contains location information and identification information of the file and/or environment setting to be modified.
  • Step S208 Restore the predetermined processed file or the predetermined processed environment setting to the backed up file and/or environment setting according to the processing list.
  • This embodiment shows a specific method of the embodiment shown in Fig. 1.
  • the operation to be performed by the system is first detected. If the system is to perform patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, etc., the system may be caused. When a failed operation occurs, the backup step is initiated in case the system fails to function properly.
  • the specific manner of restoring the processed file or the processed environment setting to the backed up file and/or environment setting may be that the uninstalling program is executed or simulated in the second operating system.
  • An operating system uninstaller that unloads processed files or post-processing environment settings to achieve system recovery, but can also be a replacement, insert, or delete action on a file or environment setting.
  • the system rescue method of this embodiment detects whether to perform patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, etc., thereby determining whether to perform backup.
  • the system recovers when the system fails.
  • the system automatically performs backups, eliminating the need for manual manual backup operations, and eliminating the need for backup operations without threat systems, thereby improving efficiency and saving system resources.
  • the present invention can also automatically perform selective backup of the content that needs to be backed up by including a list of location information and identification information set by the file and/or the environment, thereby saving user time and avoiding the user's incorrect selection. problem.
  • a vulnerability patch for the Windows operating system generated by Microsoft Corporation is usually detected on the network through the bug fixer. After that, the vulnerability fixer prepares to download and install the patch to the user's computer. In this process, you need to modify the file ntoskrnl.exe and the environment setting msconfig.exe (system configuration utility) necessary for system startup. Therefore, before the execution of the specific patch installation work, the system 4 can be backed up by the system 4, the software n 1 ntoskrnl .exe and the msconfig.exe provided by the embodiment of the present invention, and a list is generated, which includes the above two The location information of the files and the MD5 value, after which a second operating system is also installed.
  • msconfig.exe system configuration utility
  • the vulnerability fix performs the patch installation operation
  • the file ntoskrnl.exe and the environment setting msconfig.exe are updated
  • the updated file ntoskrnl.exe and the environment setting msconfig.exe are obtained.
  • the computer restarts, but due to ntoskrnl
  • the .exe and / or msconfig.exe files are incorrect and cannot enter the Windows operating system.
  • the user can select to enter the second operating system (such as the Linux operating system) created by the system recovery software.
  • the operating system a program is automatically started, and the program searches for the updated ntoskrnl.exe according to the above list. Revert to ntoskrnl.exe before installation, and find the updated msconfig.exe to be restored to msconfig.exe before installation.
  • restart your computer to enter the Windows operating system.
  • the system recovery software is installing the second operating system.
  • the boot entry option of the second operating system may be added to the current first operating system for the user to make a selection; when the user restarts the current first operating system, the two operating systems are activated. If the user finds that the first operating system cannot be started after selecting the first operating system startup item, the user can select the startup item of the second operating system, and the second operating system will automatically run, and then a program will be automatically run. The program will automatically restore the first operating system file and/or environment settings that have been backed up to the specified location, and then automatically restart the computer. After the restart, the user can also see two operating system startup items, which can be selected.
  • the application that has previously performed some predetermined processing in the first operating system can clear all backup files and traces through the system repair software, so that When restarting again, the user will no longer see the second operating system. Motivation.
  • the aforementioned method of repairing files and/or environment settings backed up during the historical repair process it is not necessary to clear the files and/or environment settings for the repair backup after completing a repair.
  • the second operating system of the present invention can be installed at the same time as the software for performing backup/restore, or before or at the same time for all or part of the backup of the file and/or environment settings, and can be installed before the scheduled processing is performed.
  • An apparatus for system rescue will be described below. 3 is a schematic diagram of an apparatus for system rescue in accordance with an embodiment of the present invention.
  • the device includes:
  • the backup module 302 is configured to use the first operating system as the current operating environment, and back up files and/or environment settings necessary for starting and entering the operating system before performing predetermined processing on the first operating system;
  • the recovery module 304 is configured to install a second operating system, so that the second operating system is used as the current operating environment when the first operating system cannot run normally, and the file is set according to the backed up file and/or environment. The first operating system is restored.
  • a list of location information and identification information including file and/or environment settings is generated according to all or part of the backup of the file and/or environment settings; and in the recovery module 304, according to the generated The location information and the identification information in the list are restored to the first operating system.
  • the backup module 302 is specifically configured to set all files and/or environments necessary for starting and entering the system.
  • the recovery module 304 can be used to restore all the files and/or environment settings necessary to boot and enter the system to all the files and/or environment settings necessary for booting and entering the system.
  • the backup module 302 can also be used to back up the files and/or environment settings necessary for starting and entering the system to be modified when the predetermined processing is performed. Specifically, it may be used to determine whether it is necessary to perform predetermined processing; in the case where the determination result is YES, back up files and/or environment settings that need to perform predetermined processing; and generate files and/or environments that are to be subjected to predetermined processing A corresponding list is set, wherein the list contains location information and identification information of the file and/or environment settings.
  • the recovery module 304 can be configured to restore the predetermined processed file or the predetermined processed environment settings to the backed up file and/or environment settings based on the processing list.
  • the predetermined processing includes: Operating system Install patches, kill Trojans, kill viruses, upgrade software, clean up plugins, clean up system garbage, and clean up system traces.
  • the recovery module 302 is configured to execute an uninstallation program to uninstall the processed file or restore the post-processing environment setting.
  • all or part of the backup is implemented by establishing a restore point, and the recovery is implemented by using a restore program of the second operating system or a third-party restore program by the restore point or a restore program of the first operating system simulated in the second operating system.
  • the backup module 302 is specifically configured to: back up the files and/or environment settings necessary for starting and entering the operating system by establishing a restore point;
  • the recovery module 304 is specifically configured to: use the second operating system or the first The three-party restore program or the restore program in the first operating system simulated in the second operating system restores the first operating system according to the backed up file and/or environment settings.
  • the above apparatus may further include: a restart module and/or a predetermined recovery module, and the restart module is configured to restart with the first operating system.
  • the predetermined recovery module is configured to recover in a predetermined file and/or environment setting in the second operating system if the first operating system still fails to operate normally after being restarted by the first operating system, wherein the predetermined file is restored
  • And/or environment settings include files and/or environment settings stored in a memory-specified location during the history repair process.
  • the recovery module in the system rescue device may include: an installation module for installing the second operating system while installing the software performing the backup/restore; before or simultaneously with the backup of the file and/or environment settings Installing a second operating system; or installing a second operating system before performing the predetermined processing.
  • the system rescue device of the embodiment detects whether to install a patch, check a Trojan, kill a virus, upgrade a software, clean a plug-in, clean up system garbage, and clean up system traces. Therefore, it is determined whether backup is to be performed in case of a system failure, so that the system automatically performs backup, eliminating manual manual backup operations, and eliminating the need for backup operations without threat systems. Increased efficiency and saved system resources.
  • the present invention can also automatically perform selective backup of the content that needs to be backed up by including a list of location information and identification information set by the file and/or the environment, thereby saving user time and avoiding the user's incorrect selection. problem.
  • the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
  • a computer device which may be a personal computer, server, or network device, etc.

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

A system rescue method and device characterized by including the following steps: step S1, using a first operating system as the current operating environment to perform a complete or partial backup of files and/or environment settings; and step S2, in the situation where the first operating system is unable to operate normally, using a second operating system as the current operating environment to perform recovery according to the backed-up files and/or environment settings. In addition, a system rescue device is also disclosed. By way of the system rescue method and device in the present invention, the system can be prevented from failing and then being unable to be used further after patch installation, Trojan removal, virus removal, software upgrade, plug-in cleaning, system junk cleaning, system trace cleaning, so that the operation of the system is more secure and stable; furthermore, as no manual backup of files is needed before operation, the efficiency is improved.

Description

系统拯救的方法及装置 技术领域  System rescue method and device
本发明涉及计算机领域, 尤其涉及系统拯救的方法及装置。  The present invention relates to the field of computers, and in particular, to a method and apparatus for system rescue.
背景技术 Background technique
安装补丁是修改已经安装的程序, 包括应用程序、 实用程序、 操作系统 和操作系统部件、 设备驱动程序等等的过程。 安装补丁对于出于各种目的来 修改程序是有用的, 这些目的包括纠正程序错误、 减少或消除安全风险或者 提高所修改程序使用的逻辑。 安装补丁一般是由最初提供要安装补丁的程序 的公司或其它组织发起的。  Installing a patch is a process that modifies an already installed program, including applications, utilities, operating system and operating system components, device drivers, and so on. Patching is useful for modifying programs for a variety of purposes, including correcting program errors, reducing or eliminating security risks, or improving the logic used by the modified program. Patching is typically initiated by the company or other organization that originally provided the program to install the patch.
安装的程序主要是由可执行代码模块组成的。 作为一个例子, 许多设计 成在来自 Washington Redmond的 Microsoft Corp.的 WINDOWS XP操作系统 上执行的程序主要是由叫做 "EXE" 的可执行代码模块组成的。 一个安装补 丁的流行的传统方法是要在组成要安装补丁的安装程序的可执行代码模块中 标识出含有希望用补丁来修改的程序代码的可执行代码模块; 创建一个新版 本的已标识的可执行代码模块, 在其中已作了需要的修改; 并且将新版本的 已标识的可执行代码模块与安装程序一起分配给希望应用该补丁的用户。 然 后每个用户确定是否希望应用这个补丁, 如果是, 执行用新版本的已标识的 可执行代码模块取代原来版本的已标识的可执行代码模块的安装程序。  The installed program is mainly composed of executable code modules. As an example, many programs designed to run on the WINDOWS XP operating system from Microsoft Corp. of Washington Redmond are primarily composed of executable code modules called "EXE". A popular traditional method of installing patches is to identify executable code modules containing the program code that you want to patch with in the executable code module that makes up the installer to be patched; create a new version of the identified Executing a code module in which the required modifications have been made; and assigning a new version of the identified executable code module to the installer along with the installer to the user who wishes to apply the patch. Each user then determines if it wishes to apply the patch, and if so, executes the installer that replaces the original version of the identified executable code module with the new version of the identified executable code module.
在现有技术中提供了一种自动实现接收的代码补丁的计算系统, 包括: 一个预先安装的帮助函数的库; 和一个接收代码补丁的安装补丁代理, 每个 代码补丁对应一组可执行模块并识别库中的帮助函数, 并且, 当接收代码补 丁对应的一组中的一个可执行模块被执行时, 调用由对应于包含该可执行模 块的可执行模块组的代码补丁所识别的帮助函数以执行值确认。  In the prior art, a computing system for automatically implementing a received code patch is provided, comprising: a library of pre-installed help functions; and an install patch agent that receives code patches, each code patch corresponding to a set of executable modules And identifying a help function in the library, and, when an executable module of the group corresponding to the received code patch is executed, calling a help function identified by a code patch corresponding to the executable module group including the executable module Confirm with the execution value.
上述技术方案解决了必须创建多个补丁进行分配以实现对单个程序的单 独修改的常例的技术问题。  The above technical solution solves the technical problem of a conventional example in which it is necessary to create a plurality of patches for allocation to implement individual modifications to a single program.
然而, 如今的用户广泛使用的操作系统版本各异, 有很多是出自民间制 作组的 "优化版本" , 即通过减少一些不必要的服务模块和操作模块, 降低 系统的资源占有率, 节省硬盘空间。 由于这些民间的优化版本与操作系统制 作公司官方的版本有着较大区别, 而补丁往往是操作系统制作公司针对其官 方出品的完整版本设计的, 因此, 在安装补丁之后会出现一些问题。 不仅如 此, 即使是原版的操作系统, 也会由于版本的差别、 甚至官方补丁的错误, 而在用户安装补丁之后出现操作系统错误甚至崩溃等问题, 以至于用户无法 再次进入操作系统的操作界面。 除了在安装补丁的过程中会遇到上述问题, 在诸如查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系 统痕迹等等过程中都有可能遇到上述问题。 However, today's users use a wide variety of operating system versions, many of which are "optimized versions" from the folk production group, which reduces the system's resource share and saves hard disk space by reducing unnecessary service modules and operating modules. . Because these folk optimized versions are quite different from the official version of the operating system production company, and the patches are often designed by the operating system production company for its officially produced full version, there will be some problems after the patch is installed. Not only as Therefore, even the original operating system may have an operating system error or even a crash after the user installs the patch due to the difference in the version, or even the official patch error, so that the user cannot enter the operating interface of the operating system again. In addition to the above problems during the patch installation process, the above problems may be encountered in processes such as killing Trojans, killing viruses, software upgrades, cleaning plugins, cleaning up system garbage, cleaning system traces, and so on.
发明内容 Summary of the invention
针对现有技术中, 用户在为操作系统安装补丁、 查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹等处理时, 可能会造成 系统故障, 本发明提出了一种系统拯救的方法及装置, 解决了用户不能在当 前操作系统无法正常运行的情况下进行恢复的问题。  In the prior art, when a user installs a patch for an operating system, kills a Trojan, kills a virus, upgrades a software, cleans up a plug-in, cleans up system garbage, and cleans up system traces, etc., the system may be faulty, and the present invention proposes a The system rescue method and device solve the problem that the user cannot recover in the case that the current operating system cannot operate normally.
本发明公开了一种系统拯救的方法, 包括:  The invention discloses a method for system rescue, comprising:
以第一操作系统作为当前运行环境, 在对所述第一操作系统执行预定处 理之前, 对启动和进入操作系统所必需的文件和 /或环境设置进行备份; 以及 安装第二操作系统, 以便在所述第一操作系统无法正常运行的情况下, 以第二操作系统作为当前运行环境,根据所备份的文件和 /或环境设置对所述 第一操作系统进行恢复。  Using the first operating system as the current operating environment, backing up the files and/or environment settings necessary for booting and entering the operating system before performing predetermined processing on the first operating system; and installing the second operating system to If the first operating system fails to operate normally, the second operating system is used as the current operating environment, and the first operating system is restored according to the backed up file and/or environment settings.
优选地,所述对启动和进入操作系统所必需的文件和 /或环境设置进行备 份包括:  Preferably, the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
根据对所述文件和 /或所述环境设置进行的备份生成包含所述文件和 /或 所述环境设置的位置信息和标识信息的列表;  Generating a list of location information and identification information including the file and/or the environment settings based on the backup of the file and/or the environment settings;
所述根据所备份的文件和 /或环境设置对所述第一操作系统进行恢复包 括: 根据已经生成的所述列表中的所述位置信息和所述标识信息对所述第一 操作系统进行恢复。  The recovering the first operating system according to the backed up file and/or environment setting comprises: restoring the first operating system according to the location information and the identifier information in the generated list .
优选地,所述对启动和进入操作系统所必需的文件和 /或环境设置进行备 份包括:  Preferably, the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
对启动和进入系统所必需的所有文件和 /或环境设置进行备份。  Back up all the files and/or environment settings necessary to start and enter the system.
优选地,所述对启动和进入操作系统所必需的文件和 /或环境设置进行备 份包括:  Preferably, the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
对执行所述预定处理时需修改的启动和进入系统所必需的文件和 /或环 境设置进行备份。  The files and/or environment settings necessary to start and enter the system to be modified when performing the predetermined processing are backed up.
优选地, 所述预定处理包括: 操作系统安装补丁、 查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹。 Preferably, the predetermined processing includes: installing an operating system, checking a Trojan, killing a virus, Software upgrades, clean-up plug-ins, clean up system garbage, and clean up system traces.
优选地,所述根据所备份的文件和 /或环境设置对所述第一操作系统进行 恢复包括: 卸载所述预定处理后的文件, 或还原所述预定处理后的环境设置。  Preferably, the recovering the first operating system according to the backed up file and/or environment setting comprises: uninstalling the predetermined processed file, or restoring the predetermined processed environment setting.
优选地,所述对启动和进入操作系统所必需的文件和 /或环境设置进行备 份包括:  Preferably, the backing up the files and/or environment settings necessary to boot and enter the operating system includes:
通过建立还原点的方式对启动和进入操作系统所必需的文件和 /或环境 设置进行备份;  Back up the files and/or environment settings necessary to start and enter the operating system by establishing a restore point;
所述根据所备份的文件和 /或环境设置对所述第一操作系统进行恢复包 括:  The recovering the first operating system according to the backed up file and/or environment settings includes:
使用所述第二操作系统的还原程序或第三方的还原程序或在所述第二操 作系统中模拟的处于所述第一操作系统的还原程序, 根据所备份的文件和 / 或环境设置对所述第一操作系统进行恢复。  Using a restore program of the second operating system or a third-party restore program or a restore program in the second operating system simulated in the first operating system, according to the file and/or environment setting of the backup file The first operating system is described for recovery.
优选地, 还包括:  Preferably, the method further comprises:
对所述第一操作系统进行恢复后, 以所述第一操作系统进行重新启动; 如果以所述第一操作系统进行所述重新启动后第一操作系统仍无法正常 运行,则在所述第二操作系统中以预定的文件和 /或环境设置对所述第一操作 系统进行恢复,其中,所述预定的文件和 /或环境设置包括在历史修复过程中, 在存储器指定位置中存储的文件和 /或环境设置。  After the recovery of the first operating system, restarting with the first operating system; if the first operating system still fails to operate normally after the restarting by the first operating system, Recovering the first operating system in a second operating system with predetermined file and/or environment settings, wherein the predetermined file and/or environment settings include files stored in a memory specified location during a history repair process And / or environment settings.
优选地, 所述安装第二操作系统包括:  Preferably, the installing the second operating system comprises:
在安装执行备份 /恢复的软件同时安装第二操作系统;  Install the second operating system while installing the software that performs backup/restore;
或,  Or,
在对文件和 /或环境设置进行备份之前或同时, 安装第二操作系统; 或,  Install the second operating system before or at the same time as backing up the files and / or environment settings; or,
在执行所述预定处理之前, 安装第二操作系统。  The second operating system is installed before the predetermined process is performed.
一种系统拯救的装置, 包括:  A system rescue device, comprising:
备份模块, 用于以第一操作系统作为当前运行环境, 在对所述第一操作 系统执行预定处理之前,对启动和进入操作系统所必需的文件和 /或环境设置 进行备份; 以及  a backup module, configured to use the first operating system as a current operating environment, and back up files and/or environment settings necessary for starting and entering the operating system before performing predetermined processing on the first operating system;
恢复模块, 用于安装第二操作系统, 以便在所述第一操作系统无法正常 运行的情况下, 以第二操作系统作为当前运行环境, 根据所备份的文件和 / 或环境设置对所述第一操作系统进行恢复。 优选地: a recovery module, configured to install a second operating system, so that the second operating system is used as a current operating environment when the first operating system fails to operate normally, and the first file is configured according to the backed up file and/or environment An operating system is restored. Preferably:
所述备份模块具体用于,根据对所述文件和 /或所述环境设置进行的全部 或部分备份生成包含所述文件和 /或所述环境设置的位置信息和标识信息的 列表; 以及  The backup module is specifically configured to generate, according to all or part of the backup of the file and/or the environment setting, a list of location information and identification information including the file and/or the environment setting;
所述恢复模块具体用于, 根据已经生成的所述列表中的所述位置信息和 所述标识信息对所述第一操作系统进行恢复。  The recovery module is specifically configured to: restore the first operating system according to the location information and the identifier information in the generated list.
优选地,所述备份模块具体用于对启动和进入系统所必需的所有文件和 / 或环境设置进行备份。  Preferably, the backup module is specifically configured to back up all files and/or environment settings necessary for starting and entering the system.
优选地, 所述备份模块具体用于对执行所述预定处理时需修改的启动和 进入系统所必需的文件和 /或环境设置进行备份。  Preferably, the backup module is specifically configured to back up files and/or environment settings necessary for starting and entering the system to be modified when the predetermined processing is performed.
优选地, 预定处理包括: 操作系统安装补丁、 查杀木马、 查杀病毒、 软 件升级、 清理插件、 清理系统垃圾、 清理系统痕迹。  Preferably, the predetermined processing includes: operating system installation of patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, and cleaning system traces.
优选地, 所述恢复模块具体用于卸载所述预定处理后的文件, 或还原所 述预定处理后的环境设置。  Preferably, the recovery module is specifically configured to uninstall the predetermined processed file, or restore the predetermined processed environment setting.
优选地, 所述备份模块具体用于: 通过建立还原点的方式对启动和进入 操作系统所必需的文件和 /或环境设置进行备份;  Preferably, the backup module is specifically configured to: back up files and/or environment settings necessary for starting and entering the operating system by establishing a restore point;
所述恢复模块具体用于: 使用所述第二操作系统的还原程序或第三方的 还原程序或在所述第二操作系统中模拟的处于所述第一操作系统的还原程 序, 根据所备份的文件和 /或环境设置对所述第一操作系统进行恢复。  The recovery module is specifically configured to: use a restore program of the second operating system or a third-party restore program or a restore program in the second operating system that is simulated in the first operating system, according to the backup program The first operating system is restored by file and/or environment settings.
优选地, 还包括:  Preferably, the method further comprises:
重启模块, 用于对所述第一操作系统进行恢复后, 以所述第一操作系统 进行重新启动;  a restarting module, configured to restart the first operating system, and restart the first operating system;
预定恢复模块, 用于如果以所述第一操作系统进行所述重新启动后第一 操作系统仍无法正常运行, 则在所述第二操作系统中以预定的文件和 /或环境 设置对所述第一操作系统进行恢复, 其中, 所述预定的文件和 /或环境设置包 括在历史修复过程中, 在存储器指定位置中存储的文件和 /或环境设置。  a predetermined recovery module, configured to: in the second operating system, set the file and/or environment in the second operating system if the first operating system still fails to operate normally after the restarting by the first operating system The first operating system performs recovery, wherein the predetermined file and/or environment settings include files and/or environment settings stored in a memory designated location during a history repair process.
优选地, 所述恢复模块包括, 安装模块, 用于在安装执行备份 /恢复的软 件同时安装第二操作系统;或,在对文件和 /或环境设置进行备份之前或同时, 安装第二操作系统; 或, 在执行所述预定处理之前, 安装第二操作系统。  Preferably, the recovery module includes: an installation module, configured to install a second operating system while installing software for performing backup/restore; or installing a second operating system before or simultaneously with backing up files and/or environment settings Or, the second operating system is installed before the predetermined processing is performed.
一种存储有机器可读取的指令代码的程序产品, 所述指令代码由机器读 取并执行时, 可执行前述任一项的系统拯 1的方法。 一种承载有前述程序产品的存储介质。 A program product for storing a machine readable instruction code, the instruction code being executable by a machine and executing the method of the system of any of the foregoing. A storage medium carrying the aforementioned program product.
或者:  Or:
一种存储介质, 其承载有机器可读取的指令代码, 所述指令代码由机器 读取并执行时, 可执行前述任一项所述的系统拯救的方法。  A storage medium carrying a machine readable instruction code, the instruction code being executable by a machine and executing the system rescue method of any of the foregoing.
利用本发明的一种方法和装置系统拯救的方法和装置, 可以防止进行补 丁安装、 查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理 系统痕迹操作等处理之后, 系统出现故障而无法继续使用时无法恢复备份的 问题, 本发明利用安装的第二操作系统来执行数据恢复, 从而拯救了无法正 常运行的第一操作系统, 使得系统更加安全。  The method and apparatus for salvaging a method and apparatus of the present invention can prevent the system from appearing after patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system trace operations, and the like. The problem that the backup cannot be restored when the fault cannot be continued, the present invention utilizes the installed second operating system to perform data recovery, thereby saving the first operating system that cannot operate normally, and making the system more secure.
另外, 本发明中的方法和装置自动备份文件和启动第二操作系统, 节省 了用户时间, 提高了效率, 也避免了由用户选择哪些是需要备份的内容, 从 而为用户提供了更智能的系统拯救方案。  In addition, the method and apparatus of the present invention automatically back up files and start the second operating system, saving user time, improving efficiency, and avoiding which content is required to be backed up by the user, thereby providing a more intelligent system for the user. Rescue plan.
本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。 附图说明  Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention will be realized and attained by the <RTI DRAWINGS
附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1是根据本发明实施例的系统拯救的方法的总体流程图;  The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawings: FIG. 1 is a general flow diagram of a method of system rescue in accordance with an embodiment of the present invention;
图 2是根据本发明一个实施例的系统拯救的方法的流程图;  2 is a flow chart of a method of system rescue in accordance with one embodiment of the present invention;
图 3是根据本发明实施例的系统拯救的装置的示意图。  3 is a schematic diagram of an apparatus for system rescue in accordance with an embodiment of the present invention.
具体实施方式 detailed description
以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described with reference to the accompanying drawings, and the preferred embodiments of the present invention are intended to illustrate and explain the invention.
图 1是根据本发明实施例的系统拯救的方法的总体流程图。 在图 1 中: 步骤 S102: 以第一操作系统作为当前运行环境, 在对所述第一操作系统 执行预定处理之前,对启动和进入操作系统所必需的文件和 /或环境设置进行 备份。  1 is a general flow diagram of a method of system rescue in accordance with an embodiment of the present invention. In FIG. 1: Step S102: The first operating system is used as the current operating environment, and files and/or environment settings necessary for starting and entering the operating system are backed up before performing predetermined processing on the first operating system.
需要说明的是, 本发明人在实现本发明的过程中发现, 之所以在安装补 丁文件、 查杀木马等之后会出现操作系统无法重新启动的问题, 是因为安装 补丁文件、 查杀木马等操作通常会修改一些启动和进入操作系统所必需的文 件和 /或环境设置信息, 如杲修改后的文件和 /或环境设置信息不再符合启动 和进入操作系统的条件, 就会使得用户无法进入到操作系统的操作界面。 为 了能够在出现上述问题之后, 能够对操作系统进行修复, 本发明实施例提出 了具体的解决方案,在该解决方案中,可以在操作系统中安装一应用程序(为 便于描述, 在本发明实施例中, 将其称为 "系统修复软件" ) , 通过该系统 修复软件执行本发明实施例中的各个步骤。 It should be noted that the inventors found in the process of implementing the present invention that the reason is that the installation is supplemented. After the file is filed, the Trojan is checked, etc., the problem that the operating system cannot be restarted is because the installation of the patch file and the killing of the Trojan usually modify some files and/or environment setting information necessary for booting and entering the operating system, such as杲The modified file and/or environment setting information no longer meets the conditions for starting and entering the operating system, which will make the user unable to enter the operating interface of the operating system. In order to be able to repair the operating system after the above problems occur, the embodiment of the present invention proposes a specific solution, in which an application program can be installed in the operating system (for the convenience of description, the present invention is implemented. In the example, it is referred to as "system repair software", and various steps in the embodiments of the present invention are performed by the system repair software.
其中, 在该步驟 S102 中, 可以根据对文件或环境设置进行的全部或部 分备份生成包含文件或环境设置的位置信息和标识信息的列表。 其中, 位置 信息用于指明要恢复到的位置, 所述标识信息可以是 MD5 值。 全部或部分 备份的文件或系统设置可以是所有启动和进入系统所必需的文件和 /或环境 设置, 或者也可以使执行某种预定处理(包括安装补丁、 查杀木马等等)时, 需要修改的部分启动和进入系统所必需的文件和 /或环境设置。 也就是说, 启 动和进入系统所必需的文件和 /或环境设置可能有很多,但是执行某种预定处 理时, 可能仅需要对其中的部分文件和 /或环境设置进行修改, 因此, 可以仅 对这些可能会被修改的文件和 /或环境设置进行备份。 针对这种情况, 具体实 现时, 可以由执行该预定处理的应用程序 (例如执行安装补丁处理的漏洞修 复程序、 执行查杀木马处理的查杀程序等等) 通知系统修复程序, 将要修改 的文件和 /或环境设置, 这样, 系统修复程序就可以在执行预定处理之前, 首 先对这些文件和 /或环境设置备份到指定的路径下, 同时, 记录下要恢复到的 位置。 利用对上述内容的备份, 至少保证系统可通过恢复实现正常启动。  In this step S102, a list of location information and identification information including file or environment settings may be generated according to all or part of the backup of the file or environment settings. The location information is used to indicate the location to be restored, and the identifier information may be an MD5 value. All or part of the backed up files or system settings can be all necessary files and/or environment settings to boot and enter the system, or they can be modified when performing some sort of predetermined processing (including patching, killing Trojans, etc.) Part of the file and/or environment settings necessary to boot and enter the system. That is, there may be a lot of files and/or environment settings necessary to start and enter the system, but when performing some sort of processing, you may only need to modify some of the files and/or environment settings, so you can only These may be backed up by modified files and/or environment settings. In this case, when the specific implementation is implemented, the system repairing program, the file to be modified, may be notified by an application that executes the predetermined processing, such as a vulnerability repairing program that performs patch processing, a killing program that performs a killing Trojan processing, and the like. And/or environment settings, so that the system fixer can first back up these files and/or environment settings to the specified path before performing the scheduled processing, and at the same time, record the location to be restored. With the backup of the above content, at least ensure that the system can be started normally by recovery.
步骤 S104: 安装第二操作系统, 以便在第一操作系统无法正常运行的情 况下, 以第二操作系统作为当前运行环境, 根据所备份的文件和 /或环境设置 对所述第一操作系统进行恢复。  Step S104: installing a second operating system, so that the first operating system cannot be operated normally, using the second operating system as the current operating environment, and performing the first operating system according to the backed up file and/or environment settings. restore.
系统恢复软件在对启动和进入操作系统所必需的文件和 /或环境设置进 行备份之后, 可以安装第二操作系统 (例如, MSDOS 系统等) , 在该第二 操作系统被启动之后, 可以自动运行一段程序, 用以完成以下操作: 根据所 备份的文件和 /或环境设置对所述第一操作系统进行恢复。 例如, 该恢复步骤 可以是, 根据位置信息寻找要恢复的位置, 并利用标识信息识别所需的备份 内容, 然后将所需的备份内容进行恢复, 该恢复的动作包括利用备份的内容 进行插入、 替换、 删除, 或利用备份的环境设置对原环境设置进行全部或部 分的还原。 该恢复步骤还可以是, 执行卸载程序, 从而卸载文件或还原环境 设置, 而该文件或环境设置通常是在备份后经过处理的文件或环境设置。 After the system recovery software backs up the files and/or environment settings necessary to boot and enter the operating system, the second operating system (for example, MSDOS system, etc.) can be installed, and after the second operating system is started, it can be automatically run. A program for performing the following operations: recovering the first operating system according to the backed up file and/or environment settings. For example, the restoring step may be: searching for a location to be restored according to the location information, and identifying the required backup content by using the identification information, and then restoring the required backup content, the recovery action including using the backed up content. Insert, replace, delete, or restore all or part of the original environment settings with the environment settings of the backup. The recovery step may also be to perform an uninstallation procedure to unload the file or restore the environment settings, which are typically processed files or environment settings after the backup.
其中, 如果在步骤 S102 中生成了相应的列表, 则可以根据已经生成的 列表中的位置信息和标识信息进行恢复。 例如, 将处理后文件或处理后环境 设置恢复成所备份的文件和 /或环境设置。  Wherein, if the corresponding list is generated in step S102, the restoration may be performed according to the location information and the identification information in the already generated list. For example, restore the processed file or post-processing environment settings to the backed up files and/or environment settings.
另外, 步骤 S104 还可以是, 将处理后的所有启动和进入系统必需的文 件和 /或环境设置恢复成所备份的所有启动和进入系统必需的文件和 /或环境 设置。  In addition, step S104 may also be to restore all the files and/or environment settings necessary for starting and entering the system to all the files and/or environment settings necessary for starting and entering the system.
此外, 该全部或部分备份可以通过建立还原点来实现, 恢复可以通过还 原点使用第二操作系统的还原程序或第三方的还原程序或在第二操作系统中 模拟的处于第一操作系统的还原程序来实现。 其中, 所谓还原点, 表示计算 机系统文件的存储状态, 相当于是备份了很多文件和信息后, 记录备份时的 时间点。 而在本发明实施例中, 系统修复软件中的备份操作其实就可以理解 成创建了一个系统还原点。 所谓还原程序就是可以读取上述的还原点, 然后 把系统恢复到还原点的那个状态, 简单理解就是把那个时间点备份的文件的 全部恢复到当前系统中。  In addition, the full or partial backup can be implemented by establishing a restore point, and the restore can be performed by the restore point using the restore program of the second operating system or the third-party restore program or the restore of the first operating system simulated in the second operating system. The program is implemented. The so-called restore point indicates the storage state of the computer system file, which is equivalent to the time point when the backup is recorded after backing up many files and information. In the embodiment of the present invention, the backup operation in the system repair software can be understood as creating a system restore point. The so-called restore program is to read the above-mentioned restore point, and then restore the system to the state of the restore point. The simple understanding is to restore all the files backed up at that point in time to the current system.
在完成上述步驟之后, 以第一操作系统进行重新启动, 如果以第一操作 系统进行重新启动后第一操作系统仍无法正常运行, 则以第二操作系统作为 当前运行环境(即重启进入第二操作系统), 以预定的文件和 /或环境设置进 行恢复, 其中, 预定的文件和 /或环境设置包括在步骤 S1之前在存储器指定 位置中存储的文件和 /或环境设置。 该步骤 S1之前在存储器指定位置中存储 的文件和 /或环境设置可以是例如, 更前一次恢复步骤时系统备份的文件和 / 或环境设置、 更早一次保存的备份文件和 /或环境设置、 或者恢复盘中的系统 备份文件等等。  After the above steps are completed, the first operating system is restarted. If the first operating system still fails to operate normally after the first operating system is restarted, the second operating system is used as the current operating environment (ie, the second operating system is restarted. Operating system), recovering with predetermined file and/or environment settings, wherein the predetermined file and/or environment settings include files and/or environment settings stored in the memory designated location prior to step S1. The file and/or environment settings stored in the memory designated location prior to step S1 may be, for example, files and/or environment settings backed up by the system at the previous recovery step, backup files and/or environment settings saved earlier, Or restore the system backup files in the disk and so on.
进一步的, 上述步驟 S104 还可以是由用户启动第二操作系统, 由第二 操作系统中的程序对全部或部分的备份文件和 /或环境设置进行恢复。 另外, 还可以在恢复备份的文件和 /或环境设置前, 以第二操作系统作为当前运行环 境, 对即将恢复的部分进行备份。  Further, the above step S104 may further be that the second operating system is started by the user, and all or part of the backup file and/or environment settings are restored by the program in the second operating system. In addition, you can use the second operating system as the current running environment to back up the part to be restored before restoring the backed up files and/or environment settings.
其中,第一操作系统和第二操作系统包括但不限于: Windows系统、 Linux 系统、 DOS系统以及 Unix系统。 利用本实施例的系统拯救的方法, 可以通过在安装补丁、 查杀木马、 查 杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹之前, 对于计 算机中的文件和 /或环境设置进行记录,以便在系统由于安装补丁、查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹而造成运行 不正常时对系统进行恢复, 从而防止进行上述预定处理之后, 系统出现故障 而无法继续使用。 利用本发明可在第一系统无法正常运行的状况下依然可以 恢复, 使得系统更加安全, 并且, 由于在安装补丁、 查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹之前, 程序自动对于计 算机中的文件进行记录, 因此在补丁安装之前不需要人工备份文件, 提高了 效率。 The first operating system and the second operating system include but are not limited to: a Windows system, a Linux system, a DOS system, and a Unix system. With the system rescue method of the embodiment, the file and/or environment settings in the computer can be performed before installing patches, killing Trojans, killing viruses, software upgrades, cleaning plugins, cleaning system garbage, and cleaning system traces. Record, in order to prevent the system from recovering due to the installation of patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces and causing abnormal operation, thus preventing the system from performing the above predetermined processing. A failure has occurred and cannot be used anymore. The invention can be recovered under the condition that the first system cannot operate normally, which makes the system more secure, and, because of installing patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning systems Before the trace, the program automatically records the files on the computer, so there is no need to manually back up the files before the patch is installed, which improves the efficiency.
以下, 将通过一个具体的实施例对于图 1中所示出的实施例进行进一步 说明。 图 2示出了该具体实施例。  Hereinafter, the embodiment shown in Fig. 1 will be further explained by a specific embodiment. Figure 2 shows this particular embodiment.
实施例 1 Example 1
图 2是根据本发明一个实施例的系统拯救的方法的流程图。 在图 2中: 步骤 S202: 确定是否需要执行预定处理。  2 is a flow chart of a method of system rescue in accordance with one embodiment of the present invention. In Fig. 2: Step S202: It is determined whether or not predetermined processing needs to be performed.
其中, 预定处理包括: 操作系统安装补丁、 查杀木马、 查杀病毒、 软件 升级、 清理插件、 清理系统垃圾、 清理系统痕迹等。  Among them, the predetermined processing includes: operating system installation patches, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, and the like.
步骤 S204: 在确定结果为是的情况下, 对执行预定处理时需修改的文件 和 /或环境设置进行备份, 并安装第二操作系统。  Step S204: In the case where the determination result is YES, the file and/or environment settings to be modified when performing the predetermined processing are backed up, and the second operating system is installed.
步骤 S206: 生成与执行预定处理时将要修改的文件和 /或环境设置相对 应的列表, 其中, 列表包含将要修改的文件和 /或环境设置的位置信息和标识 信息。  Step S206: Generate a list corresponding to the file and/or environment setting to be modified when the predetermined process is executed, wherein the list contains location information and identification information of the file and/or environment setting to be modified.
步骤 S208: 根据处理列表, 将经预定处理后文件或经预定处理后的环境 设置恢复成所备份的文件和 /或环境设置。  Step S208: Restore the predetermined processed file or the predetermined processed environment setting to the backed up file and/or environment setting according to the processing list.
本实施例示出了图 1所示出的实施例的一种具体方法。 在本实施例中, 先要对于系统将要进行的操作进行检测, 如果系统要进行安装补丁、 查杀木 马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹等可能 会引起系统发生故障的操作时, 则启动备份步骤, 以备系统无法正常运行时 进行恢复。  This embodiment shows a specific method of the embodiment shown in Fig. 1. In this embodiment, the operation to be performed by the system is first detected. If the system is to perform patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, etc., the system may be caused. When a failed operation occurs, the backup step is initiated in case the system fails to function properly.
其中,上述将处理后文件或处理后环境设置恢复成所备份的文件和 /或环 境设置的具体方式可以是, 执行卸载程序或在第二操作系统中模拟的处于第 一操作系统的卸载程序, 以卸载处理后文件或处理后环境设置, 从而实现系 统的恢复, 但也可以是对文件或环境设置的替换、 插入、 删除动作。 The specific manner of restoring the processed file or the processed environment setting to the backed up file and/or environment setting may be that the uninstalling program is executed or simulated in the second operating system. An operating system uninstaller that unloads processed files or post-processing environment settings to achieve system recovery, but can also be a replacement, insert, or delete action on a file or environment setting.
本实施例的系统拯救的方法, 对是否要进行安装补丁、 查杀木马、 查杀 病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹等操作进行检测, 从而确定是否要进行备份以备系统发生故障时进行恢复, 这样, 系统自动进 行备份, 省去了人工手动进行备份的操作, 还免去了在没有发生威胁系统的 情况下所进行备份操作, 进而提高了效率, 节省了系统资源。 另外, 借由包 含文件和 /或环境设置的位置信息和标识信息的列表,本发明还可以自动对需 要备份的内容进行有选择性的备份, 节省了用户时间, 也避免了用户错误选 择造成的问题。  The system rescue method of this embodiment detects whether to perform patch installation, killing Trojans, killing viruses, software upgrades, cleaning plug-ins, cleaning system garbage, cleaning system traces, etc., thereby determining whether to perform backup. The system recovers when the system fails. In this way, the system automatically performs backups, eliminating the need for manual manual backup operations, and eliminating the need for backup operations without threat systems, thereby improving efficiency and saving system resources. . In addition, the present invention can also automatically perform selective backup of the content that needs to be backed up by including a list of location information and identification information set by the file and/or the environment, thereby saving user time and avoiding the user's incorrect selection. problem.
以下将通过一个具体实例, 对于上述实施例的系统拯救的方法进行具体 描述。 实例  The method of system rescue of the above embodiment will be specifically described below by way of a specific example. Instance
在计算机运行过程中, 通常会通过漏洞修复程序在网络上侦测到微软公 司出品的针对 Windows操作系统中漏洞的补丁, 之后, 该漏洞修复程序准备 将该补丁下载并安装到用户的计算机上, 在此过程中, 需要将系统启动所必 需的文件 ntoskrnl.exe和环境设置 msconfig.exe (系统配置实用程序)进行修 改。 因此, 在执行具体的补丁安装工作之前, 就可以通过本发明实施例提供 的系统 4爹复软件^1 ntoskrnl .exe和 msconfig.exe这两个文件进行备份,并且生 成列表, 其中包含了上述两个文件的位置信息和 MD5 值, 之后, 还安装一 第二操作系统。 然后漏洞修复程序执行安装补丁的操作, 对于文件 ntoskrnl.exe 和环境设置 msconfig.exe 进行了更新, 得到了更新后的文件 ntoskrnl.exe 和环境设置 msconfig.exe » 接着, 计算机重新启动, 但是由于 ntoskrnl.exe和 /或 msconfig.exe文件错误而无法进入 Windows操作系统。 此 时, 可以由用户选择进入系统恢复软件创建的第二操作系统 (如 Linux操作 系统) , 在该操作系统中, 会自动启动一个程序, 由该程序根据上述列表, 寻更新后的 ntoskrnl.exe 恢复为安装之前的 ntoskrnl.exe , 寻更新后的 msconfig.exe恢复为安装之前的 msconfig.exe。 最后, 重新启动计算机即可正 常进入 Windows操作系统。 During the running of the computer, a vulnerability patch for the Windows operating system generated by Microsoft Corporation is usually detected on the network through the bug fixer. After that, the vulnerability fixer prepares to download and install the patch to the user's computer. In this process, you need to modify the file ntoskrnl.exe and the environment setting msconfig.exe (system configuration utility) necessary for system startup. Therefore, before the execution of the specific patch installation work, the system 4 can be backed up by the system 4, the software n 1 ntoskrnl .exe and the msconfig.exe provided by the embodiment of the present invention, and a list is generated, which includes the above two The location information of the files and the MD5 value, after which a second operating system is also installed. Then the vulnerability fix performs the patch installation operation, the file ntoskrnl.exe and the environment setting msconfig.exe are updated, the updated file ntoskrnl.exe and the environment setting msconfig.exe are obtained. Next, the computer restarts, but due to ntoskrnl The .exe and / or msconfig.exe files are incorrect and cannot enter the Windows operating system. At this time, the user can select to enter the second operating system (such as the Linux operating system) created by the system recovery software. In the operating system, a program is automatically started, and the program searches for the updated ntoskrnl.exe according to the above list. Revert to ntoskrnl.exe before installation, and find the updated msconfig.exe to be restored to msconfig.exe before installation. Finally, restart your computer to enter the Windows operating system.
需要说明的是, 在本发明实施例中, 系统恢复软件在安装第二操作系统 之后, 还可以在当前的第一操作系统中加入第二个操作系统的启动入口选择 项, 以便用户做出选择; 当用户重启当前的第一操作系统后, 就会看到两个 操作系统启动项, 如果用户在选择了第一操作系统启动项之后发现第一操作 系统无法启动, 就可以选择第二操作系统的启动项, 第二操作系统就会自动 运行起来, 紧接着会自动运行一个程序, 该程序会自动将已备份的第一操作 系统文件和 /或环境设置恢复到指定的位置, 然后就可以自动重新启动电脑, 重启之后, 用户同样可以看到两个操作系统启动项, 可以选择第一操作系统 的启动项, 如果能够正常进入到第一操作系统, 则之前在第一操作系统中执 行过某预定处理的应用程序可以通过系统修复软件将所有备份文件及痕迹清 除掉, 这样下次再重新启动时, 用户就不会再看到第二操作系统的启动项。 当然, 为了实现前述基于历史修复过程中备份的文件和 /或环境设置进行修复 的方式, 在完成一次修复之后, 也可以不必清除针对这次修复备份的文件和 / 或环境设置。 It should be noted that, in the embodiment of the present invention, the system recovery software is installing the second operating system. After that, the boot entry option of the second operating system may be added to the current first operating system for the user to make a selection; when the user restarts the current first operating system, the two operating systems are activated. If the user finds that the first operating system cannot be started after selecting the first operating system startup item, the user can select the startup item of the second operating system, and the second operating system will automatically run, and then a program will be automatically run. The program will automatically restore the first operating system file and/or environment settings that have been backed up to the specified location, and then automatically restart the computer. After the restart, the user can also see two operating system startup items, which can be selected. If the startup item of the first operating system can normally enter the first operating system, the application that has previously performed some predetermined processing in the first operating system can clear all backup files and traces through the system repair software, so that When restarting again, the user will no longer see the second operating system. Motivation. Of course, in order to implement the aforementioned method of repairing files and/or environment settings backed up during the historical repair process, it is not necessary to clear the files and/or environment settings for the repair backup after completing a repair.
本发明的第二操作系统可以在安装执行备份 /恢复的软件同时安装,也可 以在对文件和 /或环境设置进行全部或部分备份之前或同时安装,还可以在执 行预定处理之前安装。 以下将描述一种系统拯救的装置。 图 3是根据本发明实施例的系统拯救 的装置的示意图。 该装置包括:  The second operating system of the present invention can be installed at the same time as the software for performing backup/restore, or before or at the same time for all or part of the backup of the file and/or environment settings, and can be installed before the scheduled processing is performed. An apparatus for system rescue will be described below. 3 is a schematic diagram of an apparatus for system rescue in accordance with an embodiment of the present invention. The device includes:
备份模块 302, 用于以第一操作系统作为当前运行环境, 在对所述第一 操作系统执行预定处理之前,对启动和进入操作系统所必需的文件和 /或环境 设置进行备份; 以及  The backup module 302 is configured to use the first operating system as the current operating environment, and back up files and/or environment settings necessary for starting and entering the operating system before performing predetermined processing on the first operating system;
恢复模块 304 , 用于安装第二操作系统, 以便在所述第一操作系统无法 正常运行的情况下, 以第二操作系统作为当前运行环境, 根据所备份的文件 和 /或环境设置对所述第一操作系统进行恢复。  The recovery module 304 is configured to install a second operating system, so that the second operating system is used as the current operating environment when the first operating system cannot run normally, and the file is set according to the backed up file and/or environment. The first operating system is restored.
其中, 在备份模块 302中, 根据对文件和 /或环境设置进行的全部或部分 备份生成包含文件和 /或环境设置的位置信息和标识信息的列表; 以及在恢复 模块 304中, 根据已经生成的列表中的位置信息和标识信息对所述第一操作 系统进行恢复。  Wherein, in the backup module 302, a list of location information and identification information including file and/or environment settings is generated according to all or part of the backup of the file and/or environment settings; and in the recovery module 304, according to the generated The location information and the identification information in the list are restored to the first operating system.
其中, 所述备份模块 302具体用于对启动和进入系统所必需的所有文件 和 /或环境设置。 其中, 恢复模块 304 可以用于将所有启动和进入系统所必需的文件和 / 或环境设置恢复成所备份的所有启动和进入系统必需的文件和 /或环境设置。 The backup module 302 is specifically configured to set all files and/or environments necessary for starting and entering the system. The recovery module 304 can be used to restore all the files and/or environment settings necessary to boot and enter the system to all the files and/or environment settings necessary for booting and entering the system.
其中, 备份模块 302也可以用于对执行所述预定处理时需修改的启动和 进入系统所必需的文件和 /或环境设置进行备份。 具体的, 可以用于确定是否 需要执行预定处理; 在确定结果为是的情况下, 对需要执行预定处理的文件 和 /或环境设置进行备份; 以及生成与将要进行预定处理的文件和 /或环境设 置相对应的列表,其中,列表包含文件和 /或环境设置的位置信息和标识信息。 恢复模块 304可以用于根据处理列表, 将经预定处理后文件或经预定处理后 的环境设置恢复成所备份的文件和 /或环境设置。 该预定处理包括: 操作系统 安装补丁、 查杀木马、 查杀病毒、 软件升级、 清理插件、 清理系统垃圾、 清 理系统痕迹。  The backup module 302 can also be used to back up the files and/or environment settings necessary for starting and entering the system to be modified when the predetermined processing is performed. Specifically, it may be used to determine whether it is necessary to perform predetermined processing; in the case where the determination result is YES, back up files and/or environment settings that need to perform predetermined processing; and generate files and/or environments that are to be subjected to predetermined processing A corresponding list is set, wherein the list contains location information and identification information of the file and/or environment settings. The recovery module 304 can be configured to restore the predetermined processed file or the predetermined processed environment settings to the backed up file and/or environment settings based on the processing list. The predetermined processing includes: Operating system Install patches, kill Trojans, kill viruses, upgrade software, clean up plugins, clean up system garbage, and clean up system traces.
其中, 恢复模块 302用于执行卸载程序, 以卸载处理后文件或还原处理 后环境设置。  The recovery module 302 is configured to execute an uninstallation program to uninstall the processed file or restore the post-processing environment setting.
其中, 全部或部分备份通过建立还原点来实现, 恢复通过还原点使用第 二操作系统的还原程序或第三方的还原程序或在第二操作系统中模拟的处于 第一操作系统的还原程序来实现。 相应的, 备份模块 302具体用于: 通过建 立还原点的方式对启动和进入操作系统所必需的文件和 /或环境设置进行备 份; 恢复模块 304具体用于: 使用所述第二操作系统或第三方的还原程序或 在所述第二操作系统中模拟的处于所述第一操作系统的还原程序, 根据所备 份的文件和 /或环境设置对所述第一操作系统进行恢复。  Wherein, all or part of the backup is implemented by establishing a restore point, and the recovery is implemented by using a restore program of the second operating system or a third-party restore program by the restore point or a restore program of the first operating system simulated in the second operating system. . Correspondingly, the backup module 302 is specifically configured to: back up the files and/or environment settings necessary for starting and entering the operating system by establishing a restore point; the recovery module 304 is specifically configured to: use the second operating system or the first The three-party restore program or the restore program in the first operating system simulated in the second operating system restores the first operating system according to the backed up file and/or environment settings.
上述装置还可以包括: 重启模块和 /或预定恢复模块, 重启模块用于以第 一操作系统进行重新启动。 预定恢复模块用于如果以第一操作系统进行重新 启动后第一操作系统仍无法正常运行, 则在所述第二操作系统中以预定的文 件和 /或环境设置进行恢复, 其中, 预定的文件和 /或环境设置包括在历史修 复过程中, 在存储器指定位置中存储的文件和 /或环境设置。  The above apparatus may further include: a restart module and/or a predetermined recovery module, and the restart module is configured to restart with the first operating system. The predetermined recovery module is configured to recover in a predetermined file and/or environment setting in the second operating system if the first operating system still fails to operate normally after being restarted by the first operating system, wherein the predetermined file is restored And/or environment settings include files and/or environment settings stored in a memory-specified location during the history repair process.
除此之外, 该系统拯救的装置中的恢复模块可以包括: 安装模块, 用于 在安装执行备份 /恢复的软件同时安装第二操作系统; 在对文件和 /或环境设 置进行备份之前或同时, 安装第二操作系统; 或在执行所述预定处理之前, 安装第二操作系统。  In addition, the recovery module in the system rescue device may include: an installation module for installing the second operating system while installing the software performing the backup/restore; before or simultaneously with the backup of the file and/or environment settings Installing a second operating system; or installing a second operating system before performing the predetermined processing.
本实施例的系统拯救的装置, 对是否要进行安装补丁、 查杀木马、 查杀 病毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹等操作进行检测, 从而确定是否要进行备份以备系统发生故障时进行恢复, 这样, 系统自动进 行备份, 省去了人工手动进行备份的操作, 还免去了在没有发生威胁系统的 情况下所进行备份操作, 进而提高了效率, 节省了系统资源。 另外, 借由包 含文件和 /或环境设置的位置信息和标识信息的列表,本发明还可以自动对需 要备份的内容进行有选择性的备份, 节省了用户时间, 也避免了用户错误选 择造成的问题。 The system rescue device of the embodiment detects whether to install a patch, check a Trojan, kill a virus, upgrade a software, clean a plug-in, clean up system garbage, and clean up system traces. Therefore, it is determined whether backup is to be performed in case of a system failure, so that the system automatically performs backup, eliminating manual manual backup operations, and eliminating the need for backup operations without threat systems. Increased efficiency and saved system resources. In addition, the present invention can also automatically perform selective backup of the content that needs to be backed up by including a list of location information and identification information set by the file and/or the environment, thereby saving user time and avoiding the user's incorrect selection. problem.
通过以上的实施方式的描述可知, 本领域的技术人员可以清楚地了解到 本发明可借助软件加必需的通用硬件平台的方式来实现。 基于这样的理解, 本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品 的形式体现出来,该计算机软件产品可以存储在存储介质中,如 ROM/RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例或者实施例的某些部分所 述的方法。  From the description of the above embodiments, it will be apparent to those skilled in the art that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM or a disk. , an optical disk, etc., includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or portions of the embodiments.
本说明书中的各个实施例均采用递进的方式描述, 各个实施例之间相同 相似的部分互相参见即可, 每个实施例重点说明的都是与其他实施例的不同 之处。 尤其, 对于装置或系统实施例而言, 由于其基本相似于方法实施例, 所以描述得比较筒单, 相关之处参见方法实施例的部分说明即可。 以上所描 述的装置及系统实施例仅仅是示意性的, 其中所述作为分离部件说明的单元 可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可 以不是物理单元, 即可以位于一个地方,或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目 的。本领域普通技术人员在不付出创造性劳动的情况下, 即可以理解并实施。  The various embodiments in the specification are described in a progressive manner, and the same or similar parts of the various embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for a device or system embodiment, since it is substantially similar to the method embodiment, it is described in a relatively simple manner, and the relevant portions can be referred to the description of the method embodiments. The apparatus and system embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie It can be located in one place or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种系统拯救的方法, 其特征在于, 包括: A method of system rescue, characterized in that it comprises:
以第一操作系统作为当前运行环境, 在对所述第一操作系统执 行预定处理之前, 对启动和进入操作系统所必需的文件和 /或环境设 置进行备份; 以及  Using the first operating system as the current operating environment, backing up the files and/or environment settings necessary for booting and entering the operating system before performing predetermined processing on the first operating system;
安装第二操作系统, 以便在所述第一操作系统无法正常运行的 情况下, 以第二操作系统作为当前运行环境, 根据所备份的文件和 / 或环境设置对所述第一操作系统进行恢复。  Installing a second operating system, to restore the first operating system according to the backed up file and/or environment setting, in the case that the first operating system is not working properly, using the second operating system as the current operating environment .
2. 根据权利要求 1所述的系统拯救的方法, 其特征在于, 所述 对启动和进入操作系统所必需的文件和 /或环境设置进行备份包括: 根据对所述文件和 /或所述环境设置进行的备份生成包含所述 文件和 /或所述环境设置的位置信息和标识信息的列表;  2. The method of system rescue according to claim 1, wherein the backing up files and/or environment settings necessary to boot and enter the operating system comprises: based on the file and/or the environment Setting the performed backup to generate a list of location information and identification information including the file and/or the environment settings;
所述根据所备份的文件和 /或环境设置对所述第一操作系统进 行恢复包括: 根据已经生成的所述列表中的所述位置信息和所述标 识信息对所述第一操作系统进行恢复。  The recovering the first operating system according to the backed up file and/or environment setting comprises: restoring the first operating system according to the location information and the identifier information in the generated list .
3. 根据权利要求 1所述的系统拯救的方法, 其特征在于, 所述 对启动和进入操作系统所必需的文件和 /或环境设置进行备份包括: 对启动和进入系统所必需的所有文件和 /或环境设置进行备份。 3. The system rescue method of claim 1, wherein the backing up files and/or environment settings necessary to boot and enter the operating system comprises: all files and files necessary to boot and enter the system / or environment settings for backup.
4. 根据权利要求 1所述的系统拯救的方法, 其特征在于, 所述 对启动和进入操作系统所必需的文件和 /或环境设置进行备份包括: 对执行所述预定处理时需修改的启动和进入系统所必需的文件 和 /或环境设置进行备份。 4. The system rescue method according to claim 1, wherein the backing up files and/or environment settings necessary for starting and entering the operating system comprises: starting to be modified when performing the predetermined processing Back up the files and/or environment settings necessary to enter the system.
5. 根据权利要求 1至 4任一项所述的系统拯救的方法, 其特征 在于, 所述预定处理包括: 操作系统安装补丁、 查杀木马、 查杀病 毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹。  The system rescue method according to any one of claims 1 to 4, wherein the predetermined processing comprises: an operating system installation patch, a killing Trojan, a killing virus, a software upgrade, a cleaning plug-in, and a cleaning system. Garbage, clean up system traces.
6. 根据权利要求 1至 4任一项所述的系统拯救的方法, 其特征 在于, 所述根据所备份的文件和 /或环境设置对所述第一操作系统进 行恢复包括: 卸载所述预定处理后的文件, 或还原所述预定处理后 的环境设置。 The system rescue method according to any one of claims 1 to 4, wherein the recovering the first operating system according to the backed up file and/or environment setting comprises: uninstalling the predetermined The processed file, or the environment setting after the predetermined processing is restored.
7. 根据权利要求 1至 4任一项所述的系统拯救的方法, 其特征 在于, 所述对启动和进入操作系统所必需的文件和 /或环境设置进行 备份包括: The system rescue method according to any one of claims 1 to 4, wherein the backing up the files and/or environment settings necessary for starting and entering the operating system comprises:
通过建立还原点的方式对启动和进入操作系统所必需的文件和 /或环境设置进行备份;  Back up the files and/or environment settings necessary to start and enter the operating system by establishing a restore point;
所述根据所备份的文件和 /或环境设置对所述第一操作系统进 行恢复包括:  The recovering the first operating system according to the backed up file and/or environment settings includes:
使用所述第二操作系统的还原程序或第三方的还原程序或在所 述第二操作系统中模拟的处于所述第一操作系统的还原程序, 根据 所备份的文件和 /或环境设置对所述第一操作系统进行恢复。  Using the restore program of the second operating system or a third-party restore program or a restore program in the second operating system simulated in the first operating system, according to the file and/or environment setting of the backup file The first operating system is described for recovery.
8. 根据权利要求 1至 4任一项所述的系统拯救的方法, 其特 征在于, 还包括:  The method of system rescue according to any one of claims 1 to 4, further comprising:
对所述第一操作系统进行恢复后, 以所述第一操作系统进行重 新启动;  After the recovery of the first operating system, restarting with the first operating system;
如果以所述第一操作系统进行所述重新启动后第一操作系统仍 无法正常运行, 则在所述第二操作系统中以预定的文件和 /或环境设 置对所述第一操作系统进行恢复, 其中, 所述预定的文件和 /或环境 设置包括在历史修复过程中, 在存储器指定位置中存储的文件和 / 或环境设置。  If the first operating system still fails to operate normally after the restarting by the first operating system, recovering the first operating system in a predetermined file and/or environment setting in the second operating system The predetermined file and/or environment settings include files and/or environment settings stored in a memory designated location during a history repair process.
9. 根据权利要求 1至 4任一项所述的系统拯救的方法, 其特征 在于, 所述安装第二操作系统包括:  The system rescue method according to any one of claims 1 to 4, wherein the installing the second operating system comprises:
在安装执行备份 /恢复的软件同时安装第二操作系统;  Install the second operating system while installing the software that performs backup/restore;
或,  Or,
在对文件和 /或环境设置进行备份之前或同时, 安装第二操作系 统;  Install the second operating system before or at the same time as backing up the files and / or environment settings;
或,  Or,
在执行所述预定处理之前, 安装第二操作系统。  The second operating system is installed before the predetermined process is performed.
10. 一种系统拯救的装置, 其特征在于, 包括:  10. A system rescue device, comprising:
备份模块, 用于以第一操作系统作为当前运行环境, 在对所述 第一操作系统执行预定处理之前, 对启动和进入操作系统所必需的 文件和 /或环境设置进行备份; 以及 a backup module, configured to use the first operating system as a current running environment, and necessary for starting and entering the operating system before performing predetermined processing on the first operating system Backup of files and/or environment settings;
恢复模块, 用于安装第二操作系统, 以便在所述第一操作系统 无法正常运行的情况下, 以第二操作系统作为当前运行环境, 根据 所备份的文件和 /或环境设置对所述第一操作系统进行恢复。  a recovery module, configured to install a second operating system, so that the second operating system is used as a current operating environment when the first operating system fails to operate normally, and the second operating system is configured according to the backed up file and/or environment An operating system is restored.
11. 根据权利要求 10所述的系统拯救的装置, 其特征在于: 所述备份模块具体用于, 根据对所述文件和 /或所述环境设置进 行的全部或部分备份生成包含所述文件和 /或所述环境设置的位置 信息和标识信息的列表; 以及  The device for saving a system according to claim 10, wherein: the backup module is configured to generate the file and the file according to all or part of the backup of the file and/or the environment setting. / or a list of location information and identification information set by the environment;
所述恢复模块具体用于, 根据已经生成的所述列表中的所述位 置信息和所述标识信息对所述第一操作系统进行恢复。  The recovery module is specifically configured to: restore the first operating system according to the location information and the identifier information in the generated list.
12. 根据权利要求 10所述的系统拯救的装置, 其特征在于, 所 述备份模块具体用于对启动和进入系统所必需的所有文件和 /或环 境设置进行备份。  12. The system rescue device of claim 10, wherein the backup module is specifically configured to back up all file and/or environment settings necessary to boot and enter the system.
13. 根据权利要求 10所述的系统拯救的装置, 其特征在于, 所 述备份模块具体用于对执行所述预定处理时需修改的启动和进入系 统所必需的文件和 /或环境设置进行备份。  The device for saving a system according to claim 10, wherein the backup module is specifically configured to back up files and/or environment settings necessary for starting and entering the system to be modified when the predetermined processing is performed. .
14. 根据权利要求 10至 13任一项所述的系统拯救的装置, 其 特征在于, 预定处理包括: 操作系统安装补丁、 查杀木马、 查杀病 毒、 软件升级、 清理插件、 清理系统垃圾、 清理系统痕迹。  The device for saving a system according to any one of claims 10 to 13, wherein the predetermined processing comprises: installing an operating system, installing a patch, killing a Trojan, killing a virus, upgrading a software, cleaning a plug-in, cleaning up system garbage, Clean up system traces.
15. 根据权利要求 10至 13任一项所述的系统拯救的装置, 其 特征在于, 所述恢复模块具体用于卸载所述预定处理后的文件, 或 还原所述预定处理后的环境设置。  The apparatus for system rescue according to any one of claims 10 to 13, wherein the recovery module is specifically configured to uninstall the predetermined processed file or restore the predetermined processed environment setting.
16. 根据权利要求 10至 13任一项所述的系统拯救的装置, 其 特征在于, 所述备份模块具体用于: 通过建立还原点的方式对启动 和进入操作系统所必需的文件和 /或环境设置进行备份;  The apparatus for system rescue according to any one of claims 10 to 13, wherein the backup module is specifically configured to:: files and/or files necessary for starting and entering the operating system by establishing a restore point Backup the environment settings;
所述恢复模块具体用于: 使用所述第二操作系统的还原程序或 第三方的还原程序或在所述第二操作系统中模拟的处于所述第一操 作系统的还原程序, 根据所备份的文件和 /或环境设置对所述第一操 作系统进行恢复。  The recovery module is specifically configured to: use a restore program of the second operating system or a third-party restore program or a restore program in the second operating system that is simulated in the first operating system, according to the backup program The first operating system is restored by file and/or environment settings.
17. 根据权利要求 10至 13任一项所述的系统拯救的装置, 其 特征在于, 还包括: 17. Apparatus for system rescue according to any of claims 10 to 13, It is characterized by:
重启模块, 用于对所述第一操作系统进行恢复后, 以所述第一 操作系统进行重新启动;  a restarting module, configured to restart the first operating system after the first operating system is restored;
预定恢复模块, 用于如果以所述第一操作系统进行所述重新启 动后第一操作系统仍无法正常运行, 则在所述第二操作系统中以预 定的文件和 /或环境设置对所述第一操作系统进行恢复, 其中, 所述 预定的文件和 /或环境设置包括在历史修复过程中, 在存储器指定位 置中存储的文件和 /或环境设置。  a predetermined recovery module, configured to: in the second operating system, set the file and/or environment in the second operating system if the first operating system still fails to operate normally after the restarting by the first operating system The first operating system performs recovery, wherein the predetermined file and/or environment settings include files and/or environment settings stored in a memory designated location during a history repair process.
18. 根据权利要求 10至 13任一项所述的系统拯救的装置, 其 特征在于, 所述恢复模块包括, 安装模块, 用于在安装执行备份 / 恢复的软件同时安装第二操作系统; 或, 在对文件和 /或环境设置进 行备份之前或同时, 安装第二操作系统; 或, 在执行所述预定处理 之前, 安装第二操作系统。  The apparatus for system rescue according to any one of claims 10 to 13, wherein the recovery module comprises: an installation module, configured to install a second operating system while installing software for performing backup/restore; or Installing the second operating system before or at the same time as backing up the file and/or environment settings; or, installing the second operating system before performing the predetermined processing.
19. 一种存储有机器可读取的指令代码的程序产品,所述指令代 码由机器读取并执行时,可执行如权利要求 1 - 9中任一项所述的系 统拯 的方法。  A program product for storing a machine readable instruction code, the instruction code being readable and executable by a machine, the method of the system according to any one of claims 1 to 9.
20. 一种承载有如权利要求 19所述的程序产品的存储介质。 或者:  20. A storage medium carrying the program product of claim 19. Or:
21. 一种存储介质, 其承载有机器可读取的指令代码, 所述指 令代码由机器读取并执行时,可执行如权利要求 1 - 9中任一项所述 的系统拯救的方法。  A storage medium carrying a machine readable instruction code, the instruction code being executable by a machine and executing the method of system rescue according to any one of claims 1-9.
PCT/CN2012/071755 2011-03-02 2012-02-29 System rescue method and device WO2012116637A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100505021A CN102163167A (en) 2011-03-02 2011-03-02 Method and device for rescuing system
CN2011100505021 2011-03-02

Publications (1)

Publication Number Publication Date
WO2012116637A1 true WO2012116637A1 (en) 2012-09-07

Family

ID=44464403

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/071755 WO2012116637A1 (en) 2011-03-02 2012-02-29 System rescue method and device

Country Status (2)

Country Link
CN (1) CN102163167A (en)
WO (1) WO2012116637A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system
CN102736959B (en) * 2012-06-07 2015-10-14 北京奇虎科技有限公司 Determine method and the device of solution of terminal fault
CN102819469B (en) * 2012-07-04 2015-12-09 北京奇虎科技有限公司 operating system recovery method and system
CN103838589A (en) * 2012-11-20 2014-06-04 腾讯科技(深圳)有限公司 Plug-in unit deleting and recovering method and client side
CN103870347A (en) * 2012-12-11 2014-06-18 联想(北京)有限公司 System restoring method and device
CN103150234B (en) * 2013-03-20 2016-04-13 北京奇虎科技有限公司 The backup method of driver and device
CN104932965B (en) * 2014-03-18 2019-05-28 北京奇虎科技有限公司 Object method for real-time monitoring and device
CN104123208B (en) * 2014-07-30 2016-06-15 努比亚技术有限公司 The restorative procedure of a kind of system exception, device and mobile terminal
CN104156273A (en) * 2014-07-30 2014-11-19 深圳市中兴移动通信有限公司 System exception repair method, system exception repair device and mobile terminal
CN105512000B (en) * 2014-09-24 2020-04-24 中兴通讯股份有限公司 Operating system abnormal information collection method and device and computer
CN104407930A (en) * 2014-10-22 2015-03-11 陆俊 Method and system for assisting in remote mobile terminal
CN106569912B (en) * 2016-11-02 2020-08-11 惠州Tcl移动通信有限公司 Method and system for restoring factory settings of mobile terminal
CN106528348A (en) * 2016-11-18 2017-03-22 合肥联宝信息技术有限公司 Method for constructing BIOS of intelligent terminal and BIOS component
CN113127259B (en) * 2019-12-30 2024-03-12 北京懿医云科技有限公司 Data deployment method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN101183324A (en) * 2007-12-10 2008-05-21 上海北大方正科技电脑系统有限公司 Recovery method of computer system
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1690975A (en) * 2004-04-28 2005-11-02 大众电脑股份有限公司 Method for restoring operating system and user data in a computer<and restoration system therefor 0}
CN1315048C (en) * 2004-07-06 2007-05-09 天津百维软件科技有限公司 A memory-space saving multi-computer system sharing backup method
CN101661400A (en) * 2009-09-16 2010-03-03 中兴通讯股份有限公司 Method and device for managing software patches

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1658185A (en) * 2004-02-18 2005-08-24 国际商业机器公司 Computer system with mutual independence symbiont multiple eperation system and its switching method
CN101183324A (en) * 2007-12-10 2008-05-21 上海北大方正科技电脑系统有限公司 Recovery method of computer system
CN102163167A (en) * 2011-03-02 2011-08-24 奇智软件(北京)有限公司 Method and device for rescuing system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI SONG ET AL.: "Dual system makes the system reset simpler, Computer knowledge and technology.", EXPERIENCE AND SKILLS, 2005 ANNUAL NO. 8, 31 August 2005 (2005-08-31), pages 20 - 21 *
LI XUECHANG: "Ghost in Windows, Computer knowledge and technology.", EXPERIENCE AND SKILLS, 2008 ANNUAL NO. 8, 31 August 2008 (2008-08-31), pages 39 - 40 *

Also Published As

Publication number Publication date
CN102163167A (en) 2011-08-24

Similar Documents

Publication Publication Date Title
WO2012116637A1 (en) System rescue method and device
KR100758292B1 (en) A method for renovating the computer operating system
KR101473029B1 (en) Self-managed processing device
JP5444368B2 (en) Application restore point
US7496783B1 (en) Merging cluster nodes during a restore
US7334157B1 (en) Restore of data to a computer system having different hardware
US20160048438A1 (en) Automated testing of physical servers using a virtual machine
CN107493290B (en) OTA (over the air) upgrading method for Android smart television system software
US20160132420A1 (en) Backup method, pre-testing method for environment updating and system thereof
CN112698846B (en) Method and system for automatically installing patches in Linux system
WO2021057795A1 (en) System starting method and apparatus, node device and computer-readable storage medium
CN106775674B (en) Equipment based on universal boot loader and starting method thereof
US20160266892A1 (en) Patching of virtual machines during data recovery
CN111698558A (en) Television software upgrading method, television terminal and computer readable storage medium
US9619340B1 (en) Disaster recovery on dissimilar hardware
CN111090546A (en) Method, device and equipment for restarting operating system and readable storage medium
US8132047B2 (en) Restoring application upgrades using an application restore point
US20190147164A1 (en) Novel methodology, process and program for the repair of disabled, badly infected or slow windows computers
US20180349133A1 (en) Software update rollbacks using file system volume snapshots
CN116028084A (en) Cross-version hot upgrading method, system and terminal based on OpenStack cloud platform
WO2016037314A1 (en) Software version upgrade method, apparatus and device
US20160004607A1 (en) Information processing apparatus and information processing method
CN112068846B (en) Application distribution method, device and medium based on dual systems
WO2015043010A1 (en) Data processing method and apparatus, and electronic device
US20240143771A1 (en) Raid array for validating and recovering operating system boot files for uefi secure boot systems

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12752990

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12752990

Country of ref document: EP

Kind code of ref document: A1