CN115016987B - Operating system checking method, computing device and storage medium - Google Patents
Operating system checking method, computing device and storage medium Download PDFInfo
- Publication number
- CN115016987B CN115016987B CN202210818211.0A CN202210818211A CN115016987B CN 115016987 B CN115016987 B CN 115016987B CN 202210818211 A CN202210818211 A CN 202210818211A CN 115016987 B CN115016987 B CN 115016987B
- Authority
- CN
- China
- Prior art keywords
- operating system
- item
- checking
- repair
- computing device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000015654 memory Effects 0.000 claims abstract description 58
- 230000008439 repair process Effects 0.000 claims abstract description 39
- 238000004891 communication Methods 0.000 claims abstract description 36
- 238000007689 inspection Methods 0.000 claims abstract description 30
- 238000005192 partition Methods 0.000 claims description 13
- 230000009471 action Effects 0.000 claims description 8
- 230000006399 behavior Effects 0.000 claims description 8
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000007723 transport mechanism Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1435—Saving, restoring, recovering or retrying at system level using file system or storage system metadata
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1464—Management of the backup or restore process for networked environments
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the field of operating system repair, and discloses an operating system checking method, a computing device and a storage medium. The method comprises the following steps: running a second operating system stored in the mobile memory; establishing communication connection with the server according to the second operating system, and acquiring the inspection item from the server; and checking the first operating system according to the checking item, and judging whether the first operating system comprises a problem item. The invention can check the first operating system according to the second operating system in the mobile memory when the first operating system cannot run, and judge whether the first operating system has faults or not.
Description
Technical Field
The present invention relates to the field of operating system repair, and in particular, to an operating system checking method, a computing device, and a storage medium.
Background
With the development of computer technology, people increasingly use computers to complete various tasks. And most work requires operating the computer through an operating system. In the using process, once the operating system has problems, a user cannot normally use the computer to complete most of work.
In the prior art, once the operating system has a problem, the operating system needs to be reinstalled, and the problem of the operating system cannot be checked in a targeted manner.
For this reason, a new operating system checking method is required.
Disclosure of Invention
To this end, the present invention provides an operating system checking method which seeks to solve, or at least alleviate, the problems identified above.
According to an aspect of the present invention, there is provided an operating system checking method, adapted to be executed in a computing device, the computing device including a first operating system and being in communication connection with a mobile memory, the method comprising the steps of: running a second operating system stored in the mobile memory; establishing communication connection with the server according to the second operating system, and acquiring the inspection item from the server; and checking the first operating system according to the checking item, and judging whether the first operating system comprises a problem item.
Optionally, in the method according to the invention, the method comprises the steps of: if the communication connection with the server fails, checking the first operating system according to the local checking item stored in the mobile memory, and judging whether the first operating system comprises a problem item.
Optionally, in a method according to the present invention, the check item includes a file system, and checking the first operating system according to the check item and determining whether the first operating system includes a problem item includes steps of: checking the file system of the first operating system, and judging whether the file system of the first operating system is abnormal or not; and if the file system is abnormal, taking the file system as a problem item.
Optionally, in the method according to the present invention, further comprising the step of: judging whether a first bootstrap program of a first operating system can normally boot and start the first operating system; if not, the first bootstrap program is taken as a problem item.
Optionally, in the method according to the present invention, the mobile memory further includes a repair configuration, and the method further includes the steps of: if the first operating system comprises one or more problem items, judging whether to repair each problem item according to the repair configuration; if the problem item is to be repaired, determining a repairing behavior corresponding to the problem item according to repairing configuration; and executing the corresponding repairing action to repair the problem item.
Optionally, in the method according to the present invention, executing the corresponding repair action to repair the problem item includes the steps of: and when the problem item is a file system, repairing the file partition system of the first operating system.
Optionally, in the method according to the present invention, further comprising the step of: and when the problem item is the first bootstrap program, reinstalling the first bootstrap program of the first operating system.
Optionally, in the method according to the present invention, the step of removing the second operating system installation stored in the memory comprises: establishing an operating system starting partition in a mobile memory; and installing a second bootstrap program and the kernel according to the operating system starting partition, so that the kernel is loaded according to the second bootstrap program to execute the instructions of the second operating system.
According to another aspect of the present invention, there is provided a computing device comprising: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operating system checking method according to the present invention.
According to yet another aspect of the present invention, there is provided a computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform an operating system checking method according to the present invention.
The invention discloses an operating system checking method which is suitable for being executed in a computing device. The computing device comprises a first operating system and is in communication connection with the mobile memory, and the method comprises the following steps: running a second operating system stored in the mobile memory; establishing communication connection with the server according to the second operating system, and acquiring the inspection item from the server; checking the first operating system according to the checking item, and judging whether the first operating system comprises a problem item; and if the first operating system comprises one or more problem items, repairing the problem items so as to normally run the first operating system. The invention can check the first operating system according to the second operating system in the mobile memory when the first operating system cannot run, and judge whether the first operating system has faults.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100 according to an example embodiment of the invention;
FIG. 2 illustrates a flow diagram of an operating system checking method 200 according to an exemplary embodiment of the invention;
FIG. 3 shows a schematic diagram of a server operation according to an exemplary embodiment of the invention;
fig. 4 shows a schematic diagram of a system for inspection and repair according to an exemplary embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art. Like reference numerals generally refer to like parts or elements.
Referring initially to FIG. 1, FIG. 1 illustrates a schematic diagram of a computing device 100, according to an exemplary embodiment of the invention. As shown in fig. 1, the computing device 100 includes an internal memory 111, an external memory 112, a central processor 113, and a graphics processor 114. The internal memory 111 includes, but is not limited to, volatile storage (e.g., random access memory), non-volatile storage (e.g., read-only memory), flash memory, or any combination of such memories. The external memory 112 is a memory other than the internal memory 111 and the cache of the cpu 113, and may be implemented as a hard disk, a floppy disk, an optical disk, a usb disk, or the like. The central processor 113 is an arithmetic core and a control core of the computing device 100, and is used for parsing computer instructions and processing data in computer software. Graphics processor 114 is a microprocessor in a computing device that performs image and graphics related operations.
The computing device 100 also runs a first operating system 120, adapted to control the operation of the computing device 100, based on the components described above. Further, the examples are practiced in conjunction with a graphics library, other operating systems, or any other application program, and are not limited to any particular application or system. The invention is not limited as to the specific type of first operating system 120.
One or more applications, such as applications 131-133 (including application 131, application 132, and application 133) shown in FIG. 1, may also run in the computing device 100 based on the first operating system 120. The invention does not limit the number and types of applications running in the computing device 100, for example, the applications may be implemented as: email and contacts applications, word processing applications, spreadsheet applications, database applications, slide show applications, drawing or computer-aided applications, web browser applications, and the like.
According to one aspect, computing device 100 may also be connected to one or more input devices 141, such as a keyboard, mouse, pen, voice input device, touch input device, or the like. One or more output devices 142, such as a display, speakers, printer, etc., may also be connected. The foregoing devices are examples and other devices may also be used. Computing device 100 may include one or more communication connections that allow communication with other computing devices. Examples of suitable communication connections include, but are not limited to: RF transmitter, receiver and/or transceiver circuitry; universal Serial Bus (USB), parallel, and/or serial ports.
Embodiments of the present invention also provide a non-transitory readable storage medium storing instructions for causing the computing device to perform a method according to embodiments of the present invention. The readable media of the present embodiments include permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of readable storage media include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transitory readable storage medium.
According to one aspect, communication media is embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transport mechanism) and includes any information delivery media. According to one aspect, the term "modulated data signal" describes a signal that has one or more characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, radio Frequency (RF), infrared, and other wireless media.
In the present invention, when the first operating system 120 in the computing device 100 has a problem and cannot run normally, the second operating system 151 in the removable memory 150 can be used to check and repair the first operating system 120. The removable storage 150 may be implemented as a removable storage device such as a U-disk or a removable hard disk. The invention is not limited to a particular type of mobile memory 150. The computing device 100 may establish a communication connection with the mobile storage 150 through a physical cable or the like, and the communication mode between the computing device 100 and the mobile storage 150 is not limited in the present invention. The second operating system 151 may be implemented as the same type of operating system as the first operating system 120, and the present invention is not limited by the specific types of the first operating system and the second operating system.
The invention also provides an operating system checking method 200 for repairing an operating system running in a computing device. The operating system checking method of the present invention is suitable for execution in a computing device, such as computing device 100. The following describes each step in the os checking method 200 in detail with reference to fig. 2, and describes the operation process of the second operating system 151.
FIG. 2 shows a flow diagram of an operating system checking method 200 according to an exemplary embodiment of the invention. As shown in fig. 2, step S210 is first executed to run the second operating system stored in the removable memory.
The mobile memory is provided with a second operating system, and the specific installation steps comprise: an operating system boot partition is established in the mobile memory. In order to establish the partition more conveniently, if other data is pre-stored in the mobile memory, a formatting operation may be performed on the mobile memory to meet the partition requirement.
A second boot program and the kernel are then installed according to the operating system boot partition, such that the kernel is loaded to run a second operating system according to the second boot program. The installed kernel is specifically a kernel of the second operating system (i.e., the second kernel, and the kernel of the first operating system is the first kernel). The specific type of the kernel is not limited in the present invention, and when the second operating system is implemented as a linux system, the kernel can be implemented as a linux kernel. The second operating system may be configured to automatically run when the mobile memory is communicatively coupled to the computing device in order to check the first operating system.
According to one embodiment of the invention, the checking of the first operating system in the invention may be implemented by a checking application in the removable memory. In order to configure the checking application to the first operating system, a file system of the mobile memory needs to be built. According to an embodiment of the present invention, the initramfs file system may be built in the mobile storage, and the present invention does not limit the type of file system built in the mobile storage. The inspection application runs through the second operating system for inspecting and repairing the first operating system. The inspection application may be implemented as a system application of the second operating system, and the specific type of the inspection application is not limited by the present invention.
Subsequently, step S220 is performed, a communication connection is established with the server according to the second operating system, and the check item is acquired from the server. When the communication connection is established with the server, the checking application is used as a client to request the server to establish the communication connection. When the checking application establishes a communication connection with the server, communication may be conducted through the communication resources of the computing device 100. And the checking application is configured with network parameters so that the checking application acquires the address of the server and establishes communication connection with the server. The server may be implemented as any computing device capable of being in communication with the computing device, and the specific deployment manner of the server is not limited in the present invention.
The time for the inspection application to begin performing the project inspection can be set as desired, such as after the web service is started. According to an embodiment of the present invention, when the second operating system is implemented as a linux system, the After key of the systemd service may be controlled to control the start time of the checking application. The specific settings are as follows:
[Unit]
Description=...
Documentation=...
After=network.target
[Service]
[Install]
WantedBy=multi-user.target。
after the network service is started, the check item is obtained from the server.
When the server receives a communication request of the client, a communication connection is established with the client, and the check item is sent to the client. The check items may include one or more default check items for checking a first operating system in the computing device. The check items may also include one or more custom check items, further targeted to other items of the first operating system. The checking items in the server can be updated according to the needs; when the server sends the check items, the newly configured check items are sent to the client; and when the corresponding client acquires the check items from the server, acquiring the newly configured check items.
Fig. 3 shows a schematic diagram of the operation of a server according to an exemplary embodiment of the present invention. As shown in fig. 3: the server executes steps S310 to S340 (including step S310, step S320, step S330 and step S340). When a new communication connection request is detected, a communication connection is established with the client that issued the communication connection request, and then the check item is transmitted to the client. And if the custom check item exists, sending the custom check item to the client. And after all the checking items are sent, finishing the communication connection.
Step S230 is executed to check the first operating system according to the check items, and determine whether the first operating system includes the problem item. When the first operating system is checked according to the check items, the first operating system is subjected to targeted check according to each item included in the check items. If an error occurs in the first operating system when one item is checked, the item is taken as a problem item so as to be repaired in the following process.
According to one embodiment of the present invention, the check items include a plurality of default check items: file system, bootstrap program, user authority password, etc. The invention does not limit the types and the number of the default checking items included in the checking items, and can carry out custom configuration according to the needs.
When the first operating system is checked according to the check items, a plurality of default check items included in the first operating system are checked. When the file system is checked, checking the file system of the first operating system, and judging whether the file system of the first operating system is abnormal or not; and if the file system is abnormal, taking the file system as a problem item. When the file system of the first operating system is checked, the starting partition and the root partition of the first operating system can be checked, and whether functions of reading and writing data and the like can normally run or not is judged; if the file system can not normally run, judging that the file system is abnormal.
When checking the boot program, judging whether the first boot program of the first operating system can normally boot and start the first operating system; if not, the first bootstrap program is taken as a problem item. The present invention does not limit the specific type of the first boot program, and the first boot program may be implemented as a gurb program.
When the user authority password is checked, whether the user authority password is empty or not is judged, and if the user authority password (root password) is empty, the user authority password is used as a problem item.
The inspection items may also include one or more custom inspection items. The custom check item can be configured according to the specific check requirement, such as a service port, a user password, a network connection service (such as sshd service), and the like. The invention is not limited to the specific number and type of custom check items.
According to an embodiment of the present invention, when checking a service port, it is checked whether one or more specific service ports are opened; when the user password is checked, whether the user password meets the set regulation or not can be judged; when the network connection service is checked, whether the network connection service is opened or not can be judged.
According to an embodiment of the invention, when the client establishes the communication connection with the server, if the communication connection with the server fails, the first operating system is checked according to the local check item stored in the mobile memory, and whether the first operating system includes the problem item is judged. The mobile memory stores one or more local check items for checking the first operating system in case of no connection to the server. The local inspection items may include one or more default inspection items and may also include one or more custom inspection items. The present invention does not limit the number and types of the local examination items included in the examination item.
According to one embodiment of the invention, when the checking application finishes checking the first operating system, the checking result is saved to the server. The inspection results include one or more problem items. If the server can not be connected, the checking application stores the checking result into the mobile memory; so as to repair the problem item and to refer to the problem item later. And if the problem item is not checked when the first operating system is checked, storing the normal checking result of the first operating system in a server or a mobile memory.
And if the first operating system comprises one or more problem items, judging whether to repair each problem item according to the repair configuration. The mobile memory comprises a repair configuration, and the repair configuration comprises whether each problem item is repaired or not and a corresponding repair action. And when the problem item needs to be repaired according to the repair configuration, repairing according to the repair action.
If the problem item is to be repaired, determining a repairing behavior corresponding to the problem item according to repairing configuration; and executing the corresponding repairing action to repair the problem item. The repair actions include one or more default repair steps for the problem item.
According to one embodiment of the invention, when the problem item is a file system, a file partition system of the first operating system is repaired; such as remanufacturing a file partitioning system, etc.
According to one embodiment of the present invention, when the problem item is the first boot program, the first boot program of the first operating system is reinstalled so that the first operating system can be booted normally.
According to one embodiment of the invention, when the question item is a user permission password, the user permission password is set to a default value that conforms to the specification.
According to one embodiment of the invention, the repair configuration can be configured by self-definition as required, and whether the problem item is repaired or not and a corresponding repair mode are set so as to construct one or more self-defined repair steps. If the customized repair behavior of the network connection service is set: and starting the network connection service so as to enable the network connection service to be in an available state and repair the problem item when the problem item is checked to be the network connection service.
Fig. 4 shows a schematic diagram of a system for inspection and repair according to an exemplary embodiment of the present invention. As shown in fig. 4: after the application is checked to be started, step S410 is executed to determine whether the server can be connected, and if the server can be connected, steps S421 to S424 are executed (including step S421, step S422, step S423, and step S424): and acquiring the inspection items from the server, inspecting according to the acquired inspection items, and storing the inspection result in the server after obtaining the inspection result.
If the checking application judges that the server cannot be connected, executing steps S425 to S428 (including step S425, step S426, step S427 and step S428): and checking according to the local check items stored in the mobile memory, and storing the check result into the mobile memory (namely, the local memory) after obtaining the check result.
If the inspection result includes one or more problem items, step S430 is performed to determine whether to repair the problem items in the inspection result according to the configuration information. If the configuration information sets that the problem is to be repaired, step S440 is executed to repair each problem item according to the repair behavior of the configuration information. In the repairing process, if there is a custom repairing behavior, step S450 is executed to execute the custom repairing behavior for repairing.
According to one embodiment of the invention, computing device 100 may act as a node in a server cluster. When the node in the server cluster has a problem and the operating system cannot normally run, the node can be quickly checked and repaired according to the operating system checking method provided by the invention, so that the problem node is changed into an available node, and the service is quickly provided online.
According to one embodiment of the invention, each failed node in the server cluster may be inspected and repaired using an operating system inspection method. During checking and repairing, the problems occurring in the server cluster can be counted by storing the checking result and the repairing log, so that the common problem of the nodes in the cluster is improved, and the reliability of the server cluster is improved.
The invention discloses an operating system checking method which is suitable for being executed in a computing device. The computing device comprises a first operating system and is in communication connection with the mobile memory, and the method comprises the following steps: running a stored second operating system in the removable memory; establishing communication connection with the server according to the second operating system, and acquiring the inspection item from the server; checking the first operating system according to the checking items, and judging whether the first operating system comprises problem items; and if the first operating system comprises one or more problem items, repairing the problem items so as to normally run the first operating system. According to the invention, when the first operating system cannot run, the first operating system can be checked and problem repaired according to the second operating system in the mobile memory, so that the first operating system can run normally.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
Those skilled in the art will appreciate that the modules or units or groups of devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. Modules or units or groups in embodiments may be combined into one module or unit or group and may furthermore be divided into sub-modules or sub-units or sub-groups. All of the features disclosed in this specification, and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except that at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification may be replaced by an alternative feature serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor with the necessary instructions for carrying out the method or the method elements thus forms a device for carrying out the method or the method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as floppy diskettes, CD-ROMs, hard drives, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device. Wherein the memory is configured to store program code; the processor is configured to execute the operating system checking method of the present invention according to instructions in the program code stored in the memory.
By way of example, and not limitation, computer readable media may comprise computer storage media and communication media. Computer-readable media includes both computer storage media and communication media. Computer storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of computer readable media.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as disclosed herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to practitioners skilled in this art. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention.
Claims (9)
1. An operating system checking method, adapted to be executed in a computing device including a first operating system and communicatively coupled to a mobile storage including a repair configuration, the method comprising the steps of:
running a second operating system stored in the mobile memory;
establishing communication connection with a server according to the second operating system, and acquiring inspection items from the server, wherein the inspection items comprise one or more custom inspection items, and the custom inspection items are configured according to specific inspection requirements each time;
checking the first operating system according to the checking item, and judging whether the first operating system comprises a problem item;
if the first operating system comprises one or more problem items, judging whether to repair each problem item according to the repair configuration, wherein the repair configuration can be configured in a user-defined manner according to needs, and setting whether to repair and corresponding repair behaviors;
if the problem item needs to be repaired, determining a repairing behavior corresponding to the problem item according to the repairing configuration;
and executing the corresponding repairing action to repair the problem item.
2. The method of claim 1, wherein the method further comprises the steps of:
and if the communication connection with the server fails, checking the first operating system according to a local check item stored in the mobile memory, and judging whether the first operating system comprises a problem item.
3. The method of claim 1, wherein the check item comprises a file system, and the checking the first operating system according to the check item to determine whether the first operating system comprises a problem item comprises:
checking the file system of the first operating system, and judging whether the file system of the first operating system is abnormal or not;
and if the file system is abnormal, taking the file system as a problem item.
4. The method of claim 3, wherein the inspection item further comprises a bootstrap program, the method further comprising the steps of:
judging whether a first bootstrap program of the first operating system can normally boot and start the first operating system;
and if not, taking the first bootstrap program as a problem item.
5. The method of claim 1, wherein said performing the corresponding repair action to repair the problem item comprises the steps of:
and when the problem item is a file system, repairing the file partition system of the first operating system.
6. The method of claim 5, wherein the method further comprises the steps of:
and when the problem item is the first bootstrap program, reinstalling the first bootstrap program of the first operating system.
7. The method of claim 1, wherein the step of installing the second operating system stored in the removable memory comprises:
establishing an operating system boot partition in the mobile memory;
and installing a second bootstrap program and a kernel according to the operating system starting partition so as to load the kernel according to the second bootstrap program to run the second operating system.
8. A computing device, comprising:
one or more processors;
a memory; and
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for performing the method of any of claims 1-7.
9. A computer readable storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210818211.0A CN115016987B (en) | 2022-07-13 | 2022-07-13 | Operating system checking method, computing device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210818211.0A CN115016987B (en) | 2022-07-13 | 2022-07-13 | Operating system checking method, computing device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115016987A CN115016987A (en) | 2022-09-06 |
CN115016987B true CN115016987B (en) | 2022-11-04 |
Family
ID=83082266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210818211.0A Active CN115016987B (en) | 2022-07-13 | 2022-07-13 | Operating system checking method, computing device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115016987B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445677A (en) * | 2019-09-04 | 2021-03-05 | 中国石油化工股份有限公司 | Health state checking and repairing method of computer cluster and storage medium |
CN113904926A (en) * | 2021-09-10 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Pre-boot execution environment checking method, system, terminal and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040083357A1 (en) * | 2002-10-29 | 2004-04-29 | Sun Microsystems, Inc. | Method, system, and program for executing a boot routine on a computer system |
CN100517246C (en) * | 2006-03-14 | 2009-07-22 | 联想(北京)有限公司 | Computer remote control method and system |
CN107168819B (en) * | 2017-03-31 | 2020-02-28 | 北京奇艺世纪科技有限公司 | Method and device for restarting operating system |
CN114328067A (en) * | 2021-11-25 | 2022-04-12 | 浪潮软件集团有限公司 | Terminal equipment maintenance method and system based on domestic CPU and operating system |
CN114706708B (en) * | 2022-05-24 | 2022-08-30 | 北京拓林思软件有限公司 | Fault analysis method and system for Linux operating system |
-
2022
- 2022-07-13 CN CN202210818211.0A patent/CN115016987B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112445677A (en) * | 2019-09-04 | 2021-03-05 | 中国石油化工股份有限公司 | Health state checking and repairing method of computer cluster and storage medium |
CN113904926A (en) * | 2021-09-10 | 2022-01-07 | 苏州浪潮智能科技有限公司 | Pre-boot execution environment checking method, system, terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115016987A (en) | 2022-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6788178B2 (en) | Setting support program, setting support method and setting support device | |
US8843922B2 (en) | Cloning virtual machines based on identical hardware configuration | |
KR20110052579A (en) | Methods and systems related to offline virtual environment improvement or offline virtual environment | |
CN104915263A (en) | Process fault processing method and device based on container technology | |
US20120191963A1 (en) | BIOS Updating System, BIOS Updating Method, and Related Computer Program Product | |
US20190121717A1 (en) | Dynamic, crowd-sourced error and crash resolution for computer programs | |
JP2022100301A (en) | Method for determining potential impact on computing device by software upgrade, computer program, and update recommendation computer server (recommendation of stability of software upgrade) | |
US20090132999A1 (en) | Secure and fault-tolerant system and method for testing a software patch | |
US11556409B2 (en) | Firmware failure reason prediction using machine learning techniques | |
US12164898B2 (en) | Automated deployment of changes to applications on a cloud computing platform | |
CN113504932B (en) | Firmware data updating method and device | |
CN114860272A (en) | Operating system installation method, computing device and storage medium | |
CN117687695A (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN115617489B (en) | Operating system migration method, migration application and migration application deployment method | |
CN115658235A (en) | Cluster deployment method, computing device and storage medium | |
US20200342109A1 (en) | Baseboard management controller to convey data | |
CN113672260B (en) | Method for initializing CPU of processor | |
CN115016987B (en) | Operating system checking method, computing device and storage medium | |
US8074205B2 (en) | Binary verification service | |
CN110688130A (en) | Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment | |
US12069104B2 (en) | Dynamic management of role-based access control systems | |
CN116775061A (en) | Deployment method, device, equipment and storage medium of micro-service application | |
CN110908725B (en) | Application program starting method and device, electronic equipment and readable medium | |
CN103186403A (en) | Node replacement processing method and server system using the method | |
CN111475400A (en) | A verification method for a business platform and related equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |