Operating system installation method, device, equipment and medium

The basic input and output system obtains and loads the boot program and system image files, and solves the problem of low installation efficiency of solid-state drive systems, realizes automatic installation and batch installation of multiple operating systems, and improves installation efficiency.

CN112558993BActive Publication Date: 2024-12-06JIANGSU GUOKE MICROELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011533485.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-12-06
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

In the prior art, the installation efficiency of solid-state hard disk systems is low, especially the installation efficiency of various types of operating systems is low, and manual installation wastes manpower and material resources. The existing network booting and Kickstart method are only applicable to Linux operating systems, and one host Only one hard drive can be installed at a time.

Method used

Obtain the target boot program through the basic input and output system, load the installation management program and system image files, determine the target solid state drive, and install the operating system into the target solid state drive based on the system image files, including obtaining the partition configuration file for partitioning and formatting. It realizes automatic installation of multiple operating systems, suitable for network-free environments and network environments.

Benefits of technology

It realizes automatic installation of multiple operating systems, improves operating system installation efficiency, and can install multiple hard disks at the same time. It is suitable for Windows and Linux operating systems, reducing the cost and time of manual installation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112558993B_ABST
    Figure CN112558993B_ABST
Patent Text Reader

Abstract

The present application discloses an operating system installation method, device, equipment and medium. The method comprises: obtaining a target boot program by using a basic input and output system; loading and obtaining an installation management program and a system image file by running the target boot program; determining a target solid-state hard disk connected to the host by running the installation management program, and installing a target operating system in the target solid-state hard disk based on the system image file. The present application obtains a target boot program by using a basic input and output system, obtains a corresponding installation management program and a system image file by running the target boot program, and then installs a corresponding target operating system in the target solid-state hard disk according to the obtained system image file. In this way, the automatic installation of multiple operating systems can be realized, and the operating system can be installed in multiple target solid-state hard disks at the same time, which improves the efficiency of operating system installation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of system installation, and in particular to an operating system installation method, device, equipment and medium. Background Art

[0002] At present, solid-state hard disks are purchased and used by more and more consumers because of their fast storage speed, but the installation of the system on the hard disk is always one of the factors that affect user use. In addition, before the manufacturer ships the solid-state hard disk, it will simulate the user environment to perform system installation tests on the solid-state hard disk to ensure that the hard disk quality meets the standards. For a large number of hard disks, if they are installed manually, a lot of manpower and material resources will be wasted, and the efficiency is low. In the prior art, the system is automatically installed through network booting and Kickstart, but this method is only applicable to the installation of the Linux operating system in a network environment, and a test host environment can only install the system on one hard disk at a time, which reduces the efficiency of system installation. Therefore, how to install multiple types of operating systems efficiently and quickly is a problem that needs to be solved urgently. Summary of the invention

[0003] In view of this, the purpose of the present invention is to provide an operating system installation method, device, equipment and medium, which can improve the efficiency of operating system installation. The specific scheme is as follows:

[0004] In a first aspect, the present application discloses an operating system installation method, comprising:

[0005] Use the basic input and output system to obtain the target boot program;

[0006] By running the target boot program, the installation management program and the system image file are loaded and obtained;

[0007] The target solid state drive connected to the host is determined by running the installation management program, and the target operating system is installed in the target solid state drive based on the system image file.

[0008] Optionally, the obtaining of the target boot program by using the basic input and output system, and the loading of the installation management program and the system image file by running the target boot program, include:

[0009] Scanning a local storage device connected to the host to obtain a target boot program using a basic input and output system;

[0010] The installation management program and the system image file deployed in the local storage device are read by running the target boot program.

[0011] Optionally, the obtaining of the target boot program by using the basic input and output system, and the loading of the installation management program and the system image file by running the target boot program, include:

[0012] Using the basic input and output system, obtaining a target boot program from a server via a network;

[0013] The target boot program is run to read the installation management program and the system image file deployed on the server side.

[0014] Optionally, installing a target operating system in the target solid-state hard disk based on the system image file includes:

[0015] Get the target configuration file containing the partition size and number of partitions;

[0016] Partitioning and formatting the target solid state drive according to the target configuration file;

[0017] The system image file is written into the target partition of the target solid state drive to achieve the installation of the target operating system.

[0018] Optionally, after installing the target operating system in the target solid-state hard disk based on the system image file, the method further includes:

[0019] The target operating systems in the target solid state drives are started one by one to detect whether the target operating systems are successfully installed.

[0020] In a second aspect, the present application discloses an operating system installation device, comprising:

[0021] A boot program acquisition module is used to acquire a target boot program using a basic input and output system;

[0022] A file acquisition module, used to load and obtain the installation management program and system image file by running the target boot program;

[0023] The system installation module is used to determine the target solid state drive connected to the host by running the installation management program, and install the target operating system in the target solid state drive based on the system image file.

[0024] Optionally, the system installation module includes:

[0025] A configuration file acquisition unit, used for acquiring a target configuration file including a partition size and a partition quantity;

[0026] A partitioning unit, used for partitioning and formatting the target solid state drive according to the target configuration file;

[0027] The writing unit is used to write the system image file into the target partition of the target solid state drive to achieve the installation of the target operating system.

[0028] Optionally, the operating system installation device further includes:

[0029] The installation detection module is used to start the target operating systems in the target solid state drives one by one to detect whether the target operating systems are successfully installed.

[0030] In a third aspect, the present application discloses an electronic device, comprising:

[0031] Memory, used to store computer programs;

[0032] The processor is used to execute the computer program to implement the aforementioned operating system installation method.

[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program implements the aforementioned operating system installation method when executed by a processor.

[0034] In this application, the target boot program is obtained by using the basic input and output system; then, by running the target boot program, the installation management program and the system image file are loaded; finally, by running the installation management program, the target solid-state hard disk connected to the host is determined, and the target operating system is installed in the target solid-state hard disk based on the system image file. It can be seen that this application obtains the target boot program through the basic input and output system, and by running the target boot program, the corresponding installation management program and system image file can be obtained, and then by running the obtained installation management program, the target solid-state hard disk of the system to be installed is determined, and the corresponding target operating system can be installed in the target solid-state hard disk according to the obtained system image file. In this way, the automatic installation of multiple operating systems can be realized, and the operating system can be installed in multiple target solid-state hard disks at the same time, which improves the efficiency of operating system installation. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0036] Figure 1 A flowchart of an operating system installation method provided by this application;

[0037] Figure 2An operating system installation flow chart provided for this application;

[0038] Figure 3 A specific operating system installation method flow chart provided for this application;

[0039] Figure 4 A specific operating system installation method flow chart provided for this application;

[0040] Figure 5 A schematic diagram of the structure of an operating system installation device provided in this application;

[0041] Figure 6 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0042] In the prior art, the system is automatically installed through network booting and Kickstart, but this method is only applicable to the installation of the Linux operating system in a network environment, and a test host environment can only install the system on one hard disk at a time, which reduces the efficiency of system installation. In order to overcome the above technical problems, the present application proposes an automatic operating system installation method, which can realize the automatic installation of multiple operating systems and improve the efficiency of operating system installation.

[0043] The present application embodiment discloses an operating system installation method, which is applied to a host, see Figure 1 As shown, the method may include the following steps:

[0044] Step S11: Obtain the target boot program using the basic input and output system.

[0045] In this embodiment, after the host is powered on, the target boot program is first obtained through the input and output system (BIOS, Basic Input Output System), wherein the above-mentioned target boot program can be a boot program pre-deployed in a local storage device or a boot program pre-deployed on the server side.

[0046] Step S12: by running the target boot program, the installation management program and the system image file are loaded and obtained.

[0047] In this embodiment, after identifying and obtaining the target boot program, the input and output system jumps to run the target boot program, so as to obtain the corresponding installation management program and system image file by running the target boot program, wherein the installation management program and system image file may be a program pre-deployed in a local storage device, or a program pre-deployed on a server. Moreover, the installation management program and system image file may be a program and file related to a Linux operating system, or a program and file related to a Windows operating system.

[0048] Step S13: determining a target solid state drive connected to the host by running the installation management program, and installing a target operating system in the target solid state drive based on the system image file.

[0049] In this embodiment, after obtaining the above-mentioned installation management program and system image file, for example Figure 2 As shown, by running the above-mentioned installation management program to scan and detect, all solid-state hard disks connected to the above-mentioned host are determined, the solid-state hard disk that needs to install the operating system is determined as the above-mentioned target solid-state hard disk, and the parameter information of the target solid-state hard disk is obtained, and the above-mentioned parameter information includes but is not limited to the hard disk capacity information; then based on the obtained system image file, the target operating system corresponding to the system image file is installed in the above-mentioned target solid-state hard disk. It can be understood that by pre-deploying the target boot program, as well as the installation management program and system image files of different categories of systems, when the host is powered on, the host automatically obtains the corresponding program file using the input and output system and installs the hard disk system.

[0050] In this embodiment, the installation of the target operating system in the target solid-state drive based on the system image file may include: obtaining a target configuration file including partition size and partition number; partitioning and formatting the target solid-state drive according to the target configuration file; and writing the system image file into the target partition of the target solid-state drive to achieve the installation of the target operating system. It is understandable that the target configuration file may be obtained from the local storage device or the server in the same manner by running the installation management program, and the target configuration file includes but is not limited to partition size and partition number. Then, for example Figure 2As shown, the target solid-state hard disk is partitioned and formatted according to the partition size and the number of partitions, and then the obtained system image file is written into the target partition of the target solid-state hard disk. It should be noted that the target solid-state hard disk determined above can be one or more, and the partitioning and formatting operations can be performed on all the determined target solid-state hard disks at the same time, and the writing operation of the system image file can be written to all the determined target solid-state hard disks at the same time. To achieve the installation of the target operating system. In this way, a host can install the operating system on multiple hard disks in batches at the same time, and it can be applicable to Windows operating system and other operating systems, which improves the efficiency of operating system installation.

[0051] As can be seen from the above, in this embodiment, the basic input and output system is used to obtain the target boot program; then, by running the target boot program, the installation management program and the system image file are loaded; finally, by running the installation management program, the target solid-state hard disk connected to the host is determined, and the target operating system is installed in the target solid-state hard disk based on the system image file. It can be seen that the present application obtains the target boot program through the basic input and output system, and by running the target boot program, the corresponding installation management program and system image file can be obtained, and then by running the obtained installation management program, the target solid-state hard disk of the system to be installed is determined, and according to the obtained system image file, the corresponding target operating system can be installed in the target solid-state hard disk. In this way, the automatic installation of multiple operating systems can be realized, and the operating system can be installed in multiple target solid-state hard disks at the same time, which improves the efficiency of operating system installation.

[0052] The present application embodiment discloses a specific method for installing an operating system. Figure 3 As shown, the method may include the following steps:

[0053] Step S21: utilizing the basic input and output system to scan the local storage device connected to the host to obtain the target boot program.

[0054] In this embodiment, after the host is powered on, the host first scans the connected local storage device through the input and output system, and reads the pre-stored target boot program from the local storage device.

[0055] Step S22: reading the installation management program and the system image file deployed in the local storage device by running the target boot program.

[0056] In this embodiment, after obtaining the target boot program, the input / output system actively reads the installation management program and the system image file pre-stored in the local storage device by jumping to run the target boot program.

[0057] Step S23: determining a target solid state drive connected to the host by running the installation management program, and installing a target operating system in the target solid state drive based on the system image file.

[0058] Step S24: starting the target operating systems in the target solid state drives one by one to detect whether the target operating systems are successfully installed.

[0059] In this embodiment, after the system image file is written into the target solid state drive, the target operating systems in the target solid state drives are started one by one to detect whether the target operating systems are successfully installed in the corresponding target solid state drives.

[0060] For the specific process of the above step S23, reference may be made to the corresponding contents disclosed in the above embodiment, which will not be described again here.

[0061] As can be seen from the above, in this embodiment, the basic input and output system is used to scan the local storage device connected to the host to obtain the target boot program, and then by running the target boot program, the installation management program and system image file deployed in the local storage device are read. In this way, by pre-deploying the corresponding target boot program, installation management program and system image file in the local storage device, automatic installation of the operating system in a network-free environment can be achieved, and by starting the target operating system in the target solid-state hard disk one by one, it is possible to detect whether the target operating system is installed successfully, thereby achieving quality detection of automatic installation of the operating system.

[0062] The present application embodiment discloses a specific method for installing an operating system. Figure 4 As shown, the method may include the following steps:

[0063] Step S31: using the basic input and output system to obtain a target boot program from a server via a network.

[0064] In this embodiment, after the host is powered on, the host uses the input and output system to access the server through the network and obtains the target boot program from the server.

[0065] Step S32: reading the installation management program and system image file deployed on the server side by running the target boot program.

[0066] In this embodiment, after obtaining the target boot program, the input / output system actively reads the installation management program and the system image file pre-stored in the server by jumping to run the target boot program.

[0067] Step S33: determining a target solid state drive connected to the host by running the installation management program, and installing a target operating system in the target solid state drive based on the system image file.

[0068] Step S34: starting the target operating systems in the target solid state drives one by one to detect whether the target operating systems are successfully installed.

[0069] Among them, the specific process of the above-mentioned step S33 and step S34 can refer to the corresponding content disclosed in the above-mentioned embodiment, and will not be repeated here.

[0070] As can be seen from the above, in this embodiment, the host uses the basic input and output system to obtain the target boot program from the server through the network, and then reads the installation management program and system image file deployed on the server by running the target boot program, and then determines the target solid-state hard disk of the system to be installed by running the obtained installation management program, and can install the corresponding target operating system in the target solid-state hard disk according to the obtained system image file. In this way, the automatic installation of multiple operating systems can be realized, and the operating system can be installed in multiple target solid-state hard disks at the same time, thereby improving the efficiency of operating system installation.

[0071] Accordingly, the present application also discloses an operating system installation device, see Figure 5 As shown, the device comprises:

[0072] The boot program acquisition module 11 is used to acquire the target boot program using the basic input and output system;

[0073] A file acquisition module 12, used to load and obtain the installation management program and the system image file by running the target boot program;

[0074] The system installation module 13 is used to determine the target solid state drive connected to the host by running the installation management program, and install the target operating system in the target solid state drive based on the system image file.

[0075] As can be seen from the above, in this embodiment, the basic input and output system is used to obtain the target boot program; then, by running the target boot program, the installation management program and the system image file are loaded; finally, by running the installation management program, the target solid-state hard disk connected to the host is determined, and the target operating system is installed in the target solid-state hard disk based on the system image file. It can be seen that the present application obtains the target boot program through the basic input and output system, and by running the target boot program, the corresponding installation management program and system image file can be obtained, and then by running the obtained installation management program, the target solid-state hard disk of the system to be installed is determined, and according to the obtained system image file, the corresponding target operating system can be installed in the target solid-state hard disk. In this way, the automatic installation of multiple operating systems can be realized, and the operating system can be installed in multiple target solid-state hard disks at the same time, which improves the efficiency of operating system installation.

[0076] In some specific embodiments, the system installation module 13 may specifically include:

[0077] A configuration file acquisition unit, used for acquiring a target configuration file including a partition size and a partition quantity;

[0078] A partitioning unit, used for partitioning and formatting the target solid state drive according to the target configuration file;

[0079] The writing unit is used to write the system image file into the target partition of the target solid state drive to achieve the installation of the target operating system.

[0080] In some specific embodiments, the boot program acquisition module 11 may specifically include:

[0081] A first acquisition unit is used to use a basic input and output system to scan a local storage device connected to the host to obtain a target boot program; and read an installation management program and a system image file deployed in the local storage device by running the target boot program;

[0082] The second acquisition unit is used to use the basic input and output system to acquire the target boot program from the server through the network; and read the installation management program and system image file deployed on the server by running the target boot program.

[0083] In some specific embodiments, the operating system installation device may further include:

[0084] The installation detection module is used to start the target operating systems in the target solid state drives one by one to detect whether the target operating systems are successfully installed.

[0085] Furthermore, the present application also discloses an electronic device, see Figure 6 As shown, the contents in the drawings should not be considered as any limitation on the scope of use of the present application.

[0086] Figure 6 The present invention provides a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the operating system installation method disclosed in any of the aforementioned embodiments.

[0087] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0088] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222, and data 223 including an installation management program and a system image file, etc. The storage method can be temporary storage or permanent storage.

[0089] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the massive data 223 in the memory 22 by the processor 21, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the operating system installation method executed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0090] Furthermore, an embodiment of the present application also discloses a computer storage medium, in which computer executable instructions are stored. When the computer executable instructions are loaded and executed by a processor, the operating system installation method steps disclosed in any of the aforementioned embodiments are implemented.

[0091] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0092] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a solid state drive, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0093] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0094] The above is a detailed introduction to an operating system installation method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in the field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for installing an operating system, characterized in that: Applied to the host, including: Use the basic input and output system to obtain the target boot program; By running the target boot program, the installation management program and the system image file are loaded and obtained; Determine a target solid-state hard disk connected to the host by running the installation management program, and install a target operating system in the target solid-state hard disk based on the system image file; The step of determining the target solid-state hard disk is: by running the installation management program to perform scanning and detection, all solid-state hard disks connected to the host are determined, and the solid-state hard disk on which the operating system needs to be installed is determined as the target solid-state hard disk, and the target solid-state hard disk is one or more; Wherein, installing the target operating system into the target solid state drive based on the system image file includes: Get the target configuration file containing the partition size and number of partitions; Partitioning and formatting the target solid state drive simultaneously according to the target configuration file; Writing the system image file into the target partition of the target solid state drive at the same time to achieve the installation of the target operating system; After the target operating system is installed in the target solid state drive based on the system image file, the method further includes: The target operating systems in the target solid state drives are started one by one to detect whether the target operating systems are successfully installed.

2. The operating system installation method according to claim 1, characterized in that: The method of obtaining the target boot program by using the basic input and output system, and loading and obtaining the installation management program and the system image file by running the target boot program, includes: Scanning a local storage device connected to the host to obtain a target boot program using a basic input and output system; The installation management program and the system image file deployed in the local storage device are read by running the target boot program.

3. The operating system installation method according to claim 1, characterized in that: The method of obtaining the target boot program by using the basic input and output system, and loading and obtaining the installation management program and the system image file by running the target boot program, includes: Using the basic input and output system, obtaining a target boot program from a server via a network; The target boot program is run to read the installation management program and the system image file deployed on the server side.

4. An operating system installation device, characterized in that: include: A boot program acquisition module is used to acquire a target boot program using a basic input and output system; A file acquisition module, used to load and obtain the installation management program and system image file by running the target boot program; A system installation module, configured to determine a target solid-state hard disk connected to the host by running the installation management program, and to install a target operating system into the target solid-state hard disk based on the system image file; The system installation module is used to perform scanning and detection by running the installation management program to determine all solid-state hard disks connected to the host, and determine the solid-state hard disk on which the operating system needs to be installed as the target solid-state hard disk, and the target solid-state hard disk may be one or more; Wherein, the system installation module includes: A configuration file acquisition unit, used for acquiring a target configuration file including a partition size and a partition quantity; A partitioning unit, used for simultaneously partitioning and formatting the target solid state drive according to the target configuration file; A writing unit, used for writing the system image file into the target partition of the target solid state drive at the same time to achieve the installation of the target operating system; Wherein, the operating system installation device further includes: The installation detection module is used to start the target operating systems in the target solid state drives one by one to detect whether the target operating systems are successfully installed.

5. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the operating system installation method as described in any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer program is executed by a processor, the operating system installation method as described in any one of claims 1 to 3 is implemented.