CN111736909B - Method and device for starting operating system, computer equipment and storage medium - Google Patents

Method and device for starting operating system, computer equipment and storage medium Download PDF

Info

Publication number
CN111736909B
CN111736909B CN202010590719.0A CN202010590719A CN111736909B CN 111736909 B CN111736909 B CN 111736909B CN 202010590719 A CN202010590719 A CN 202010590719A CN 111736909 B CN111736909 B CN 111736909B
Authority
CN
China
Prior art keywords
starting
preset
mode
configuration file
file
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
Application number
CN202010590719.0A
Other languages
Chinese (zh)
Other versions
CN111736909A (en
Inventor
田玉凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010590719.0A priority Critical patent/CN111736909B/en
Publication of CN111736909A publication Critical patent/CN111736909A/en
Priority to PCT/CN2020/122421 priority patent/WO2021120830A1/en
Application granted granted Critical
Publication of CN111736909B publication Critical patent/CN111736909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]

Abstract

The embodiment of the invention discloses a starting method and device of an operating system, computer equipment and a storage medium. The application relates to the field of network and blockchain technologies, which includes: starting a pre-starting execution environment; setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage; acquiring an IP address from a server in a preset mode; acquiring a preset starting mode of a preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on an IP address and the preset starting mode; acquiring a preset starting configuration file according to the preset starting guide file; and starting the operating system based on the preset starting configuration file. The starting process of the whole operating system in the embodiment of the application can be compatible with different preset starting modes, so that resources can be saved to a certain extent.

Description

Method and device for starting operating system, computer equipment and storage medium
Technical Field
The present invention relates to the field of networks and blockchain technologies, and in particular, to a method and apparatus for starting an operating system, a computer device, and a storage medium.
Background
The pre-boot execution environment (Preboot Execute Environment, abbreviated as PXE) is a currently mainstream technology, and is mainly applied to clients/servers (clients/servers, abbreviated as C/S) for downloading a boot image file from a remote Server through a network, where the boot image file may be a boot program or an operating system, and the Client guides the operating system pre-installed in the remote Server according to the boot image file, so as to implement starting of the operating system on the Client.
BIOS (Basic Input Output System ) is a set of programs solidified on a ROM chip on the main board in the computer, and stores the most important basic input output program, system setting information, self-checking program after starting up and system self-starting program of the computer, and provides the bottommost and most direct hardware setting and control program for the computer.
However, the existing methods for starting the operating system based on the PXE mode are mainly two types, namely, a UEFI BIOS starting mode and an legalcy BIOS starting mode, and compared with the legalcy BIOS starting mode, the UEFI BIOS starting mode bypasses a self-checking process during starting, so that the starting speed can be improved, and as the UEFI BIOS starting mode is raised, many enterprises start to upgrade the legalcy BIOS starting mode to the UEFI BIOS starting mode, but in the upgrading process, the two modes are realized by adopting a set of environments respectively, so that resources are wasted, and management is inconvenient.
Disclosure of Invention
The embodiment of the invention provides a starting method and device of an operating system, computer equipment and a storage medium, aiming at solving the problem of starting resource waste of the existing operating system.
In a first aspect, an embodiment of the present invention provides a method for starting an operating system, including:
starting a pre-starting execution environment;
setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage;
acquiring an IP address from a server in a preset mode;
acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode;
acquiring a preset starting configuration file according to the preset starting guide file;
and starting the operating system based on the preset starting configuration file.
In a second aspect, an embodiment of the present invention further provides a device for starting an operating system, including:
the first starting unit is used for starting the pre-starting execution environment;
the writing unit is used for setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode and writing the preset starting mode into a preset storage area for storage;
the first acquisition unit is used for acquiring the IP address from the server in a preset mode;
the second acquisition unit is used for acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode;
the third acquisition unit is used for acquiring a preset starting configuration file according to the preset starting guide file;
and the second starting unit is used for starting the operating system based on the preset starting configuration file.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the method when executing the computer program.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements the above method.
The embodiment of the invention provides a starting method and device of an operating system, computer equipment and a storage medium. Wherein the method comprises the following steps: starting a pre-starting execution environment; setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage; acquiring an IP address from a server in a preset mode; acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode; acquiring a preset starting configuration file according to the preset starting guide file; and starting the operating system based on the preset starting configuration file. According to the technical scheme, the preset starting guide file is acquired according to the preset starting mode and the IP address, the preset starting configuration file is acquired according to the preset starting guide file, and finally the operating system is started based on the acquired preset starting configuration file, so that the starting process of the whole operating system can be compatible with different preset starting modes, and resources can be saved to a certain extent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of a starting method of an operating system according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for starting an operating system according to an embodiment of the present invention;
FIG. 3 is a schematic sub-flowchart of a method for starting an operating system according to an embodiment of the present invention;
FIG. 4 is a schematic sub-flowchart of a method for starting an operating system according to an embodiment of the present invention;
FIG. 5 is a schematic sub-flowchart of a method for starting an operating system according to an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a starting device of an operating system according to an embodiment of the present invention;
FIG. 7 is a schematic block diagram of a write unit of a boot device of an operating system according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a second obtaining unit of a starting device of an operating system according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a third obtaining unit of a starting device of an operating system according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a third obtaining subunit of a starting device of an operating system according to an embodiment of the present invention; and
fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a startup method of an operating system according to an embodiment of the present invention. The starting method of the operating system in the embodiment of the invention can be applied to the terminal, and can be realized by a software program configured on the terminal. The terminal communicates with the server, so that a user operates the terminal to acquire an IP address distributed by the server and a preset starting guide file according to the IP address, further acquires a preset starting configuration file according to the preset starting guide file, and finally completes starting of an operating system on the server based on the preset starting configuration file. The terminal may be a terminal device having a PXE function, such as a desktop computer, a laptop computer, a tablet computer, etc., which is not particularly limited herein. In addition, in fig. 1, the number of the terminals and the users is one, and it is understood that in the practical application process, the number of the terminals and the users may be plural, and fig. 1 is merely illustrative.
Referring to fig. 2, fig. 2 is a flowchart of a method for booting an operating system according to an embodiment of the invention. As shown in fig. 2, the method includes the following steps S100-S150.
S100, starting a pre-starting execution environment.
In this embodiment, to start the operating system on the server, the terminal needs to start the pre-boot execution environment first, and then, after performing a system operation based on the pre-boot execution environment, the terminal can start the operating system.
S110, setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage.
In this embodiment, after the pre-boot execution environment is started, the start of the BIOS in the pre-boot execution environment is set to a preset start mode, and the preset start mode is written into a preset storage area for storage. The preset starting mode comprises a UEFI starting mode and a LEGACY starting mode. The start sequence of the LEGACY start mode is as follows: starting-BIOS initialization-BIOS self-checking-booting an operating system-entering a system. Starting sequence of UEFI start mode: boot-up-UEFI initialization-booting the operating system-entering the operating system boot-up at a faster rate than the legalcy boot-up.
Referring to fig. 3, in an embodiment, for example, in the present embodiment, the step S110 includes the following steps S111-S112.
S111, setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, wherein the preset starting mode comprises a UEFI starting mode and a LEGACY starting mode.
S112, writing the preset starting mode into a network card register for storage.
In this embodiment, since the preset startup mode includes a UEFI startup mode and a legalcy startup mode, in practical application, both the UEFI startup mode and the legalcy startup mode are written into the network card register for storage.
Note that in this embodiment, file names written into the network card register in the legalcy startup mode and the UEFI startup mode are gpxelinux.0 and bootx64.Efi, respectively.
S120, acquiring the IP address from the server in a preset mode.
In this embodiment, after the starting of the BIOS in the pre-starting execution environment is set to a preset starting mode and the preset starting mode is written into a preset storage area to be stored, an IP address is obtained from a server in a preset manner. The preset mode is that the terminal sends a broadcast message to the server, wherein the broadcast message carries MAC address information of the terminal, the server receives a message demand sent by the terminal, distributes the message demand to a corresponding IP address of the terminal, and associates the IP address with the MAC address information of the terminal, so that repeated distribution is avoided. After the terminal acquires the IP address, the terminal acquires the preset starting mode stored in the preset storage area, and acquires a preset starting guide file from the server through a common text transmission protocol based on the IP address and the preset starting mode.
It should be noted that, in other embodiments, the preset manner may be that the terminal obtains the IP address from the server through DHCP (Dynamic Host Configuration Protocol ) based on the network component, which is not limited herein.
S130, acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode.
In this embodiment, after the IP address is obtained from the server by broadcasting the message, the preset start-up guide file may be obtained from the server by the normal text transmission protocol based on the obtained IP address, UEFI start-up mode and legalcy start-up mode.
Referring to fig. 4, in an embodiment, for example, in the present embodiment, the step S130 includes the following steps S131-S133.
S131, acquiring the preset starting mode stored in the preset storage area, judging whether the preset starting mode is a UEFI starting mode, executing the step S132 if the preset starting mode is the UEFI starting mode, otherwise executing the step S133.
S132, acquiring a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode.
S133, acquiring a second preset starting guide file corresponding to the LEGACY starting mode from a server through a common text transmission protocol based on the IP address and the LEGACY starting mode.
In this embodiment, the preset starting mode stored in the preset storage area is obtained, and based on the IP address and the preset starting mode, a preset starting guide file is obtained from a server through a common text transmission protocol. Specifically, the preset starting mode stored in the preset storage area is obtained, and whether the preset starting mode is a UEFI starting mode or not is judged; if the preset starting mode is the UEFI starting mode, acquiring a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode; if the preset starting mode is not the UEFI starting mode, and the preset starting mode is the LEGACY starting mode under the condition that the preset starting mode is only the UEFI starting mode and the LEGACY starting mode, acquiring a second preset starting guide file corresponding to the LEGACY starting mode from a server through a common text transmission protocol based on the IP address and the LEGACY starting mode. In this embodiment, the preset startup mode stored in the preset storage area is obtained and whether the preset startup mode is a UEFI startup mode is determined, that is, whether the preset startup mode is a UEFI startup mode is obtained and whether the preset startup mode is a UEFI startup mode is determined, that is, whether the file name stored in the network card register is bootx64.Efi is determined, if the file name in the network card register is not bootx64.Efi, it is indicated that the file name stored in the network card register is gpxelinux 0, and it is indicated that the preset startup mode is a legac startup mode.
It should be noted that, the first preset starting guide file and the second preset starting guide file stored on the server are recorded with a download address for downloading the preset starting configuration file, and the preset starting configuration file can be obtained through the download address. The first preset starting guide file and the second preset starting guide file stored on the server can be uploaded to the blockchain, and the first preset starting guide file and the second preset starting guide file are acquired from the blockchain when the first preset starting guide file and the second preset starting guide file are needed to be used. Corresponding abstract information is obtained based on the first preset starting guide file and the second preset starting guide file, specifically, the abstract information is obtained by carrying out hash processing on the first preset starting guide file and the second preset starting guide file, for example, the abstract information is obtained by processing by using a sha256s algorithm. Uploading summary information to the blockchain can ensure its security and fair transparency to the user. The user equipment can download the summary information from the blockchain so as to verify whether the differentiated information and the updated pre-stored configuration information are tampered. The blockchain referred to in this example is a novel mode of application for computer technology such as distributed data storage, point-to-point transmission, consensus mechanisms, encryption algorithms, and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block.
And S140, acquiring a preset starting configuration file according to the preset starting guide file.
In this embodiment, a preset start configuration file is obtained according to the preset start guide file. Specifically, a preset starting configuration file is obtained according to the first preset starting guide file or the second preset starting guide file, wherein the preset starting configuration file is stored in the terminal, and the preset starting configuration file comprises a preset custom starting configuration file and a preset default starting configuration file.
Referring to fig. 5, in an embodiment, for example, in the present embodiment, the step S140 includes the following steps S141-S143.
S141, judging whether a preset custom starting configuration file exists, if so, executing a step S142, otherwise, executing a step S143.
S142, acquiring the preset custom starting configuration file according to the first preset starting guide file or the second preset starting guide file.
S143, acquiring the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file.
In this embodiment, whether a preset custom start configuration file exists is determined; if the preset custom starting configuration file exists, acquiring the preset custom starting configuration file according to the first preset starting guide file or the second preset starting guide file; if the preset custom starting configuration file does not exist, indicating that the preset starting configuration file is a preset default starting file, acquiring the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file. In this embodiment, the preset custom starting configuration file is a custom starting configuration file defined by the user, for example, a custom starting configuration file named 01-MAC, and the custom starting configuration file is compatible with two starting configuration files of a UEFI starting mode and a LEGACY starting mode, so that the two starting modes can guide the same starting configuration file, and the working efficiency is improved. The Default startup configuration file is a Default startup configuration file of the system, for example, a Default startup configuration file named Default. It should be noted that, the preset custom starting configuration file and the preset default starting configuration file both record the storage paths of the kernel file and the system file required for starting the operating system, so that the starting of the operating system can be completed through the preset custom starting configuration file and the preset default starting configuration file.
S150, starting the operating system based on the preset starting configuration file.
In this embodiment, the operating system may be started based on the obtained preset custom startup configuration file or the preset default startup configuration file. Specifically, a preset custom starting configuration file or a preset default starting configuration file is queried, and a storage path of a kernel file and a system file stored on the terminal is obtained, so that the kernel file and the system file required by starting an operating system are found, and further the starting of the operating system on the terminal is completed.
Fig. 6 is a schematic block diagram of a starting device 200 of an operating system according to an embodiment of the present invention. As shown in fig. 6, the present invention further provides a starting device 200 of an operating system, corresponding to the above starting method of the operating system. The starting device 200 of the operating system includes a unit for performing the starting method of the operating system described above, and may be configured in a terminal. Specifically, referring to fig. 6, the booting device 200 of the operating system includes a first booting unit 201, a writing unit 202, a first obtaining unit 203, a second obtaining unit 204, a third obtaining unit 205, and a second booting unit 206.
Wherein, the first starting unit 201 is used for starting the pre-starting execution environment; the writing unit 202 is configured to set the start of the BIOS in the pre-boot execution environment to a preset start mode and write the preset start mode into a preset storage area for storage; the first obtaining unit 203 is configured to obtain an IP address from a server in a preset manner; the second obtaining unit 204 is configured to obtain the preset startup mode stored in the preset storage area, and obtain, based on the IP address and the preset startup mode, a preset startup guide file from a server through a common text transmission protocol; the third obtaining unit 205 is configured to obtain a preset starting configuration file according to the preset starting guide file; the second starting unit 206 is configured to start the operating system based on the preset starting configuration file.
In some embodiments, for example, in the present embodiment, as shown in fig. 7, the writing unit 202 includes a setting unit 2021 and a writing subunit 2022.
The setting unit 2021 is configured to set a start of the BIOS in the pre-boot execution environment to a preset start mode, where the preset start mode includes a UEFI start mode and a legalcy start mode; the writing subunit 2022 is configured to write the preset startup mode into a network card register for storing.
In some embodiments, for example, in the present embodiment, as shown in fig. 8, the second obtaining unit 204 includes a first judging unit 2041, a first obtaining subunit 2042, and a second obtaining subunit 2043.
The first judging unit 2041 is configured to obtain the preset starting mode stored in the preset storage area and judge whether the preset starting mode is a UEFI starting mode; the first obtaining subunit 2042 is configured to obtain, if the preset starting mode is the UEFI starting mode, a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transfer protocol based on the IP address and the UEFI starting mode; the second obtaining subunit 2043 is configured to obtain, if the preset startup mode is not the UEFI startup mode, a second preset startup guide file corresponding to the legalcy startup mode from a server through a normal text transfer protocol based on the IP address and the legalcy startup mode.
In some embodiments, for example, the present embodiment, as shown in fig. 9, the third acquiring unit 205 includes a third acquiring subunit 2051.
The third obtaining subunit 2051 is configured to obtain a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file, where the preset starting configuration file includes a preset custom starting configuration file and a preset default starting configuration file.
In some embodiments, for example, in the present embodiment, as shown in fig. 10, the third acquiring subunit 2051 includes a second judging unit 2052, a fourth acquiring subunit 2053, and a fifth acquiring subunit 2054.
The second judging unit 2052 is configured to judge whether a preset custom start configuration file exists; the fourth obtaining subunit 2053 is configured to obtain, if the preset custom starting configuration file exists, the preset custom starting configuration file according to the first preset starting guide file or the second preset starting guide file; the fifth obtaining subunit 2054 is configured to obtain the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file if the preset custom starting configuration file does not exist.
The starting means of the operating system described above may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 11.
Referring to fig. 11, fig. 11 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 300 is a terminal, and the terminal may be an electronic device with a communication function, such as a desktop computer, a laptop computer, a tablet computer, and the like.
With reference to FIG. 11, the computer device 300 includes a processor 302, a memory, and a network interface 305, which are connected by a system bus 301, wherein the memory may include a non-volatile storage medium 503 and an internal memory 304.
The non-volatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, may cause the processor 302 to perform a method of operating system boot.
The processor 302 is used to provide computing and control capabilities to support the operation of the overall computer device 300.
The internal memory 304 provides an environment for the execution of a computer program 3032 in the non-volatile storage medium 303, which computer program 3032, when executed by the processor 302, causes the processor 302 to perform a method of starting an operating system.
The network interface 305 is used for network communication with other devices. Those skilled in the art will appreciate that the architecture shown in fig. 11 is merely a block diagram of a portion of the architecture in connection with the present application and is not intended to limit the computer device 300 to which the present application is applied, and that a particular computer device 300 may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 302 is configured to execute a computer program 3032 stored in a memory to implement the following steps: starting a pre-starting execution environment; setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage; acquiring an IP address from a server in a preset mode; acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode; acquiring a preset starting configuration file according to the preset starting guide file; and starting the operating system based on the preset starting configuration file.
In some embodiments, for example, in this embodiment, when the step of setting the start of the BIOS in the pre-boot execution environment to a preset start mode and writing the preset start mode into a preset storage area for storage is implemented, the processor 302 specifically implements the following steps: setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, wherein the preset starting mode comprises a UEFI starting mode and a LEGACY starting mode; writing the preset starting mode into a network card register for storage.
In some embodiments, for example, in this embodiment, when the step of obtaining the preset startup mode stored in the preset storage area by the processor 302 and obtaining the preset startup boot file from the server through the plain text transport protocol based on the IP address and the preset startup mode, the following steps are specifically implemented: acquiring the preset starting mode stored in the preset storage area and judging whether the preset starting mode is a UEFI starting mode or not; if the preset starting mode is the UEFI starting mode, acquiring a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode; and if the preset starting mode is not the UEFI starting mode, acquiring a second preset starting guide file corresponding to the LEGACY starting mode from a server through a common text transmission protocol based on the IP address and the LEGACY starting mode.
In some embodiments, for example, in this embodiment, when implementing the step of obtaining the preset start-up profile according to the preset start-up guide file, the processor 302 specifically implements the following steps: acquiring a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file, wherein the preset starting configuration file comprises a preset custom starting configuration file and a preset default starting configuration file.
In some embodiments, for example, in this embodiment, when the processor 302 obtains the preset start configuration file according to the first preset start guide file or the second preset start guide file, where the preset start configuration file includes a preset custom start configuration file and a preset default start configuration file, the following steps are specifically implemented: judging whether a preset custom starting configuration file exists or not; if the preset custom starting configuration file exists, acquiring the preset custom starting configuration file according to the first preset starting guide file or the second preset starting guide file; and if the preset custom starting configuration file does not exist, acquiring the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file.
It should be appreciated that in embodiments of the present application, the processor 302 may be a central processing unit (Central Processing Unit, CPU), the processor 302 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program may be stored in a storage medium that is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer readable storage medium. The storage medium stores a computer program. The computer program, when executed by a processor, causes the processor to perform the steps of: starting a pre-starting execution environment; setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, and writing the preset starting mode into a preset storage area for storage; acquiring an IP address from a server in a preset mode; acquiring the preset starting mode stored in the preset storage area, and acquiring a preset starting guide file from a server through a common text transmission protocol based on the IP address and the preset starting mode; acquiring a preset starting configuration file according to the preset starting guide file; and starting the operating system based on the preset starting configuration file.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the storing step of setting the start of the BIOS in the pre-boot execution environment to a preset start mode and writing the preset start mode into a preset storage area, the following steps are specifically implemented: setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, wherein the preset starting mode comprises a UEFI starting mode and a LEGACY starting mode; writing the preset starting mode into a network card register for storage.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the step of obtaining the preset startup mode stored in the preset storage area, based on the IP address and the preset startup mode, obtaining a preset startup boot file from a server through a normal text transfer protocol, specifically implemented is the following steps: acquiring the preset starting mode stored in the preset storage area and judging whether the preset starting mode is a UEFI starting mode or not; if the preset starting mode is the UEFI starting mode, acquiring a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode; and if the preset starting mode is not the UEFI starting mode, acquiring a second preset starting guide file corresponding to the LEGACY starting mode from a server through a common text transmission protocol based on the IP address and the LEGACY starting mode.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to implement the step of obtaining the preset start-up profile according to the preset start-up guide file, the following steps are specifically implemented: acquiring a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file, wherein the preset starting configuration file comprises a preset custom starting configuration file and a preset default starting configuration file.
In some embodiments, for example, in this embodiment, when the processor executes the computer program to obtain the preset start configuration file according to the first preset start guide file or the second preset start guide file, the preset start configuration file includes a preset custom start configuration file and a preset default start configuration file, the following steps are specifically implemented: judging whether a preset custom starting configuration file exists or not; if the preset custom starting configuration file exists, acquiring the preset custom starting configuration file according to the first preset starting guide file or the second preset starting guide file; and if the preset custom starting configuration file does not exist, acquiring the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention.
In the foregoing embodiments, the descriptions of the embodiments are focused on, and for those portions of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (7)

1. A method for starting an operating system, comprising:
starting a pre-starting execution environment;
setting the starting of the BIOS in the pre-starting execution environment as a preset starting mode, wherein the preset starting mode comprises a UEFI starting mode and a LEGACY starting mode;
writing the preset starting mode into a network card register for storage;
acquiring an IP address from a server in a preset mode;
acquiring the preset starting mode stored in a preset storage area and judging whether the preset starting mode is a UEFI starting mode or not;
if the preset starting mode is the UEFI starting mode, acquiring a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode;
if the preset starting mode is not the UEFI starting mode, acquiring a second preset starting guide file corresponding to the LEGACY starting mode from a server through a common text transmission protocol based on the IP address and the LEGACY starting mode;
acquiring a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file;
and starting the operating system based on the preset starting configuration file.
2. The method of claim 1, wherein the obtaining a preset start-up profile from the first preset start-up profile or the second preset start-up profile comprises:
acquiring a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file, wherein the preset starting configuration file comprises a preset custom starting configuration file and a preset default starting configuration file.
3. The method according to claim 2, wherein the obtaining a preset start-up profile according to the first preset start-up profile or the second preset start-up profile comprises:
judging whether a preset custom starting configuration file exists or not;
if the preset custom starting configuration file exists, the preset custom starting configuration file is obtained according to the first preset starting guide file or the second preset starting guide file.
4. The method of claim 3, wherein after determining whether the preset custom boot configuration file exists, further comprising:
and if the preset custom starting configuration file does not exist, acquiring the preset default starting configuration file according to the first preset starting guide file or the second preset starting guide file.
5. A starting device of an operating system, comprising:
the first starting unit is used for starting the pre-starting execution environment;
the setting unit is used for setting the starting of the BIOS in the pre-starting execution environment to be a preset starting mode, wherein the preset starting mode comprises a UEFI starting mode and a LEGACY starting mode;
the writing subunit is used for writing a preset starting mode into the network card register for storage;
the first acquisition unit is used for acquiring the IP address from the server in a preset mode;
the first judging unit is used for acquiring the preset starting mode stored in the preset storage area and judging whether the preset starting mode is a UEFI starting mode or not;
the first obtaining subunit is configured to obtain, if the preset starting mode is the UEFI starting mode, a first preset starting guide file corresponding to the UEFI starting mode from a server through a common text transmission protocol based on the IP address and the UEFI starting mode;
a second obtaining subunit, configured to obtain, if the preset starting mode is not the UEFI starting mode, a second preset starting guide file corresponding to the legalcy starting mode from a server through a common text transmission protocol based on the IP address and the legalcy starting mode;
the third acquisition unit is used for acquiring a preset starting configuration file according to the first preset starting guide file or the second preset starting guide file;
and the second starting unit is used for starting the operating system based on the preset starting configuration file.
6. A computer device, characterized in that it comprises a memory on which a computer program is stored and a processor which, when executing the computer program, implements the method according to any of claims 1-4.
7. A computer readable storage medium, characterized in that the storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-4.
CN202010590719.0A 2020-06-24 2020-06-24 Method and device for starting operating system, computer equipment and storage medium Active CN111736909B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010590719.0A CN111736909B (en) 2020-06-24 2020-06-24 Method and device for starting operating system, computer equipment and storage medium
PCT/CN2020/122421 WO2021120830A1 (en) 2020-06-24 2020-10-21 Method and apparatus for launching operating system, computer device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010590719.0A CN111736909B (en) 2020-06-24 2020-06-24 Method and device for starting operating system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111736909A CN111736909A (en) 2020-10-02
CN111736909B true CN111736909B (en) 2023-07-14

Family

ID=72652073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010590719.0A Active CN111736909B (en) 2020-06-24 2020-06-24 Method and device for starting operating system, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN111736909B (en)
WO (1) WO2021120830A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736909B (en) * 2020-06-24 2023-07-14 平安科技(深圳)有限公司 Method and device for starting operating system, computer equipment and storage medium
CN113110883B (en) * 2021-06-11 2021-10-15 北京百度网讯科技有限公司 Starting method, device, equipment and storage medium of block chain system
CN114691227A (en) * 2022-04-25 2022-07-01 紫光计算机科技有限公司 Multi-mode starting method and device of BIOS (basic input output System), electronic equipment and storage medium
CN117539558A (en) * 2024-01-08 2024-02-09 山东比特智能科技股份有限公司 Preparation method, system, device and storage medium of singlechip operation file

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009032445A1 (en) * 2007-08-01 2009-03-12 Devicevm, Inc. Integration model for instant-on environment
US20100169629A1 (en) * 2008-12-31 2010-07-01 Lenovo (Beijing) Limited Method for configuring computer by bios, server, computer, system startup method and computer system
CN108769267B (en) * 2018-07-12 2021-10-01 成都傲梅科技有限公司 Method for booting ISO and WIM image files in PXE protocol-based network starting mode
US10884759B2 (en) * 2018-10-30 2021-01-05 Hewlett Packard Enterprise Development Lp Remote deployment of operating systems
CN109992311B (en) * 2019-03-25 2022-07-29 新华三技术有限公司 Starting method and device of operating system, storage medium and client
CN110737479A (en) * 2019-09-04 2020-01-31 平安科技(深圳)有限公司 method for starting operating system without disk, server and readable storage medium
CN111736909B (en) * 2020-06-24 2023-07-14 平安科技(深圳)有限公司 Method and device for starting operating system, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MDT 2013使用UEFI引导安装Windows 10故障;沈浩;《计算机软件及计算机应用》;第149-150页 *

Also Published As

Publication number Publication date
CN111736909A (en) 2020-10-02
WO2021120830A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
CN111736909B (en) Method and device for starting operating system, computer equipment and storage medium
US6148387A (en) System and method for securely utilizing basic input and output system (BIOS) services
TWI247489B (en) Method for firmware variable storage with eager compression, fail-safe extraction and restart time compression scan
RU2456663C2 (en) Progressive boot strap loading for wireless device
US6477642B1 (en) Method and apparatus for extending BIOS control of screen display beyond operating system boot process
WO2019201039A1 (en) Method and system for updating application and application server
TWI648966B (en) Method and device for incremental upgrade
US20020147941A1 (en) Network based BIOS recovery method
US20070198819A1 (en) Boot architecture discovery in pre-boot environment
US20050283606A1 (en) Selecting a boot image
EP3076324B1 (en) Information processing apparatus and method of controlling the apparatus
US9047491B2 (en) Encryption acceleration
JP6316978B2 (en) Broadcast management information using fountain codes
US20080077800A1 (en) Persistent security system and method
JP2005327274A (en) Efficient patching
CN111880852B (en) Operating system initialization method, system, computer device and storage medium
WO2018086469A1 (en) Data storage method utilized in non-volatile storage space in integrated circuit, and trusted integrated circuit
WO2016062146A1 (en) Serial number information update method, device and terminal
CN114257551A (en) Distributed current limiting method and system and storage medium
US6715043B1 (en) Method and system for providing memory-based device emulation
US20080222043A1 (en) System and method for trans-vendor license registration and recovery
CN111177703B (en) Method and device for determining data integrity of operating system
JP4149434B2 (en) Method and system for accessing at least one target file in a computer system having an operating system in which file locking is enforced when the file is opened
JP2001051858A (en) System and method for safely using basic input/output system(bios) service
CN111158771B (en) Processing method and device and computer 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