Installation disk generation method, device, computer equipment and storage medium
By automatically generating ISO image files and burning them to physical media, the problems of low efficiency and insufficient accuracy in installation disk generation in the existing technology are solved, and efficient and accurate installation disk production is achieved.
Patent Information
- Application Number
- CN202510740999.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-04
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2045-06-04
AI Technical Summary
Existing installation disk generation methods are inefficient, require users to manually perform multiple complex steps, and are prone to errors.
By obtaining the command files and system files for the interaction between the operating system and the physical media, and using preset text processing tools and startup files, the ISO image file is automatically generated and burned to the corresponding media based on the IP address information of the physical media. The burning scripts for different types of media are used to ensure accuracy.
This greatly improves the efficiency and accuracy of installation disk generation and avoids errors caused by manual user operations.
Smart Images

Figure CN120255916B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of embedded development technology, and in particular to a method, device, computer equipment, and storage medium for generating an installation disk. Background Art
[0002] When performing system installation, data backup, and software distribution on a server, an independent sector offset (ISO) image file must be generated based on relevant information. This ISO image file must then be written to a physical medium (such as a CD, DVD, or USB flash drive). This entire process is called "burning." After the burning or recording step is complete, the physical medium becomes a bootable installation disk, which can be used to boot the computer and install the operating system.
[0003] Currently, the existing "burning" process requires the user to manually perform many complex steps. Therefore, the generation method of the installation disk in the traditional technology has the problem of low efficiency. Summary of the Invention
[0004] Based on this, 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 the installation disk in order to address the above technical problems.
[0005] In a first aspect, the present application provides a method for generating an installation disk, comprising:
[0006] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0007] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0008] Call the startup file to obtain the IP address information of the physical medium;
[0009] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0010] In the above-mentioned method for generating an installation disk, the command file and the system file of the operating system when the operating system interacts with the physical medium connected to the operating system are first obtained, and then the ISO image file is generated according to the preset text processing tool, the command file and the system file. Then, the startup file is called to obtain the IP address information of the physical medium. Then, according to the IP address information, the ISO image file is burned to the physical medium 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, which greatly improves the efficiency of generating the installation disk. In addition, since the installation disk is produced by manual operation of the user, it is easy to make mistakes, which may lead to the problem of incorrect generation of the installation disk. However, this method does not involve manual operation of the user. By obtaining the command file and the system files of the operating system, the generation of the ISO image file and the installation disk can be completed according to the preset text processing tool and startup file and other tools, which greatly improves the accuracy of generating the installation disk.
[0011] In one embodiment, the above-mentioned method of generating an independent sector offset ISO image file based on a preset text processing tool, a command file, and a system file includes:
[0012] Create an empty file using a preset text processing tool; the empty file includes a command file index and a system file index;
[0013] According to the command file index and system file index, the command file and system file are added to the empty file to generate the ISO image file.
[0014] In this embodiment, when generating an ISO image file, the user does not need to manually execute multiple commands or configure multiple files. The generation of the ISO image file can be completed by using a text processing tool. Compared with the traditional method of generating an ISO image file, this method greatly improves the efficiency of generating an ISO image file.
[0015] In one embodiment, the above-mentioned 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 the ISO image file includes:
[0016] Modify the naming of command files and system files to obtain standard command files and standard system files;
[0017] Based on the command file index and system file index, the standard command file and standard system file are added to the empty file to generate the ISO image file.
[0018] In this embodiment, by modifying the names of the command files and system files, the command files and system files become standardized files that can generate ISO image files, providing a basis for subsequent generation of ISO image files, so that ISO image files can be accurately generated based on the command files and system files after the names are modified.
[0019] In one embodiment, the method further includes:
[0020] Formatting the empty file to obtain a formatted empty file;
[0021] According to the command file index and system file index, add the command file and system file to the empty file to generate an ISO image file, including:
[0022] Based on the command file index and system file index, the command file and system file are added to the formatted empty file to generate an ISO image file.
[0023] 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, so that the ISO image file can be accurately generated according to the formatted empty file.
[0024] In one embodiment, the above-mentioned burning of the ISO image file to a physical medium based on the IP address information to generate an installation disk corresponding to the physical medium includes:
[0025] Determine the type of physical media based on the IP address information;
[0026] Burn the ISO image file to the physical medium based on the type of physical medium to generate the installation disk corresponding to the physical medium.
[0027] In this embodiment, the type of physical medium is determined by 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, thereby improving the accuracy of generating the installation disk corresponding to the physical medium.
[0028] In one embodiment, the above-mentioned burning of the ISO image file to the physical medium according to the type of the physical medium to generate the installation disk corresponding to the physical medium includes:
[0029] If the type of the physical medium is a mechanical disk, the first burning script is called 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 disk, the second burning script is called to burn the ISO image file to the physical medium; the second burning script is a burning script corresponding to the solid state disk.
[0031] In this embodiment, by distinguishing the types of different physical media and calling the burning scripts of different types of physical media, the ISO image file is burned to the physical medium, avoiding the situation where the installation disk is abnormally installed due to abnormal burning scripts. This application uses different burning scripts for different types of physical media, which greatly improves the accuracy of generating the installation disk.
[0032] In one embodiment, the calling of 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 is started, the IP address information is obtained by utilizing the network management protocol between the operating system and the physical medium.
[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 is 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, thereby ensuring the efficiency of obtaining the IP address information of the physical medium.
[0036] In one embodiment, the method further includes:
[0037] Get the operating system version information;
[0038] If the version information is the target version information, 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 is executed;
[0039] If the version information is non-target version information, the steps of burning the ISO image file to the physical medium according to the IP address information and generating the installation disk corresponding to the physical medium are executed under the target operating system; the target operating system is any operating system in the historical version of the operating system.
[0040] In this embodiment, two different installation disk generation methods under two different versions of the operating system are provided, respectively, so that the installation disk can be successfully generated under different operating system versions.
[0041] In a second aspect, the present application further provides a device for generating an installation disk, comprising:
[0042] A file acquisition module is used to acquire command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0043] The first generation module is used to generate an independent sector offset ISO image file according to a preset text processing tool, a command file and a system file;
[0044] The information acquisition module is used to call the startup file to obtain the IP address information of the physical medium;
[0045] The second generating module is used to burn the ISO image file to a physical medium according to the IP address information, and generate an installation disk corresponding to the physical medium.
[0046] In a third aspect, the present application further provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0047] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0048] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0049] Call the startup file to obtain the IP address information of the physical medium;
[0050] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0051] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0052] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0053] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0054] Call the startup file to obtain the IP address information of the physical medium;
[0055] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0056] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the following steps:
[0057] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0058] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0059] Call the startup file to obtain the IP address information of the physical medium;
[0060] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0061] The above-mentioned installation disk generation method, device, computer equipment and storage medium first obtain the command file and system file of the operating system when the operating system interacts with the physical medium connected to the operating system, and then generates an ISO image file based on the preset text processing tool, command file and system file. Then, the startup file is called to obtain the IP address information of the physical medium. Then, based on the IP address information, the ISO image file is burned to the physical medium to generate an installation disk corresponding to the physical medium. Compared with the traditional installation disk generation method, this method does not require the user to manually execute multiple commands or configure multiple files, which greatly improves the efficiency of installation disk generation. In addition, since the installation disk is produced by manual operation of the user, it is easy to make mistakes, resulting in installation disk generation errors. However, this method does not involve manual operation of the user. By obtaining the command file and the system file of the operating system, the generation of the ISO image file and the installation disk can be completed according to the preset text processing tool and startup file and other tools, which greatly improves the accuracy of installation disk generation. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.
[0063] Figure 1 FIG. 1 is an application environment diagram of a method for generating an installation disk in one embodiment;
[0064] Figure 2 1 is a flow chart of a method for generating an installation disk in one embodiment;
[0065] Figure 3 is a flow chart of a method for generating an installation disk in another embodiment;
[0066] Figure 4 is a flow chart of a method for generating an installation disk in another embodiment;
[0067] Figure 5 is a flow chart of a method for generating an installation disk in another embodiment;
[0068] Figure 6 is a flow chart of a method for generating an installation disk in another embodiment;
[0069] Figure 7 is a flow chart of a method for generating an installation disk in another embodiment;
[0070] Figure 8 is a flow chart of a method for generating an installation disk in another embodiment;
[0071] Figure 9 is a flow chart of a method for generating an installation disk in another embodiment;
[0072] Figure 10 1 is a flow chart of a process for generating an installation disk in one embodiment;
[0073] Figure 11 is a flow chart of a method for generating an installation disk in another embodiment;
[0074] Figure 12 FIG. 4 is a structural block diagram of a device for generating an installation disk in one embodiment. DETAILED DESCRIPTION
[0075] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0076] When performing system installation, data backup, and software distribution on a server, an independent sector offset (ISO) image file must be generated based on relevant information. This ISO image file must then be written to a physical medium (such as a CD, DVD, or USB flash drive). This entire process is called "burning." After the burning or recording step is complete, the physical medium becomes a bootable installation disk, which can be used to boot the computer and install the operating system.
[0077] Currently, the existing "burning" process requires users to manually perform many complex steps. For example, the creation of an ISO image file involves organizing and packaging the operating system files, configuration, and boot information into an image file. This process is cumbersome, involves file organization, boot configuration, and file system creation, and is prone to errors. The burning process requires writing the ISO image file to physical media (such as a USB, drive, or optical disk) or virtual media. It is necessary to select the appropriate tools and ensure that the ISO image file can be written correctly. Any operational errors may cause the system to fail to boot or the installation disk to be installed unsuccessfully. Each manual operation step requires careful inspection. Therefore, the traditional method of generating installation disks has the problem of low efficiency. The present application aims to provide a method that can efficiently generate installation disks to solve the problem of low efficiency in generating installation disks in traditional technology.
[0078] After introducing the background technology of the method for generating the installation disk provided by the embodiment of the present application, the following briefly describes the implementation environment involved in the method for generating the installation disk provided by the embodiment of the present application. The method for generating the installation disk provided by the embodiment of the present application can be applied to Figure 1 In the computer device shown in FIG. 1 , its internal structure diagram can be as follows: Figure 1As shown. The computer device includes a processor, memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are connected to the system bus via the input / output interface. 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 internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer program 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, such as compact discs (CDs), digital versatile discs (DVDs), or universal serial bus (USB) flash drives. The communication interface of the computer device is used to communicate with external terminals via wired or wireless communication. The wireless communication can be achieved via Wi-Fi, a mobile cellular network, near field communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for generating an installation disk. The display unit of the computer device is used to produce a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display or an electronic ink display screen. The input device of the computer device can be a touch layer covering the display screen, a keypad, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse.
[0079] The following specific embodiments describe in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0080] In one embodiment, Figure 2 As shown, a method for generating an installation disk is provided, and the method is applied to Figure 1 The computer device in the example is used to illustrate the process, including the following steps:
[0081] S201. Obtain a command file and a system file of an operating system; wherein the command file is a command file used when the operating system interacts with a physical medium connected to the operating system.
[0082] The command file can be the Shell.efi command file. System files include kernel files and root file system files. The kernel file is the core part of the operating system and is responsible for initializing basic operating system functions, such as memory management, process scheduling, and device drivers. The root file system is the temporary file system used when the operating system starts, including the drivers and tools required for the operating system startup.
[0083] In the embodiment of the present application, when it is necessary to create an ISO image file, the command file and the operating system system file can be obtained from the file storage system. It should be noted that the file storage system pre-stores the command file and the operating system system file, as well as other types of files. When it is necessary to obtain the command file and the operating system system file, the corresponding command file and the system file can be directly searched 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 a preset text processing tool, command file, and system file.
[0085] The preset text processing tool may be a dd command tool, which can copy, convert and create files. An ISO image file refers to a file obtained by converting the contents of a CD or operating system image into the ISO format.
[0086] In this embodiment, after the command file and the system file of the operating system are obtained, a 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 starts the operating system and obtains the IP address information of the physical medium connected to the operating system according to the location of the kernel file and the root file system file in the ISO image file after the ISO image file is generated. For example, the startup file can be the Startup.nsh file. The Startup.nsh file is used to indicate the location of the kernel file and the root file system file, and 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. In this way, there is no need to manually execute other startup commands to start the system, but the system will 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 location 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 a 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] The above-mentioned method for generating an installation disk first obtains the command file and system files of the operating system when the operating system interacts with the physical medium connected to the operating system, and then generates an ISO image file based on the preset text processing tool, command file and system file, and then calls the startup file to obtain the IP address information of the physical medium, and then burns the ISO image file to the physical medium based on 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, which greatly improves the efficiency of generating the installation disk; in addition, since the installation disk is produced by manual operation of the user, it is easy to make mistakes, which may lead to the problem of incorrect generation of the installation disk. However, this method does not involve manual operation of the user. By obtaining the command file and the system files of the operating system, the generation of the ISO image file and the installation disk can be completed according to the preset text processing tool and startup file and other tools, which greatly improves the accuracy of generating the installation disk.
[0093] In this embodiment, the detailed process of generating ISO image files will be explained. In an exemplary embodiment, Figure 3 As shown, the above S202 includes:
[0094] S301. Create an empty file using a preset text processing tool; wherein the empty file includes a command file index and a system file index.
[0095] The size of the empty file is equal to the total size of the command file and the operating system's system files. The command file index and the system file index can provide guidance for the storage of the command file and the operating system's system files. The command file index indicates where to add the command file within the empty file, and the system file index indicates where to add the system file within the empty file.
[0096] In this embodiment, after obtaining the command file and the system files of the operating system, a preset text processing tool can be called to create an empty file with the same total size as the command file and the system files of the operating system.
[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 system file index pre-configured in the empty file, thereby obtaining the empty file with the text added, and then generating the ISO image file based on the empty file with the text added.
[0099] In this embodiment, when generating an ISO image file, the user does not need to manually execute multiple commands or configure multiple files. The generation of the ISO image file can be completed by using a text processing tool. Compared with the traditional method of generating an ISO image file, this method greatly improves the efficiency of generating an ISO image file.
[0100] This embodiment will further explain the detailed process of adding command files and system files to empty files based on command file indexes and system file indexes to generate ISO image files. Figure 4 As 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 names of the command file and the system file to obtain a standard command file and a standard system file.
[0103] Optionally, you can change the command file name to BOOTX64.EFI, the kernel file name in the system file to vmlinuz, and the root file system file name in the system file 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 to generate an ISO image file.
[0106] In this embodiment, by modifying the names of the command files and system files, the command files and system files become standardized files that can generate ISO image files, providing a basis for subsequent generation of ISO image files, so that ISO image files can be accurately generated based on the command files and system files after the names are modified.
[0107] In some scenarios, it is also necessary to format the generated empty file. Further, the formatted empty file can be used to generate an ISO image file. In an exemplary embodiment, Figure 5 As shown, the above method also includes:
[0108] S501: Format an 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] Accordingly, the above S302 includes:
[0111] S502: According to the command file index and the system file index, the command file and the system file are added 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 the 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 with the text added.
[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, so that 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, Figure 6As shown, the above S204 includes:
[0115] S601. Determine the type of physical medium according to IP address information.
[0116] The types of physical media include mechanical disks and solid-state disks.
[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, a corresponding burning strategy can be determined according to the type of the physical medium, and the ISO image file can be 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, a burning policy corresponding to the mechanical disk may be determined, and the ISO image file may be burned to the physical medium based on the burning policy 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, a burning policy corresponding to the solid state disk can be determined, and the ISO image file can be burned to the physical medium based on the burning policy corresponding to the solid state disk to generate an installation disk corresponding to the physical medium.
[0122] In this embodiment, the type of physical medium is detected by IP address information to determine the type of physical medium, so that the ISO image file can be accurately burned to the corresponding physical medium based on different types of physical media, thereby 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, Figure 7 As shown, the above S402 includes:
[0124] S701: If 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; wherein the first burning script is a burning script corresponding to the mechanical disk.
[0125] In this embodiment, if the type of the physical medium is determined to be a mechanical disk, a pre-configured burning script corresponding to the mechanical disk may 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 disk, call a second burning script to burn the ISO image file to the physical medium; wherein the second burning script is a burning script corresponding to the solid state disk.
[0127] In this embodiment, if the type of the physical medium is determined to be a solid state disk, a pre-configured burning script corresponding to the solid state disk can be called to burn the ISO image file to the physical medium to generate an installation disk corresponding to the physical medium.
[0128] In this embodiment, by distinguishing the types of different physical media and calling the burning scripts of different types of physical media, the ISO image file is burned to the physical medium, avoiding the situation where the installation disk is abnormally installed due to abnormal burning scripts. This application uses different burning scripts for different types of physical media, which greatly improves the accuracy of generating 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, Figure 8 As 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 refers to a file that starts the operating system and obtains the IP address information of the physical medium connected to the operating system according to the location of the kernel file and the root file system file in the ISO image file after the ISO image file is generated. For example, the startup file can be the Startup.nsh file. The Startup.nsh file is used to indicate the location of the kernel file and the root file system file, and 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. In this way, there is no need to manually execute other startup commands to start the system, but the system will be started automatically.
[0132] In an embodiment of the present application, after the above-mentioned ISO image file is generated, the startup file can be called to control the startup of the operating system according to the location 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 is started, obtain IP address information using a network management protocol between the operating system and the physical medium.
[0134] The network management protocol refers to a protocol used to centrally and dynamically manage and configure IP address information of hardware. The network management protocol may 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 may be pre-installed on the computer device, and the monitoring tool is used to monitor whether the operating system is started. Figure 9 As shown, after monitoring the successful startup of the operating system, it is determined whether the above-mentioned DHCP successfully configures the IP address of the physical medium. If not, the static IP input by the user is obtained, and it is continued to determine 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 choose, and the target system selected by the user from multiple versions of the system is received, and it is determined under the target system whether the physical medium is a mechanical hard disk. 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, when it is determined that the operating system is 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, thereby ensuring the efficiency of obtaining the IP address information of the physical medium.
[0137] The detailed process of generating the installation disk will be further explained in this embodiment. In an exemplary embodiment, Figure 10 As shown, the above method also includes:
[0138] S901. Obtain operating system version information.
[0139] 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 operating system version information can also be obtained. Optionally, the user can also enter an acquisition instruction on the display interface of the operating system to cause the operating system to display the operating system version information on the display interface.
[0141] S902: If the version information is the target version information, execute the above step S204.
[0142] 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 is possible to further determine 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, the ISO image file is directly burned to the physical medium according to the IP address information under the operating system to generate an installation disk corresponding to the physical medium.
[0144] S903: If the version information is non-target version information, execute the above step S204 under the target operating system.
[0145] The target operating system is any one of the historical versions of the operating system, and the non-target version information is any one of the historical versions 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, the operating system can display multiple historical version information on the display interface, so that the user can select a historical version information from 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 an installation disk corresponding to the physical medium.
[0147] In this embodiment, the version information of the operating system is obtained, and different installation disk generation methods are used based on different versions of the operating system, so that installation disks can be generated under different versions of the operating system, making it possible to successfully generate installation disks under different versions of the operating system.
[0148] For the convenience of understanding of those skilled in the art, see Figure 11 The following is a detailed description of the method for generating the installation disk provided by this application. The method may include:
[0149] S10, obtaining command files and system files of the operating system;
[0150] S11. Using a preset text processing tool, create an empty file including a command file index and a system file index;
[0151] S12. 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;
[0152] S13, formatting the empty file to obtain a 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, calling the startup file to control the startup of the operating system;
[0155] S16. When it is determined that the operating system is started, obtain IP address information using a network management protocol between the operating system and the physical medium;
[0156] S17. Determine the type of physical medium based on the IP address information;
[0157] S18. If the type of the physical medium is a mechanical disk, calling 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, so this embodiment will not be repeated here.
[0160] It should be understood that, although the various steps in the flowcharts involved in the various embodiments described above are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowcharts involved in the various embodiments described above can include multiple steps or multiple stages, and these steps or stages are not necessarily executed and completed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of steps or stages in other steps.
[0161] Based on the same inventive concept, embodiments of the present application also provide an apparatus for generating an installation disk for implementing the aforementioned method for generating an installation disk. The solution provided by this apparatus is similar to the solution described in the aforementioned method. Therefore, the specific limitations of the one or more embodiments of the apparatus for generating an installation disk provided below can be found in the aforementioned limitations of the method for generating an installation disk, and will not be further elaborated here.
[0162] In an exemplary embodiment, Figure 12As shown, a device for generating an installation disk is provided, comprising: a file acquisition module 10, a first generation module 11, an information acquisition module 12, and a second generation module 13, wherein:
[0163] The file acquisition module 10 is used to acquire command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0164] The first generating module 11 is used to generate an independent sector offset ISO image file according to a preset text processing tool, a command file and a system file;
[0165] The information acquisition module 12 is used to call the startup file to obtain the IP address information of the physical medium;
[0166] The second generating module 13 is configured to burn the ISO image file to a physical medium according to the IP address information, and generate an installation disk corresponding to the physical medium.
[0167] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0168] In an exemplary embodiment, the first generating module 11 includes: a creating unit and a generating unit, wherein:
[0169] The creation unit is specifically used 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 generating unit is specifically used to 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 the ISO image file.
[0171] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0172] In an exemplary embodiment, the above-mentioned generation unit is further used to 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; according to the command file index and the system file index, the standard command file and the standard system file are added to the empty file to generate an ISO image file.
[0173] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0174] In an exemplary embodiment, the first generating module 11 further includes: a processing unit, specifically configured to format the empty file to obtain a formatted empty file;
[0175] The generating unit is further configured to add the command file and the system file to the formatted empty file according to the command file index and the system file index, so as to generate the ISO image file.
[0176] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0177] In an exemplary embodiment, the second generating module 13 includes: a determining unit and a generating unit, wherein:
[0178] a determination unit, specifically configured to determine the type of physical medium according to the IP address information;
[0179] The generating unit is specifically used to burn the ISO image file to the physical medium according to the type of the physical medium, and generate an installation disk corresponding to the physical medium.
[0180] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0181] In an exemplary embodiment, the above-mentioned generation unit is further specifically used to call a first burning script to burn the ISO image file to the physical medium when the type of the physical medium is a mechanical disk; 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. Its implementation principle and technical effects are similar and will not be described in detail here.
[0183] In an exemplary embodiment, the information acquisition module 12 includes: a calling unit and an acquisition unit, wherein:
[0184] The calling unit is specifically used to call the startup file and control the startup of the operating system;
[0185] The acquiring unit is specifically configured to acquire IP address information by utilizing a network management protocol between the operating system and the physical medium when it is determined that the operating system is started.
[0186] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0187] In an exemplary embodiment, the above-mentioned file acquisition module 10 includes: an acquisition unit, which is specifically used to obtain the version information of the operating system; and when the version information is the target version information, 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 is executed; when the version information is non-target version information, 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 is executed under the target operating system; the target operating system is any operating system among the historical versions of the operating systems.
[0188] The request processing device provided in this embodiment can execute the above method embodiment. Its implementation principle and technical effects are similar and will not be described in detail here.
[0189] Each module in the apparatus for generating the installation disk may be implemented in whole or in part through software, hardware, or a combination thereof. Each module may be embedded in or independent of a processor in a computer device in the form of hardware, or may be stored in a memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0190] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0191] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0192] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0193] Call the startup file to obtain the IP address information of the physical medium;
[0194] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0195] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0196] Create an empty file using a preset text processing tool; the empty file includes a command file index and a system file index;
[0197] According to the command file index and system file index, the command file and system file are added to the empty file to generate the ISO image file.
[0198] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0199] Modify the naming of command files and system files to obtain standard command files and standard system files;
[0200] Based on the command file index and system file index, the standard command file and standard system file are added to the empty file to generate the ISO image file.
[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0202] Formatting the empty file to obtain a formatted empty file;
[0203] According to the command file index and system file index, add the command file and system file to the empty file to generate an ISO image file, including:
[0204] Based on the command file index and system file index, the command file and system file are added to the formatted empty file to generate an ISO image file.
[0205] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0206] Determine the type of physical media based on the IP address information;
[0207] Burn the ISO image file to the physical medium based on the type of physical medium to generate the installation disk corresponding to the physical medium.
[0208] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0209] If the type of the physical medium is a mechanical disk, the first burning script is called 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, the second burning script is called to burn the ISO image file to the physical medium; the second burning script is a burning script corresponding to the solid state disk.
[0211] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0212] Call the startup file to control the startup of the operating system;
[0213] When it is determined that the operating system is started, the IP address information is obtained by utilizing the network management protocol between the operating system and the physical medium.
[0214] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0215] Get the operating system version information;
[0216] If the version information is the target version information, 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 is executed;
[0217] If the version information is non-target version information, the steps of burning the ISO image file to the physical medium according to the IP address information and generating the installation disk corresponding to the physical medium are executed under the target operating system; the target operating system is any operating system in the historical version of the operating system.
[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] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0220] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0221] Call the startup file to obtain the IP address information of the physical medium;
[0222] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0223] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0224] Create an empty file using a preset text processing tool; the empty file includes a command file index and a system file index;
[0225] According to the command file index and system file index, the command file and system file are added to the empty file to generate the ISO image file.
[0226] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0227] Modify the naming of command files and system files to obtain standard command files and standard system files;
[0228] Based on the command file index and system file index, the standard command file and standard system file are added to the empty file to generate the ISO image file.
[0229] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0230] Formatting the empty file to obtain a formatted empty file;
[0231] According to the command file index and system file index, add the command file and system file to the empty file to generate an ISO image file, including:
[0232] Based on the command file index and system file index, the command file and system file are added 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 physical media based on the IP address information;
[0235] Burn the ISO image file to the physical medium based on the type of physical medium to generate the 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, the first burning script is called 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, the second burning script is called to burn the ISO image file to the physical medium; the second burning script is a 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] When it is determined that the operating system is started, the IP address information is obtained by utilizing the network management protocol between the operating system and the physical medium.
[0242] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0243] Get the operating system version information;
[0244] If the version information is the target version information, 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 is executed;
[0245] If the version information is non-target version information, the steps of burning the ISO image file to the physical medium according to the IP address information and generating the installation disk corresponding to the physical medium are executed under the target operating system; the target operating system is any operating system in the historical version of the operating system.
[0246] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0247] Obtaining command files and system files of the operating system; the command files are command files used when the operating system interacts with the physical medium connected to the operating system;
[0248] Generate independent sector offset ISO image files based on preset text processing tools, command files and system files;
[0249] Call the startup file to obtain the IP address information of the physical medium;
[0250] Burn the ISO image file to physical media based on the IP address information to generate an installation disk corresponding to the physical media.
[0251] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0252] Create an empty file using a preset text processing tool; the empty file includes a command file index and a system file index;
[0253] According to the command file index and system file index, the command file and system file are added to the empty file to generate the ISO image file.
[0254] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0255] Modify the naming of command files and system files to obtain standard command files and standard system files;
[0256] Based on the command file index and system file index, the standard command file and standard system file are added to the empty file to generate the ISO image file.
[0257] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0258] Formatting the empty file to obtain a formatted empty file;
[0259] According to the command file index and system file index, add the command file and system file to the empty file to generate an ISO image file, including:
[0260] Based on the command file index and system file index, the command file and system file are added to the formatted empty file 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 physical media based on the IP address information;
[0263] Burn the ISO image file to the physical medium based on the type of physical medium to generate the 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, the first burning script is called 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, the second burning script is called to burn the ISO image file to the physical medium; the second burning script is a 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 is started, the IP address information is obtained by utilizing the network management protocol between the operating system and the physical medium.
[0270] In one embodiment, when the computer program is executed by a processor, the following steps are further implemented:
[0271] Get the operating system version information;
[0272] If the version information is the target version information, 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 is executed;
[0273] If the version information is non-target version information, the steps of burning the ISO image file to the physical medium according to the IP address information and generating the installation disk corresponding to the physical medium are executed under the target operating system; the target operating system is any operating system in the historical version of the operating system.
[0274] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the 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-mentioned methods. In particular, any reference to memory, database, or other media 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), magnetic 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 take various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The databases involved in the various embodiments provided herein may include at least one of a relational database and a non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the various embodiments provided herein may be, but are not limited to, general-purpose processors, central processing units (CPUs), graphics processing units (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), quantum computing-based data processing logic devices, artificial intelligence (AI) processors, and the like.
[0275] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, 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, they should be considered to be within the scope of this application.
[0276] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present application. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and these modifications and improvements fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A method for generating an installation disk, characterized in that: The method comprises: Obtaining a command file and a system file of an operating system; the command file is a command file used when the operating system interacts with a physical medium connected to the operating system; Creating an empty file including a command file index and a system file index using a preset text processing tool; 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; calling a startup file to control the startup of the operating system; if it is determined that the operating system is started, determining whether the network management protocol between the operating system and the physical medium has successfully configured the IP address of the physical medium; if so, using the configured IP address of the physical medium as the IP address information; if not, using the static IP entered by the user as the IP address information; If the version information of the operating system is the target version information, determining the type of the physical medium according to the IP address information, determining a corresponding burning strategy according to the type of the physical medium, and burning the ISO image file to the physical medium based on the burning strategy to generate an installation disk corresponding to the physical medium; If the version information is non-target version information, multiple historical version information are displayed on the display interface of the operating system, and the target historical version information selected by the user from the multiple historical version information is received, and the steps of determining the type of the physical medium according to the IP address information, determining the corresponding burning strategy according to the type of the physical medium, and burning the ISO image file to the physical medium based on the burning strategy to generate an installation disk corresponding to the physical medium are performed under the target operating system corresponding to the target historical version information; the target operating system is any operating system among the historical version operating systems.
2. The method according to claim 1, characterized in that The step 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 the ISO image file includes: 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; According to the command file index and the system file index, the standard command file and the standard system file are added to the empty file to generate the ISO image file.
3. The method according to claim 1, characterized in that The method further comprises: Formatting the empty file to obtain a formatted empty file; The step 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 the ISO image file includes: According to the command file index and the system file index, the command file and the system file are added to the formatted empty file to generate the ISO image file.
4. The method according to claim 1, wherein The step of determining a corresponding burning strategy according to the type of the physical medium, and burning the ISO image file to the physical medium based on the burning strategy to generate an installation disk corresponding to the physical medium includes: If the type of the physical medium is a mechanical disk, calling 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, a second burning script is called to burn the ISO image file to the physical medium; the second burning script is a burning script corresponding to the solid state disk.
5. A device for generating an installation disk, characterized in that: The device comprises: A first acquisition module is configured to acquire a command file and a system file of an operating system; the command file is a command file used when the operating system interacts with a physical medium connected to the operating system; A first generating module is configured to create an empty file including a command file index and a system file index using a preset text processing tool; and 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; a calling module, configured to call a startup file to control the startup of the operating system; and, when it is determined that the operating system is started, determining whether the network management protocol between the operating system and the physical medium has successfully configured the IP address of the physical medium; if so, using the configured IP address of the physical medium as the IP address information; if not, using a static IP input by the user as the IP address information; A second generating module is configured to determine, when the version information of the operating system is the target version information, the type of the physical medium according to the IP address information, determine a corresponding burning strategy according to the type of the physical medium, and burn the ISO image file to the physical medium based on the burning strategy to generate an installation disc corresponding to the physical medium; The third generation module is used to display multiple historical version information on the display interface of the operating system when the version information is non-target version information, and receive target historical version information selected by the user from the multiple historical version information, and execute the steps of determining the type of the physical medium according to the IP address information, determining the corresponding burning strategy according to the type of the physical medium, and burning the ISO image file to the physical medium based on the burning strategy to generate an installation disk corresponding to the physical medium under the target operating system corresponding to the target historical version information; the target operating system is any operating system among the historical version operating systems.
6. The device according to claim 5, characterized in that The first generating module includes: a modification unit, specifically used to 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; The generating unit is specifically configured to 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, so as to generate the ISO image file.
7. The device according to claim 5, characterized in that The device further comprises: A processing module, configured to format the empty file to obtain a formatted empty file; The first generating module is further configured to 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 the ISO image file.
8. The device according to claim 5, characterized in that The second generation module includes: A first burning unit is specifically 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; The second burning unit is specifically used to call a second burning script to burn the ISO image file to the physical medium when the type of the physical medium is a solid state disk; the second burning script is a burning script corresponding to the solid state disk.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.