Operating system startup configuration data processing method and device
By storing and retrieving the operating system's boot configuration data backup file on the baseboard control manager, the problem of operating system boot failure was solved, enabling fast and simple system recovery and retention of the latest configuration.
Patent Information
- Application Number
- CN202210650855.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-09
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2042-06-09
AI Technical Summary
Corruption of operating system boot configuration data can cause system startup failure. Even if the boot configuration data is reconstructed using existing technologies, it may still be problematic, and the system will not be able to start correctly.
The baseboard control manager stores backup files. If the operating system fails to boot, the baseboard control manager releases the backup files and calls them to ensure that the operating system can boot successfully.
By using backup files stored on the baseboard control manager, the operating system can be quickly restored in the event of a boot failure, ensuring that the system can boot successfully and quickly, and that the backup files keep the latest configuration.
Smart Images

Figure CN115202928B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the field of computers, and in particular, to an operating system startup configuration data processing method and device. BACKGROUND
[0002] When using a computer, the problem of damaged startup configuration data of an operating system is encountered. In this case, the operating system cannot be started correctly. Even if the system repair tool is used in the advanced fault repair interface to rebuild the startup configuration data, the rebuilt startup configuration data (BCD, Boot Configuration Data) can also be problematic, and the system fails to start. SUMMARY
[0003] The present disclosure provides an operating system startup configuration data processing method and device to at least solve the above technical problems in the prior art.
[0004] According to a first aspect of the present disclosure, an operating system startup configuration data processing method is provided, the method comprising:
[0005] When the operating system fails to start based on an error in the startup configuration data, a baseboard management controller acquires a backup file of the startup configuration data stored thereon;
[0006] The baseboard management controller releases the backup file, so that the backup file is called when the operating system starts.
[0007] In an implementable manner, the backup file includes a first backup file, and the first backup file is a backup file of the startup configuration data when the operating system last started successfully.
[0008] In an implementable manner, the backup file further includes a second backup file, and the second backup file is a backup file of the startup configuration data when the operating system last shut down or restarted;
[0009] When the operating system fails to start with the second backup file, the operating system is started with the first backup file.
[0010] In an implementable manner, the method further comprises:
[0011] Based on the successful startup of the operating system, system management software generates the first backup file and sends the first backup file;
[0012] The baseboard management controller receives and saves the first backup file.
[0013] In an implementable manner, the generating of the first backup file by the system management software based on the successful startup of the operating system comprises:
[0014] The baseboard management controller monitors a start state of the operating system;
[0015] When the operating system starts successfully, the baseboard management controller sends a first backup instruction;
[0016] In response to the first backup instruction, the system management software generates the first backup file; or
[0017] The system management software monitors a start state of the operating system;
[0018] When the operating system starts successfully, the system management software generates the first backup file.
[0019] In an implementation, the method further comprises:
[0020] During the start of the operating system, the baseboard management controller determines that the operating system is a specified operating system;
[0021] Based on the operating system being the specified operating system, the baseboard management controller sends the first backup instruction.
[0022] In an implementation, the method further comprises:
[0023] Based on the operating system being restarted or shut down, the system management software generates and sends the second backup file;
[0024] The baseboard management controller receives and saves the second backup file.
[0025] In an implementation, the baseboard control management releases the backup file, comprising:
[0026] The baseboard control management starts a virtual hard disk;
[0027] The baseboard control management loads the backup file to the virtual hard disk.
[0028] According to a second aspect of the present disclosure, there is provided an operating system start configuration data processing apparatus, the apparatus comprising:
[0029] An acquisition module is configured to, based on start configuration data being incorrect, when an operating system fails to start, acquire a backup file of start configuration data stored on a baseboard control management;
[0030] A release module is configured to release the backup file, so that when the operating system starts, the backup file is called.
[0031] According to a third aspect of the present disclosure, there is provided an electronic device, comprising:
[0032] at least one processor; and
[0033] a memory communicatively connected to the at least one processor; wherein
[0034] the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of the present disclosure.
[0035] According to a fourth aspect of the present disclosure, a non-transitory computer readable storage medium storing computer instructions is provided, the computer instructions being used to cause the computer to perform the method of the present disclosure.
[0036] In the operating system startup configuration data processing method of the embodiments of the present disclosure, when the operating system fails to start based on the startup configuration data error, the substrate control manager acquires a backup file of the startup configuration data stored thereon; the substrate control manager releases the backup file, so that the operating system calls the backup file when starting. The backup file of the startup configuration data is stored on the substrate control manager, which has security and ease of use. When the operating system fails to start, the substrate control manager releases the backup file, which is used to call the backup file when the operating system fails to start. The backup file is simple to call, and the operating system is convenient and fast to start.
[0037] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS
[0038] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0039] In the drawings, the same or corresponding reference numerals denote the same or corresponding parts.
[0040] Figure 1 An implementation flowchart of the operating system startup configuration data processing method of the embodiments of the present disclosure is shown;
[0041] Figure 2 A schematic diagram of a display interface of a specific application of the operating system startup configuration data processing method of the embodiments of the present disclosure is shown;
[0042] Figure 3 A schematic diagram of the composition structure of the operating system startup configuration data processing device of the embodiments of the present disclosure is shown;
[0043] Figure 4 A constituent structure schematic diagram of an electronic device is shown. DETAILED DESCRIPTION
[0044] To make the objectives, features and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present disclosure.
[0045] The embodiments of the present disclosure provide an operating system startup configuration data processing method, which is used to solve the problem of electronic device startup failure. When the operating system fails to start due to startup configuration data error, the method can simply, conveniently and quickly guide the operating system to start successfully. The electronic device applying the method of the embodiments of the present disclosure is installed with an operating system, system management software and a baseboard management controller (BMC). The electronic device applying the method of the embodiments of the present disclosure may, for example, be a server.
[0046] Referring to Figure 1 The embodiments of the present disclosure provide an operating system startup configuration data processing method, which includes:
[0047] When the operating system fails to start due to startup configuration data error, the baseboard management controller acquires a backup file of the startup configuration data stored thereon;
[0048] The baseboard management controller releases the backup file, so that the operating system calls the backup file when starting.
[0049] In the operating system startup configuration data processing method of the embodiments of the present disclosure, when the operating system fails to start due to startup configuration data error, the baseboard management controller acquires a backup file of the startup configuration data stored thereon; the baseboard management controller releases the backup file, so that the operating system calls the backup file when starting. The baseboard management controller runs independently of the operating system and has independence. After the power supply of the electronic device is powered on, the baseboard management controller can start by itself. The backup file of the startup configuration data is stored on the baseboard management controller, which has security and ease of use. When the operating system fails to start, the baseboard management controller releases the backup file, which is used to call the backup file when the operating system starts. The backup file is simple to call, and the operating system is convenient and fast to start.
[0050] In an implementation, the backup file includes a first backup file, which is a backup file of the startup configuration data when the operating system last started successfully. Using the startup configuration data when the operating system last started successfully can ensure that the operating system can start successfully, and restoring the operating system using the backup file of the startup configuration data when the operating system last started successfully can fix the operating system startup problem.
[0051] In an implementation, the backup file further includes a second backup file, which is a backup file of the startup configuration data when the operating system last shut down or restarted; and the operating system is started using the first backup file when the operating system fails to start using the second backup file. Using the startup configuration data when the operating system last shut down or restarted to guide the operating system to start can enable the operating system to maintain the latest configuration, and if the configuration of the operating system is changed after the last startup, the latest configuration is retained after the operating system is started using the second backup file, and there is no need to reconfigure the related parameters. In the embodiment of the disclosure, the substrate management controller stores at least the first backup file and the second backup file, and when the operating system fails to start based on the error of the startup configuration data, the operating system can be started using the second backup file first, so that the operating system after starting can retain the latest configuration, and when the operating system fails to start using the second backup file, the operating system can be started using the first backup file, thereby ensuring that the operating system can start successfully.
[0052] In an implementation, the operating system startup configuration data processing method of the embodiment of the disclosure includes: based on the running state of the operating system, the system management software generates a backup file of the current startup configuration data and sends the backup file; and the substrate management controller receives and stores the backup file. In the embodiment of the disclosure, according to the running state of the operating system, the system management software backs up the current startup configuration data to generate a corresponding backup file, and when the operating system fails to start based on the error of the startup configuration data, the substrate management controller can release the backup file to enable the operating system to call the backup file when starting. In the embodiment of the disclosure, based on the running state of the operating system, the startup configuration data can be automatically backed up without user operation, which avoids the situation that the backup is forgotten due to manual operation of the user, and enables the backup startup configuration data to maintain the latest configuration. The running state of the operating system includes a startup state, a startup restart, a startup shutdown, and the like. The backup file can include a first backup file and a second backup file.
[0053] In an embodiment, the operating system startup configuration data processing method of the present disclosure comprises: based on successful startup of the operating system, the system management software generates a first backup file and sends the first backup file; and the baseboard management controller receives and saves the first backup file. In the present disclosure, the system management software generates a backup file, i.e., the first backup file, of the startup configuration data each time the operating system successfully starts up, and sends the first backup file to the baseboard management controller. After receiving the first backup file, the baseboard management controller saves the first backup file to its storage area. If the baseboard management controller already stores the first backup file, the original first backup file can be updated with the latest first backup file, so that the first backup file remains up-to-date. When the operating system fails to start up based on an error in the startup configuration data, the baseboard management controller can release the first backup file, so that the operating system can call the first backup file when starting up, and successfully start up. In the present disclosure, the operating system can automatically backup the startup configuration data when the operating system is in a successful startup state, without user operation, so that the user is prevented from forgetting to backup the startup configuration data, and the backup startup configuration data can remain up-to-date.
[0054] In an embodiment, based on successful startup of the operating system, the system management software generates a first backup file, which comprises: the baseboard management controller monitors the startup state of the operating system; when the operating system successfully starts up, the baseboard management controller sends a first backup instruction; and in response to the first backup instruction, the system management software generates the first backup file. In the present disclosure, the baseboard management controller can monitor the startup state of the operating system. When the baseboard management controller monitors that the operating system successfully starts up, the baseboard management controller can instruct the system management software to backup the startup configuration data when the operating system successfully starts up, to obtain the first backup file. By monitoring the startup state of the operating system and backing up the startup configuration data based on successful startup of the operating system, the first backup file can remain up-to-date.
[0055] In an embodiment, based on successful startup of the operating system, the system management software generates a first backup file, which comprises: the system management software monitors the startup state of the operating system; and when the operating system successfully starts up, the system management software generates the first backup file. In the present disclosure, the system management software can obtain the startup state of the operating system. When the system management software monitors that the operating system successfully starts up, the system management software backs up the current startup configuration data to obtain the first backup file, and sends the first backup file to the baseboard management controller, so that the baseboard management controller can release the first backup file when the operating system fails to start up based on an error in the startup configuration data, for the operating system to call when starting up.
[0056] In an implementation, the operating system startup configuration data processing method of the embodiments of the present disclosure includes: based on operating system restart or shutdown, system management software generates and sends a second backup file; and a baseboard management controller receives and saves the second backup file. In the embodiments of the present disclosure, the system management software generates a backup file, i.e., a second backup file, of the current startup configuration data each time the operating system restarts or shuts down, and sends the second backup file to the baseboard management controller. If the baseboard management controller stores the second backup file, the original second backup file can be updated with the latest second backup file, so that the second backup file remains up-to-date. When the operating system fails to start based on startup configuration data errors, the baseboard control manager can release the second backup file, so that the operating system retains the latest configuration. In the embodiments of the present disclosure, the startup configuration data can be automatically backed up based on operating system restart or shutdown, without the need for user operation, avoiding the situation that the backup may be forgotten due to manual operation of the user, and the backed up startup configuration data can remain up-to-date.
[0057] In an implementation, based on operating system restart or shutdown, the system management software generates a second backup file, including: the baseboard management controller monitors the operating state of the operating system; when the operating system restarts or shuts down, the baseboard management controller sends a second backup instruction; and in response to the second backup instruction, the system management software generates a second backup file. In the embodiments of the present disclosure, the baseboard management controller can monitor the operating state of the operating system, and when the operating system restarts or shuts down, the baseboard management controller can instruct the system management software to backup the startup configuration data at the time of operating system restart or shutdown to obtain a second backup file. By monitoring the operating state of the operating system and backing up the current startup configuration data based on the monitoring of operating system restart or shutdown, the second backup file can remain up-to-date.
[0058] In an implementation, based on operating system restart or shutdown, the system management software generates a second backup file, including: the system management software monitors the operating state of the operating system; and when the operating system restarts or shuts down, the system management software generates a second backup file. In the embodiments of the present disclosure, the system management software can obtain a restart signal or a shutdown signal of the operating system, so as to monitor the operating system restart or shutdown. The system management software backs up the startup configuration data at the time of restart or shutdown to obtain a second backup file, and sends the second backup file to the baseboard control manager, so that the baseboard control manager can release the first backup file when the operating system fails to start based on startup configuration data errors, for calling by the operating system during startup.
[0059] In an implementation, the method further includes: in the operating system starting process, determining, by the baseboard management controller, that the operating system is a specified operating system; and based on the operating system being the specified operating system, sending, by the baseboard management controller, a first backup instruction. In the embodiment of the present disclosure, whether the operating system is the specified operating system is determined in the operating system starting process, and if the operating system is the specified operating system, other steps of the operating system starting configuration data processing method are executed, such as backup of the starting configuration data. If the operating system is not the specified operating system, the other steps of the operating system starting configuration data processing method do not need to be executed, thereby reducing resource occupation and consumption. The specified operating system may, for example, be a Windows operating system.
[0060] In the embodiment of the present disclosure, the baseboard control manager releasing the backup file may be automatically releasing the stored backup file. For example, the baseboard control manager stores a first backup file, and when the operating system fails to start based on the starting configuration data, the baseboard control manager automatically releases the first backup file, so that the operating system starts to boot using the first backup file. Alternatively, the baseboard control manager stores a first backup file and a second backup file, and the baseboard control manager releases the second backup file first. If the second backup file still fails to boot, the first backup file is released, so that the operating system starts to boot using the first backup file, thereby ensuring the success of the operating system starting. See Figure 2 In the embodiment of the present disclosure, the baseboard control manager releasing the backup file may be releasing the stored backup file based on a user selection operation. For example, when the operating system fails to start based on the starting configuration data, the baseboard control manager provides a selection interface, and the user can select a backup file on the selection interface. The baseboard control manager releases the corresponding backup file in response to the user selection operation. The selection interface may, for example, be provided in the form of a pop-up window.
[0061] In an implementation, the baseboard control manager releasing the backup file includes: starting, by the baseboard control manager, a virtual hard disk; and loading, by the baseboard control manager, the backup file to the virtual hard disk. The backup file is released by loading the backup file to the virtual hard disk, and the backup file loaded to the virtual hard disk can be used to start the operating system when the operating system starts. The backup file loaded to the virtual hard disk may, for example, be automatically executed by the baseboard control manager, or may, for example, be executed in response to a user selection operation.
[0062] In the embodiment of the present disclosure, the baseboard control manager releasing the backup file may be automatically releasing the stored backup file. For example, the baseboard control manager stores a first backup file, and when the operating system fails to start based on the starting configuration data, the baseboard control manager automatically releases the first backup file, so that the operating system starts to boot using the first backup file. Alternatively, the baseboard control manager stores a first backup file and a second backup file, and the baseboard control manager releases the second backup file first. If the second backup file still fails to boot, the first backup file is released, so that the operating system starts to boot using the first backup file, thereby ensuring the success of the operating system starting. See Figure 3 In the embodiment of the present disclosure, the baseboard control manager releasing the backup file may be releasing the stored backup file based on a user selection operation. For example, when the operating system fails to start based on the starting configuration data, the baseboard control manager provides a selection interface, and the user can select a backup file on the selection interface. The baseboard control manager releases the corresponding backup file in response to the user selection operation. The selection interface may, for example, be provided in the form of a pop-up window. In the embodiment of the present disclosure, the baseboard control manager releasing the backup file may be automatically releasing the stored backup file. For example, the baseboard control manager stores a first backup file, and when the operating system fails to start based on the starting configuration data, the baseboard control manager automatically releases the first backup file, so that the operating system starts to boot using the first backup file. Alternatively, the baseboard control manager stores a first backup file and a second backup file, and the baseboard control manager releases the second backup file first. If the second backup file still fails to boot, the first backup file is released, so that the operating system starts to boot using the first backup file, thereby ensuring the success of the operating system starting. See
[0063] In the operating system startup configuration data processing apparatus, when the operating system fails to start based on the startup configuration data error, the obtaining module obtains a backup file of the startup configuration data stored by the baseboard control manager; the releasing module releases the backup file, so that the backup file is called when the operating system starts. The baseboard control manager is independent of the operating system and has independence. After the power supply of the electronic device is powered on, the baseboard control manager can start by itself. The backup file of the startup configuration data is stored on the baseboard control manager, and has safety and ease of use. When the operating system fails to start, the backup file stored by the baseboard control manager is released and used to call the operating system to start. The backup file is simple to call, and the operating system is convenient and fast to start.
[0064] In an implementation manner, the backup file includes a first backup file, and the first backup file is a backup file of the startup configuration data when the operating system last starts successfully.
[0065] In an implementation manner, the backup file further includes a second backup file, and the second backup file is a backup file of the startup configuration data when the operating system last shuts down or restarts; and the first backup file is used to start the operating system when the second backup file fails to start the operating system.
[0066] In an implementation manner, the operating system startup configuration data processing apparatus includes: based on the running state of the operating system, the system management software generates a backup file of current startup configuration data, and sends the backup file; and the baseboard management controller receives and saves the backup file.
[0067] In an implementation manner, the operating system startup configuration data processing apparatus includes: based on the operating system starting successfully, the system management software generates a first backup file, and sends the first backup file; and the baseboard management controller receives and saves the first backup file.
[0068] In an implementation manner, based on the operating system starting successfully, the system management software generates a first backup file, including: the baseboard management controller monitors the startup state of the operating system; when the operating system starts successfully, the baseboard management controller sends a first backup instruction; and in response to the first backup instruction, the system management software generates the first backup file.
[0069] In an implementation manner, based on the operating system starting successfully, the system management software generates a first backup file, including: the system management software monitors the startup state of the operating system; and when the operating system starts successfully, the system management software generates the first backup file.
[0070] In an embodiment, the operating system startup configuration data processing apparatus of the present disclosure comprises: based on the operating system being restarted or shut down, the system management software generates and sends a second backup file; and the baseboard management controller receives and saves the second backup file.
[0071] In an embodiment, the system management software generates the second backup file based on the operating system being restarted or shut down, comprising: the baseboard management controller monitors the running state of the operating system; when the operating system is restarted or shut down, the baseboard management controller sends a second backup instruction; and in response to the second backup instruction, the system management software generates the second backup file.
[0072] In an embodiment, the system management software generates the second backup file based on the operating system being restarted or shut down, comprising: the system management software monitors the running state of the operating system; and when the operating system is restarted or shut down, the system management software generates the second backup file.
[0073] In an embodiment, the method of the present disclosure further comprises: during the operating system startup process, the baseboard management controller determines that the operating system is a designated operating system; and based on the operating system being the designated operating system, the baseboard management controller sends a first backup instruction.
[0074] In an embodiment of the present disclosure, the baseboard control manager releasing the backup file can be automatically releasing the stored backup file. Alternatively, the baseboard control manager can release the stored backup file based on a user selection operation. When the operating system fails to start based on the startup configuration data, the baseboard control manager provides a selection interface, and a user can select a backup file in the selection interface. In response to a user selection operation, the baseboard control manager releases the corresponding backup file.
[0075] In an embodiment, the baseboard control manager releasing the backup file comprises: the baseboard control manager starts a virtual hard disk; and the baseboard control manager loads the backup file to the virtual hard disk.
[0076] The operating system startup configuration data processing apparatus of the present disclosure can implement the methods of the above-mentioned embodiments, and the descriptions of the above-mentioned method embodiments can be used to understand and explain the apparatus of the present disclosure. For the purpose of brevity and saving space, no further description is given here.
[0077] According to embodiments of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium.
[0078] Figure 4A schematic block diagram of an example electronic device 400 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0079] like Figure 4 As shown, device 400 includes a computing unit 401, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 402 or a computer program loaded from storage unit 408 into random access memory (RAM) 403. RAM 403 may also store various programs and data required for the operation of device 400. The computing unit 401, ROM 402, and RAM 403 are interconnected via bus 404. Input / output (I / O) interface 405 is also connected to bus 404.
[0080] Multiple components in device 400 are connected to I / O interface 405, including: input unit 406, such as keyboard, mouse, etc.; output unit 407, such as various types of monitors, speakers, etc.; storage unit 408, such as disk, optical disk, etc.; and communication unit 409, such as network card, modem, wireless transceiver, etc. Communication unit 409 allows device 400 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0081] The computing unit 401 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 401 performs various methods and processes described above, such as the operating system startup configuration data processing method. For example, in some embodiments, the operating system startup configuration data processing method can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 408. In some embodiments, part or all of the computer program can be loaded and / or installed onto the device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded onto the RAM 403 and executed by the computing unit 401, one or more steps of the operating system startup configuration data processing method described above can be performed. Alternatively, in other embodiments, the computing unit 401 can be configured to perform the operating system startup configuration data processing method by any other appropriate means, such as by means of firmware.
[0082] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0083] Program code for carrying out methods of the present disclosure can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0084] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] 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 the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; 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 can be received in any form, including acoustic, speech, or tactile input.
[0086] 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 a local area network (LAN), a wide area network (WAN), and the Internet.
[0087] The computer system can 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 can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0088] It should be understood that the various forms of flow shown above can be used to reorder, add, or delete steps. For example, the steps described in the present disclosure can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present disclosure can be achieved, which are not limited herein.
[0089] In addition, the terms "first", "second" are only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined with "first", "second" can explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "multiple" is two or more, unless otherwise specifically limited.
[0090] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present disclosure, which should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. An operating system boot configuration data processing method, characterized by, The method comprises: When the operating system fails to start based on a start configuration data error, the baseboard management controller acquires a backup file of start configuration data stored thereon; The baseboard management controller releases the backup file, so that the backup file is called when the operating system starts.
2. The method of claim 1, wherein, The backup file comprises a first backup file, which is a backup file of start configuration data when the operating system last started successfully.
3. The method of claim 2, wherein: The backup file further comprises a second backup file, which is a backup file of start configuration data when the operating system last shut down or restarted; When the operating system fails to start using the second backup file, the operating system is started using the first backup file.
4. The method of claim 2, wherein, The method further comprises: Based on successful start of the operating system, the system management software generates the first backup file and sends the first backup file; The baseboard management controller receives and saves the first backup file.
5. The method of claim 4, wherein, The baseboard management controller monitors the start state of the operating system; When the operating system starts successfully, the baseboard management controller sends a first backup instruction; In response to the first backup instruction, the system management software generates the first backup file; or The system management software monitors the start state of the operating system; When the operating system starts successfully, the system management software generates the first backup file. The method further comprises:
6. The method of claim 5, wherein, During the start of the operating system, the baseboard management controller determines that the operating system is a specified operating system; Based on the operating system being the specified operating system, the baseboard management controller sends the first backup instruction. The method further comprises:
7. The method of claim 3, wherein, Based on restart or shutdown of the operating system, the system management software generates and sends the second backup file; The baseboard management controller receives and saves the second backup file. The baseboard management controller releases the backup file, comprising:
8. The method of claim 1, wherein, The baseboard management controller starts a virtual hard disk; The baseboard management controller loads the backup file to the virtual hard disk. The apparatus comprises:
9. An operating system boot configuration data processing device, characterized in that, An acquisition module configured to acquire, when the operating system fails to start based on a start configuration data error, a backup file of start configuration data stored on a baseboard management controller; A release module configured to release the backup file, so that the backup file is called when the operating system starts. Comprise:
10. An electronic device, comprising: At least one processor; And A memory connected in communication with the at least one processor; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-8.
Citation Information
Patent Citations
Operation system starting method and device, and terminal
CN105975864A
Method and device for restoring switch
CN111182033A