[go: up one dir, main page]

CN111736909A - Starting method and device of operating system, computer equipment and storage medium - Google Patents

Starting method and device of operating system, computer equipment and storage medium Download PDF

Info

Publication number
CN111736909A
CN111736909A CN202010590719.0A CN202010590719A CN111736909A CN 111736909 A CN111736909 A CN 111736909A CN 202010590719 A CN202010590719 A CN 202010590719A CN 111736909 A CN111736909 A CN 111736909A
Authority
CN
China
Prior art keywords
preset
starting
mode
boot
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.)
Granted
Application number
CN202010590719.0A
Other languages
Chinese (zh)
Other versions
CN111736909B (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 OR CALCULATING; 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a starting method and device of an operating system, computer equipment and a storage medium. The present application relates to the field of network and blockchain technology, including: starting a pre-boot execution environment; setting the starting of the BIOS in the pre-starting execution environment to be 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 transfer protocol based on an IP address and the preset starting mode; acquiring a preset starting configuration file according to a preset starting guide file; and starting the operating system based on the preset starting configuration file. In the embodiment of the application, the starting process of the whole operating system can be compatible with different preset starting modes, so that resources can be saved to a certain extent.

Description

Starting method and device of operating system, computer equipment and storage medium
Technical Field
The present invention relates to the field of network and block chain technologies, and in particular, to a method and an apparatus for starting an operating system, a computer device, and a storage medium.
Background
A Preboot execution Environment (PXE) is a mainstream technology at present, and is mainly applied to a Client/Server (Client/Server, 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 start the operating system on the Client.
The BIOS (Basic Input Output System) is a set of programs that are fixed on a ROM chip on a main board in a computer, stores the most important Basic Input and Output programs of the computer, System setting information, a post-boot self-test program, and a System self-start program, and provides the lowest layer and most direct hardware setting and control programs for the computer.
However, the existing methods for starting the operating system based on the PXE mode mainly include two types, which are respectively a UEFI BIOS start mode and a LEGACY BIOS start mode, and compared with the LEGACY BIOS start mode, the UEFI BIOS start mode omits the self-checking process during start, and can improve the start speed, so that with the rise of the UEFI BIOS start mode, many enterprises start to upgrade the LEGACY BIOS start mode to the UEFI BIOS start mode, but in the upgrade process, the two modes are mostly realized by using a respective set of environment, which not only wastes resources, but also is very inconvenient to manage.
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 resource waste in starting of the existing operating system.
In a first aspect, an embodiment of the present invention provides a method for starting an operating system, where the method includes:
starting a pre-boot execution environment;
setting the startup of the BIOS in the pre-startup execution environment to be a preset startup mode, and writing the preset startup 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 transfer 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 starting apparatus for 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 into 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;
a second obtaining unit, configured to obtain the preset starting mode stored in the preset storage area, and obtain a preset starting guidance file from a server through a plain text transfer protocol based on the IP address and the preset starting mode;
a third obtaining unit, configured to obtain a preset boot configuration file according to the preset boot 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 above method when executing the computer program.
In a fourth aspect, the present invention also provides a computer-readable storage medium, which stores a computer program, and the computer program can implement the above method when being executed by a processor.
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-boot execution environment; setting the startup of the BIOS in the pre-startup execution environment to be a preset startup mode, and writing the preset startup 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 transfer 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 of the embodiment of the invention, the preset starting boot file is obtained according to the preset starting mode and the IP address, the preset starting configuration file is obtained according to the preset starting boot file, and the operating system is started based on the obtained preset starting configuration file.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a method for starting an operating system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for starting an operating system according to an embodiment of the present invention;
fig. 3 is a sub-flowchart of a method for starting an operating system according to an embodiment of the present invention;
fig. 4 is a sub-flowchart of a method for starting an operating system according to an embodiment of the present invention;
fig. 5 is a sub-flowchart illustrating a method for booting an operating system according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a starting apparatus of an operating system according to an embodiment of the present invention;
FIG. 7 is a 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 the starting apparatus of the operating system according to the embodiment of the present invention;
fig. 9 is a schematic block diagram of a third obtaining unit of the starting apparatus of the operating system according to the embodiment of the present invention;
fig. 10 is a schematic block diagram of a third obtaining subunit of the starting apparatus of the operating system according to the 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 technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "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 the specification of the present invention 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 this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Referring to fig. 1, fig. 1 is a schematic view of a scenario of a booting method of an operating system according to an embodiment of the present invention. The method for starting the operating system according to the embodiment of the present invention may be applied to a terminal, and for example, the method for starting the operating system may be implemented by a software program configured on the terminal. The terminal communicates with the server to enable the user operation terminal to obtain the IP address distributed by the server and obtain the preset starting guide file according to the IP address, further obtain the preset starting configuration file according to the preset starting guide file, and finally complete the starting of the operating system on the server based on the preset starting configuration file. The terminal may be a terminal device with a PXE function, such as a desktop computer, a laptop computer, a tablet computer, and the like, and is not particularly limited herein. In addition, in fig. 1, the number of the terminal and the user is one, and it is understood that in the actual application process, the number of the terminal and the user may be multiple, and fig. 1 only serves for the purpose of schematic illustration.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for booting an operating system according to an embodiment of the present invention. As shown in fig. 2, the method comprises the following steps S100-S150.
And S100, starting a pre-starting execution environment.
In this embodiment, to implement the booting of the operating system on the server, the terminal first needs to boot the pre-boot execution environment, and then performs a system operation based on the pre-boot execution environment before the booting of the operating system is implemented.
S110, setting the starting of the BIOS in the pre-starting execution environment to be 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. Wherein the preset starting modes comprise a UEFI starting mode and a LEGACY starting mode. The starting sequence of the LEAGACY starting mode is as follows: power on → BIOS initialization → BIOS self test → boot operating system → enter system. The starting sequence of the UEFI starting mode is as follows: boot → UEFI initialization → boot operating system → enter operating system boot, which is faster than LEGACY boot.
Referring to fig. 3, in an embodiment, for example, in the embodiment, the step S110 includes the following steps S111 to S112.
S111, 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 LEAGACY starting mode.
And S112, writing the preset starting mode into a network card register for storage.
In this embodiment, since the preset boot modes include the UEFI boot mode and the LEGACY boot mode, in practical applications, both the UEFI boot mode and the LEGACY boot mode are written into the network card register for storage.
It should be noted that, in this embodiment, the file names written in the network card register by the LEGACY boot mode and the UEFI boot mode are gpxelinux.0 and bootx64.efi, respectively.
And S120, acquiring the IP address from the server in a preset mode.
In this embodiment, after setting the start of the BIOS in the pre-boot execution environment to the preset start mode and writing the preset start mode into the preset storage area for storage, the IP address is obtained from the server in a preset manner. The preset mode is that, for example, the terminal sends a broadcast message to the server, the broadcast message carries the MAC address information of the terminal, and the server receives the message requirement sent by the terminal, allocates the message requirement to the corresponding IP address of the terminal, and associates the IP address with the MAC address information of the terminal, thereby avoiding repeated allocation. And 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 a server through a common text transfer protocol based on the IP address and the preset starting mode.
It should be noted that, in other embodiments, the preset manner may also be that the terminal acquires the IP address from the server through a Dynamic Host Configuration Protocol (DHCP) 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 transfer protocol based on the IP address and the preset starting mode.
In this embodiment, after the IP address is obtained from the server in a broadcast packet manner, based on the obtained IP address, the UEFI start mode, and the LEGACY start mode, the preset start boot file may be obtained from the server through a plain text transfer protocol.
Referring to fig. 4, in an embodiment, for example, in the embodiment, the step S130 includes the following steps S131 to S133.
S131, acquiring the preset starting mode stored in the preset storage area, judging whether the preset starting mode is a UEFI starting mode, if so, executing a step S132, otherwise, executing a step S133.
S132, acquiring a first preset boot 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.
S133, based on the IP address and the LEAGACY starting mode, acquiring a second preset starting guide file corresponding to the LEAGACY starting mode from a server through a common text transfer protocol.
In this embodiment, the preset boot mode stored in the preset storage area is acquired, and a preset boot file is acquired from a server through a plain text transfer protocol based on the IP address and the preset boot mode. 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 transfer protocol based on the IP address and the UEFI starting mode; if the preset starting mode is not the UEFI starting mode, and under the condition that the preset starting mode only comprises the UEFI starting mode and the LEAGACY starting mode, the preset starting mode is determined to be the LEAGACY starting mode, and a second preset starting guide file corresponding to the LEAGACY starting mode is obtained from a server through a common text transfer protocol based on the IP address and the LEAGACY starting mode. In this embodiment, the preset boot mode stored in the preset storage area is acquired, and it is determined whether the preset boot mode is the UEFI boot mode, that is, it is determined whether the file name stored in the network card register is bootx64.efi, and if the file name in the network card register is not bootx64.efi, it indicates that the file name stored in the network card register is gpxelinux.0, it indicates that the preset boot mode is the LEGACY boot mode.
It should be noted that the first preset start-up boot file and the second preset start-up boot file stored in the server both record download addresses for downloading the preset start-up configuration files, and the preset start-up configuration files can be obtained through the download addresses. The first preset starting guide file and the second preset starting guide file stored on the server can also be uploaded to the block chain, and when the first preset starting guide file and the second preset starting guide file need to be used, the first preset starting guide file and the second preset starting guide file are obtained from the block chain. The method includes obtaining corresponding digest information based on a first preset boot file and a second preset boot file, and specifically, obtaining the digest information by performing hash processing on the first preset boot file and the second preset boot file, for example, by using a sha256s algorithm. Uploading summary information to the blockchain can ensure the safety and the fair transparency of the user. The user equipment can download the summary information from the blockchain so as to check whether the differentiated information and the updated pre-stored configuration information are tampered. The blockchain referred to in this example is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block.
And S140, acquiring a preset starting configuration file according to the preset starting guide file.
In this embodiment, a preset boot configuration file is obtained according to the preset boot file. Specifically, a preset startup configuration file is obtained according to the first preset startup boot file or the second preset startup boot file, where the preset startup configuration file is stored in the terminal, and the preset startup configuration file includes a preset custom startup configuration file and a preset default startup configuration file.
Referring to fig. 5, in an embodiment, for example, in the embodiment, the step S140 includes the following steps S141 to S143.
And S141, judging whether a preset custom starting configuration file exists or not, if so, executing the step S142, otherwise, executing the step S143.
And S142, acquiring the preset custom start-up configuration file according to the first preset start-up guide file or the second preset start-up 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 boot configuration file exists is determined; if the preset custom start-up configuration file exists, acquiring the preset custom start-up configuration file according to the first preset start-up guide file or the second preset start-up guide file; if the preset custom boot configuration file does not exist, indicating that the preset boot configuration file is a preset default boot file, acquiring the preset default boot configuration file according to the first preset boot file or the second preset boot file. In this embodiment, the preset custom boot configuration file is a self-defined boot configuration file, for example, a custom boot configuration file named 01-MAC, and the custom boot configuration file is compatible with two boot configuration files, namely a UEFI boot mode and a LEGACY boot mode, so that the two boot modes can boot the same boot configuration file, thereby improving the working efficiency. The Default startup configuration file is preset as a Default startup configuration file of the system, for example, a Default startup configuration file named by Default. It should be noted that the preset custom start-up configuration file and the preset default start-up configuration file both record the kernel file and the storage path of the system file required for starting the operating system, so that the start-up of the operating system can be completed by the preset custom start-up configuration file and the preset default start-up configuration file.
And 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 start-up configuration file or the preset default start-up configuration file. Specifically, a preset custom start-up configuration file or a preset default start-up 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 for starting the 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 boot apparatus 200 of an operating system according to an embodiment of the present invention. As shown in fig. 6, the present invention further provides a booting apparatus 200 of an operating system corresponding to the above booting method of the operating system. The booting apparatus 200 of the operating system includes a unit for performing the booting method of the operating system described above, and the apparatus may be configured in a terminal. Specifically, referring to fig. 6, the booting apparatus 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.
The first starting unit 201 is configured to start a pre-starting execution environment; the write-in 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 starting mode stored in the preset storage area, and obtain a preset starting guidance file from a server through a plain text transfer protocol based on the IP address and the preset starting mode; the third obtaining unit 205 is configured to obtain a preset boot configuration file according to the preset boot file; the second booting unit 206 is configured to boot the operating system based on the preset boot configuration file.
In some embodiments, such as 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 LEGACY start mode; the write subunit 2022 is configured to write the preset start mode into the network card register for storage.
In some embodiments, for example, in the present embodiment, as shown in fig. 8, the second obtaining unit 204 includes a first determining unit 2041, a first obtaining subunit 2042, and a second obtaining subunit 2043.
The first determining unit 2041 is configured to obtain the preset starting mode stored in the preset storage area and determine whether the preset starting mode is a UEFI starting mode; the first obtaining subunit 2042 is configured to, if the preset boot mode is the UEFI boot mode, obtain, based on the IP address and the UEFI boot mode, a first preset boot file corresponding to the UEFI boot mode from a server through a plain text transfer protocol; the second obtaining subunit 2043 is configured to, if the preset boot mode is not the UEFI boot mode, obtain, based on the IP address and the LEGACY boot mode, a second preset boot file corresponding to the LEGACY boot mode from the server through a plain text transfer protocol.
In some embodiments, such as this embodiment, as shown in fig. 9, the third obtaining unit 205 includes a third obtaining sub-unit 2051.
The third obtaining subunit 2051 is configured to obtain a preset start configuration file according to the first preset start boot file or the second preset start boot file, where the preset start configuration file includes a preset custom start configuration file and a preset default start configuration file.
In some embodiments, such as the present embodiment, as shown in fig. 10, the third obtaining sub-unit 2051 includes a second determining unit 2052, a fourth obtaining sub-unit 2053, and a fifth obtaining sub-unit 2054.
The second judging unit 2052 is configured to judge whether a preset custom start-up configuration file exists; the fourth obtaining subunit 2053 is configured to, if the preset custom start-up configuration file exists, obtain the preset custom start-up configuration file according to the first preset start-up boot file or the second preset start-up boot file; the fifth obtaining subunit 2054 is configured to, if the preset custom boot configuration file does not exist, obtain the preset default boot configuration file according to the first preset boot configuration file or the second preset boot configuration file.
The above-mentioned starting means of the operating system may be implemented in the form of a computer program which is executable 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, or a tablet computer.
Referring to fig. 11, the computer device 300 includes a processor 302, memory, and a network interface 305 connected by a system bus 301, wherein the memory may include a non-volatile storage medium 503 and an internal memory 304.
The nonvolatile storage medium 303 may store an operating system 3031 and a computer program 3032. The computer program 3032, when executed, causes the processor 302 to perform a method of booting an operating system.
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 the computer program 3032 in the non-volatile storage medium 303, and the computer program 3032, when executed by the processor 302, causes the processor 302 to perform a method for booting an operating system.
The network interface 305 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer apparatus 300 to which the present application is applied, and that a particular computer apparatus 300 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 302 is configured to run a computer program 3032 stored in the memory to implement the following steps: starting a pre-boot execution environment; setting the startup of the BIOS in the pre-startup execution environment to be a preset startup mode, and writing the preset startup 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 transfer 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 302 implements the step of setting the startup of the BIOS in the pre-boot execution environment to the preset startup mode and writing the preset startup mode into the preset storage area for storage, the following steps are specifically implemented: setting the start of the BIOS in the pre-boot execution environment to be a preset start mode, wherein the preset start mode comprises a UEFI start mode and a LEAGACY start mode; and writing the preset starting mode into a network card register for storage.
In some embodiments, for example, in this embodiment, when the processor 302 implements the step of obtaining the preset boot file stored in the preset storage area, and obtains a preset boot file from a server through a plain text transfer protocol based on the IP address and the preset boot 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 transfer 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 LEAGACY starting mode from a server through a common text transfer protocol based on the IP address and the LEAGACY starting mode.
In some embodiments, for example, in this embodiment, when the processor 302 implements the step of obtaining the preset boot configuration file according to the preset boot file, the following steps are specifically implemented: and 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 implementing the step of obtaining a preset boot configuration file according to the first preset boot configuration file or the second preset boot configuration file, where the preset boot configuration file includes a preset custom boot configuration file and a preset default boot configuration file, the processor 302 specifically implements the following steps: judging whether a preset custom starting configuration file exists or not; if the preset custom start-up configuration file exists, acquiring the preset custom start-up configuration file according to the first preset start-up guide file or the second preset start-up 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 understood that, in the embodiment of the present Application, the Processor 302 may be a Central Processing Unit (CPU), and the Processor 302 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program may be stored in a storage medium, which 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-boot execution environment; setting the startup of the BIOS in the pre-startup execution environment to be a preset startup mode, and writing the preset startup 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 transfer 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 step of setting the startup of the BIOS in the pre-boot execution environment to a preset startup mode and writing the preset startup mode into a preset storage area for storage, the following steps are specifically implemented: setting the start of the BIOS in the pre-boot execution environment to be a preset start mode, wherein the preset start mode comprises a UEFI start mode and a LEAGACY start mode; and 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 boot file stored in the preset storage area, and based on the IP address and the preset boot mode, obtains a preset boot file from a server through a plain text transfer protocol, 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 transfer 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 LEAGACY starting mode from a server through a common text transfer protocol based on the IP address and the LEAGACY 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 boot configuration file according to the preset boot file, the following steps are specifically implemented: and 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 a preset boot configuration file according to the first preset boot configuration file or the second preset boot configuration file, where the preset boot configuration file includes a preset custom boot configuration file and a preset default boot configuration file, the following steps are specifically implemented: judging whether a preset custom starting configuration file exists or not; if the preset custom start-up configuration file exists, acquiring the preset custom start-up configuration file according to the first preset start-up guide file or the second preset start-up 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 usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly 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 implementation. 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 embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments 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, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
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 merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, while the invention has been described with respect to the above-described embodiments, it will be understood that the invention is not limited thereto but may be embodied with various modifications and changes.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for booting an operating system, comprising:
starting a pre-boot execution environment;
setting the startup of the BIOS in the pre-startup execution environment to be a preset startup mode, and writing the preset startup 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 transfer 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.
2. The method of claim 1, wherein setting the boot of the BIOS in the pre-boot execution environment to a preset boot mode and writing the preset boot mode to a preset storage area for storage comprises:
setting the start of the BIOS in the pre-boot execution environment to be a preset start mode, wherein the preset start mode comprises a UEFI start mode and a LEAGACY start mode;
and writing the preset starting mode into a network card register for storage.
3. The method according to claim 2, wherein the obtaining the preset boot mode stored in the preset storage area, and obtaining a preset boot file from a server through a plain text transfer protocol based on the IP address and the preset boot mode, comprises:
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;
and 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 transfer protocol based on the IP address and the UEFI starting mode.
4. The method of claim 3, wherein after the obtaining the preset boot mode stored in the preset storage area and determining whether the preset boot mode is a UEFI boot mode, the method further comprises:
and if the preset starting mode is not the UEFI starting mode, acquiring a second preset starting guide file corresponding to the LEAGACY starting mode from a server through a common text transfer protocol based on the IP address and the LEAGACY starting mode.
5. The method according to claim 4, wherein the obtaining a preset boot profile according to the preset boot profile comprises:
and 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.
6. The method according to claim 5, wherein the obtaining a preset boot configuration file according to the first preset boot file or the second preset boot file comprises:
judging whether a preset custom starting configuration file exists or not;
and 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.
7. The method of claim 6, wherein after determining whether the preset custom boot-up profile 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.
8. A starting apparatus of an operating system, comprising:
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 into 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;
a second obtaining unit, configured to obtain the preset starting mode stored in the preset storage area, and obtain a preset starting guidance file from a server through a plain text transfer protocol based on the IP address and the preset starting mode;
a third obtaining unit, configured to obtain a preset boot configuration file according to the preset boot file;
and the second starting unit is used for starting the operating system based on the preset starting configuration file.
9. A computer arrangement, characterized in that the computer arrangement comprises a memory having stored thereon a computer program and a processor implementing the method according to any of claims 1-7 when executing the computer program.
10. 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 one of claims 1-7.
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 true CN111736909A (en) 2020-10-02
CN111736909B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021120830A1 (en) * 2020-06-24 2021-06-24 平安科技(深圳)有限公司 Method and apparatus for launching operating system, computer device, and storage medium
CN113110883A (en) * 2021-06-11 2021-07-13 北京百度网讯科技有限公司 Starting method, device, equipment and storage medium of block chain system
CN114691227A (en) * 2022-04-25 2022-07-01 紫光计算机科技有限公司 BIOS system multi-mode startup method and device, electronic device and storage medium

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114816454B (en) * 2022-04-29 2024-10-25 济南浪潮数据技术有限公司 PXE server deployment method, device and medium
CN117539558A (en) * 2024-01-08 2024-02-09 山东比特智能科技股份有限公司 Preparation method, system, device and storage medium of microcontroller operation file
CN117785311B (en) * 2024-02-27 2024-05-07 苏州元脑智能科技有限公司 Server startup method and device, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037722A1 (en) * 2007-08-01 2009-02-05 Chong Benedict T Integration Model for Instant-On Environment
CN108769267A (en) * 2018-07-12 2018-11-06 成都傲梅科技有限公司 A method of ISO and WIM image files are guided by the network startup mode based on PXE protocol
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system
US20200133686A1 (en) * 2018-10-30 2020-04-30 Hewlett Packard Enterprise Development Lp Remote deployment of operating systems

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110737479B (en) * 2019-09-04 2024-06-28 平安科技(深圳)有限公司 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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090037722A1 (en) * 2007-08-01 2009-02-05 Chong Benedict T Integration Model for Instant-On Environment
CN108769267A (en) * 2018-07-12 2018-11-06 成都傲梅科技有限公司 A method of ISO and WIM image files are guided by the network startup mode based on PXE protocol
US20200133686A1 (en) * 2018-10-30 2020-04-30 Hewlett Packard Enterprise Development Lp Remote deployment of operating systems
CN109992311A (en) * 2019-03-25 2019-07-09 新华三技术有限公司 Starting method, apparatus, storage medium and the client of operating system

Non-Patent Citations (1)

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

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021120830A1 (en) * 2020-06-24 2021-06-24 平安科技(深圳)有限公司 Method and apparatus for launching operating system, computer device, and storage medium
CN113110883A (en) * 2021-06-11 2021-07-13 北京百度网讯科技有限公司 Starting method, device, equipment and storage medium of block chain system
US11558207B2 (en) 2021-06-11 2023-01-17 Beijing Baidu Netcom Science Technology Co., Ltd. Method and apparatus for starting up blockchain system, and non-transitory computer-readable storage medium
CN114691227A (en) * 2022-04-25 2022-07-01 紫光计算机科技有限公司 BIOS system multi-mode startup method and device, electronic device and storage medium

Also Published As

Publication number Publication date
CN111736909B (en) 2023-07-14
WO2021120830A1 (en) 2021-06-24

Similar Documents

Publication Publication Date Title
CN111736909A (en) Starting method and device of operating system, computer equipment and storage medium
CN106155657B (en) UEFI firmware method and computer system thereof
US11169819B2 (en) Information handling system (IHS) and method to proactively restore firmware components to a computer readable storage device of an IHS
US8874953B2 (en) System and method of cloud testing and remote monitoring for integrated circuit components in system validation
US6725178B2 (en) Use of hidden partitions in a storage device for storing BIOS extension files
TWI335536B (en) Information handling system (ihs) method and for updating a non-volatile memory (nvm) included in an information handling system
JP5270377B2 (en) Platform boot with bridge support
US20030023839A1 (en) Method and system for creating and employing an operating system having selected functionality
CN101763277A (en) Method for automatically installing operating system
US7363480B1 (en) Method, system, and computer-readable medium for updating the firmware of a computing device via a communications network
US7900033B2 (en) Firmware processing for operating system panic data
WO2016062146A1 (en) Serial number information update method, device and terminal
CN115664953B (en) Resource allocation method and related device of external equipment
CN109426527B (en) Computer system and method for sharing Bluetooth data between UEFI firmware and operating system
CN113064646A (en) BIOS starting method, system and related device
CN102257475A (en) System and method for booting a computer system using preboot data
CN107135462B (en) Bluetooth pairing method and computing system of UEFI firmware
US7257704B2 (en) Method of selectively loading a pre-boot execution extension determined based on an identifier
TWI779515B (en) Method and system for determining tampering with unified extensible firmware interface (uefi), and related non-transitory computer-readable medium
US10430181B1 (en) Retrieving updated firmware code
US20230094673A1 (en) Information handling systems and related methods to prevent tampering and verify the integrity of non-volatile data stored within non-volatile memory
US7231513B1 (en) Dynamically linked basic input/output system
CN110688235B (en) System and method for sharing wireless connection information between UEFI firmware and OS
JP7102524B2 (en) Firmware release of multiple binary images
CN119806657B (en) Startup item management methods, devices, computer equipment and storage media

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