CN115454515A - System processing method and device and electronic equipment - Google Patents

System processing method and device and electronic equipment Download PDF

Info

Publication number
CN115454515A
CN115454515A CN202211181652.0A CN202211181652A CN115454515A CN 115454515 A CN115454515 A CN 115454515A CN 202211181652 A CN202211181652 A CN 202211181652A CN 115454515 A CN115454515 A CN 115454515A
Authority
CN
China
Prior art keywords
state
file
partition
present disclosure
windows
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211181652.0A
Other languages
Chinese (zh)
Inventor
董仝梁
吕志梁
陈龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202211181652.0A priority Critical patent/CN115454515A/en
Publication of CN115454515A publication Critical patent/CN115454515A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present disclosure provides a system processing method, apparatus, and device, wherein the method includes: in response to detecting that a first system is in a first state, executing a first operation on the first system through a first file in a first partition in the second system, and enabling the first system to be changed from the first state to a second state; wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.

Description

System processing method and device and electronic equipment
Technical Field
The present disclosure relates to system processing technologies, and in particular, to a system processing method, an apparatus, and an electronic device.
Background
At present, with diversification of operating systems, situations of supporting multiple operating systems in an electronic device are increasing, so as to meet requirements of users for executing different operating systems in the same electronic device. In particular, most windows operating systems are loaded in electronic devices because the windows operating systems are mature, and other operating systems are mixed with the windows operating systems in many application scenarios. Even a windows Operating System cannot be normally started due to incorrect operations, such as installation of malware, inadvertent deletion of System files, or overwriting of Operating System (OS) boot files. In the case of an operating system exception, how to recover is difficult for a user to implement, and once the operating system exception occurs, the user experience is seriously affected.
Disclosure of Invention
The present disclosure provides a system processing method, an apparatus, and an electronic device, so as to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a system processing method, including:
in response to detecting that a first system is in a first state, executing a first operation on the first system through a first file in a first partition in the second system, and enabling the first system to be changed from the first state to a second state; wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.
In an embodiment, the performing, by a first file in a first partition in the second system, a first operation on the first system includes:
the second system sends the information of the calling interface of the first file and/or the first partition to a first process of the first system;
and the first process calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
In an embodiment, the performing, by a first file in a first partition in the second system, a first operation on the first system includes:
and a first process of the first system accesses the first partition and/or the first file based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
In an embodiment, the restoring the first system based on the first file includes:
repairing corrupted system files of the first system based on the first file; or, the first system is restored based on the first file.
In one embodiment, the method further comprises:
and under the condition that the first system fails to recover, enabling the first system to enter a pre-installation environment based on the first file, and responding to a migration request aiming at a data file in the first system to migrate the data file out of the first system.
In an embodiment, the performing, by a first file in a first partition in the second system, a first operation on the first system includes:
and the second system calls the first file, reinstalls the first system and enables the reinstalled first system to be in the second state.
According to a second aspect of the present disclosure, there is provided a system processing apparatus comprising:
the detection unit is used for detecting the state of a first system and triggering the execution unit under the condition that the first system is in a first state;
the execution unit is used for responding to the detection unit that the first system is in the first state, executing a first operation on the first system through a first file in a first partition in the second system, and enabling the first system to be changed from the first state to the second state;
wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.
In an embodiment, the execution unit is further configured to:
the second system sends the information of the first file and/or the calling interface of the first partition to a first process of the first system;
and the first process calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
In an embodiment, the execution unit is further configured to:
and triggering a first process of the first system to access the first partition and/or the first file based on a preset access path, and recovering the first system based on the first file to recover the first system from the first state to the second state.
In an embodiment, the execution unit is further configured to:
repairing the corrupted system file of the first system based on the first file; or restoring the first system based on the first file.
In an embodiment, the execution unit is further configured to:
and under the condition that the first system fails to recover, enabling the first system to enter a preinstallation environment based on the first file, responding to a migration request aiming at the data file in the first system, and enabling the data file to be migrated out of the first system.
In an embodiment, the execution unit is further configured to:
and the second system calls the first file, reinstalls the first system and enables the reinstalled first system to be in the second state.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the system processing method of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the steps of the system processing method of the present disclosure.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a first flow chart illustrating an implementation of a system processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart diagram illustrating an implementation of a system processing method according to an embodiment of the present disclosure;
FIG. 3 is a flow chart illustrating a third implementation of the system processing method according to an embodiment of the present disclosure;
FIG. 4 illustrates a multi-system partitioning diagram of an embodiment of the present disclosure;
FIG. 5 is a flowchart illustrating recovery from a Windows boot failure according to an embodiment of the disclosure;
fig. 6 shows a flowchart illustrating recovery of Android startup failure according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram showing the structure of a system processing device according to an embodiment of the present disclosure;
fig. 8 shows a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more apparent and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
Fig. 1 shows a first implementation flow diagram of a system processing method according to an embodiment of the present disclosure, and as shown in fig. 1, the system processing method according to the embodiment of the present disclosure includes the following processing steps:
step 101, detecting a current state of the first system, and determining whether the first system is in a first state.
The system processing method of the embodiment of the disclosure is suitable for an electronic device provided with a plurality of operating systems. The operating system installed in the electronic device may include a Windows operating system, a Linux system, a Chrome OS system, and the like. The Linux system comprises an Android system, an Android system and the like. In the embodiment of the present disclosure, when a plurality of operating systems are installed in an electronic device, the probability that the plurality of operating systems cannot be started at the same time is quite low, and therefore when one or some operating systems in the electronic device cannot be started due to poisoning or damaged configuration files, the non-startable operating systems may be repaired or reinstalled, or related data stored in the non-startable operating systems may be exported, or the like, by using other startable operating systems in the plurality of operating systems.
As an example, the first system may be any one of the operating systems, such as Windows or Android system.
Take the example of installing Windows and Android systems in an electronic device. When Windows cannot be normally started, the electronic device may be started in a (PE) environment of An Zhuoduan by default, so that the electronic device exports related data in the electronic device based on an Android system, or the PE based on the Android system restores a Windows system or reinstalls the Windows system, and the like. Therefore, a user of the electronic equipment can avoid relevant operations such as manufacturing a boot disk and adjusting the BIOS of the Windows system to boot from the USB flash disk. The use experience of the user of the electronic equipment is improved, and the safety of data in the electronic equipment is also improved.
In an embodiment of the disclosure, the first state comprises a state in which an application in the first system fails to respond to an instruction. The first state here refers to a state in which the first system of the electronic device cannot be started, and when the first system cannot be started, the user of the electronic device must reinstall or restore the first system.
Step 102, responding to that a first system is in a first state, executing a first operation on the first system through a first file in a first partition in a second system, and enabling the first system to be converted from the first state to a second state.
In an embodiment of the present disclosure, the second state includes a state in which an application in the first system can respond to an instruction. The second state refers to a state in which the first system is recovered, restarted or restarted after being reinstalled, and in the second state, the user can call the relevant instruction in the first system to perform normal operation on the first system, such as calling an application installed in the first operating system, exporting relevant data stored in the first operating system, and the like.
As an example, the second system may be any one of the operating systems described above, which is different from the first system, such as an Android system, a Windows or Linux system, and the like. The second system may also be the same system as the first system. As an example, the first system and the second system are relatively independent systems, i.e., the first system and the second system rely on different central processors disposed in the same device to operate.
In the embodiment of the present disclosure, when the first system is in the first state, the electronic device may trigger the second system to send the information of the first file and/or the call interface of the first partition to the first process of the first system; the first process may include a basic starting process, such as a configuration file reading process set in a hard disk of the electronic device when the electronic device is initially powered on.
And the first process of the first system calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
Here, the second system may access the first partition by calling the interface, obtain the first file, to recover or reinstall the first system, or perform auxiliary startup on the first system, to make the first system in the second state, so as to export relevant data in the first system.
Fig. 2 shows a second implementation flow diagram of the system processing method according to the embodiment of the present disclosure, and as shown in fig. 2, the system processing method according to the embodiment of the present disclosure includes the following processing steps:
step 201, detecting the current state of the first system, and determining whether the first system is in the first state.
The system processing method of the embodiment of the disclosure is suitable for an electronic device provided with a plurality of operating systems. The operating system installed in the electronic device may include a Windows operating system, a Linux system, a Chrome OS system, and the like. The Linux system comprises an Android system and the like. In the embodiment of the present disclosure, when a plurality of operating systems are installed in an electronic device, the probability that the plurality of operating systems cannot be started at the same time is quite low, and therefore when one or some operating systems in the electronic device cannot be started due to poisoning or damaged configuration files, the non-startable operating systems may be repaired or reinstalled, or related data stored in the non-startable operating systems may be exported, or the like, by using other startable operating systems in the plurality of operating systems.
As an example, the first system may be any one of the operating systems, such as Windows or Android system.
Take the example of installing Windows and Android systems in an electronic device. When Windows cannot be normally started, the electronic device may be started in a (PE) environment of An Zhuoduan by default, so that the electronic device exports related data in the electronic device based on an Android system, or the PE based on the Android system restores a Windows system or reinstalls the Windows system, and the like. Therefore, a user of the electronic equipment can avoid relevant operations such as manufacturing a boot disk and adjusting the BIOS of the Windows system to boot from the USB flash disk. The use experience of the user of the electronic equipment is improved, and the safety of data in the electronic equipment is also improved.
In an embodiment of the disclosure, the first state comprises a state in which an application in the first system fails to respond to an instruction. The first state here refers to a state in which the first system of the electronic device cannot be started, and when the first system cannot be started, the user of the electronic device must reinstall or restore the first system.
Step 202, when the first system is in the first state, a first process of the first system accesses the first partition and/or the first file based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
In an embodiment of the present disclosure, the second state includes a state in which an application in the first system can respond to an instruction. The second state refers to a state in which the first system is recovered, restarted or restarted after being reinstalled, and in the second state, the user can call the relevant instruction in the first system to perform normal operation on the first system, such as calling an application installed in the first operating system, exporting relevant data stored in the first operating system, and the like.
As an example, the second system may be any one of the operating systems described above, which is different from the first system, such as an Android system, a Windows or Linux system, and the like.
In the embodiment of the present disclosure, when the first system is in the first state, the first process of the first system directly calls the first file stored in the first partition based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state. In the embodiment of the disclosure, an access path of a first partition is directly stored in a first system, and a first process directly accesses the first partition based on the access path to obtain a first file stored in the first partition. Or, the first file is called directly based on the access address of the first file.
In the embodiment of the present disclosure, recovering the first system based on the first file may specifically be: and repairing the damaged system files of the first system based on the first file, namely repairing the damaged files in the first system based on the first file, so that the first system can be normally started. Or, as an implementation manner, the first system is restored based on the first file, for example, the first system may be directly reinstalled.
Fig. 3 shows a third implementation flow diagram of the system processing method according to the embodiment of the present disclosure, and as shown in fig. 3, the system processing method according to the embodiment of the present disclosure includes the following processing steps:
step 301, detecting a current state of the first system, and determining whether the first system is in a first state.
The system processing method of the embodiment of the disclosure is suitable for an electronic device provided with a plurality of operating systems. The operating system installed in the electronic device may include a Windows operating system, a Linux system, a Chrome OS system, and the like. The Linux system comprises an Android system, an Android system and the like. In the embodiment of the present disclosure, when a plurality of operating systems are installed in an electronic device, the probability that the plurality of operating systems cannot be started at the same time is quite low, and therefore when one or some operating systems in the electronic device cannot be started due to poisoning or damage to configuration files, the operating systems that cannot be started may be repaired or reinstalled, or related data stored in the operating systems that cannot be started may be exported, or the like, by using other operating systems that can be started in the plurality of operating systems.
As an example, the first system may be any one of the operating systems described above, such as a Windows or Android system.
Take the example of installing Windows and Android systems in an electronic device. When Windows cannot be normally started, the electronic device may be started in a (PE) environment of An Zhuoduan by default, so that the electronic device exports related data in the electronic device based on an Android system, or the PE based on the Android system restores a Windows system or reinstalls the Windows system, and the like. Therefore, a user of the electronic equipment can avoid relevant operations such as manufacturing a boot disk and adjusting the BIOS of the Windows system to boot from the USB flash disk. The use experience of the user of the electronic equipment is improved, and the safety of data in the electronic equipment is also improved.
In an embodiment of the present disclosure, the first state comprises a state in which an application in the first system fails to respond to an instruction. The first state here refers to a state in which the first system of the electronic device cannot be started, and when the first system cannot be started, the user of the electronic device must reinstall or restore the first system.
Step 302, when the first system is in the first state, a first process of the first system accesses the first partition and/or the first file based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
In an embodiment of the present disclosure, the second state includes a state in which an application in the first system can respond to an instruction. The second state refers to a state in which the first system is recovered, restarted or restarted after being reinstalled, and in the second state, the user can call the relevant instruction in the first system to perform normal operation on the first system, such as calling an application installed in the first operating system, exporting relevant data stored in the first operating system, and the like.
As an example, the second system may be any one of the operating systems described above, which is different from the first system, such as an Android system, a Windows or Linux system, and the like.
In the embodiment of the present disclosure, when the first system is in the first state, the first process of the first system directly calls the first file stored in the first partition based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state. In the embodiment of the disclosure, an access path of a first partition is directly stored in a first system, and a first process directly accesses the first partition based on the access path to obtain a first file stored in the first partition. Or, the first file is called directly based on the access address of the first file.
In the embodiment of the present disclosure, recovering the first system based on the first file may specifically be: and repairing the damaged system files of the first system based on the first file, namely repairing the damaged files in the first system based on the first file, so that the first system can be normally started. Or, as an implementation manner, the first system is restored based on the first file, for example, the first system may be directly reinstalled.
Step 303, under a condition that the first system fails to recover, enabling the first system to enter a preinstallation environment based on the first file, so as to respond to a migration request for a data file in the first system, and enabling the data file to be migrated out of the first system.
In the embodiment of the disclosure, when the recovery or reinstallation of the first system based on the first file fails, the first system is brought into a preinstallation environment based on the first file, so that relevant data in the first system can be exported.
In this embodiment of the present disclosure, the second system may call the first file, reinstall the first system, and place the reinstalled first system in the second state.
The essence of the technical solution of the present disclosure is further clarified by specific examples below.
Take an example in which an android and Windows are installed in an electronic device. Fig. 4 shows a multi-system partition diagram of the embodiment of the present disclosure, as shown in fig. 4, a storage device of an electronic device is partitioned under an android system, a special partition is set to be formatted as a general file system such as NTFS or FAT32, and then a Windows installer or a PE environment is installed on the partition. The partition can be shared to the x86 side through the USB, the BIOS of the x86 side can recognize that the device is bootable every time when the BIOS is started, and the bootable device is set as a second boot item, so that when the Windows cannot be started normally, the system can be started by accessing the partition. In the embodiment of the present disclosure, when the operation system fails to be started via the hard disk for multiple times, the operation system may be started via the startup repair disk of the partition, so as to guide the user to perform operations such as related subsequent repair, data recovery, and system reinstallation.
Under the condition that Windows can not be normally started and can not be self-repaired for various reasons, BIOS is started from a starting disk of the ARM end, and a user is guided to repair the system, recover data or reinstall Windows. The same applies to An Zhuolai, which can recover data via windows.
Fig. 5 shows a schematic diagram of a recovery flow of a Windows boot failure in the embodiment of the present disclosure, as shown in fig. 5, in the embodiment of the present disclosure, when Windows fails to boot for multiple times due to system file damage and the like, an Android system of an electronic device monitors Windows boot exception, so that an x86 terminal is booted from a Windows PE partition environment pre-installed in the Android system, and determines whether the Windows system can be recovered, if the Windows system can be recovered, that is, windows can recover the damaged system file or recover from a latest recovery point, the Windows is repaired, and the Windows system can be subsequently used normally. And if the Windows system cannot be restored, the Windows system needs to be reinstalled, whether important data which needs to be migrated by a user exists in the Windows system needs to be determined, if so, the user is guided to perform data migration through the Windows PE partition environment, the data which the user wants to migrate is copied out, and if not, the Windows system needs to be reinstalled directly. As an implementation manner, the system installation may be performed directly by using a pre-stored installation program in the electronic device, for example, reinstalling the Windows system through system backup data or system restore-related application.
It should be understood by those skilled in the art that, when the Windows system fails to start, the bottom-layer start process of the electronic device may also be directly started from the Windows PE partition environment pre-installed in the Android system according to a preset start instruction.
Fig. 6 is a schematic diagram illustrating a recovery process of an Android system boot failure in the embodiment of the present disclosure, as shown in fig. 6, in the embodiment of the present disclosure, the Android system fails to boot due to upgrade failure caused by system upgrade or other reasons, at this time, a Windows system in the electronic device monitors that the Android system is booted abnormally, and the Windows system automatically invokes an external mirror image burning tool of the Android system to externally install the Android system.
It should be understood by those skilled in the art that, when the Android system fails to be started, the bottom-layer starting process of the electronic device may also invoke an external image burning tool of the Android system according to a preset starting instruction, so as to externally install the Android system.
The electronic devices include mobile phones, tablet computers, PADs, game machines, personal computers, and the like.
Fig. 7 is a schematic diagram illustrating a composition structure of a system processing apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, the system processing apparatus according to the embodiment of the present disclosure includes:
the detection unit 70 is used for detecting the state of the first system, and triggering the execution unit under the condition that the first system is in the first state;
an executing unit 71, configured to, in response to the detecting unit detecting that the first system is in the first state, execute a first operation on the first system through a first file in a first partition in the second system, so that the first system is changed from the first state to the second state;
wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.
In an embodiment, the execution unit 71 is further configured to:
the second system sends the information of the first file and/or the calling interface of the first partition to a first process of the first system;
and the first process calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
As an implementation manner, the execution unit 71 is further configured to:
and triggering a first process of the first system to access the first partition and/or the first file based on a preset access path, and recovering the first system based on the first file to recover the first system from the first state to the second state.
As an implementation manner, the execution unit 71 is further configured to:
repairing the corrupted system file of the first system based on the first file; or restoring the first system based on the first file.
As an implementation manner, the execution unit 71 is further configured to:
and under the condition that the first system fails to recover, enabling the first system to enter a pre-installation environment based on the first file, and responding to a migration request aiming at a data file in the first system to migrate the data file out of the first system.
As an implementation manner, the execution unit 71 is further configured to:
and the second system calls the first file, reinstalls the first system and enables the reinstalled first system to be in the second state.
In an exemplary embodiment, the detection Unit 70, the execution Unit 71, and the like may be implemented by one or more Central Processing Units (CPUs), graphics Processing Units (GPUs), application Specific Integrated Circuits (ASICs), DSPs, programmable Logic Devices (PLDs), complex Programmable Logic Devices (CPLDs), field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components.
With regard to the apparatus in the above embodiments, the specific manner in which each module and unit performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
According to an embodiment of the present disclosure, the present disclosure also recites a readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the steps associated with the system processing method.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806 such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 801 executes the respective methods and processes described above, such as the system processing method. For example, in some embodiments, the system processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When loaded into RAM 803 and executed by computing unit 801, may perform one or more of the steps of the system processing methods described above. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the system processing method in any other suitable manner (e.g., by way of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems on a chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server combining a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means two or more unless specifically limited otherwise.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of system processing, the method comprising:
in response to detecting that a first system is in a first state, executing a first operation on the first system through a first file in a first partition in the second system, and enabling the first system to be changed from the first state to a second state; wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.
2. The method of claim 1, wherein performing a first operation on the first system via a first file in a first partition in the second system comprises:
the second system sends the information of the first file and/or the calling interface of the first partition to a first process of the first system;
and the first process calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
3. The method of claim 1, wherein performing a first operation on the first system through a first file in a first partition in the second system comprises:
and a first process of the first system accesses the first partition and/or the first file based on a preset access path, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
4. The method of claim 2 or 3, wherein the recovering the first system based on the first file comprises:
repairing the corrupted system file of the first system based on the first file; or restoring the first system based on the first file.
5. A method according to claim 2 or 3, characterized in that the method further comprises:
and under the condition that the first system fails to recover, enabling the first system to enter a pre-installation environment based on the first file, and responding to a migration request aiming at a data file in the first system to migrate the data file out of the first system.
6. The method of claim 1, wherein performing a first operation on the first system through a first file in a first partition in the second system comprises:
and the second system calls the first file, reinstalls the first system and enables the reinstalled first system to be in the second state.
7. A system processing apparatus, the apparatus comprising:
the detection unit is used for detecting the state of a first system and triggering the execution unit under the condition that the first system is in a first state;
the execution unit is used for responding to the detection unit that the first system is in the first state, executing a first operation on the first system through a first file in a first partition in the second system, and enabling the first system to be changed from the first state to the second state;
wherein the first state comprises a state in which an application in the first system fails to respond to an instruction; the second state comprises a state in which an application in the first system is able to respond to instructions.
8. The apparatus of claim 7, wherein the execution unit is further configured to:
the second system sends the information of the first file and/or the calling interface of the first partition to a first process of the first system;
and the first process calls a first file in the first partition based on the calling interface, and recovers the first system based on the first file, so that the first system is recovered from the first state to the second state.
9. The apparatus of claim 7, wherein the execution unit is further configured to:
and triggering a first process of the first system to access the first partition and/or the first file based on a preset access path, and recovering the first system based on the first file to recover the first system from the first state to the second state.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the system processing method of any one of claims 1 to 6.
CN202211181652.0A 2022-09-27 2022-09-27 System processing method and device and electronic equipment Pending CN115454515A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211181652.0A CN115454515A (en) 2022-09-27 2022-09-27 System processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211181652.0A CN115454515A (en) 2022-09-27 2022-09-27 System processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN115454515A true CN115454515A (en) 2022-12-09

Family

ID=84307012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211181652.0A Pending CN115454515A (en) 2022-09-27 2022-09-27 System processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN115454515A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033086A (en) * 2023-10-09 2023-11-10 苏州元脑智能科技有限公司 Recovery method and device of operating system, storage medium and server management chip

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117033086A (en) * 2023-10-09 2023-11-10 苏州元脑智能科技有限公司 Recovery method and device of operating system, storage medium and server management chip
CN117033086B (en) * 2023-10-09 2024-02-09 苏州元脑智能科技有限公司 Recovery method and device of operating system, storage medium and server management chip

Similar Documents

Publication Publication Date Title
CN115794257B (en) System starting method, device, electronic equipment and storage medium
EP2280348A1 (en) Method and system for saving operational state of running applications when unexpected shutdown events occur
CN115454515A (en) System processing method and device and electronic equipment
US8468388B2 (en) Restoring programs after operating system failure
TWI764454B (en) Firmware corruption recovery
CN112835639A (en) Hook implementation method, device, equipment, medium and product
CN114860322A (en) Substrate management controller, control method and electronic equipment
CN111367570A (en) Application software self-starting method and device
CN114860292A (en) Terminal equipment firmware upgrading control method and device, computer equipment and medium
CN114153503A (en) BIOS control method, device and medium
CN113515291A (en) Equipment online upgrading method and device
CN112395121A (en) Drive loading processing method and device, storage medium and computer equipment
CN115952004B (en) Resource allocation method, device, electronic equipment and storage medium
CN115167895A (en) Basic input output system updating method, device, equipment and storage medium
CN115202928A (en) Method and device for processing boot configuration data of operating system
CN115562803A (en) Automatic recovery method, device, equipment and storage medium for mirror image file
CN114328083B (en) WDT monitoring method, device and medium
CN116737430A (en) BMC control method and device, electronic equipment and storage medium
CN114721871A (en) Data backup method and device and electronic equipment
CN118113410A (en) Cluster operation and maintenance method and device, electronic equipment and storage medium
CN117311764A (en) Firmware upgrading and restoring method, device, equipment and storage medium
CN118012660A (en) System abnormal starting recovery method, device, equipment and storage medium
US7308507B1 (en) Method, system, and computer-readable medium for redirecting video text data in a computer network
CN117453255A (en) Method, device, equipment and storage medium for upgrading embedded equipment
CN117492799A (en) Software upgrading method and device, terminal equipment and storage medium

Legal Events

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