Installation disk generation method and device, computer equipment and storage medium

Through the method of automatically generating the installation disk, using command files, system files and IP address information, the problems of low efficiency and poor accuracy of installation disk generation in the prior art are solved, and efficient and accurate installation disk generation is achieved.

CN120255916AActive Publication Date: 2025-07-04ZHEJIANG SHUGUANG INFORMATION TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202510740999.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-04
Publication Date
2025-07-04
Estimated Expiration
2045-06-04

AI Technical Summary

Technical Problem

The existing installation disk generation process requires the user to manually operate multiple complex steps, resulting in inefficiency and error-prone.

Method used

By obtaining command files and system files that interact with the operating system and physical media, using preset text processing tools and startup files to generate ISO image files, and burn them according to the IP address information of the physical media, automating the entire process.

Benefits of technology

It greatly improves the generation efficiency and accuracy of the installation disk and avoids errors caused by manual operation by users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120255916A_ABST
    Figure CN120255916A_ABST
Patent Text Reader

Abstract

The invention relates to an installation disk generation method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring a command file and a system file of an operating system; generating an independent sector offset ISO mirror image file according to a preset text processing tool, the command file and the system file; calling a startup file, and obtaining IP address information of a physical medium; burning the ISO mirror image file to a physical medium according to the IP address information, and generating a mounting disk corresponding to the physical medium; the command file is a command file when the operating system interacts with a physical medium connected with the operating system. By adopting the method, the generation efficiency of the mounting disc can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of embedded development technology, and particularly to a method, apparatus, computer device, and storage medium for generating an installation disk. Background Art

[0002] When a server performs system installation, data backup, and software distribution, it is necessary to generate an Independent Sector Offset (ISO) image file based on relevant information and write the ISO image file to a physical medium (such as a CD, DVD, or USB flash drive). This entire process is called "burning" or "recording". After the "burning" or "recording" step is completed, the physical medium will become a bootable installation disk for subsequent operations such as starting a computer and installing an operating system.

[0003] Currently, in the existing "burning" process, users need to manually operate many complex steps. Therefore, the method for generating an installation disk in the traditional technology has the problem of low efficiency. Summary of the Invention

[0004] Based on this, in view of the above technical problems, it is necessary to provide a method, apparatus, computer device, and storage medium for generating an installation disk that can improve the efficiency of generating an installation disk.

[0005] In a first aspect, this application provides a method for generating an installation disk, including:

[0006] Obtain a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0007] Generate an Independent Sector Offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0008] Call a startup file to obtain the IP address information of the physical medium;

[0009] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0010] In the above method for generating the installation disk, first, obtain the command file when the operating system interacts with the physical medium connected to the operating system and the system file of the operating system. Then, generate an ISO image file according to the preset text processing tool, command file, and system file. Next, call the startup file to obtain the IP address information of the physical medium. Then, according to the IP address information, burn the ISO image file to the physical medium to generate the installation disk corresponding to the physical medium. Compared with the traditional method for generating the installation disk, this method does not require the user to manually execute multiple commands or configure multiple files, greatly improving the efficiency of generating the installation disk. In addition, since the installation disk is made by relying on the user's manual operation, it is easy to cause mistakes and lead to errors in generating the installation disk. However, this method does not involve the user's manual operation. By obtaining the command file and the system file of the operating system and using tools such as the preset text processing tool and startup file, the generation of the ISO image file and the installation disk can be completed, which greatly improves the accuracy of generating the installation disk.

[0011] In one embodiment, the above method for generating an independent sector offset ISO image file according to the preset text processing tool, command file, and system file includes:

[0012] Create an empty file through the preset text processing tool; the empty file includes a command file index and a system file index;

[0013] Add the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0014] In this embodiment, when generating the ISO image file, it is not necessary for the user to manually execute multiple commands or configure multiple files. Just by using the text processing tool, the generation of the ISO image file can be completed. Compared with the traditional method for generating the ISO image file, this method greatly improves the efficiency of generating the ISO image file.

[0015] In one embodiment, the above method for adding the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file includes:

[0016] Modify the naming of the command file and the naming of the system file to obtain a standard command file and a standard system file;

[0017] Add the standard command file and the standard system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0018] In this embodiment, by modifying the naming of the command file and the system file, the command file and the system file become standardized files capable of generating an ISO image file, providing a basis for generating the ISO image file subsequently. Thus, the ISO image file can be accurately generated according to the command file and the system file with modified naming.

[0019] In one of the embodiments, the above method further includes:

[0020] Performing a formatting process on an empty file to obtain a formatted empty file;

[0021] Adding the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file, including:

[0022] Adding the command file and the system file to the formatted empty file according to the command file index and the system file index to generate an ISO image file.

[0023] In this embodiment, by performing a formatting process on the empty file, the empty file becomes a formatted file capable of generating an ISO image file, providing a basis for generating the ISO image file subsequently. Thus, the ISO image file can be accurately generated according to the formatted empty file.

[0024] In one of the embodiments, the above-mentioned burning the ISO image file to a physical medium according to the IP address information to generate an installation disk corresponding to the physical medium includes:

[0025] Determining the type of the physical medium according to the IP address information;

[0026] Burning the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium.

[0027] In this embodiment, the type of the physical medium is determined by the IP address information, so that the ISO image file can be accurately burned to the corresponding physical medium based on different types of physical media, improving the accuracy of generating the installation disk corresponding to the physical medium.

[0028] In one of the embodiments, the above-mentioned burning the ISO image file to a physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium includes:

[0029] If the type of the physical medium is a mechanical disk, then calling a first burning script to burn the ISO image file to the physical medium; the first burning script is the burning script corresponding to the mechanical disk;

[0030] If the type of the physical medium is a solid - state drive, call the second burning script to burn the ISO image file to the physical medium; the second burning script is the burning script corresponding to the solid - state drive.

[0031] In this embodiment, by differentiating the types of different physical media and calling the burning scripts of different types of physical media, the ISO image file is burned into the physical medium, avoiding the situation of abnormal installation of the installation disk due to abnormal burning scripts. This application adopts different burning scripts for different types of physical media, greatly improving the generation accuracy of the installation disk.

[0032] In one of the embodiments, the above - mentioned calling the startup file to obtain the IP address information of the physical medium includes:

[0033] Call the startup file to control the startup of the operating system;

[0034] When it is determined that the operating system has started, use the network management protocol between the operating system and the physical medium to obtain the IP address information.

[0035] In this embodiment, by calling the startup file to control the startup of the operating system, when it is determined that the operating system has started, the network management protocol between the operating system and the physical medium can be used to quickly obtain the IP address information of the physical medium, ensuring the acquisition efficiency of the IP address information of the physical medium.

[0036] In one of the embodiments, the above - mentioned method further includes:

[0037] Obtain the version information of the operating system;

[0038] If the version information is the target version information, execute the step of burning the ISO image file to the physical medium according to the IP address information to generate the installation disk corresponding to the physical medium;

[0039] If the version information is non - target version information, execute the step of burning the ISO image file to the physical medium according to the IP address information under the target operating system to generate the installation disk corresponding to the physical medium; the target operating system is any one of the historical version operating systems.

[0040] In this embodiment, according to the version information of the operating system, two different ways of generating the installation disk under different version information are provided respectively, making it possible to successfully generate the installation disk under different versions of the operating system.

[0041] In a second aspect, the present application also provides a device for generating an installation disk, including:

[0042] A file acquisition module, configured to acquire a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0043] A first generation module, configured to generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0044] An information acquisition module, configured to call a startup file to acquire IP address information of a physical medium;

[0045] A second generation module, configured to burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0046] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0047] Acquire a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0048] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0049] Call a startup file to acquire IP address information of a physical medium;

[0050] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0051] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0052] Acquire a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0053] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0054] Call a startup file to acquire IP address information of a physical medium;

[0055] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0056] Fifth aspect, the present application also provides a computer program product, including a computer program, which when executed by a processor implements the following steps:

[0057] Obtain a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0058] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0059] Call a startup file to obtain IP address information of the physical medium;

[0060] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0061] For the above method, device, computer device, and storage medium for generating an installation disk, first obtain a command file when the operating system interacts with a physical medium connected to the operating system and system files of the operating system, then generate an ISO image file according to a preset text processing tool, the command file, and the system files, then call a startup file to obtain IP address information of the physical medium, and then burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium. Compared with the traditional method for generating an installation disk, this method does not require the user to manually execute multiple commands or configure multiple files, greatly improving the efficiency of generating the installation disk; in addition, since making the installation disk relies on manual operation by the user, it is easy to cause mistakes and lead to problems in generating the installation disk. However, this method does not involve manual operation by the user. By obtaining the command file and system files of the operating system and using tools such as a preset text processing tool and startup file, the generation of the ISO image file and the installation disk can be completed, which greatly improves the accuracy of generating the installation disk. Description of the Drawings

[0062] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for describing the embodiments of the present application or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.

[0063] Figure 1 It is an application environment diagram of the method for generating an installation disk in an embodiment;

[0064] Figure 2 It is a flowchart of the method for generating an installation disk in an embodiment;

[0065] Figure 3 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0066] Figure 4 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0067] Figure 5 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0068] Figure 6 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0069] Figure 7 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0070] Figure 8 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0071] Figure 9 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0072] Figure 10 Schematic flowchart of the process for generating an installation disk in one embodiment;

[0073] Figure 11 Schematic flowchart of the method for generating an installation disk in another embodiment;

[0074] Figure 12 Block diagram of the structure of the device for generating an installation disk in one embodiment. Detailed implementation manners

[0075] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0076] When a server performs system installation, data backup, and software distribution, it is necessary to generate an Independent Sector Offset (ISO) image file based on relevant information and write the ISO image file to a physical medium (such as a CD, DVD, or USB flash drive). This entire process is called "burning" or "recording". After the "burning" or "recording" step is completed, the physical medium will become a bootable installation disk for subsequent operations such as starting the computer and installing an operating system.

[0077] Currently, during the existing "burning" process, users need to manually operate many complex steps. For example, the production of an ISO image file involves organizing, packing the operating system files, configurations, and boot information into an image file. The process is cumbersome, involving file organization, boot configuration, and file system creation, and is prone to errors. The burning process requires writing the ISO image file to a physical medium (such as a USB, drive, or optical disc) or a virtual medium, and appropriate tools need to be selected to ensure that the ISO image file can be correctly written. Any operation error may lead to system startup failure or unsuccessful installation from the installation disc. Each manual operation step needs to be carefully checked. Therefore, the method for generating an installation disc in the traditional technology has the problem of low efficiency. This application aims to provide a method for efficiently generating an installation disc to solve the problem of low efficiency in generating an installation disc in the traditional technology.

[0078] After introducing the background technology of the method for generating an installation disc provided by the embodiments of this application above, below, a brief description will be given of the implementation environment involved in the method for generating an installation disc provided by the embodiments of this application. The method for generating an installation disc provided by the embodiments of this application can be applied to a computer device as Figure 1 shown, and its internal structure diagram can be as Figure 1As shown in the figure. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface, the display unit, and the input device are connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and external devices. The external devices include optical discs (Compact Disc, CD), digital versatile discs (Digital Versatile Disc, DVD), or universal serial bus (Universal Serial Bus, USB) flash drives, etc. The communication interface of the computer device is used to communicate with external terminals in a wired or wireless manner. The wireless manner can be achieved through WIFI, mobile cellular networks, near field communication (Near Field Communication, NFC), or other technologies. When the computer program is executed by the processor, it is used to implement a method for generating an installation disc. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse, etc.

[0079] The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with specific embodiments. These several specific embodiments below can be combined with each other. For the same or similar concepts or processes, they may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0080] In one embodiment, as Figure 2 shown, a method for generating an installation disc is provided. Taking the computer device in Figure 1 as an example, the method includes the following steps:

[0081] S201. Obtain a command file and system files of the operating system; among them, the command file is a command file when the operating system interacts with the physical medium connected to the operating system.

[0082] Among them, the command file can be a Shell.efi command file. The system files include kernel files and root file system files; the kernel files refer to the core part of the operating system, which is responsible for initializing the basic functions of the operating system, such as memory management, process scheduling, and device drivers; the root file system files refer to the temporary file system used when the operating system starts up, including the drivers and tools required when the operating system starts up.

[0083] In the embodiment of the present application, when an ISO image file needs to be produced, the above command file and the system files of the operating system can be obtained from the file storage system. It should be noted that the command file and the system files of the operating system, as well as other types of files, are pre-stored in the file storage system. When the command file and the system files of the operating system need to be obtained, the corresponding command file and system file can be directly searched for and obtained in the file storage system based on the identifier of the command file and the identifier of the system file.

[0084] S202. Generate an independent sector offset ISO image file according to the preset text processing tool, the command file, and the system file.

[0085] Among them, the preset text processing tool can be the dd command tool, which can copy, convert, and create files. The ISO image file refers to a file obtained by converting the content of an optical disc or an operating system image into the ISO format.

[0086] In this embodiment, after obtaining the command file and the system files of the operating system, the preset text processing tool can be called to process the command file and the system file to obtain the ISO image file.

[0087] S203. Call the startup file to obtain the IP address information of the physical medium.

[0088] Among them, the startup file refers to a file that, after the ISO image file is generated, starts the operating system according to the locations of the kernel file and the root file system file in the ISO image file, and obtains the IP address information of the physical medium connected to the operating system. For example, the startup file can be the Startup.nsh file. The Startup.nsh file is used to indicate the locations of the kernel file and the root file system file, as well as to specify other startup parameters in the operating system. When starting the system, the Startup.nsh file can be placed in the / EFI / BOOT directory of the operating system, so that it is not necessary to manually execute other startup commands to start the system, but the system can be started automatically.

[0089] In this embodiment, after the ISO image file is generated, the startup file can be called to start the operating system according to the locations of the kernel file and the root file system file in the ISO image file, and obtain the IP address information of the physical medium connected to the operating system.

[0090] S204. Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0091] In this embodiment, after obtaining the IP address information of the physical medium, the generated ISO image file can be burned to the physical medium corresponding to the IP address information according to the IP address information of the physical medium to generate an installation disk corresponding to the physical medium.

[0092] For the above method for generating an installation disk, first obtain the command file and the system file of the operating system when interacting with the physical medium connected to the operating system, then generate an ISO image file according to the preset text processing tool, the command file and the system file, then call the startup file to obtain the IP address information of the physical medium, and then burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium. Compared with the traditional method for generating an installation disk, this method does not require the user to manually execute multiple commands or configure multiple files, greatly improving the efficiency of generating the installation disk; in addition, since making the installation disk depends on manual operation by the user, it is easy to cause mistakes and lead to errors in generating the installation disk. However, this method does not involve manual operation by the user. By obtaining the command file and the system file of the operating system and using tools such as the preset text processing tool and startup file, the generation of the ISO image file and the installation disk can be completed, which greatly improves the accuracy of generating the installation disk.

[0093] In this embodiment, the detailed process of generating the ISO image file will be explained. In an exemplary embodiment, as Figure 3 shown, the above S202 includes:

[0094] S301. Create an empty file through a preset text processing tool; wherein, the empty file includes a command file index and a system file index.

[0095] Among them, the size of the empty file is the same as the total size of the command file and the system file of the operating system. The command file index and the system file index can provide guidance for the storage of the command file and the system file of the operating system. Among them, the command file index is used to indicate the addition position of the command file in the empty file, and the system file index is used to indicate the addition position of the system file in the empty file.

[0096] In this embodiment, after obtaining the command file and the system file of the operating system, a preset text processing tool can be called, and an empty file with the same total size as the command file and the system file of the operating system can be created through the preset text processing tool.

[0097] S302. Add the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0098] In this embodiment, after the empty file is created, the command file and the system file can be added to the corresponding command file index and system file index in the empty file according to the command file index and the system file index pre-configured in the empty file, so as to obtain the empty file after adding the text, and then generate an ISO image file based on the empty file after adding the text.

[0099] In this embodiment, when generating the ISO image file, it is not necessary for the user to manually execute multiple commands or configure multiple files. Only by using the text processing tool can the generation of the ISO image file be completed. Compared with the traditional method for generating the ISO image file, this method greatly improves the generation efficiency of the ISO image file.

[0100] This embodiment will further explain in detail the process of adding the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file. In an exemplary embodiment, as Figure 4 shown, the above S302 includes:

[0101] S401. Modify the naming of the command file and the naming of the system file to obtain a standard command file and a standard system file.

[0102] In this embodiment, before generating the ISO image file, it is also necessary to modify the naming of the command file and the system file to obtain a standard command file and a standard system file.

[0103] Optionally, the file name of the command file can be modified to BOOTX64.EFI, the file name of the kernel file in the system file can be modified to vmlinuz, and the file name of the root file system in the system file can be modified to ramfs.gz.

[0104] S402. Add the standard command file and the standard system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0105] In this embodiment, after obtaining the modified standard command file and standard system file, the standard command file and standard system file can be added to the corresponding command file index and system file index in the empty file according to the command file index and system file index pre-configured in the empty file, so as to generate an ISO image file.

[0106] In this embodiment, by modifying the naming of the command file and system file, the command file and system file become standardized files that can generate an ISO image file, providing a basis for subsequent generation of the ISO image file. Thus, the ISO image file can be accurately generated according to the command file and system file after naming modification.

[0107] In some scenarios, it is also necessary to format the generated empty file. Further, an ISO image file can be generated using the formatted empty file. In an exemplary embodiment, as Figure 5 shown, the above method further includes:

[0108] S501. Format the empty file to obtain a formatted empty file.

[0109] In this embodiment, after the empty file is constructed, the empty file can be formatted to obtain a formatted empty file. Optionally, the mkfs.vfat command can be called to format the empty file to obtain a formatted vfat file.

[0110] Correspondingly, the above S302 includes:

[0111] S502. According to the command file index and system file index, add the command file and system file to the formatted empty file to generate an ISO image file.

[0112] In this embodiment, after obtaining the formatted empty file, the command file and system file can be added to the corresponding command file index and system file index in the formatted empty file according to the command file index and system file index pre-configured in the empty file, and then an ISO image file is generated based on the empty file after adding the text.

[0113] In this embodiment, by formatting the empty file, the empty file becomes a formatted file that can generate an ISO image file, providing a basis for subsequent generation of the ISO image file. Thus, the ISO image file can be accurately generated according to the formatted empty file.

[0114] In this embodiment, the detailed process of generating the installation disk of the physical medium will be explained. In an exemplary embodiment, as Figure 6As shown above, the above S204 includes:

[0115] S601. Determine the type of the physical medium according to the IP address information.

[0116] Among them, the types of the physical medium include a mechanical disk and a solid-state disk.

[0117] In this embodiment, after obtaining the IP address information of the physical medium, the physical medium corresponding to the IP address information can be determined, and then a preset detection script is called to detect the type of the physical medium to obtain the type of the physical medium.

[0118] S602. Burn the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium.

[0119] In this embodiment, after determining the type of the physical medium, the corresponding burning strategy can be determined according to the type of the physical medium, and the ISO image file is burned to the physical medium based on the corresponding burning strategy to generate an installation disk corresponding to the physical medium.

[0120] Optionally, if the type of the physical medium is a mechanical disk, the burning strategy corresponding to the mechanical disk can be determined, and the ISO image file is burned to the physical medium based on the burning strategy corresponding to the mechanical disk to generate an installation disk corresponding to the physical medium.

[0121] Optionally, if the type of the physical medium is a solid-state disk, the burning strategy corresponding to the solid-state disk can be determined, and the ISO image file is burned to the physical medium based on the burning strategy corresponding to the solid-state disk to generate an installation disk corresponding to the physical medium.

[0122] In this embodiment, the type of the physical medium is detected through the IP address information to determine the type of the physical medium, so that the ISO image file is accurately burned to the corresponding physical medium based on different types of physical media, improving the accuracy of generating the installation disk corresponding to the physical medium.

[0123] In this embodiment, the detailed process of generating the installation disk corresponding to the physical medium will be further explained. In an exemplary embodiment, as Figure 7 shown above, the above S402 includes:

[0124] S701. If the type of the physical medium is a mechanical disk, call the first burning script to burn the ISO image file to the physical medium; where the first burning script is the burning script corresponding to the mechanical disk.

[0125] In this embodiment, if it is determined that the type of the physical medium is a mechanical disk, the pre-configured burning script corresponding to the mechanical disk can be called to burn the ISO image file to the physical medium to generate an installation disk corresponding to the physical medium.

[0126] S702. If the type of the physical medium is a solid - state drive, call the second burning script to burn the ISO image file to the physical medium; where the second burning script is the burning script corresponding to the solid - state drive.

[0127] In this embodiment, if it is determined that the type of the physical medium is a solid - state drive, the pre - configured burning script corresponding to the solid - state drive can be called to burn the ISO image file into the physical medium to generate the installation disk corresponding to the physical medium.

[0128] In this embodiment, by differentiating the types of different physical media and calling the burning scripts of different types of physical media, the ISO image file is burned into the physical medium, avoiding the situation of abnormal installation of the installation disk due to abnormal burning scripts. For different types of physical media, different burning scripts are adopted in this application, greatly improving the generation accuracy of the installation disk.

[0129] In this embodiment, the detailed process of obtaining the IP address information of the physical medium is explained. In an exemplary embodiment, as Figure 8 shown, the above S203 includes:

[0130] S801. Call the startup file to control the startup of the operating system.

[0131] Among them, the startup file is a file that, after the ISO image file is generated, starts the operating system according to the locations of the kernel file and the root file system file in the ISO image file and obtains the IP address information of the physical medium connected to the operating system. For example, the startup file can be the Startup.nsh file. The Startup.nsh file is used to indicate the locations of the kernel file and the root file system file, as well as specify other startup parameters in the operating system. When starting the system, the Startup.nsh file can be placed in the / EFI / BOOT directory of the operating system, so that there is no need to manually execute other startup commands to start the system, but the system starts automatically.

[0132] In the embodiment of the present application, after the above ISO image file is generated, the startup file can be called to control the startup of the operating system according to the locations of the kernel file and the root file system file in the ISO image file.

[0133] S802. When it is determined that the operating system has started, use the network management protocol between the operating system and the physical medium to obtain the IP address information.

[0134] Among them, the network management protocol refers to a protocol used to centrally manage and configure the IP address information of hardware dynamically. The network management protocol can be the Dynamic Host Configuration Protocol (DHCP).

[0135] In the embodiment of the present application, when it is determined that the operating system is started, the network protocol between the operating system and the physical medium is called to obtain the IP address information of the physical medium. It should be noted that a monitoring tool can be pre-installed on the computer device, and the monitoring tool is used to monitor whether the operating system is started. As Figure 9 shown, after it is monitored that the operating system is successfully started, it is determined whether the above DHCP has successfully configured the IP address of the physical medium. If not, the static IP input by the user is obtained, and it is continuously determined whether the current operating system is the latest system. If the current operating system is the latest system, it is directly determined whether the physical medium is a mechanical hard disk. If the current operating system is not the latest system, multiple versions of the system can be displayed on the display interface of the operating system for the user to select, and the target system selected by the user from the multiple versions of the system is received, and it is determined whether the physical medium is a mechanical hard disk under the target system. If so, the script corresponding to the mechanical hard disk is executed to complete the generation of the installation disk. If not, the script corresponding to the solid-state disk is executed to complete the generation of the installation disk.

[0136] In this embodiment, by calling the startup file to control the startup of the operating system, it is possible to utilize the network management protocol between the operating system and the physical medium to quickly obtain the IP address information of the physical medium when it is determined that the operating system is started, ensuring the acquisition efficiency of the IP address information of the physical medium.

[0137] In this embodiment, the detailed process of generating the installation disk will be further explained. In an exemplary embodiment, as Figure 10 shown, the above method further includes:

[0138] S901. Obtain the version information of the operating system.

[0139] Among them, the version information of the operating system includes the latest version information of the operating system and multiple historical version information of the operating system.

[0140] In this embodiment, after obtaining the IP address information of the physical medium, the version information of the operating system can also be continuously obtained. Optionally, the user can also input an acquisition instruction on the display interface of the operating system to enable the operating system to display the version information of the operating system on the display interface.

[0141] S902. If the version information is the target version information, execute the above step S204.

[0142] Among them, the target version information refers to the latest version information of the operating system.

[0143] In this embodiment, after obtaining the version information of the operating system, it can be further determined whether the version information of the operating system is the latest version information of the operating system. If the version information of the operating system is the latest version information of the operating system, then directly under this operating system, according to the IP address information, burn the ISO image file to the physical medium to generate the installation disk corresponding to the physical medium.

[0144] S903. If the version information is non-target version information, then execute the above step S204 under the target operating system.

[0145] Among them, the target operating system is any one of the operating systems of the historical versions. The non-target version information refers to any historical version information of the operating system.

[0146] In this embodiment, after obtaining the version information of the operating system, it can be further determined whether the version information of the operating system is the latest version information of the operating system. If the version information of the operating system is not the latest version information of the operating system, then the operating system can display multiple historical version information on the display interface so that the user can select one historical version information from the multiple historical version information, and under the target operating system corresponding to this historical version information, according to the IP address information, burn the ISO image file to the physical medium to generate the installation disk corresponding to the physical medium.

[0147] In this embodiment, obtain the version information of the operating system, and adopt different installation disk generation methods based on different versions of the operating system, so that the installation disk can be generated under different versions of the operating system, providing the possibility for the successful generation of the installation disk under different versions of the operating system.

[0148] For the convenience of understanding by those skilled in the art, see Figure 11 , the following will introduce in detail the method for generating the installation disk provided by this application. This method may include:

[0149] S10. Obtain the command file and the system file of the operating system;

[0150] S11. Create an empty file including the command file index and the system file index through a preset text processing tool;

[0151] S12. Modify the naming of the command file and the naming of the system file to obtain the standard command file and the standard system file;

[0152] S13. Perform formatting processing on the empty file to obtain the formatted empty file;

[0153] S14. Add the standard command file and the standard system file to the formatted empty file according to the command file index and the system file index to generate an ISO image file;

[0154] S15. Call the startup file to control the startup of the operating system;

[0155] S16. When it is determined that the operating system has started, obtain the IP address information by using the network management protocol between the operating system and the physical medium;

[0156] S17. Determine the type of the physical medium according to the IP address information;

[0157] S18. If the type of the physical medium is a mechanical disk, call the first burning script to burn the ISO image file to the physical medium;

[0158] S19. If the type of the physical medium is a solid-state disk, call the second burning script to burn the ISO image file to the physical medium.

[0159] It should be noted that for the descriptions in S10 - S19 above, reference can be made to the relevant descriptions in the above embodiments, and the effects are similar. Therefore, they will not be elaborated herein.

[0160] It should be understood that although the steps in the flowcharts involved in the above - mentioned embodiments are shown in sequence according to the arrows, these steps do not necessarily need to be executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above - mentioned embodiments may include multiple steps or multiple stages. These steps or stages do not necessarily need to be executed at the same moment, but can be executed at different moments. The execution order of these steps or stages does not necessarily need to be sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0161] Based on the same inventive concept, the embodiments of the present application also provide a generating device for an installation disk for implementing the generating method of the installation disk involved above. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the generating device for an installation disk provided below can refer to the limitations on the generating method of the installation disk in the above text, and will not be elaborated herein.

[0162] In an exemplary embodiment, as Figure 12As shown, a generating device for an installation disk is provided, including: a file acquisition module 10, a first generation module 11, an information acquisition module 12, and a second generation module 13, where:

[0163] The file acquisition module 10 is configured to acquire a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system;

[0164] The first generation module 11 is configured to generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0165] The information acquisition module 12 is configured to call a startup file to acquire IP address information of the physical medium;

[0166] The second generation module 13 is configured to burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0167] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0168] In an exemplary embodiment, the above first generation module 11 includes: a creation unit and a generation unit, where:

[0169] The creation unit is specifically configured to create an empty file through a preset text processing tool; the empty file includes a command file index and a system file index;

[0170] The generation unit is specifically configured to add the command file and the system files to the empty file according to the command file index and the system file index to generate an ISO image file.

[0171] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0172] In an exemplary embodiment, the above generation unit is specifically further configured to modify the naming of the command file and the naming of the system files to obtain a standard command file and a standard system file; add the standard command file and the standard system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0173] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0174] In an exemplary embodiment, the above-mentioned first generation module 11 further includes: a processing unit, specifically configured to perform formatting processing on an empty file to obtain a formatted empty file;

[0175] The above-mentioned generation unit is specifically further configured to add a command file and a system file to the formatted empty file according to a command file index and a system file index to generate an ISO image file.

[0176] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0177] In an exemplary embodiment, the above-mentioned second generation module 13 includes: a determination unit and a generation unit, where:

[0178] The determination unit is specifically configured to determine the type of a physical medium according to IP address information;

[0179] The generation unit is specifically configured to burn the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium.

[0180] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0181] In an exemplary embodiment, the above-mentioned generation unit is specifically further configured to, when the type of the physical medium is a mechanical disk, call a first burning script to burn the ISO image file to the physical medium; the first burning script is a burning script corresponding to the mechanical disk; and when the type of the physical medium is a solid-state disk, call a second burning script to burn the ISO image file to the physical medium; the second burning script is a burning script corresponding to the solid-state disk.

[0182] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0183] In an exemplary embodiment, the above-mentioned information acquisition module 12 includes: a calling unit and an acquisition unit, where:

[0184] The calling unit is specifically configured to call a startup file to control the startup of an operating system;

[0185] The acquisition unit is specifically configured to, when it is determined that the operating system has started, use a network management protocol between the operating system and the physical medium to acquire IP address information.

[0186] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here.

[0187] In an exemplary embodiment, the above file acquisition module 10 includes: an acquisition unit, specifically configured to acquire the version information of the operating system; and in the case where the version information is the target version information, execute the step of burning the ISO image file to a physical medium according to the IP address information to generate an installation disk corresponding to the physical medium; in the case where the version information is non-target version information, execute the step of burning the ISO image file to a physical medium according to the IP address information under the target operating system to generate an installation disk corresponding to the physical medium; the target operating system is any one of the operating systems in the historical version of the operating system.

[0188] The request processing device provided in this embodiment can execute the above method embodiment, and its implementation principle and technical effects are similar, and will not be elaborated here.

[0189] Each module in the above installation disk generation device can be implemented in whole or in part by software, hardware, and their combination. Each of the above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0190] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, the following steps are implemented:

[0191] Acquire a command file and the system file of the operating system; the command file is the command file when the operating system interacts with the physical medium connected to the operating system;

[0192] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system file;

[0193] Call the startup file to obtain the IP address information of the physical medium;

[0194] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0195] In an embodiment, when the processor executes the computer program, the following steps are further implemented:

[0196] Create an empty file through a preset text processing tool; the empty file includes a command file index and a system file index;

[0197] Add the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0198] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0199] Modify the naming of the command file and the naming of the system file to obtain a standard command file and a standard system file;

[0200] According to the command file index and the system file index, add the standard command file and the standard system file to an empty file to generate an ISO image file.

[0201] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0202] Perform a formatting process on the empty file to obtain a formatted empty file;

[0203] According to the command file index and the system file index, add the command file and the system file to the empty file to generate an ISO image file, including:

[0204] According to the command file index and the system file index, add the command file and the system file to the formatted empty file to generate an ISO image file.

[0205] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0206] Determine the type of the physical medium according to the IP address information;

[0207] According to the type of the physical medium, burn the ISO image file to the physical medium to generate an installation disk corresponding to the physical medium.

[0208] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0209] If the type of the physical medium is a mechanical disk, call the first burning script to burn the ISO image file to the physical medium; the first burning script is the burning script corresponding to the mechanical disk;

[0210] If the type of the physical medium is a solid-state disk, call the second burning script to burn the ISO image file to the physical medium; the second burning script is the burning script corresponding to the solid-state disk.

[0211] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0212] Call the startup file to control the startup of the operating system;

[0213] In the case of determining that the operating system has started, use the network management protocol between the operating system and the physical medium to obtain the IP address information.

[0214] In one embodiment, when the processor executes the computer program, the following steps are further implemented:

[0215] Obtain the version information of the operating system;

[0216] If the version information is the target version information, then execute the step of burning the ISO image file to a physical medium according to the IP address information to generate an installation disk corresponding to the physical medium;

[0217] If the version information is non-target version information, then execute the step of burning the ISO image file to a physical medium according to the IP address information under the target operating system to generate an installation disk corresponding to the physical medium; the target operating system is any one of the historical version operating systems.

[0218] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0219] Obtain a command file and the system file of the operating system; the command file is the command file when the operating system interacts with the physical medium connected to the operating system;

[0220] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system file;

[0221] Call the startup file to obtain the IP address information of the physical medium;

[0222] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0223] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0224] Create an empty file through a preset text processing tool; the empty file includes a command file index and a system file index;

[0225] Add the command file and the system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0226] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented:

[0227] Modify the naming of the command file and the naming of the system file to obtain a standard command file and a standard system file;

[0228] Add the standard command file and the standard system file to the empty file according to the command file index and the system file index to generate an ISO image file.

[0229] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0230] Format an empty file to obtain a formatted empty file;

[0231] According to the command file index and the system file index, add the command file and the system file to the empty file to generate an ISO image file, including:

[0232] According to the command file index and the system file index, add the command file and the system file to the formatted empty file to generate an ISO image file.

[0233] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0234] Determine the type of the physical medium according to the IP address information;

[0235] According to the type of the physical medium, burn the ISO image file to the physical medium to generate an installation disk corresponding to the physical medium.

[0236] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0237] If the type of the physical medium is a mechanical disk, call the first burning script to burn the ISO image file to the physical medium; the first burning script is the burning script corresponding to the mechanical disk;

[0238] If the type of the physical medium is a solid-state disk, call the second burning script to burn the ISO image file to the physical medium; the second burning script is the burning script corresponding to the solid-state disk.

[0239] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0240] Call the startup file to control the startup of the operating system;

[0241] In the case of determining that the operating system has started, use the network management protocol between the operating system and the physical medium to obtain the IP address information.

[0242] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0243] Obtain the version information of the operating system;

[0244] If the version information is the target version information, execute the step of burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium;

[0245] If the version information is not the target version information, then perform the step of burning the ISO image file to a physical medium according to the IP address information under the target operating system to generate an installation disk corresponding to the physical medium; the target operating system is any one of the historical version operating systems.

[0246] In one embodiment, a computer program product is provided, including a computer program, which when executed by a processor implements the following steps:

[0247] Obtain a command file and system files of the operating system; the command file is the command file when the operating system interacts with the physical medium connected to the operating system;

[0248] Generate an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files;

[0249] Call a startup file to obtain the IP address information of the physical medium;

[0250] Burn the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

[0251] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0252] Create an empty file through a preset text processing tool; the empty file includes a command file index and a system file index;

[0253] Add the command file and the system files to the empty file according to the command file index and the system file index to generate an ISO image file.

[0254] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0255] Modify the naming of the command file and the naming of the system files to obtain a standard command file and standard system files;

[0256] Add the standard command file and the standard system files to the empty file according to the command file index and the system file index to generate an ISO image file.

[0257] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0258] Perform formatting processing on the empty file to obtain a formatted empty file;

[0259] Add the command file and the system files to the empty file according to the command file index and the system file index to generate an ISO image file, including:

[0260] Add the command file and the system file to the formatted empty file according to the command file index and the system file index to generate an ISO image file.

[0261] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0262] Determine the type of the physical medium according to the IP address information;

[0263] Burn the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium.

[0264] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0265] If the type of the physical medium is a mechanical disk, call the first burning script to burn the ISO image file to the physical medium; the first burning script is the burning script corresponding to the mechanical disk;

[0266] If the type of the physical medium is a solid-state disk, call the second burning script to burn the ISO image file to the physical medium; the second burning script is the burning script corresponding to the solid-state disk.

[0267] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0268] Call the startup file to control the startup of the operating system;

[0269] When it is determined that the operating system has started, use the network management protocol between the operating system and the physical medium to obtain the IP address information.

[0270] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:

[0271] Obtain the version information of the operating system;

[0272] If the version information is the target version information, execute the step of burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium;

[0273] If the version information is non-target version information, execute the step of burning the ISO image file to the physical medium according to the IP address information under the target operating system to generate an installation disk corresponding to the physical medium; the target operating system is any one of the operating systems in the historical version of the operating system.

[0274] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in this application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.

[0275] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered to be within the scope recorded in this application.

[0276] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A method for generating an installation disk, characterized in that, The method includes: Obtaining a command file and system files of an operating system; the command file is a command file when the operating system interacts with a physical medium connected to the operating system; Generating an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files; Invoking a startup file to obtain IP address information of the physical medium; Burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium.

2. The method according to claim 1, wherein The generating an independent sector offset ISO image file according to a preset text processing tool, the command file, and the system files includes: Creating an empty file through the preset text processing tool; the empty file includes a command file index and a system file index; Adding the command file and the system files to the empty file according to the command file index and the system file index to generate the ISO image file.

3. The method according to claim 2, wherein The adding the command file and the system files to the empty file according to the command file index and the system file index to generate the ISO image file includes: Modifying the naming of the command file and the naming of the system files to obtain a standard command file and a standard system file; Adding the standard command file and the standard system file to the empty file according to the command file index and the system file index to generate the ISO image file.

4. The method according to claim 2, characterized in that, The method further includes: Performing a formatting process on the empty file to obtain a formatted empty file; The adding the command file and the system files to the empty file according to the command file index and the system file index to generate the ISO image file includes: Adding the command file and the system files to the formatted empty file according to the command file index and the system file index to generate the ISO image file.

5. The method according to any one of claims 1 to 4, characterized in that, The burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium includes: Determining the type of the physical medium according to the IP address information; Burning the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium.

6. The method according to claim 5, characterized in that, The burning the ISO image file to the physical medium according to the type of the physical medium to generate an installation disk corresponding to the physical medium includes: If the type of the physical medium is a mechanical disk, invoking a first burning script to burn the ISO image file to the physical medium; the first burning script is a burning script corresponding to the mechanical disk; If the type of the physical medium is a solid-state disk, invoking a second burning script to burn the ISO image file to the physical medium; the second burning script is a burning script corresponding to the solid-state disk.

7. The method according to claim 1, characterized in that The invoking a startup file to obtain IP address information of the physical medium includes: Invoking the startup file to control the startup of the operating system; When it is determined that the operating system is started, the IP address information is obtained by using the network management protocol between the operating system and the physical medium.

8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: obtaining version information of the operating system; if the version information is target version information, performing the step of burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium; if the version information is non-target version information, performing the step of burning the ISO image file to the physical medium according to the IP address information to generate an installation disk corresponding to the physical medium under a target operating system; the target operating system is any one of the operating systems in the historical version of the operating system.

9. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Mirror image system generation method and device, equipment and medium

    CN112130930A

  • Manufacturing method and device of eMMC burning file and computer equipment

    CN112486514A

  • System cloning method and device, electronic equipment and computer readable storage medium

    CN112527328A

  • Method for manufacturing U disk startup disk of linux operating system

    CN114911530A

  • Method and device for generating mirror image file of operating system

    CN117348974A