A multi-system installation method, computing device and storage medium
By acquiring disk topology files and generating storage configuration files in computing devices, the difficulty of installing multiple operating systems in the prior art is solved, and the simultaneous operation of two operating systems is achieved, simplifying the installation process and reducing time.
Patent Information
- Application Number
- CN202210261898.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-06
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2041-05-06
AI Technical Summary
In the prior art, installing multiple operating systems in a computer is difficult, users need professional knowledge, and cannot run two systems at the same time, and the installation process is cumbersome.
By obtaining the disk topology file under the first operating system, generating a storage configuration file, and creating a virtual running environment under the second operating system, reading the storage configuration file to run the first operating system, realizing the simultaneous operation of both operating systems.
Two operating systems can be run simultaneously without partitioning the memory, reducing the time to install multiple operating systems and simplifying the installation process.
Smart Images

Figure CN114610337B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application filed on May 6, 2021. The application number of the original application is: 2021104906937, and the name of the invention is: A multi-system installation method, computing device and storage medium. Technical Field
[0002] The present invention relates to the field of operating systems, and in particular to a multi-system installation method, a computing device and a storage medium. Background Art
[0003] With the development of computer technology, people have the need to use multiple operating systems in the process of operating system development and use. Therefore, the technology of installing and using multiple operating systems in computers has emerged. Installing multiple operating systems in a computer can improve the convenience of system development and use management.
[0004] In the prior art, disks can be partitioned and different operating systems can be installed on different disks. However, this method requires professional knowledge and the existing disk topology must meet the partitioning conditions, which is difficult to implement. In addition, when booting, users need to select the system to be started on the startup interface, and it is difficult to run two systems at the same time.
[0005] Or, on an operating system, another system is installed through a virtual machine. When installing another system, all files of the system to be installed need to be transferred from the original machine to the host machine through the network or copied to an external storage medium. In addition, the virtual machine generally needs to be installed from scratch, and the user's original system environment will be lost and needs to be backed up manually. This method is time-consuming and requires not only professional knowledge, but also a cumbersome operation process.
[0006] To do this, a new approach to multi-system installation is needed. Summary of the invention
[0007] To this end, the present invention provides a multi-system installation method to try to solve or at least alleviate the above problems.
[0008] According to one aspect of the present invention, a multi-system installation method is provided, which is suitable for execution in a computing device, wherein the computing device includes a memory in which a first operating system is running, and the method includes the steps of: obtaining a disk topology file of the memory under the first operating system; generating a storage configuration file of the first operating system according to the disk topology file, and writing the storage configuration file into the memory; establishing an installation environment for the operating system, and installing a second operating system in the installation environment; running the second operating system to create a virtual operating environment; reading the storage configuration file of the first operating system in the memory, and running the first operating system in the virtual operating environment according to the storage configuration file.
[0009] Optionally, in the method according to the present invention, the disk topology file includes system partition and file information of the first operating system, and generating a storage configuration file of the first operating system based on the disk topology file includes the steps of: determining the boot partition and file system identifier of the first operating system based on the system partition and file information in the disk topology file; and generating the storage configuration file of the first operating system based on the boot partition and file system identifier.
[0010] Optionally, in the method according to the present invention, creating a virtual operating environment comprises the steps of: creating a virtual machine suitable for installing a second operating system, and allocating memory and storage space of a memory to the virtual machine.
[0011] Optionally, the method according to the present invention also includes the steps of: after writing the storage configuration file of the first operating system into the memory, providing the user with a first method and a second method for installing the second operating system so that the user can select the method for installing the second operating system; if the user selects the first method, establishing an operating system installation environment to install the second operating system.
[0012] Optionally, the method according to the present invention further includes the following steps: if a user selects the second mode, partitioning the memory to obtain a first disk block with the first operating system installed and a second disk block without the operating system installed; installing and running the second operating system in the second disk block.
[0013] Optionally, the method according to the present invention further includes the steps of: registering a service program of the first operating system; creating a service program of the second operating system after installing the second operating system; and establishing a communication connection between the service programs of the first operating system and the second operating system.
[0014] Optionally, in the method according to the present invention, the service programs of the first operating system and the second operating system establish a communication connection and communicate via a bus of the computing device.
[0015] Optionally, in the method according to the present invention, establishing the operating system installation environment includes the steps of: exiting the first operating system; and starting the BIOS system of the computing device.
[0016] According to another aspect of the present invention, a computing device is provided, comprising: one or more processors; a memory; an image display system; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any method of a multi-system installation method according to the present invention.
[0017] According to another aspect of the present invention, there is provided a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions which, when executed by a computing device, cause the computing device to perform any of the multi-system installation methods according to the present invention.
[0018] A multi-system installation method in the present invention is suitable for execution in a computing device, by obtaining a disk topology file of a memory under a first operating system, generating a storage configuration file of the first operating system according to the disk topology file, and writing it into the memory. After installing the second operating system, the storage configuration file of the first operating system is directly read from the memory under the second operating system, and the first operating system is run in a virtual operating environment. The first operating system and the second operating system both use one memory, and the two operating systems can be run simultaneously without partitioning the memory. When installing the first operating system under the second operating system, the virtual disk file is mapped to the physical disk, and the system files of the first operating system do not need to be copied for a long time, and the installation of the first operating system in a virtual environment can be completed, thereby reducing the time for installing multiple operating systems. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.
[0020] Figure 1 A schematic diagram showing a computing device having multiple operating systems installed thereon according to an exemplary embodiment of the present invention is shown;
[0021] Figure 2 shows a block diagram of a computing device 200 according to an exemplary embodiment of the present invention; and
[0022] Figure 3 A schematic flow chart of a multi-operating system installation method 300 according to an exemplary embodiment of the present invention is shown. DETAILED DESCRIPTION
[0023] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to enable the scope of the present disclosure to be fully conveyed to those skilled in the art. The same reference numerals generally refer to the same components or elements.
[0024] Figure 1 FIG. 2 is a schematic diagram showing a computing device according to an exemplary embodiment of the present invention having multiple operating systems installed thereon. Figure 1 As shown, the computing device includes a memory 110 and a second operating system 120. The memory 110 is part of the physical layer of the computing device. The second operating system 120 runs on the physical layer of the computing device. The second operating system 120 is an operating system layer of the computing device, and an application program (not shown in the figure) is also run on it. The second operating system includes a virtual operating environment 121, and the first operating system 122 runs in the virtual operating environment.
[0025] Figure 2 FIG. 2 shows a block diagram of a computing device 200 according to an exemplary embodiment of the present invention. Figure 2 As shown, in a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between processor 204 and system memory 206.
[0026] Depending on the desired configuration, the processor 204 can be any type of processor, including but not limited to: a microprocessor (μP), a microcontroller (μC), a digital information processor (DSP), or any combination thereof. The processor 204 can include one or more levels of cache such as a primary cache 210 and a secondary cache 212, a processor core 214, and registers 216. An example processor core 214 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 218 can be used with the processor 204, or in some implementations, the memory controller 218 can be an internal part of the processor 204.
[0027] Depending on the desired configuration, the system memory 206 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 206 may include an operating system 220, one or more programs 222, and program data 228. In some embodiments, the program 222 may be arranged to be executed by one or more processors 204 on the operating system using the program data 228 to execute the instructions 223 of the method 300 according to the present invention.
[0028] The computing device 200 may also include a storage interface bus 234. The storage interface bus 234 enables communication from storage devices 232 (e.g., removable storage 236 and non-removable storage 238) to the basic configuration 202 via the bus / interface controller 230. At least a portion of the operating system 220, the application 222, and the data 224 may be stored on the removable storage 236 and / or the non-removable storage 238, and when the computing device 200 is powered on or the application 222 is to be executed, it is loaded into the system memory 206 via the storage interface bus 234 and executed by the one or more processors 204.
[0029] The computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to the basic configuration 202 via the bus / interface controller 230. Example output devices 242 include a graphics processing unit 248 and an audio processing unit 250. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 252. Example peripheral interfaces 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 258. Example communication devices 246 may include a network controller 260, which may be arranged to communicate with one or more other computing devices 262 via a network communication link via one or more communication ports 264.
[0030] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be carried out in a manner that encodes information in the signal. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.
[0031] In the computing device 200 according to the present invention, the application 222 includes multiple program instructions for executing the multi-system installation method 300. These program instructions can instruct the processor 204 to execute some steps in the multi-system installation method 300 running in the computing device 200 of the present invention, so that various parts in the computing device 200 can install multiple operating systems by executing the multi-system installation method 300 of the present invention.
[0032] The computing device 200 can be implemented as a server, such as a file server 240, a database 250, a server, an application server, etc. These electronic devices can be such as personal digital assistants (PDAs), wireless network browsing devices, application-specific devices, or hybrid devices that can include any of the above functions. It can be implemented as a personal computer including desktop computers and notebook computer configurations. In some embodiments, the computing device 200 is configured to perform the multi-system installation method 300.
[0033] The following will explain in detail how to install the Figure 1 Multiple operating systems shown. Figure 3 FIG. 2 is a flow chart of a multi-system installation method 300 according to an exemplary embodiment of the present invention. The method 300 is suitable for execution in a computing device 200. Figure 3 As shown, the multi-system installation method 300 begins at step S310, where a disk topology file of a memory is obtained under a first operating system. In order to run the first operating system and the second operating system at the same time, and run the first operating system in the second operating system, the first operating system is first pre-installed in the computing device. The present invention does not limit the types of the first operating system and the second operating system, and can be implemented as a Windows system, a Linux system, etc.
[0034] When the first operating system is running, the computing device may receive an instruction from the user to install multiple operating systems. After receiving the instruction from the user to install multiple operating systems, the computing device obtains the disk topology file in the memory. The disk topology file is the location information of the virtual disk file actually stored on the physical disk. For example, the original file windows.doc in the C drive is stored in a certain sector of a certain disk surface on the physical disk. The disk topology file includes the system partition and file information of the first operating system in the memory. The memory can be divided into multiple partitions, and the system partition of the first operating system in the memory indicates that the first operating system is stored and runs in the system partition. The file information is the location information of the system files and user files of the first operating system stored in the disk under the first operating system, and the corresponding files can be obtained from the memory based on the location information. The file information also includes a file system identifier, which is the file system used to store the system files and user files under the first operating system. The file system identifier includes NTFS, etc.
[0035] Subsequently, step S320 is executed to generate a storage configuration file of the first operating system according to the disk topology file and write it into the memory. According to the system partition and file information in the disk topology file, the boot partition and file system identifier of the first operating system are determined. According to the boot partition and file system identifier, a storage configuration file of the first operating system is generated. The storage configuration file facilitates reading corresponding files to run the first operating system in the virtual operating environment of the second operating system.
[0036] According to an embodiment of the present invention, the first operating system is a Windows system and the second operating system is a Linux system. When the Windows system is installed on the computer, after receiving the user's instruction to install multiple operating systems, the system obtains the disk topology file from the memory, and generates a storage configuration file of the Windows system according to the disk topology file, so as to facilitate the subsequent operation of the first operating system.
[0037] Subsequently, step S330 is executed to establish an installation environment for the operating system, and the second operating system is installed under the installation environment. When installing the second operating system, it cannot be installed under the first operating system. Therefore, it is necessary to exit the first operating system and start the BIOS (Basic Input Output System) system of the computing device. The BIOS system is a set of programs solidified on a ROM chip on the motherboard of the computer. It stores the most important basic input and output programs of the computer, the self-test program after power-on, and the system self-starting program. It can read and write specific information of the system settings from CMOS. Under the BIOS system, the second operating system can be installed. When installing the second operating system, it can be installed by means of an external disk, or by using the second operating system installation package pre-stored in the memory. The present invention does not limit the method of installing the second operating system.
[0038] Subsequently, step S340 is executed to run the second operating system and create a virtual operating environment. The virtual operating environment can be implemented by installing a virtual machine under the second operating system. Creating a virtual operating environment includes the steps of creating a virtual machine suitable for installing the second operating system, and allocating memory and storage space of the memory to the virtual machine. The memory used by the virtual machine comes from the content module installed in the computer. The storage space of the memory allocated to the virtual machine is the storage space in any storage block in the memory, and the storage space storing the storage configuration file and disk topology file of the first operating system can also be used.
[0039] Finally, step S350 is executed to read the storage configuration file of the first operating system in the memory, and the first operating system is run in the virtual operating environment according to the storage configuration file. The storage configuration file includes the boot partition and file system identifier of the first operating system. In the virtual operating environment, the storage space of the memory allocated to the virtual machine uses the format specified by the file system identifier to store system files and user files. In the virtual operating environment, the system files of the first operating system stored in the boot partition are called to run the first operating system.
[0040] By applying the above technical means, the first operating system and the second operating system can use the same physical storage together, avoiding the time-consuming copying of system files when installing multiple systems. Since the two installed operating systems are running at the same time, there is a risk of operating the same physical disk. Therefore, when providing a virtual operating environment, a file system driver will be injected into the first operating system to bridge the access of the first operating system to the file to the host system, that is, the second operating system, to ensure the consistency of the file system and realize shared access to the file. In addition, in the virtual environment, the operation of the second operating system on the file can be restored, which improves the file operation authority of the host system, that is, the second operating system, and facilitates the management of file operations.
[0041] According to an embodiment of the present invention, after the storage configuration file of the first operating system is written into the memory, a first method and a second method for installing the second operating system are provided to the user so that the user can select the method for installing the second operating system. If the user selects the first method, an operating system installation environment is established to install the second operating system. The first method for installing the operating system is steps S330 to S350 of method 300, which will not be described in detail here.
[0042] If the computing device receives the user's selection of the second method, the memory is partitioned to obtain a first disk block with the first operating system installed and a second disk block without the operating system installed. The memory partitioning can be completed using a disk partitioning tool, and the present invention does not limit the memory partitioning method. The second disk block is an empty disk area, and then the second operating system is installed and run in the second disk block, providing the user with multiple ways to install multiple operating systems in the computing device.
[0043] According to one embodiment of the present invention, under the first operating system, a service program of the first operating system is registered. After the second operating system is installed, the service program of the second operating system is created. A communication connection between the service programs of the first operating system and the second operating system is established. The service programs of the first operating system and the second operating system establish a communication connection and communicate through a bus of a computing device. The first operating system and the second operating system can send message files through the service program to achieve data intercommunication between the operating systems.
[0044] A multi-system installation method in the present invention is suitable for execution in a computing device, by obtaining a disk topology file of a memory under a first operating system, generating a storage configuration file of the first operating system according to the disk topology file, and writing it into the memory. After installing the second operating system, the storage configuration file of the first operating system is directly read from the memory under the second operating system, and the first operating system is run in a virtual operating environment. The first operating system and the second operating system both use one memory, and the two operating systems can be run simultaneously without partitioning the memory. When installing the first operating system under the second operating system, the system files of the first operating system do not need to be copied for a long time, and the installation of the first operating system in a virtual environment can be completed, thereby reducing the time for installing multiple operating systems.
[0045] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0046] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.
[0047] Those skilled in the art will appreciate that the modules or units or groups of the devices in the examples disclosed herein may be arranged in the device as described in the embodiment, or alternatively may be located in one or more devices different from the devices in the example. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.
[0048] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or groups in the embodiments may be combined into one module or unit or group, and in addition they may be divided into a plurality of submodules or subunits or subgroups. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device so disclosed may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.
[0049] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0050] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.
[0051] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or portions of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a floppy disk, a CD-ROM, a hard disk drive, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.
[0052] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the method for determining the shutdown state of the device of the present invention according to the instructions in the program code stored in the memory.
[0053] By way of example and not limitation, computer readable media include computer storage media and communication media. Computer readable media include computer storage media and communication media. Computer storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and includes any information delivery medium. Any combination of the above is also included within the scope of computer readable media.
[0054] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
[0055] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.
Claims
1. A multi-system installation method, suitable for execution in a computing device, wherein the computing device comprises a memory, wherein a first operating system is running in the memory, the method comprising the steps of: Under the first operating system, obtaining a disk topology file of the storage device; Generate a storage configuration file of the first operating system according to the disk topology file, and write the storage configuration file into the memory; Establishing an installation environment for the operating system, and installing a second operating system in the installation environment; Running the second operating system to create a virtual operating environment; Reading a storage configuration file of the first operating system in the memory, and running the first operating system in the virtual operating environment according to the storage configuration file; The disk topology file includes system partition and file information of the first operating system. The file information is location information of system files and user files of the first operating system stored in the disk under the first operating system. Based on the location information, corresponding files can be obtained from the memory. The step of generating a storage configuration file of the first operating system according to the disk topology file includes the following steps: Determine the boot partition and file system identifier of the first operating system according to the system partition and file information in the disk topology file, wherein the file system identifier is the format of the file system used for storing system files and user files under the first operating system; Generate a storage configuration file of the first operating system according to the boot partition and the file system identifier; The steps of creating a virtual operating environment include: Creating a virtual machine suitable for installing a second operating system; Allocating memory and storage space of the memory to the virtual machine, wherein the storage space of the memory allocated to the virtual machine adopts a format specified by a file system identifier to store system files and user files; The establishment of the operating system installation environment comprises the following steps: Exit the first operating system; The BIOS system of the computing device is started.
2. The method of claim 1, wherein: The method further comprises the steps of: After writing the storage configuration file of the first operating system into the memory, providing the user with a first method and a second method for installing the second operating system so that the user can select the method for installing the second operating system; If the user selects the first mode, an operating system installation environment is established to install the second operating system.
3. The method according to claim 2, further comprising the steps of: If the user selects the second mode, partitioning the memory to obtain a first disk block with the first operating system installed and a second disk block without the operating system installed; A second operating system is installed and run in the second disk block.
4. The method according to any one of claims 1 to 3, further comprising the steps of: Registering a service program of the first operating system; After installing the second operating system, creating a service program for the second operating system; A communication connection between the first operating system and the service program of the second operating system is established.
5. A computing device comprising: one or more processors; Memory; as well as One or more devices comprising instructions for performing any of the methods according to claims 1 to 4.
6. A computer-readable storage medium storing one or more programs, the one or more programs comprising instructions which, when executed by a computing device, cause the computing device to perform any of the methods according to claims 1 to 4.
Citation Information
Patent Citations
A multi-system installation method, computing device and storage medium
CN113157290B