Method and apparatus for installing multiple operating systems
By creating boot partitions and root partitions shared by multiple operating systems on the physical device disk, the problem of limited number of hardware devices or insufficient number of virtual disks is solved, the installation of multiple operating systems and the creation of backup systems are realized, and resources are improved. Utilization and system diversity, reducing hardware costs.
Patent Information
- Application Number
- PCT/CN2023/143719
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2023-12-30
- Publication Date
- 2024-08-29
AI Technical Summary
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, it is difficult to completely install multiple different operating systems on the hardware devices using existing technology.
By creating a boot partition shared by multiple operating systems on the disk of the physical device, installing multiple operating systems in sequence based on the boot partition, and creating a root partition for each operating system, the installation of multiple operating systems and the creation of a backup system can be achieved. .
It effectively solves the problem of limited number of hardware devices or insufficient virtual disk resources. It enables the installation of multiple operating systems and backup systems on one physical disk or virtual disk, improves resource utilization, reduces hardware costs, and improves system efficiency. Diversity and security.
Smart Images

Figure CN2023143719_29082024_PF_FP_ABST
Abstract
Description
Multi-operating system installation method and device Technical Field
[0001] The present disclosure relates to the field of communications, and more particularly, to a method and apparatus for installing multiple operating systems. Background Art
[0002] With the continuous development of general-purpose computer hardware technology, hardware devices are becoming increasingly powerful and faster. Simultaneously, operating system software technology is also evolving, resulting in the emergence of a growing number of operating system types and versions. This has led to an increasing demand for installing multiple operating systems on hardware devices. However, if the number of hardware devices is limited or the number of available virtual disks is less than the number of operating systems required, there may be a problem where all operating systems cannot be fully installed.
[0003] Summary of the Invention
[0004] The embodiments of the present disclosure provide a method and apparatus for installing multiple operating systems 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 that need to be installed.
[0005] According to one embodiment of the present disclosure, 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 sequentially installing the multiple operating systems based on the boot partition and creating a root partition for each operating system.
[0006] In an exemplary embodiment, 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: installing backup operating systems corresponding to the multiple operating systems using 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.
[0007] According to another embodiment of the present disclosure, a multi-operating system installation device is provided, including: a creation module, configured to create a boot partition shared by multiple operating systems on a disk of a physical device; an installation module, configured to install the multiple operating systems in sequence based on the boot partition and create a root partition for each operating system.
[0008] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0009] According to another embodiment of the present disclosure, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] FIG1 is a hardware structure block diagram of a computer terminal for running a multi-operating system installation method according to an embodiment of the present disclosure;
[0011] FIG2 is a structural block diagram of a multi-operating system electronic device according to an embodiment of the present disclosure;
[0012] FIG3 is a flowchart of a method for installing multiple operating systems according to an embodiment of the present disclosure;
[0013] FIG4 is a structural block diagram of a multi-operating system installation apparatus according to an embodiment of the present disclosure;
[0014] 5 is a flowchart of a method for installing multiple operating systems based on a shared boot partition according to an embodiment of the present disclosure;
[0015] FIG6 is a flowchart of a method for installing a backup operating system according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0016] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings and in conjunction with embodiments.
[0017] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 operation on a computer terminal as an example, FIG1 is a hardware structure block diagram of a computer terminal for running a multi-operating system installation method in an embodiment of the present disclosure. As shown in FIG1 , the computer terminal may include one or more (only one is shown in FIG1 ) processors 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 configured to store data, wherein the above-mentioned computer terminal may also include a transmission device 106 and an input / output device 108 configured to have a communication function. It will be understood by those skilled in the art that the structure shown in FIG1 is only illustrative and does not limit the structure of the above-mentioned computer terminal. For example, the computer terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .
[0019] The memory 104 can be configured 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 disclosure. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implementing the above-mentioned 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 instances, the memory 104 may further include a memory remotely located 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 configured to receive or transmit data via a network. A specific example of the aforementioned network may include a wireless network provided by a computer terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module configured to communicate with the Internet wirelessly.
[0021] The embodiment of the present application can be applied to the multi-operating system electronic device shown in FIG2 . As shown in FIG2 , 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 sufficient to accommodate the combined space required for installing multiple operating systems. If it is a virtual disk, the size of the virtual disk must be sufficient to accommodate the combined space required for installing multiple operating systems.
[0023] The firmware interface 202 is a firmware interface that is simulated when the physical device 201 starts up and executes a self-starting program or when the virtual system starts up.
[0024] The shared boot partition 203, ie the boot disk, is configured to store startup configuration files and boot files of various operating systems.
[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. FIG3 is a flow chart of the method for installing multiple operating systems according to an embodiment of the present disclosure. As shown in FIG3 , the flow chart includes the following steps:
[0027] Step S302: creating a boot partition shared by multiple operating systems on a disk of a physical device, and sequentially installing the multiple operating systems 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 this 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 the 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 the boot partition shared by the multiple operating systems.
[0030] In this embodiment, a shared boot partition can be created on the disk of the physical device in advance to be used 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 completes the device self-test, 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 the 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 the 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 in a Unified Extensible Firmware Interface (UEFI) manner, the shared boot partition includes: a universal boot partition and an Extensible Firmware Interface (EFI) partition.
[0036] In step S302 of this 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 using 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.
[0039] In an exemplary embodiment, when an operating system encounters an abnormality, the operating system can be restored through its backup system.
[0040] After step S302 of this embodiment, the method further includes: after the last operating system is successfully installed, 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, a boot partition shared by multiple operating systems is created on the physical device's disk. This shared boot partition allows multiple operating systems to be installed on the disk. This solves the problem of not being able to fully install all operating systems when the number of hardware devices is limited or the number of available virtual disks is less than the number of operating systems to be installed.
[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 the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure, 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 enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present disclosure.
[0045] This embodiment also provides a multi-operating system installation device for implementing the above-mentioned embodiments and preferred implementations. Details already described will not be repeated here. As used below, the term "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0046] FIG4 is a structural block diagram of a multi-operating system installation device according to an embodiment of the present disclosure. As shown in FIG4 , the device includes:
[0047] A creation module 41 is configured to create a boot partition shared by multiple operating systems on a disk of a physical device;
[0048] The installation module 42 is configured 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 through 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 understanding of the technical solutions provided by the present disclosure, embodiments of specific scenarios will be described in detail below.
[0051] Related technologies for installing multiple operating systems include the following methods:
[0052] Multi-system installation based on the Basic Input Output System (BIOS) ultimately creates a virtual system. This method creates a virtual system on the BIOS and then allocates storage space for the virtual system. Because this method relies on the BIOS for unified management, system installation, and boot command processing, it does not support UEFI.
[0053] Multi-system installation based on different partitions, for example: you need to install the Linux system in partition 1 first, and 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 a virtual environment involves creating a virtual environment on top of one operating system and running another operating system within that virtual environment. For example, the first operating system is created, and a disk topology file and storage configuration file for the first operating system are generated. After installing the second operating system, a virtual operating environment is created and the first operating system is run within the virtual environment based on the configuration file of the first storage system. This installation method requires pre-installing each operating system and obtaining the storage configuration file of each operating system before creating additional operating systems, which is complex.
[0055] The disclosed embodiment 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 on 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 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 available virtual disks is less than the number of operating systems to be installed. 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] This method for installing multiple operating systems based on a shared boot partition must be run on a physical device, which can be a physical server or computer. If four or more Linux operating systems with different kernels need to be installed on the physical device, and if the physical device has sufficient memory space to accommodate the installation of multiple operating systems, as shown in FIG5 , the method for installing multiple operating systems based on a shared boot partition includes the following steps:
[0057] Step S510: Power on the software system by booting it in BIOS or UEFI mode, so that the physical device starts normally and completes the device self-test.
[0058] Step S520: Install the first system using the installation file and create a boot partition during installation;
[0059] Specifically, after the physical device completes its self-test, the first operating system installation file is mounted to enter the operating system installation interface. When performing system partitioning, a primary partition can be created on the physical disk or on a physical disk through the operating system installation interface. This physical disk will serve as a boot disk, a boot partition / boot disk shared by multiple operating systems. The required size of the boot partition / boot disk must meet the following criteria: 1G*N, where N represents the total number of operating 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 using UEFI boot 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 successfully created, create a logical partition on the physical disk or other disk 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 is selected to be shared with the first operating system.
[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 the system partition operation, use the boot partition / boot disk created by the first operating system as a shared boot partition / boot disk and configure it for the second operating system to use, without the need to create a new boot partition / boot disk.
[0065] In an exemplary embodiment, when 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 with 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 successfully installing the last operating system, 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, 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 in the operating system boot information block.
[0072] 3. Check whether the boot file information in each operating system's 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 in the correct boot file information into the operating system's boot information block.
[0073] FIG6 is a flowchart of a method for installing a backup operating system according to an embodiment of the present disclosure. As shown in FIG6 , the method includes 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 a 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 portion of the disk as a boot partition.
[0077] In one exemplary embodiment, a shared boot partition is created when the first operating system is installed.
[0078] Step S620: The physical device boots and starts up through BIOS or UEFI and performs self-test.
[0079] Step S630: Install the first operating system using 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 current system is created to complete subsequent installation steps.
[0081] Step S640: Install the backup system of the first operating system using the boot file of the first operating system.
[0082] Specifically, the backup system of the first operating system is installed through the installation file. During the installation, the boot file of the first operating system on the shared boot partition / boot disk in step S630 is used to create a root partition of the backup system, and the subsequent installation steps are completed.
[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. 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-described embodiments of the present disclosure, it is possible to effectively improve the utilization of physical resources when physical devices are limited and resources are scarce, enabling more operating systems to coexist on physical devices, meeting the diverse needs of users in development, testing, and usage. This can also reduce users' investment in physical devices and lower costs. Furthermore, it is possible to install multiple systems on a virtual disk, further isolating the systems on the physical device from the virtual operating systems, improving security while achieving diversification.
[0088] An embodiment of the present disclosure further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when run.
[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 disclosure further provides 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 perform the steps in any 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 here.
[0093] Obviously, those skilled in the art should understand that the modules or steps of the present disclosure described above can be implemented using a general-purpose computing device, they can be concentrated on a single computing device, or distributed across a network composed of multiple computing devices, they can be implemented using program code executable by the computing device, and thus, 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 performed in a different order than herein, or they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module for implementation. Thus, the present disclosure is not limited to any particular combination of hardware and software.
[0094] The foregoing description is merely a preferred embodiment of the present disclosure and is not intended to limit the present disclosure. Those skilled in the art will readily appreciate that various modifications and variations of the present disclosure are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present disclosure shall be included within the scope of protection of the present disclosure.
Claims
1. A method for installing multiple operating systems, comprising: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: 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, wherein: The disk is a physical disk or a virtual disk.
10. The method according to claim 1, wherein: 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, wherein: 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, wherein: 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, wherein: 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, comprising: A creation module configured to create a boot partition shared by multiple operating systems on a physical device's disk; An installation module is configured to sequentially install the multiple operating systems based on the boot partition and create a root partition for each operating system.
15. A computer-readable storage medium having a computer program stored therein, wherein: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.
16. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of claims 1 to 13 when executing the computer program.
Citation Information
Patent Citations
Guide method for mobile terminal operating system and mobile terminal
CN101615123A
Firmware supporting multiple boot paths
US8510543B1
