CN113434205B - Operating system starting method and computing device - Google Patents

Operating system starting method and computing device Download PDF

Info

Publication number
CN113434205B
CN113434205B CN202110855847.8A CN202110855847A CN113434205B CN 113434205 B CN113434205 B CN 113434205B CN 202110855847 A CN202110855847 A CN 202110855847A CN 113434205 B CN113434205 B CN 113434205B
Authority
CN
China
Prior art keywords
operating system
root file
target
file system
local 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.)
Active
Application number
CN202110855847.8A
Other languages
Chinese (zh)
Other versions
CN113434205A (en
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 CN202110855847.8A priority Critical patent/CN113434205B/en
Publication of CN113434205A publication Critical patent/CN113434205A/en
Application granted granted Critical
Publication of CN113434205B publication Critical patent/CN113434205B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/4408Boot device selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an operating system starting method, which is executed in a computing device, wherein a storage device of the computing device comprises a local operating system, the local operating system comprises a compressed file corresponding to a target root file system, and the method comprises the following steps: a start item of a target operating system is started; loading the kernel of the local operating system and the temporary root file system into a memory so as to mount the root file system of the local operating system based on the temporary root file system; loading the compressed file corresponding to the target root file system into a memory so as to mount the target root file system; one or more kernel modules required by the local operating system in the starting process are copied into a target root file system in the memory, so that the target operating system calls the same kernel module as the local operating system. The invention also discloses corresponding computing equipment. According to the operating system starting method, the L i ve operating system can be guided to start based on a local operating system without depending on an additional storage medium.

Description

Operating system starting method and computing device
The present application is a divisional application of patent application 2021104519811 filed on 26 th 4 th 2021.
Technical Field
The present invention relates to the field of operating systems, and in particular, to a method for starting an operating system and a computing device.
Background
The Live operating system is a complete bootable computer operating system, and the Live operating system is a minimized complete Linux operating system including a complete root file system and a boot manager that can boot the Linux kernel. The Live operating system allows a user to run the operating system for any purpose without having to install the operating system in the computer or make any changes to the configuration of the computer. Live systems may run on computers that do not have secondary storage (e.g., hard drives), hard drive corruption, or file system corruption, so that data may be restored.
In the prior art, the Live operating system is started based on a standard Linux system start-up procedure, which is different from the standard Linux system start-up in that the Live system needs an additional storage medium to store, and is generally loaded into a computer memory from a CD-ROM or similar storage device, but not loaded from a hard disk drive of the computer. Specifically, the starting of the Live operating system includes the following steps: firstly, selecting a storage medium in which a Live operating system is located as a starting disk; the boot program loads the kernel and the initrimfs, establishes a virtual root directory, and loads a necessary drive; searching a squarfs file and loading the squarfs file into a memory; and mounting a root file system in the memory, and calling an init script to initialize the operating system to finish the starting of the Live system.
Based on the above scheme, the Live system needs an additional storage medium, and in the absence of the storage medium, the above scheme cannot be used. In addition, when the hardware is not adapted, the hardware cannot be used, and the maintenance cost is high.
For this reason, an operating system starting 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 boot method that seeks to solve, or at least alleviate, the above-identified problems.
According to one aspect of the present invention, there is provided an operating system boot method executed in a computing device, where a storage device of the computing device includes a local operating system, and the local operating system includes a compressed file corresponding to a target root file system, and the method includes the steps of: a start item of a target operating system is started; loading the kernel of the local operating system and the temporary root file system into a memory so as to mount the root file system of the local operating system based on the temporary root file system; loading the compressed file corresponding to the target root file system into a memory so as to mount the target root file system; and copying one or more kernel modules required by the local operating system in the starting process into a target root file system in the memory so that the target operating system calls the kernel modules which are the same as the local operating system.
Optionally, in the operating system startup method according to the present invention, after loading the kernel of the local operating system and the temporary root file system into the memory, the method further includes the steps of: generating a virtual root file system in a memory based on the temporary root file system of the local operating system; mounting a root file system of a local operating system based on the virtual root file system; and acquiring a compressed file corresponding to the target root file system from the local operating system based on the corresponding path according to the mounted root file system.
Optionally, in the operating system startup method according to the present invention, copying one or more kernel modules required by the local operating system during startup into the target root file system in the memory includes: copying the content in the root file system of the local operating system/under the lib/modules directory to the corresponding directory in the target root file system of the target operating system.
Optionally, in the operating system startup method according to the present invention, before mounting the kernel of the local operating system and the temporary root file system to the memory, the method includes the steps of: constructing a target root file system corresponding to a target operating system; and generating a corresponding compressed file based on the target root file system, and storing the compressed file into a local operating system of the computing device.
Optionally, in the operating system startup method according to the present invention, before generating the corresponding compressed file based on the target root file system, a startup item of the target operating system is configured, including the steps of: the kernel and the temporary root file system which are started by the appointed target operating system are respectively the same as the kernel and the temporary root file system of the local operating system; the designated boot program is the boot mode of the target operating system.
Optionally, in the operating system startup method according to the present invention, after copying one or more kernel modules into the target root file system in the memory, the method further includes the steps of: and unloading the root file system of the local operating system.
Optionally, in the operating system starting method according to the present invention, the target operating system is a Live operating system.
Optionally, in the operating system startup method according to the present invention, the temporary root file system is initrimfs; the compressed file is a squarfs.
According to one 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 adapted to be executed by the at least one processor, the program instructions comprising instructions for performing an operating system boot method as described above.
According to one 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 a method as described above.
According to the technical scheme of the invention, the operating system starting method is provided, and the Live operating system is stored by storing the compressed file of the Live operating system in a storage device local to the computing device without depending on an additional storage medium. According to a pre-configured starting item of a target operating system, when the target operating system is started, the starting of the target operating system is guided through a kernel and a temporary root file system of a local operating system, so that the starting of a Live operating system is guided from the local operating system, and the Live operating system can share the kernel with the local operating system.
In addition, the invention copies one or more kernel modules required by the local operating system in the starting process into the target root file system in the memory, so that the target operating system can call the kernel module the same as the local operating system in the starting process. In this way, the invention realizes that the Live operating system shares the kernel module with the local operating system, and the target operating system is started by using one or more kernel modules required in the starting process of the local operating system.
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 set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a computing device 100 according to one embodiment of the invention; and
FIG. 2 illustrates a flowchart of an operating system boot 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. The 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 caches, such as a first level cache 110 and a second level 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. The system memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, the application 122 may be arranged to execute instructions on an operating system by the one or more processors 104 using the program data 124.
Computing device 100 may also include a storage interface bus 134. Storage interface bus 134 enables communication from storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to base configuration 102 via 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 the system memory 106 via the storage interface bus 134 and executed by the one or more processors 104 when the computing device 100 is powered up or the application 122 is 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 basic configuration 102 via 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 communication with one or more other computing devices 162 via one or more communication ports 164 over a network communication link.
The 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 in a modulated data signal, such as a carrier wave or other transport mechanism. A "modulated data signal" may be a signal that has one or more of its data set or changed in such a manner as to encode information in the signal. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and 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 desktop and notebook computer configurations. Of course, computing device 100 may also be implemented as part of a small-sized 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 device, an application-specific device, or a hybrid device that may include any of the above functions. And may even be implemented as servers, such as file servers, database servers, application servers, WEB servers, and the like. The embodiments of the present invention are not limited in this regard.
In an embodiment in accordance with the invention, computing device 100 is configured to perform operating system boot method 200 in accordance with the invention. Wherein the computing device 100 contains a plurality of program instructions for executing the operating system boot method 200 according to the present invention, such that the operating system boot method 200 of the present invention can be executed in the computing device.
FIG. 2 illustrates a flowchart of an operating system boot method 200 according to one embodiment of the invention. It should be noted that, in the embodiment of the present invention, the operating system boot method of the present invention is described in detail only with the Live operating system as the target operating system, but the operating system boot policy of the present invention is not limited to the Live operating system.
It should be noted that the storage device (e.g., hard disk) local to the computing device 100 includes a local operating system, such as, but not limited to, a Linux operating system. According to the method 200 of the present invention, the target operating system may be stored and booted in the computing device 100 with the local operating system installed, the storage of the target operating system being independent of a storage medium external to the computing device.
As shown in fig. 2, the method 200 begins at step S210. In step S210, the boot item of the target operating system is booted so as to boot the boot of the target operating system based on the boot item of the target operating system. In one embodiment, the target operating system may be a Live operating system.
It should be noted that the Live operating system is a minimized Linux kernel-based operating system. In the prior art, the Live operating system needs to be stored based on a storage medium outside the computing device, and the storage medium where the Live operating system is located needs to be designated as a boot disk for starting the Live operating system.
According to one embodiment of the invention, a target root file system corresponding to a target operating system (Live system) is pre-built, a corresponding compressed file is generated based on the target root file system, and for example, the target root file system can be compressed based on squarfs-tools to generate a squarfs file. The compressed file squaresfs for the target root file system is then stored in the local operating system of the computing device 100. In this way, storing the compressed file of the Live operating system in a storage device local to the computing device is achieved, without relying on additional storage media to store the Live operating system.
In addition, according to one embodiment, after the target root file system is built, the boot items of the target operating system are also configured based on the boot manager. Specifically, the kernel and temporary root file system for starting the designated target operating system are respectively the same as the kernel and temporary root file system of the local operating system. That is, the kernel that designates the target operating system to start is the same file as the kernel of the local operating system, and the temporary root file system that designates the target operating system to start is the same file as the temporary root file system of the local operating system. The path of the target root file system (corresponding to its corresponding location where the compressed file is stored in the local operating system) is specified, so that the compressed file of the target root file system can be obtained based on the corresponding path when the target operating system is started. And, the specified operating system boot program is a boot program corresponding to the target operating system so as to boot the target operating system (Live system) on the basis of a boot method corresponding to the target operating system.
Here, the boot manager may be implemented as Syslinux, GRUB, GRUB Legacy, lio, etc., but it should be noted that the present invention is not limited to the specific kind of boot manager.
In one embodiment, the target operating system boot may be directed based on the GRUB boot manager. It should be noted that the main configuration file of the GRUB boot manager is/boot/GRUB. The GRUB/etc/grub.d directory contains all the scripts that GRUB needs to use, which are the basis for creating grub.cfg. When configuring the boot items of the target operating system based on the GRUB boot manager, the configuration file/boot/GRUB/grub.cfg of the GRUB is updated based on the script in the grub.d folder. Specifically, the startup item of the Live system is added by adding a script in the grub.d folder, and the added startup item is the configured startup item corresponding to the target operating system. That is, a corresponding script file is generated based on configuration information such as a kernel, a temporary root file system, a boot mode and the like of the designated target operating system boot, the script file is added to the per-etc/grub.d directory, and the boot item of the target operating system is configured in the GRUB boot manager through updating the per-boot/GRUB/grub.cfg file.
Based on this, the target operating system may be started based on the local disk, specifically, the startup manager at the local disk selects a startup item of the startup and target operating system to start the target operating system. When the target operating system is started based on the specified boot file, the starting item of the target operating system is started, and the starting of the target operating system is guided through the kernel of the local operating system and the temporary root file system, so that the Live operating system is started from the local operating system. See in particular the relevant description of the following steps.
In step S220, the kernel and temporary root file system of the local operating system are loaded into memory. It should be noted that by loading the kernel of the local operating system, the target operating system may use the kernel of the local operating system to implement sharing the kernel with the local operating system. By loading the temporary root file system of the local operating system, the root file system of the local operating system can be mounted.
Specifically, after loading the kernel of the local operating system and the temporary root file system into the memory, a virtual root file system is generated in the memory based on the temporary root file system (initrimfs) of the local operating system. Furthermore, the real root file system of the local operating system is mounted based on the virtual root file system, so that the mounting of the root file system of the local operating system is realized. Here, the first process/sbin/init of Linux may be invoked after the real root file system is mounted.
It is understood that the temporary root file system is a memory-based file system. In one embodiment, the temporary root file system may be implemented as an initumfs, for example.
After the real root file system of the local operating system is mounted, according to the mounted real root file system, the compressed file corresponding to the target root file system stored in the local operating system can be acquired based on the corresponding path.
Subsequently, in step S230, the compressed file corresponding to the target root file system is loaded into the memory, so as to mount the target root file system. The target root file system can be called by the target operating system through mounting the target root file system.
After the target root file system is mounted, step S240 may be performed. In step S240, based on the root file system of the installed local operating system, one or more kernel modules required by the local operating system in the starting process are copied to the target root file system in the memory. In this way, the target operating system may call these kernel modules in the target root file system, so that the target operating system may call the same kernel modules as the local operating system during the boot process.
It should be noted that the kernel module in the temporary root file system (initrimfs) of the local operating system only includes some necessary hardware drivers for the operating system to boot, and other kernel modules required during the booting process, such as a graphics video card, a sound card, etc., are all stored in the/lib/modules directory. Thus, in one embodiment, the present invention enables copying one or more kernel modules required by the local operating system during boot-up to the target root file system in memory by copying content (including one or more kernel modules) in the root file system of the local operating system to the same directory in the target root file system of the target operating system.
According to one embodiment, during the initialization phase of the temporary root file system, the content (including one or more kernel modules) under the local operating system/lib/modules directory is copied to the corresponding directory in the target operating system. Thus, based on the real root file system of the mounted local operating system, the target operating system can call one or more kernel modules under the corresponding directory in the target operating system, namely, the kernel module same as the local operating system, so that the kernel module which is required in the starting process shared with the local operating system is realized. Based on the method, the sharing of the kernel modules can be realized, namely, one or more kernel modules required by the local operating system in the starting process are used for starting the target operating system.
In one embodiment, the one or more kernel modules include, but are not limited to, drives for USB, SATA, SCSI hard disks and drives for LVMs, RAID file systems, for example.
After copying the next kernel module or modules of the/lib/modules directory into the corresponding directory of the target root file system in memory, the root file system of the local operating system may be uninstalled.
In summary, according to the operating system startup method of the present invention, the Live operating system is stored by storing the compressed file of the Live operating system in a storage device local to the computing device, without relying on an additional storage medium. According to a pre-configured starting item of a target operating system, when the target operating system is started, the starting of the target operating system is guided through a kernel and a temporary root file system of a local operating system, so that the starting of a Live operating system is guided from the local operating system, and the Live operating system can share the kernel with the local operating system. In addition, the invention copies one or more kernel modules required by the local operating system in the starting process into the target root file system in the memory, so that the target operating system can call the kernel module the same as the local operating system in the starting process. In this way, the invention realizes that the Live operating system shares the kernel module with the local operating system, and the target operating system is started by using one or more kernel modules required in the starting process of the local operating system.
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 of the methods and apparatus of the present invention, may take the form of program code (i.e., instructions) embodied in tangible media, such as removable hard drives, U-drives, floppy diskettes, 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 multi-lingual spam text recognition method of the present invention in accordance with instructions in said program code stored in the memory.
By way of example, and not limitation, readable media comprise readable storage media and communication media. The readable storage medium stores 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 the invention. The required structure for a construction of such a system is apparent from the description above. In addition, the present invention is not directed to any particular programming language. It will be appreciated that the teachings of the present invention described herein may be implemented in a variety of programming languages, and the above description of specific languages is provided for disclosure of enablement and best mode of the present invention.
In the description provided herein, numerous specific details are set forth. However, it is understood 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 construed as reflecting the intention that: i.e., the claimed invention 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 a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. 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. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units 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 but not others included in other embodiments, 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 can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, 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 the above description, will appreciate that other embodiments are contemplated within 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 disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (8)

1. An operating system boot method executed in a computing device, wherein a storage device of the computing device includes a local operating system, and the local operating system is a Linux operating system, the method includes the steps of:
generating a corresponding compressed file based on a target root file system corresponding to a target operating system, and storing the compressed file into a local operating system of computing equipment, wherein the target operating system is a Live operating system;
configuring a start-up item of a target operating system, wherein the method comprises the following steps: the method comprises the steps that a kernel and a temporary root file system which are started by a target operating system are designated to be respectively identical to a kernel and a temporary root file system of a local operating system, and a bootstrap program is designated to be a bootstrap mode of the target operating system;
starting a start item of the target operating system to boot the start of the target operating system by booting a kernel and a temporary root file system of the local operating system;
loading the kernel of the local operating system and the temporary root file system into a memory so as to mount the root file system of the local operating system based on the temporary root file system;
loading the compressed file corresponding to the target root file system into a memory so as to mount the target root file system; and
and copying one or more kernel modules required by the local operating system in the starting process into a target root file system in the memory so that the target operating system calls the kernel modules which are the same as the local operating system.
2. The method of claim 1, wherein after loading the kernel of the local operating system and the temporary root file system into the memory, further comprising the steps of:
generating a virtual root file system in a memory based on the temporary root file system of the local operating system;
mounting a root file system of a local operating system based on the virtual root file system;
and acquiring a compressed file corresponding to the target root file system from the local operating system based on the corresponding path according to the mounted root file system.
3. The method of claim 1, wherein copying one or more kernel modules required by the local operating system during boot-up into the target root file system in memory comprises:
copying the content in the root file system of the local operating system/under the lib/modules directory to the corresponding directory in the target root file system of the target operating system.
4. A method as claimed in any one of claims 1 to 3, wherein prior to mounting the kernel and temporary root file system of the local operating system to memory, comprising the steps of:
constructing a target root file system corresponding to a target operating system;
and generating a corresponding compressed file based on the target root file system, and storing the compressed file into a local operating system of the computing device.
5. A method as claimed in any one of claims 1 to 3, wherein after copying one or more kernel modules into the target root file system in memory, further comprising the steps of:
and unloading the root file system of the local operating system.
6. The method of claim 1 to 3, wherein,
the temporary root file system is initrimfs;
the compressed file is a squarfs.
7. 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-6.
8. A readable storage medium storing program instructions which, when read and executed by a computing device, cause the computing device to perform the method of any of claims 1-6.
CN202110855847.8A 2021-04-26 2021-04-26 Operating system starting method and computing device Active CN113434205B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110855847.8A CN113434205B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110855847.8A CN113434205B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device
CN202110451981.1A CN112988252B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN202110451981.1A Division CN112988252B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device

Publications (2)

Publication Number Publication Date
CN113434205A CN113434205A (en) 2021-09-24
CN113434205B true CN113434205B (en) 2024-02-23

Family

ID=76340245

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110855847.8A Active CN113434205B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device
CN202110451981.1A Active CN112988252B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202110451981.1A Active CN112988252B (en) 2021-04-26 2021-04-26 Operating system starting method and computing device

Country Status (1)

Country Link
CN (2) CN113434205B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961086B (en) * 2021-12-21 2022-04-01 统信软件技术有限公司 Shortcut key implementation method, computing device and storage medium
CN114443582B (en) * 2021-12-22 2022-11-29 科东(广州)软件科技有限公司 File system mounting method, device, equipment and medium on operating system
CN114296835B (en) * 2021-12-31 2024-02-13 奇安信科技集团股份有限公司 Application program starting method and device
CN114489702B (en) * 2022-01-29 2023-09-15 北京有竹居网络技术有限公司 Method, device, medium and electronic equipment for installing operating system
CN114911539B (en) * 2022-05-17 2024-05-14 武汉深之度科技有限公司 Starting method of running system and computing equipment
CN116016159A (en) * 2022-12-16 2023-04-25 北京云端智度科技有限公司 Tamper-proof installation method, tamper-proof installation system, tamper-proof installation medium and tamper-proof installation equipment for application system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777985A (en) * 2014-01-26 2014-05-07 宝龙计算机系统(湖南)有限公司 Method and device for installing several multiple operating systems on one partition of storage medium
CN103777955A (en) * 2014-01-26 2014-05-07 宝龙计算机系统(湖南)有限公司 Method and device for installing and operating Unix-like in Windows environment
CN105739961A (en) * 2014-12-12 2016-07-06 中兴通讯股份有限公司 Starting method and device of embedded system
US9804855B1 (en) * 2015-10-08 2017-10-31 Veritas Technologies Llc Modification of temporary file system for booting on target hardware
CN112130917A (en) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 Remote loading system mirroring method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9280360B2 (en) * 2013-06-14 2016-03-08 Futurewei Technologies, Inc. Bootstrapping from a remote disk image via a network
US10747875B1 (en) * 2020-03-19 2020-08-18 Cyberark Software Ltd. Customizing operating system kernels with secure kernel modules

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103777985A (en) * 2014-01-26 2014-05-07 宝龙计算机系统(湖南)有限公司 Method and device for installing several multiple operating systems on one partition of storage medium
CN103777955A (en) * 2014-01-26 2014-05-07 宝龙计算机系统(湖南)有限公司 Method and device for installing and operating Unix-like in Windows environment
CN105739961A (en) * 2014-12-12 2016-07-06 中兴通讯股份有限公司 Starting method and device of embedded system
US9804855B1 (en) * 2015-10-08 2017-10-31 Veritas Technologies Llc Modification of temporary file system for booting on target hardware
CN112130917A (en) * 2020-09-22 2020-12-25 北京计算机技术及应用研究所 Remote loading system mirroring method

Also Published As

Publication number Publication date
CN112988252A (en) 2021-06-18
CN112988252B (en) 2021-08-20
CN113434205A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN113434205B (en) Operating system starting method and computing device
US7934209B2 (en) Method for firmware variable storage with eager compression, fail-safe extraction and restart time compression scan
US8539213B2 (en) Manageability extension mechanism for system firmware
US11169819B2 (en) Information handling system (IHS) and method to proactively restore firmware components to a computer readable storage device of an IHS
CN113032032B (en) System management method and device, computing equipment and readable storage medium
CN112988464A (en) Power-off protection method and computing device
US20160306961A1 (en) Systems and methods for authenticated system partition access
CN107766084B (en) Boot loading and installation method and computing system thereof
CN112947976B (en) Operating system upgrading method, computing device and storage medium
CN113127100B (en) Heterogeneous program execution method and device, computing device and readable storage medium
US20150363320A1 (en) Write back caching of boot disk in a uefi environment
CN111428241B (en) Multi-security access policy control method and computing device
CN113568787A (en) Power failure protection method, computing device and storage medium
CN113791873B (en) Virtual machine creating method, computing device and storage medium
CN114691226A (en) Multi-operating-system switching operation method, computing device and storage medium
CN113535650B (en) File naming method and computing device
CN113485712B (en) Kernel clipping method and computing device
US20120144390A1 (en) Customized computer image preparation and deployment including virtual machine mode
US11340882B2 (en) Systems and methods for enforcing update policies while applying updates from bootable image file
WO2022222351A1 (en) Method for installing operating system, and computing device
CN113051584B (en) System security starting method and device, computing equipment and readable storage medium
CN113254888B (en) Method for acquiring hardware information, authorization control system and computing equipment
CN114168937A (en) Resource access method, computing device and readable storage medium
CN113867825B (en) Multi-system operation method, computing equipment and storage medium
CN113221123B (en) Method for combining kernel branches into patches and computing equipment

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
GR01 Patent grant
GR01 Patent grant