Method and device for installing multiple operating systems
By creating a shared boot partition and root partition on the physical device disk, it is possible to install multiple operating systems under limited hardware resources, solve the problem of incomplete installation, and provide the restore capability of the backup system.
Patent Information
- Application Number
- CN202310203041.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
When the number of hardware devices is limited or the number of available virtual disks is less than the number of operating systems that need to be installed, it is not possible to completely install all operating systems.
Create a boot partition shared by multiple operating systems on the disk of the physical device, install multiple operating systems in sequence based on the shared boot partition, create a root partition for each operating system, and store the installation files of the operating system through the shared boot partition and backup operating systems to enable the installation of multiple operating systems.
It solves the problem of limited number of hardware devices or insufficient number of virtual disks, enables the installation of multiple operating systems on one disk, alleviates the problem of limited resources, and provides the restore capability of the backup system.
Smart Images

Figure CN118535172A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a method and device for installing multiple operating systems. Background Art
[0002] With the continuous development of general computer hardware technology, hardware devices are becoming more powerful and faster. At the same time, the software technology of operating systems is also developing. More and more operating system types have emerged, and various operating system versions have been derived. The demand for installing multiple different operating systems on hardware devices is becoming more and more urgent. However, when the number of hardware devices is limited or the number of virtual disks available is less than the number of operating systems that need to be installed, there will be a problem that all operating systems cannot be fully installed. Summary of the invention
[0003] The embodiment of the present invention provides a method and device for installing multiple operating systems, so as to at least solve the problem in the related art that all operating systems cannot be completely installed when the number of hardware devices is limited or the number of virtual disks available is less than the number of operating systems to be installed.
[0004] According to one embodiment of the present invention, a method for installing multiple operating systems is provided, comprising: creating a boot partition shared by multiple operating systems on a disk of a physical device, and installing the multiple operating systems in sequence based on the boot partition and creating a root partition for each operating system.
[0005] In an exemplary embodiment, after installing the multiple operating systems in sequence based on the boot partition and creating a root partition for each operating system, the method further includes: installing backup operating systems corresponding to the multiple operating systems through the installation file and the boot files of the multiple operating systems stored on the shared boot partition, and creating a root partition for each backup operating system.
[0006] According to another embodiment of the present invention, a multi-operating system installation device is provided, comprising: a creation module for creating a boot partition shared by multiple operating systems on a disk of a physical device; an installation module for installing the multiple operating systems in sequence based on the boot partition and creating a root partition for each operating system.
[0007] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.
[0008] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0009] According to the embodiment of the present invention, since a boot partition shared by multiple operating systems is created on the disk of the physical device, multiple operating systems can be installed on the disk through the shared boot partition. Therefore, the problem that all operating systems cannot be completely installed when the number of hardware devices is limited or the number of virtual disks that can be provided is less than the number of operating systems that need to be installed can be solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a hardware structure block diagram of a computer terminal running a multi-operating system installation method according to an embodiment of the present invention;
[0011] Figure 2 is a structural block diagram of a multi-operating system electronic device according to an embodiment of the present invention;
[0012] Figure 3 is a flowchart of a multi-operating system installation method according to an embodiment of the present invention;
[0013] Figure 4 is a structural block diagram of a multi-operating system installation device according to an embodiment of the present invention;
[0014] Figure 5 is a flow chart of a method for installing multiple operating systems based on a shared boot partition according to an embodiment of the present invention;
[0015] Figure 6 is a flowchart of a method for installing a backup operating system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0016] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0018] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure diagram of a computer terminal running a multi-operating system installation method according to an embodiment of the present invention. Figure 1 As shown, the computer terminal may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Central Processing Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA)) and a memory 104 for storing data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0019] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the multi-operating system installation method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0020] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0021] The embodiments of the present application can be applied to Figure 2 On a multi-operating system electronic device as shown, Figure 2 As shown, the electronic device includes: a physical device 201 , a firmware interface 202 , a shared boot partition 203 , and an operating system root partition 204 .
[0022] Physical device 201 includes but is not limited to a physical server, a computer or a virtual disk. Physical device 201 must include at least one physical storage device, and the storage space must be able to meet the total space required for the installation of multiple operating systems; if it is a virtual disk, the size of the virtual disk must be able to meet the total space required for the installation of multiple operating systems.
[0023] The firmware interface 202 is a firmware interface that is simulated when the physical device 201 executes a self-starting program when it is started or when the virtual system is started.
[0024] The shared boot partition 203, namely the boot disk, is used to store the startup configuration files and the boot files of each operating system.
[0025] Operating system root partition 204: Each operating system has its own independent root partition. When a different operating system is selected during startup, the system will switch to the specified operating system root partition for startup.
[0026] In this embodiment, a method for installing multiple operating systems running on the above-mentioned computer terminal or electronic device is provided. Figure 3 is a flowchart of a method for installing multiple operating systems according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0027] Step S302: creating a boot partition shared by multiple operating systems on a disk of a physical device, and installing the multiple operating systems in sequence based on the boot partition and creating a root partition for each operating system.
[0028] By installing multiple operating systems and their backup systems on one physical disk or virtual disk, the problem of limited physical disk or virtual disk resources can be alleviated.
[0029] In step S302 of the present embodiment, creating a boot partition shared by multiple operating systems on the disk of the physical device includes one of the following: when installing the first operating system, creating a boot partition for the first operating system on the disk of the physical device, and using the boot partition as a boot partition shared by other operating systems installed subsequently; before installing the first operating system, creating a boot partition on the disk of the physical device as a boot partition shared by the multiple operating systems.
[0030] In this embodiment, a shared boot partition can be created in advance on the disk of the physical device for installing multiple operating systems. If the boot partition is not created in advance, it can also be created when the first operating system is installed.
[0031] In an exemplary embodiment, a boot partition of the first operating system is created on the disk of the physical device, and the boot partition is used as a boot partition shared by other operating systems installed subsequently, including: after the physical device is started and the device self-test is completed, entering the operating system installation interface by mounting the installation file of the first operating system; creating a boot partition of the first operating system on the disk through the operating system installation interface, and using the boot partition as a boot partition shared by other operating systems installed subsequently.
[0032] In an exemplary embodiment, the multiple operating systems are installed in sequence based on the shared boot partition and a root partition for each operating system is created, including: after the shared boot partition is created, a logical partition is created as a root partition for a first operating system, and the installation of the first operating system is completed; the boot partition of the first operating system is used as a shared boot partition for subsequent operating systems, the multiple operating systems are installed in sequence, and a root partition for each operating system is created to complete the installation of the multiple operating systems.
[0033] In an exemplary embodiment, before installing the first operating system, a boot partition is created on the disk of the physical device as a boot partition shared by the multiple operating systems, including: before installing the first operating system, partitioning the disk of the physical device and creating a boot partition as a boot partition shared by the multiple operating systems to be installed subsequently.
[0034] In an exemplary embodiment, the multiple operating systems are installed in sequence based on the shared boot partition and a root partition for each operating system is created, including: using the shared boot partition as a shared boot partition for subsequent operating systems, installing the multiple operating systems in sequence and creating a root partition for each operating system to complete the installation of the multiple operating systems.
[0035] In an exemplary embodiment, when the physical device is booted by Unified Extensible Firmware Interface (UEFI), the shared boot partition includes: a general boot partition and an Extensible Firmware Interface (EFI) partition.
[0036] In step S302 of the present embodiment, a boot partition shared by multiple operating systems is created on a disk of a physical device, which also includes: partitioning the disk of the physical device to create a boot partition shared by the multiple operating systems on the disk; or, creating the entire disk as a boot partition shared by the multiple operating systems.
[0037] In an exemplary embodiment, the disk is a physical disk or a virtual disk.
[0038] After step S302 of this embodiment, the method further includes: installing backup operating systems corresponding to the multiple operating systems through the installation file and the boot files of the multiple operating systems stored on the shared boot partition, and creating root partitions of the backup operating systems.
[0039] In an exemplary embodiment, when an operating system is abnormal, the operating system can be restored through its backup system.
[0040] After step S302 of this embodiment, the method further includes: after successfully installing the last operating system, performing information check on the boot configuration file stored in the shared boot partition through the last operating system.
[0041] In an exemplary embodiment, the information check includes: checking whether the boot information block of each operating system exists in the boot configuration file; checking whether the operating system root partition information recorded in the boot information block of each operating system is consistent with the root partition information set when the operating system is installed; and checking whether the boot file information in the boot information block of each operating system corresponds to the operating system.
[0042] In an exemplary embodiment, the method also includes at least one of the following: if the boot information block of the operating system is missing in the boot configuration file, adding the boot information of the corresponding operating system to the boot configuration file; if the operating system root partition information recorded in each of the operating system boot information blocks is inconsistent with the root partition information set when the operating system is installed, obtaining the correct root partition information of the operating system and filling the correct root partition information into the boot information block of the operating system; if the boot file information in each of the operating system boot information blocks does not correspond to the operating system, querying the correct boot file information corresponding to the operating system from the boot partition, and filling the correct boot file information into the boot information block of the operating system.
[0043] Through the above steps, since a boot partition shared by multiple operating systems is created on the disk of the physical device, multiple operating systems can be installed on the disk through the shared boot partition. Therefore, the problem that all operating systems cannot be completely installed when the number of hardware devices is limited or the number of virtual disks available is less than the number of operating systems to be installed can be solved.
[0044] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory (ROM / RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0045] In this embodiment, a multi-operating system installation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0046] Figure 4 is a structural block diagram of a multi-operating system installation device according to an embodiment of the present invention. Figure 4 As shown, the device comprises:
[0047] A creation module 41, used for creating a boot partition shared by multiple operating systems on a disk of a physical device;
[0048] The installation module 42 is used to install the multiple operating systems in sequence based on the boot partition and create a root partition for each operating system.
[0049] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0050] To facilitate the understanding of the technical solution provided by the present invention, a detailed description will be given below in conjunction with embodiments of specific scenarios.
[0051] The related art includes the following methods for installing multiple operating systems:
[0052] Multi-system installation based on Basic Input Output System (BIOS). The system finally created by this installation method is a virtual system, that is, a virtual system is created on the BIOS, and then storage space is allocated to the virtual system. Since this method is managed uniformly by the BIOS, and system installation and startup instructions are processed, it cannot support UEFI.
[0053] Multi-system installation based on different partitions, for example: you need to install the Linux system in partition 1 first, then install the Windows system in partition 2, and then use the boot file installed by the Linux system to obtain the startup items of the Linux and Windows systems to enter different systems. In this way, the Linux system and the Windows system need to use their own boot partitions for booting, and there is no shared boot partition.
[0054] Multi-system installation based on virtual environment means creating a virtual environment on one operating system and running another operating system on the virtual environment. For example, first create the first operating system, generate the disk topology file and the storage configuration file of the first operating system, and then create a virtual operating environment after installing the second operating system. Then, run the first operating system on the virtual environment based on the configuration file of the first storage system. This installation method requires the pre-installation of the operating system once and the acquisition of the storage configuration file of the operating system before the installation of multiple operating systems can be realized. The operation is complicated.
[0055] The embodiment of the present invention proposes a multi-operating system installation method based on a shared boot partition, so that when multiple operating systems need to be installed, the boot files of each operating system are stored in a shared partition or a shared disk. When starting a device or a virtual system, the information of the operating systems installed in the device or virtual system is obtained by reading the startup configuration file in the shared boot partition / boot disk, and the operating system to be started is selected to enter the specified operating system. Through this method, it is possible to install 4 or more operating systems and backup systems on a physical disk or a virtual disk, which can solve the problem that all operating systems cannot be completely installed when the number of physical disks or the number of virtual disks available is less than the number of operating systems to be installed, and it can also be achieved that when a certain operating system is abnormal, the corresponding operating system can be restored through the backup system.
[0056] The method for installing multiple operating systems based on a shared boot partition needs to be run on a physical device, which can be a physical server or a computer. In the case where four or more Linux operating systems with different kernels need to be installed on the physical device, when the memory on the physical device has enough space to accommodate the installation of multiple operating systems, such as Figure 5As shown, the multi-operating system installation method based on the shared boot partition includes the following steps:
[0057] Step S510: Power on the software system by booting it through BIOS or UEFI, so that the physical device starts normally and completes the device self-check.
[0058] Step S520: installing the first system through the installation file, and creating a boot partition during the installation;
[0059] Specifically, after the physical device completes the self-test, the first operating system installation file is mounted to enter the operating system installation interface. When performing the system partition operation, a primary partition can be created in the physical disk through the operating system installation interface, or a physical disk can be created as a primary partition. This physical disk will be used as a boot disk for the boot partition / boot disk shared by multiple operating systems, and the required size of the boot partition / boot disk must meet the following requirements: 1G*N, where N represents the total number of systems to be installed.
[0060] In an exemplary embodiment, a boot partition is pre-created before installing the first operating system, and the first operating system is installed based on the pre-created boot partition.
[0061] In an exemplary embodiment, when the system is powered on by booting in UEFI mode, the shared boot partition / boot disk includes a universal boot partition / boot disk and an EFI partition / EFI disk.
[0062] After the shared boot partition / boot disk is created successfully, create a logical partition on the physical disk or other disks as the root partition of the operating system, and continue with the subsequent installation steps of the first operating system until the installation of the first operating system is finally completed.
[0063] Step S530: After the first operating system is installed, a second operating system is installed using the installation file, and when installing the second operating system, a boot partition shared with the first operating system is selected.
[0064] Specifically, after successfully installing the first operating system, restart the physical device; enter the installation interface of the second operating system by mounting the installation file of the second operating system, and when performing system partition operations, use the boot partition / boot disk created by the first operating system as a shared boot partition / boot disk and configure it for use by the second operating system, without the need to create a new boot partition / boot disk.
[0065] In an exemplary embodiment, in a scenario where the system is booted in UEFI mode, the second operating system uses both the EFI partition / EFI disk and the universal boot partition / boot disk as shared partitions / shared disks and configures them for use by the second operating system.
[0066] After the boot partition / boot disk configuration is complete, create a root partition for the second operating system, and then continue to complete the subsequent system installation steps until the second operating system is finally installed.
[0067] Step S540: Install the subsequent operating system according to the second operating system installation method, and select the boot partition shared with the first operating system during installation.
[0068] Step S550: Enter the last successfully installed operating system, modify the boot configuration file in the boot partition, add or modify the startup partition information of each operating system, and ensure that each operating system corresponds to the root partition one by one.
[0069] After the last operating system is successfully installed, restart the device and enter the last successfully installed operating system. Enter the directory where the boot partition / boot disk is mounted, open the boot configuration file stored in the boot partition / boot disk, and check the following:
[0070] 1. Check whether the boot information blocks of each operating system exist in the boot configuration file. If not, you need to add the boot information of the corresponding operating system.
[0071] 2. Check whether the operating system root partition information recorded in each operating system boot information block is consistent with the root partition information set when the operating system is installed. If there is any inconsistency, you need to obtain the corresponding root partition information by checking the disk partition information and fill in the correct root partition information into the operating system boot information block.
[0072] 3. Check whether the boot file information in each operating system boot information block corresponds to the operating system. If it is inconsistent, you need to query the boot file information corresponding to the operating system from the boot partition / boot disk and fill the correct boot file information into the boot information block of the operating system.
[0073] Figure 6 is a flowchart of a method for installing a backup operating system according to an embodiment of the present invention. Figure 6 As shown, the method comprises the following steps:
[0074] Step S610: partition the storage device of the physical device to create a shared boot partition.
[0075] Specifically, a disk of the physical device is partitioned to create an independent boot partition / boot disk, and a boot partition / boot disk storage space is created according to the size of 1G*N, where N represents the total number of systems to be installed.
[0076] In an exemplary embodiment, partitioning a disk of a physical device to create an independent boot partition / boot disk includes: creating the entire disk as a boot partition; or creating a part of the disk as a boot partition.
[0077] In one exemplary embodiment, a shared boot partition is created when a first operating system is installed.
[0078] Step S620: The physical device is booted and started through BIOS or UEFI and performs self-test.
[0079] Step S630: Install the first operating system through the installation file, and use the created boot partition as the boot partition of the first operating system.
[0080] Specifically, in the installation configuration boot interface, the boot partition / boot disk of the operating system is set to the shared boot partition / boot disk created in step S610, and a root partition corresponding to the system is created to complete subsequent installation steps.
[0081] Step S640: Use the boot file of the first operating system to install the backup system of the first system.
[0082] Specifically, the backup system of the first operating system is installed through the installation file. The boot file of the first operating system on the shared boot partition / boot disk in step S630 is used during the installation to create a root partition of the backup system and complete subsequent installation steps.
[0083] Step S650: Install a different subsequent operating system, use the created boot partition as the boot partition of the operating system to be installed, and install the backup system corresponding to the operating system.
[0084] Specifically, according to the operation method of step S630, different operating systems to be installed are installed, and at the same time, according to step S640, backup systems corresponding to different operating systems to be installed are installed.
[0085] Step S660: Enter the last successfully installed system, modify the boot configuration file in the boot partition, add or modify the boot partition information of each operating system, and ensure that each operating system corresponds to the root partition one by one.
[0086] In an exemplary embodiment, when multiple systems are installed on only one disk or virtual disk on a physical device, the boot files of all systems are stored in the boot partition / boot disk to complete the installation of multiple operating systems on one disk or virtual disk; when there are multiple disks or virtual disks, a certain disk or virtual disk can be used as a shared boot partition / boot disk to enable multiple operating systems to share the boot partition / boot disk for installation and booting.
[0087] Through the above-mentioned embodiments of the present invention, it is possible to effectively improve the utilization of physical resources when there are fewer physical devices and tight resources, and to achieve the coexistence of more operating systems on physical devices, so as to meet the diverse needs of users in terms of development, testing, and use, thereby reducing the user's investment in physical devices and reducing costs. At the same time, it is also possible to install multiple systems on a virtual disk, further isolating the systems on the physical device from the virtual operating system, and improving security when achieving diversification.
[0088] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0089] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0090] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0091] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0092] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0093] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0094] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for installing multiple operating systems, characterized in that: include: A boot partition shared by multiple operating systems is created on a disk of a physical device, and the multiple operating systems are installed in sequence based on the boot partition, and a root partition of each operating system is created.
2. The method according to claim 1, characterized in that Creating a boot partition shared by multiple operating systems on a physical device's disk involves one of the following: When installing a first operating system, creating a boot partition of the first operating system on the disk of the physical device, and using the boot partition as a boot partition shared by other operating systems installed subsequently; Before installing the first operating system, a boot partition is created on the disk of the physical device as a boot partition shared by the multiple operating systems.
3. The method according to claim 2, characterized in that Creating a boot partition of the first operating system on the disk of the physical device, and using the boot partition as a boot partition shared by other operating systems subsequently installed, including: After the physical device is started and the device self-check is completed, the installation file of the first operating system is mounted to enter the operating system installation interface; A boot partition of the first operating system is created on the disk through the operating system installation interface, and the boot partition is used as a boot partition shared by other operating systems installed subsequently.
4. The method according to claim 3, characterized in that The method includes sequentially installing the multiple operating systems based on the shared boot partition and creating a root partition for each operating system, including: After the shared boot partition is created, a logical partition is created as a root partition of the first operating system, and the installation of the first operating system is completed; The boot partition of the first operating system is used as a shared boot partition for subsequent operating systems, the multiple operating systems are installed in sequence, and a root partition of each operating system is created to complete the installation of the multiple operating systems.
5. The method according to claim 2, characterized in that: Before installing the first operating system, creating a boot partition on the disk of the physical device as a boot partition shared by the multiple operating systems, including: Before installing the first operating system, the disk of the physical device is partitioned, and a boot partition is created as a boot partition shared by the multiple operating systems to be installed subsequently.
6. The method according to claim 5, characterized in that The method includes sequentially installing the multiple operating systems based on the shared boot partition and creating a root partition for each operating system, including: The shared boot partition is used as a shared boot partition for subsequent operating systems, the multiple operating systems are installed in sequence, and a root partition for each operating system is created to complete the installation of the multiple operating systems.
7. The method according to claim 3, characterized in that in, In the case where the physical device is booted by an extensible firmware interface, the shared boot partition includes: a general boot partition and an extensible firmware interface partition.
8. The method according to claim 1, characterized in that Create a boot partition on a physical device's disk that is shared by multiple operating systems, including: Partitioning the disk of the physical device to create a boot partition shared by the multiple operating systems on the disk; or creating the entire disk as a boot partition shared by the multiple operating systems.
9. The method according to claim 1, characterized in that: in, The disk is a physical disk or a virtual disk.
10. The method according to claim 1, characterized in that After sequentially installing the multiple operating systems based on the boot partition and creating a root partition for each operating system, the method further includes: The backup operating systems corresponding to the multiple operating systems are installed through the installation file and the boot files of the multiple operating systems stored on the shared boot partition, and the root partitions of the backup operating systems are created.
11. The method according to claim 1, characterized in that: After sequentially installing the multiple operating systems based on the boot partition, the method further includes: After the last operating system is successfully installed, information check is performed on the boot configuration file stored in the shared boot partition through the last operating system.
12. The method according to claim 11, characterized in that in, The information check includes: Checking whether the boot information block of each operating system exists in the boot configuration file; Checking whether the operating system root partition information recorded in the boot information block of each operating system is consistent with the root partition information set when the operating system is installed; Check whether the boot file information in the boot information block of each operating system corresponds to the current operating system.
13. The method according to claim 12, characterized in that The method further comprises at least one of the following: If the boot information block of the operating system is missing in the boot configuration file, adding the boot information corresponding to the operating system to the boot configuration file; If the operating system root partition information recorded in each operating system boot information block is inconsistent with the root partition information set when the operating system is installed, obtaining the correct root partition information of the operating system and filling the correct root partition information into the boot information block of the operating system; If the boot file information in each operating system boot information block does not correspond to the operating system, the correct boot file information corresponding to the operating system is queried from the boot partition, and the correct boot file information is filled into the boot information block of the operating system.
14. A multi-operating system installation device, characterized in that: include: A creation module for creating a boot partition shared by multiple operating systems on a physical device's disk; The installation module is used to install the multiple operating systems in sequence based on the boot partition and create a root partition for each operating system.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 13 when executed by a processor.
16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 13 are implemented.
Citation Information
Patent Citations
Method and device for installing several multiple operating systems on one partition of storage medium
CN103777985A
Control method and device and electronic equipment
CN113849235A
Multi-operating system installation method and electronic equipment
CN114579150A
Method and system for processing startup fault of Linux operating system
CN115509683A
Cited By
Multi-partition multi-system guiding method based on UEFI BIOS specification
CN119292679A
A multi-partition, multi-system boot method based on the UEFI BIOS specification
CN119292679B
