CN113138778A - Operating system installation method and computing device - Google Patents

Operating system installation method and computing device Download PDF

Info

Publication number
CN113138778A
CN113138778A CN202110420259.1A CN202110420259A CN113138778A CN 113138778 A CN113138778 A CN 113138778A CN 202110420259 A CN202110420259 A CN 202110420259A CN 113138778 A CN113138778 A CN 113138778A
Authority
CN
China
Prior art keywords
operating system
partition
target
disk
target operating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110420259.1A
Other languages
Chinese (zh)
Inventor
张廉洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Uniontech Software Technology Co Ltd
Original Assignee
Uniontech Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Uniontech Software Technology Co Ltd filed Critical Uniontech Software Technology Co Ltd
Priority to CN202110420259.1A priority Critical patent/CN113138778A/en
Publication of CN113138778A publication Critical patent/CN113138778A/en
Priority to PCT/CN2021/118422 priority patent/WO2022222351A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Abstract

The invention discloses an operating system installation method, which is executed in computing equipment and comprises the following steps: judging whether a first operating system exists in the first disk partition or not; if the first operating system is present: determining the available space of the first disk partition, and judging whether the available space is enough for installing a target operating system; if the target operating system is installed enough, reducing the first disk partition so as to separate out the available space; creating a target partition suitable for installing the target operating system based on the separated available space; and installing the target operating system based on the target partition. The invention also discloses corresponding computing equipment. According to the operating system installation method, the dual systems can be conveniently and quickly installed, and the user experience is improved.

Description

Operating system installation method and computing device
Technical Field
The invention relates to the technical field of operating systems, in particular to an operating system installation method and computing equipment.
Background
Currently, under the wave of localization, the UOS operating system is gradually selected by users for use. The UOS system is installed on the existing hard disk, the original operating system is not damaged, a user can freely switch the required operating system, and the method is more practical for the user and can also be gradually used to the UOS system.
In the prior art, the steps for installing Windows and Linux (including UOS) dual systems are complex, common users cannot install the Windows and Linux by themselves, and technicians cannot install the Windows and Linux in batches. The existing method for installing Windows and UOS dual systems mainly comprises the following two methods:
1. the method comprises the steps of using a virtual machine mode, installing software such as vmware and virtualbox on a Windows system, creating a virtual machine on the software to install a UOS system, and starting the virtual machine to run the UOS system.
2. The method for installing the U disk comprises the steps of firstly manually dividing a space on a partition of a Windows system, installing the UOS on the divided space by using a U disk boot system, and selecting which operating system to start on a start interface when a machine is started.
Therefore, the existing installation schemes are complex, not convenient enough and bad in user experience.
Therefore, an operating system installation method is needed to solve the problems in the above technical solutions.
Disclosure of Invention
To this end, the present invention provides an operating system installation method which seeks to solve, or at least alleviate, the problems identified above.
According to one aspect of the present invention, there is provided an operating system installation method, executed in a computing device, comprising the steps of: judging whether a first operating system exists in the first disk partition or not; if the first operating system is present: determining the available space of the first disk partition, and judging whether the available space is enough for installing a target operating system; if the target operating system is installed enough, reducing the first disk partition so as to separate out the available space; creating a target partition suitable for installing the target operating system based on the separated available space; and installing the target operating system based on the target partition.
Optionally, in the operating system installation method according to the present invention, the step of creating a target partition suitable for installing the target operating system based on the partitioned available space includes: determining a start sector number and an end sector number for the available space; creating the target partition within the range of the starting sector number and the ending sector number.
Optionally, in the operating system installation method according to the present invention, the step of installing the target operating system based on the target partition includes: and setting a mounting point of the target partition, and installing the target operating system to the mounting point of the target partition.
Optionally, in the operating system installation method according to the present invention, the first disk partition is an NTFS partition, and performing reduction processing on the first disk partition includes: and performing reduction processing on the first disk partition based on the ntfsresize command.
Optionally, in the operating system installation method according to the present invention, the step of performing reduction processing on the first disk partition based on the ntfsresize command includes: reducing the size of an NTFS file system corresponding to the NTFS partition based on an ntfsresize command; the NTFS partition is deleted and a smaller new partition is created anew.
Optionally, in the operating system installation method according to the present invention, the step of determining whether the first operating system exists in the first disk partition includes: traversing the first disk partition to find whether the first disk partition comprises a related file directory of the first operating system; if the relevant file directory is included, it is determined that the first operating system exists in the first disk partition.
Optionally, in the operating system installation method according to the present invention, the step of determining whether the available space is sufficient to install the target operating system further includes: and if the target operating system is not installed enough, generating a message that the installation of the target operating system fails, and finishing the installation of the target operating system.
Optionally, in the operating system installation method according to the present invention, before determining whether the first operating system exists in the first disk partition, the method further includes the steps of: mounting a starting disc of a target operating system; starting an installer in the startup disk to install a target operating system using the installer; the boot disk comprises an image file of a target operating system, and the image file comprises an automatic partition script.
Optionally, in the operating system installation method according to the present invention, the first operating system is a Windows operating system, and the target operating system is a UOS operating system.
Optionally, in the operating system installation method according to the present invention, the related file directory includes one or more of a Windows directory, a Users directory, and a Program Files directory.
According to an aspect of the present invention, there is provided a computing device comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions comprising instructions for performing the operating system installation method as described above.
According to an aspect of the present invention, there is provided a readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method as described above.
According to the operating system installation method, under the condition that a first operating system (such as a Windows operating system) is installed in a computing device, when another target operating system (such as a UOS operating system) needs to be installed, the target operating system can be automatically partitioned before being installed, and a target partition suitable for installing the target operating system can be automatically created. Therefore, the operation is simpler and more convenient for a user to install the dual system, so that the user can easily realize the installation and experience of the dual system, the two operating systems can be freely switched, and the use experience of the user is improved. For technicians, the double systems can be installed in batches, and the efficiency of system installation is improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which are indicative of various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to be within the scope of the claimed subject matter. The above and other objects, features and advantages of the present disclosure will become more apparent from the following detailed description read in conjunction with the accompanying drawings. Throughout this disclosure, like reference numerals generally refer to like parts or elements.
FIG. 1 shows a schematic diagram of a computing device 100, according to one embodiment of the invention; and
FIG. 2 shows a flow diagram of an operating system installation method 200 according to one embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic block diagram of an example computing device 100.
As shown in FIG. 1, in a basic configuration 102, a computing device 100 typically includes a system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between the processor 104 and the system memory 106.
Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a level one cache 110 and a level two cache 112, a processor core 114, and registers 116. The example processor core 114 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 118 may be used with the processor 104, or in some implementations the memory controller 118 may be an internal part of the processor 104.
Depending on the desired configuration, system memory 106 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. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 can be arranged to execute instructions on an operating system with program data 124 by one or more processors 104.
Computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from the storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via the bus/interface controller 130. At least a portion of the operating system 120, applications 122, and data 124 may be stored on removable storage 136 and/or non-removable storage 138, and loaded into system memory 106 via storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered on or the applications 122 are to be executed.
Computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus/interface controller 130. The example output device 142 includes a graphics processing unit 148 and an audio processing unit 150. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.) via one or more I/O ports 158. An example communication device 146 may include a network controller 160, which may be arranged to facilitate communications with one or more other computing devices 162 over a network communication link via one or more communication ports 164.
A network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media, such as carrier waves or other transport mechanisms, in a modulated data signal. A "modulated data signal" may be a signal that has one or more of its data set or its changes made in a manner that encodes information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or private-wired network, and various wireless media such as acoustic, Radio Frequency (RF), microwave, Infrared (IR), or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
Computing device 100 may be implemented as a personal computer including both desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a digital camera, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset, an application specific device, or a hybrid device that include any of the above functions. And may even be implemented as a server, such as a file server, a database server, an application server, a WEB server, and so forth. The embodiments of the present invention are not limited thereto.
In an embodiment in accordance with the invention, computing device 100 is configured to perform operating system installation method 200 in accordance with the invention. Wherein the computing device 100 comprises a plurality of program instructions that implement the operating system installation method 200 in accordance with the present invention, such that the operating system installation method 200 of the present invention can be implemented in a computing device.
FIG. 2 shows a flow diagram of an operating system installation method 200 according to one embodiment of the invention. The method 200 is suitable for execution in a computing device, such as the computing device 100 described above.
It is to be noted that the operating system installed in the storage device (hard disk) of the computing device is desired by the user as the target operating system. Before installing the target operating system, the computing device needs to obtain an image file of the target operating system in order to install the target operating system based on the image file of the target operating system.
In the embodiment according to the present invention, the image file of the target operating system includes an automatic partition script, and the operating system installation method 200 of the present invention can be implemented based on the automatic partition script. The automatic partition of the disk can be realized based on the automatic partition script, so that a user can conveniently and quickly install a target operating system and experience dual systems according to the operating system installation method 200 provided by the invention under the condition that the first operating system is installed in the hard disk of the computing equipment.
In one embodiment, a boot disk (e.g., a USB disk) of a target operating system may be made based on an image file of the target operating system including an auto-partition script. In this manner, the computing device performs the method 200 of the present invention by mounting the boot disk of the target operating system based on the image file in the boot disk that includes the auto-partition script. Specifically, the computing device starts an installer in the boot disk after mounting the boot disk of the target operating system, and after starting the installer, first executes the auto-partition script to implement the corresponding steps of the auto-partition in the method 200 based on the auto-partition script.
It should be noted that the present invention is not limited to a particular type of target operating system. In the embodiment of the present invention, the operating system installation method 200 of the present invention is described in detail by taking the UOS operating system as the target operating system as an example, but the operating system installation scheme 200 of the present invention is not limited to the UOS operating system.
As shown in fig. 2, the method 200 begins at step S210.
In step S210, it is determined whether the first operating system exists in the first disk partition, that is, it is determined whether another operating system different from the target operating system is already installed on the hard disk of the current computing device. Here, the present invention does not limit the specific kind of the first operating system.
In one embodiment, the first operating system may be implemented as, but is not limited to, a Windows operating system. When the first operating system is a Windows operating system, the first disk partition may be implemented as an NTFS disk partition.
In one embodiment, the presence of the first operating system is determined by determining whether the first disk partition includes a directory of related files for the first operating system. Specifically, when determining whether the first operating system exists, the first disk partition is traversed to find whether the first disk partition includes a related file directory of the first operating system. If the relevant file directory is included, it is determined that the first operating system exists in the first disk partition. If the related file directory is not included, the first operating system does not exist, the target operating system is directly installed based on the installer, and the step of automatic partition correlation is not executed.
Here, when the first operating system is a Windows operating system, the related file directory of the first operating system may include one or more of a Windows directory, Users directory, and Program Files directory.
Note that if it is determined in the above step S210 that the first operating system exists in the first disk partition, the step of the original disk partition of the installer is skipped, and the following steps S220 to S240 are performed based on the automatic partition script.
In step S220, the available space of the first disk partition is determined, and it is determined whether the available space is sufficient for installing the target operating system. Here, in one embodiment, the target operating system is, for example, a UOS operating system, although the invention is not limited thereto. In other embodiments, the target operating system may also be implemented as other types of operating systems based on the Linux kernel.
And if the available space of the first disk partition is not enough to install the target operating system, generating a message of failed installation of the target operating system so as to prompt the user that the system fails to install, and finishing installing the target operating system.
If the available space of the first disk partition is sufficient to install the target operating system, step S230 is performed. In step S230, the first disk partition is subjected to reduction processing to partition the available space. In this way, the target operating system may be installed based on the available space freed by the first disk partition.
In one embodiment, the first disk partition (i.e., NTFS partition) is down-scaled by executing the ntfsresize command under Linux system. It should be noted that the ntfsresize command can be used to shrink or enlarge any NTFS file system located on the disk partition, and that without losing data, the new file system will have a specified size.
When the first disk partition (NTFS partition) is reduced based on the ntfsresize command, specifically, data in the first disk partition is sequentially stored based on the start position of the first disk partition, so that the remaining available space is released. Moreover, it is ensured that the file content in the first disk partition cannot be destroyed.
According to one embodiment, when the NTFS partition is reduced, the size of the NTFS file system corresponding to the NTFS partition is reduced based on the ntfsresize command. The original NTFS partition is then deleted based on a utility (e.g., fdisk (1M)) and a smaller new partition is created anew to achieve a reduction in NTFS partition size. Here, it is required to ensure that the new partition size after the reduction process is not smaller than the size of the NTFS file system after the reduction. And, when a new partition is created again, it is guaranteed to be based on the same starting sector and partition type as in the original partition being replaced, otherwise the file system cannot be accessed.
It should be noted that step S240 is performed after the available space of the first disk partition is partitioned.
In step S240, a target partition suitable for installing the target operating system is created based on the partitioned available space. Specifically, after the available space is partitioned, a start sector number and an end sector number of the available space are determined, and a target partition is created within a range of the start sector number and the end sector number based on the start sector number and the end sector number.
In this way, the present invention implements the automatic partition function before installing the target operating system by executing the above steps S210 to S240 based on the automatic partition script, and automatically creates the target partition suitable for installing the target operating system.
According to one embodiment, the target partition may be created based on the parked command. The finally created target partition comprises EFI, Boot, Roota, Rootb, swap, Backup and dde _ data.
Finally, in step S250, the target operating system is installed based on the target partition using the installer. In one embodiment, when installing the target operating system, the mount point of the target partition is first set, and the target operating system is then installed to the mount point of the target partition.
According to one embodiment, creating a mount point for a target partition is accomplished by executing the following commands:
DI_MOUNTPOINTS="/dev/sda1=/boot/efi;/dev/sda2=/boot;/dev/sda3=/;/dev/sda5=/data;/dev/sda6=/recovery;/dev/sda7=swap;/dev/sda7=swap"
in addition, it should be noted that, when creating a target partition suitable for installing a target operating system in step S240, the partition format of the hard disk needs to be determined first. Partition formats for hard disks include, for example, GPT and MBR. Specifically, it is determined whether the partition format of the hard disk is GPT or MBR. If in GPT format, it is not necessary to consider whether the partition created is a logical partition or a main partition. If in MBR format, it is necessary to determine whether the target partition to be created is a logical partition, an extended partition, or a main partition, and then create the target partition.
According to one embodiment, by injecting an auto-partition script in the image file of the target operating system in advance before performing the method 200 of the present invention, the auto-partition script may be added under the oem/before _ install directory of the decompressed image file, for example. In this way, the automatic partitioning of the disk can be realized based on the automatic partitioning script, that is, the automatic partitioning method in steps S210 to S240 can be realized based on the automatic partitioning script, and the operating system installation method 200 of the present invention is realized in cooperation with an installer of the target operating system. According to the operating system installation method 200 of the present invention, under the condition that the first operating system is installed in the computing device, the user can install the target operating system conveniently and quickly, and the installation of the dual system is realized.
In summary, according to the operating system installation method 200 of the present invention, when another target operating system (e.g. UOS operating system) needs to be installed in a case where a first operating system (e.g. Windows operating system) is already installed in a computing device, it is possible to automatically perform partitioning before installing the target operating system, and automatically create a target partition suitable for installing the target operating system. Therefore, the operation is simpler and more convenient for a user to install the dual system, so that the user can easily realize the installation and experience of the dual system, the two operating systems can be freely switched, and the use experience of the user is improved. For technicians, the double systems can be installed in batches, and the efficiency of system installation is improved.
A9, the method of any one of A1-A3, wherein the first operating system is a Windows operating system and the target operating system is a UOS operating system. A10, the method as in A6, wherein the related file directories comprise one or more of Windows directory, Users directory and Program Files directory.
The various techniques described herein may be implemented in connection with hardware or software or, alternatively, with a combination of both. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U.S. disks, floppy disks, CD-ROMs, or any other machine-readable storage medium, wherein, when the program is loaded into and executed by a machine, such as a computer, the machine becomes an apparatus for practicing the invention.
In the case of program code execution on programmable computers, the computing device will generally include 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. Wherein the memory is configured to store program code; the processor is configured to execute the multilingual spam-text recognition method of the present invention according to instructions in said program code stored in the memory.
By way of example, and not limitation, readable media may comprise readable storage media and communication media. Readable storage media store information such as computer readable instructions, data structures, program modules or other data. Communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. Combinations of any of the above are also included within the scope of readable media.
In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with examples of this invention. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into multiple sub-modules.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Furthermore, some of the described embodiments are described herein as a method or combination of method elements that can be performed by a processor of a computer system or by other means of performing the described functions. A processor having the necessary instructions for carrying out the method or method elements thus forms a means for carrying out the method or method elements. Further, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is used to implement the functions performed by the elements for the purpose of carrying out the invention.
As used herein, unless otherwise specified the use of the ordinal adjectives "first", "second", "third", etc., to describe a common object, merely indicate that different instances of like objects are being referred to, and are not intended to imply that the objects so described must be in a given sequence, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of this description, will appreciate that other embodiments can be devised which do not depart from the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The present invention has been disclosed in an illustrative rather than a restrictive sense, and the scope of the present invention is defined by the appended claims.

Claims (10)

1. An operating system installation method, executed in a computing device, comprising the steps of:
judging whether a first operating system exists in the first disk partition or not;
if the first operating system is present:
determining the available space of the first disk partition, and judging whether the available space is enough for installing a target operating system;
if the target operating system is installed enough, reducing the first disk partition so as to separate out the available space;
creating a target partition suitable for installing the target operating system based on the separated available space; and
installing the target operating system based on the target partition.
2. The method of claim 1, wherein creating a target partition adapted to install a target operating system based on the partitioned available space comprises:
determining a start sector number and an end sector number for the available space;
creating the target partition within the range of the starting sector number and the ending sector number.
3. The method of claim 1, wherein installing the target operating system based on the target partition comprises:
and setting a mounting point of the target partition, and installing the target operating system to the mounting point of the target partition.
4. The method of any of claims 1-3, wherein the first disk partition is an NTFS partition, and wherein the scaling down the first disk partition comprises:
and performing reduction processing on the first disk partition based on the ntfsresize command.
5. The method of claim 4, wherein the step of scaling down the first disk partition based on the ntfsresize command comprises:
reducing the size of an NTFS file system corresponding to the NTFS partition based on an ntfsresize command;
the NTFS partition is deleted and a smaller new partition is created anew.
6. The method of any of claims 1-3, wherein determining whether the first operating system exists in the first disk partition comprises:
traversing the first disk partition to find whether the first disk partition comprises a related file directory of the first operating system;
if the relevant file directory is included, it is determined that the first operating system exists in the first disk partition.
7. The method of any of claims 1-3, wherein determining whether the available space is sufficient to install the target operating system further comprises:
and if the target operating system is not installed enough, generating a message that the installation of the target operating system fails, and finishing the installation of the target operating system.
8. The method of any of claims 1-3, wherein prior to determining whether the first operating system exists in the first disk partition, further comprising the steps of:
mounting a starting disc of a target operating system;
starting an installer in the startup disk to install a target operating system using the installer;
the boot disk comprises an image file of a target operating system, and the image file comprises an automatic partition script.
9. A computing device, comprising:
at least one processor; and
a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the method of any of claims 1-8.
10. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-8.
CN202110420259.1A 2021-04-19 2021-04-19 Operating system installation method and computing device Pending CN113138778A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110420259.1A CN113138778A (en) 2021-04-19 2021-04-19 Operating system installation method and computing device
PCT/CN2021/118422 WO2022222351A1 (en) 2021-04-19 2021-09-15 Method for installing operating system, and computing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110420259.1A CN113138778A (en) 2021-04-19 2021-04-19 Operating system installation method and computing device

Publications (1)

Publication Number Publication Date
CN113138778A true CN113138778A (en) 2021-07-20

Family

ID=76812703

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110420259.1A Pending CN113138778A (en) 2021-04-19 2021-04-19 Operating system installation method and computing device

Country Status (2)

Country Link
CN (1) CN113138778A (en)
WO (1) WO2022222351A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222351A1 (en) * 2021-04-19 2022-10-27 统信软件技术有限公司 Method for installing operating system, and computing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102184248A (en) * 2011-05-20 2011-09-14 深圳市万兴软件有限公司 Method and device for regulating disk partitions in Windows
US20120047356A1 (en) * 2010-08-17 2012-02-23 International Business Machines Corporation Isolation of Device Namespace to Allow Duplicate/Common Names in Root Volume Group Workload Partitions
CN105824678A (en) * 2016-05-17 2016-08-03 浪潮电子信息产业股份有限公司 Method and device for installing operating system
CN110399159A (en) * 2019-07-23 2019-11-01 广州夏达信息科技有限公司 Dispositions method, device, computer equipment and the storage medium of operating system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1686468A1 (en) * 2005-01-26 2006-08-02 Intervideo Inc Computer architecture with multiple operating systems using a common disc partition
CN103473102B (en) * 2013-09-18 2016-12-07 中标软件有限公司 The system start-up bootstrap technique of multiple operating system and instrument
CN108647034B (en) * 2018-04-09 2021-04-02 南京百敖软件有限公司 Method for installing multiple operating systems on single mobile hard disk
CN113138778A (en) * 2021-04-19 2021-07-20 统信软件技术有限公司 Operating system installation method and computing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120047356A1 (en) * 2010-08-17 2012-02-23 International Business Machines Corporation Isolation of Device Namespace to Allow Duplicate/Common Names in Root Volume Group Workload Partitions
CN102184248A (en) * 2011-05-20 2011-09-14 深圳市万兴软件有限公司 Method and device for regulating disk partitions in Windows
CN105824678A (en) * 2016-05-17 2016-08-03 浪潮电子信息产业股份有限公司 Method and device for installing operating system
CN110399159A (en) * 2019-07-23 2019-11-01 广州夏达信息科技有限公司 Dispositions method, device, computer equipment and the storage medium of operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王维平 等: "《扩展有限元理论及Fortran编程》", 北京理工大学出版社, pages: 251 - 253 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022222351A1 (en) * 2021-04-19 2022-10-27 统信软件技术有限公司 Method for installing operating system, and computing device

Also Published As

Publication number Publication date
WO2022222351A1 (en) 2022-10-27

Similar Documents

Publication Publication Date Title
CN112988252B (en) Operating system starting method and computing device
EP2487583B1 (en) Booting apparatus and method using snapshot image
US9600369B2 (en) Operating system recovery method and apparatus, and terminal device
US20070180206A1 (en) Method of updating a duplicate copy of an operating system on the same disk
US8468334B1 (en) Efficient initial RAM disk creation
CN113032032B (en) System management method and device, computing equipment and readable storage medium
CN103699372A (en) Booting a computer system from central storage
US20080114923A1 (en) Apparatus and method for controlling operation processing in nonvolatile memory
US20140149644A1 (en) Electronic apparatus, method of updating firmware, and computer-readable recording medium
CN112988464A (en) Power-off protection method and computing device
CN114398318B (en) File operation method of user space file system and user space file system
WO2015085755A1 (en) Operating system recovery method, apparatus and terminal device
CN113157290B (en) Multi-system installation method, computing equipment and storage medium
CN113568787A (en) Power failure protection method, computing device and storage medium
US10185573B2 (en) Caching based operating system installation
CN114691226A (en) Multi-operating-system switching operation method, computing device and storage medium
CN114003258A (en) Software upgrading method, computing equipment and readable storage medium
CN113138778A (en) Operating system installation method and computing device
US20050223209A1 (en) Apparatus for fast booting computer and method for the same
US7849300B2 (en) Method for changing booting sources of a computer system and a related backup/restore method thereof
US7080243B2 (en) Method and system for comparing firmware images
CN114691549A (en) File writing method and device and computing equipment
CN113655960A (en) Optical disc readability repairing method and computing device
CN113742140B (en) File backup method and device and computing equipment
CN113867825B (en) Multi-system operation method, computing equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination