CN114942787A - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN114942787A
CN114942787A CN202210156406.3A CN202210156406A CN114942787A CN 114942787 A CN114942787 A CN 114942787A CN 202210156406 A CN202210156406 A CN 202210156406A CN 114942787 A CN114942787 A CN 114942787A
Authority
CN
China
Prior art keywords
file
operating system
program
uefi
target
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.)
Granted
Application number
CN202210156406.3A
Other languages
Chinese (zh)
Other versions
CN114942787B (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.)
Lenovo Kaitian Technology Co Ltd
Original Assignee
Lenovo Kaitian 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 Lenovo Kaitian Technology Co Ltd filed Critical Lenovo Kaitian Technology Co Ltd
Priority to CN202210156406.3A priority Critical patent/CN114942787B/en
Publication of CN114942787A publication Critical patent/CN114942787A/en
Application granted granted Critical
Publication of CN114942787B publication Critical patent/CN114942787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

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

Abstract

The invention provides a data processing method and electronic equipment, wherein the data processing method is applied to a multi-operating-system starting management program, and the method comprises the following steps: determining whether a first target storage area in the electronic equipment has a first specified mark, wherein the first specified mark is used for indicating that a target operating system is installed; upon determining to have the first assigned mark, obtaining a system file of the target operating system; completing installation of the target operating system based on the system file; and deleting the first designated mark and restarting the electronic equipment. The data processing method of the invention can at least automatically install and activate a plurality of different operating systems in the electronic equipment.

Description

Data processing method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data processing method and electronic equipment.
Background
GNU GRUB (GRand Unified Bootloader "GRUB" for short) is a multiple operating system boot program from the GNU project. GRUB is an implementation of a multi-boot specification that allows a user to have multiple operating systems simultaneously within a computer and select the operating system that he wishes to run at computer boot. GRUB may be used to select different kernels on the operating system partition and may also be used to pass boot parameters to these kernels.
Currently, when an electronic device is equipped with multiple operating systems, the starting program is run. However, when installing a plurality of operating systems based on the program, the operating systems to be specifically installed need to be manually set for each electronic device, which results in low efficiency and failure to automate installation when installing a plurality of operating systems for a large number of electronic devices.
Disclosure of Invention
The invention provides a data processing method capable of at least automatically installing and activating a plurality of different operating systems in electronic equipment and the electronic equipment applying the method.
In order to solve the above technical problem, an embodiment of the present invention provides a data processing method, which is applied to a multi-operating system boot management program, and the method includes:
determining whether a first target storage area in the electronic equipment has a first specified mark, wherein the first specified mark is used for indicating that a target operating system is installed;
upon determining to have the first assigned mark, obtaining a system file of the target operating system;
completing installation of the target operating system based on the system file;
and deleting the first designated mark and restarting the electronic equipment.
As an alternative embodiment, the method further comprises the following steps:
determining whether a UEFI program needing to be installed exists;
if yes, obtaining the UEFI program file, and installing the UEFI program;
and restarting the electronic equipment to realize the activation of the UEFI program.
As an alternative embodiment, the electronic device has a plurality of first target storage areas, a plurality of the first target storage areas are used for storing different operating systems, and each of the first target storage areas supports presetting of the first designated flag.
As an alternative embodiment, the obtaining the system file of the target operating system includes:
scanning and determining a boot file position corresponding to the target operating system;
and obtaining the system file based on the guide file position.
As an alternative embodiment, the method further comprises the following steps:
setting the starting parameters of the multi-operating system starting management program as a current system file;
determining whether the system file is compliant;
and if the target operating system is in compliance, finishing the installation of the target operating system.
As an alternative embodiment, the method further comprises the following steps:
and if the system file is not qualified, directly deleting the first designated mark and restarting the electronic equipment.
As an alternative embodiment, the determining whether there is a UEFI program that needs to be installed includes:
determining whether a second target storage area in the electronic equipment has a second designated mark, wherein the second designated mark is used for indicating that a target UEFI program is installed;
and if the second index exists, determining that the UEFI program needing to be installed exists.
As an optional embodiment, the obtaining the UEFI program file includes:
scanning and determining the UEFI program file position;
and obtaining the UEFI program file based on the UEFI program file position.
As an alternative embodiment, the method further comprises the following steps:
setting the starting parameters of the multi-operating system starting management program as a current UEFI program file;
determining whether the UEFI program file is compliant;
and if the UEFI program is in compliance, finishing the installation of the UEFI program.
Another embodiment of the present invention also provides an electronic device having a multi-os boot manager, where the electronic device includes:
the processor is used for determining whether a first target storage area in the electronic equipment has a first designated mark, obtaining a system file of the target operating system when the first designated mark is determined to be possessed, completing installation of the target operating system based on the system file, deleting the first designated mark and restarting the electronic equipment, wherein the first designated mark is used for indicating installation of the target operating system.
Based on the disclosure of the embodiment, the embodiment of the invention has the advantages that the preset operating system can be automatically installed and activated, manual installation and determination are not needed, the operation of workers is greatly simplified, the automatic installation and activation of a plurality of operating systems are effectively realized, and the installation efficiency of the software system of the electronic equipment is obviously improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart of a data processing method in an embodiment of the present invention.
Fig. 2 is a flowchart of a data processing method according to another embodiment of the present invention.
Fig. 3 is a flowchart of an actual application of the data processing method in the embodiment of the present invention.
Fig. 4 is a block diagram of an electronic device in an embodiment of the present invention.
Detailed Description
The following detailed description of specific embodiments of the present invention is provided in connection with the accompanying drawings, which are not intended to limit the invention.
It will be understood that various modifications may be made to the embodiments disclosed herein. The following description is, therefore, not to be taken in a limiting sense, but is made merely as an exemplification of embodiments. Other modifications within the scope and spirit of the present disclosure will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and, together with a general description of the disclosure given above, and the detailed description of the embodiments given below, serve to explain the principles of the disclosure.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the attached drawings.
It should also be understood that, although the invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present disclosure will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present disclosure are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely examples of the disclosure that may be embodied in various forms. Well-known and/or repeated functions and structures have not been described in detail so as not to obscure the present disclosure with unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present disclosure in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the disclosure.
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
GRUB is a relatively advanced, open source secure, multiple operating system boot hypervisor (tool) that has evolved from GRUB Legacy to GRUB2 over the years. By re-programming, GRUB2 is completely different from GRUB Legacy in coding specifications and architecture, is more specified, secure and extensible, and can provide greater flexibility and performance improvements to the user. GRUB2 is modular, hierarchical, and can be developed secondarily based on the object framework to provide more function expandability for users.
Like the lkm (loadable kernel module) mechanism of Linux, GRUB2.0 employs a modular design. Although the design and debugging of the GRUB2 module program is based on a Linux-like microkernel environment, the modular design of the GRUB2 has a certain difference with Linux, but the basic idea of the GRUB2 is based on Linux, so that the GRUB has a different and identical part. In LKM in Linux, a kernel module program contains at least two functions: an entry function (mod _ entry _ func) executed when the module is loaded and an end function (mod _ exit _ func) executed when the module is unloaded, both functions being arbitrarily named in the latest kernel, are implemented by a macro (module _ init) and a (module _ exit). Module programs like (module _ INIT) and (module _ exit) in the Linux-like module program contain an initialization function (GRUB _ MOD _ INIT) and a termination function (GRUB _ MOD _ FINI) for initialization and release of the module program, and a function GRUB _ cmd _ # # name # # for performing the module function.
In order to meet various applications of users, many electronic devices need to use multiple operating systems or UEFI layer application programs, how to automatically load multiple operating systems, and how to manage and start the operating systems or UEFI programs in application platforms of multiple operating systems becomes a technical problem to be solved by the present application.
As shown in fig. 1, an embodiment of the present invention provides a data processing method, which is applied to a multiple operating system boot management program, and the method includes:
determining whether a first target storage area in the electronic equipment has a first specified mark, wherein the first specified mark is used for indicating that a target operating system is installed;
when the first designated mark is determined to be provided, obtaining a system file of a target operating system;
completing installation of the target operating system based on the system file;
the first designated flag is deleted and the electronic device is restarted.
The method in the embodiment can be applied to the process of pre-installing software or activating a system by leading multiple systems to enter an auditing mode in the production process of an operating system filling automation factory of a bare metal computer, particularly the method can be used when operating system filling is carried out on a large number of electronic devices in batches, and can also be used in other scenes, and is not limited specifically.
The method in this embodiment is used in combination with a multi-os startup management program, for example, during the installation process of an os on an electronic device, a user may set a first specific mark in a first target storage area of the electronic device in advance, for example, set the first specific mark in a partition of a hard disk of the electronic device, and then when the management program runs to a stage of a case-required sub-os, a program module is loaded, where the program module is used to implement the method steps of this embodiment. Specifically, the module may install an operating system that must be installed by default, and then determine whether a first target storage area in the electronic device has a first specified flag, where the specific flag is not limited in content, where the first specified flag is used to indicate that the target operating system is installed, and if the module determines that the first target storage area has the first specified flag, obtain a system file of the target operating system, where the obtaining may be by obtaining the system file in the first target storage area, or by calling stored data in other storage areas to obtain the system file, or by obtaining the system file from outside the electronic device, and the specific obtaining may be indefinite. And after the system file is obtained, the module can install the target operating system based on the system file, then delete the first designated mark, restart the electronic equipment and complete the activation of the target operating system. The first designated mark is deleted so that the installed target operating system is not repeatedly installed again after the electronic device is restarted, and other processes are continued.
Based on the disclosure of the above embodiment, the beneficial effects of the present embodiment include that the preset operating system can be automatically installed and activated, manual installation and determination are not required, the operation of the worker is greatly simplified, the automatic installation and activation of a plurality of operating systems are effectively realized, and the installation efficiency of the electronic device software system is significantly improved.
In addition, the method in this embodiment is a driver module program developed based on a GRUB layer, and for example, specifically, based on a GRUB2.0 mechanism, a GRUB2.0 standard module is written, a GRUB command is encapsulated, subsequent loading and calling are realized, and then, automatic installation and activation of an operating system are realized. Based on the method, the embodiment can support cross compilation of all heterogeneous platforms, and the module source code developed based on, for example, a GRUB2.0 framework can be cross compiled for the target device, so that the universality is good. Moreover, the method in this embodiment supports setting the system markup file for starting, so that a system that is not the first boot item can be started in multiple scenarios, that is, after a default operating system is automatically installed, one or more operating systems pre-marked by other users can be directly and automatically installed.
Further, as shown in fig. 2, the method in this embodiment further includes:
determining whether a UEFI program needing to be installed exists;
if yes, obtaining a UEFI program file, and installing a UEFI program;
and restarting the electronic equipment to realize the activation of the UEFI program.
That is, after the operating system to be installed is installed, the method in this embodiment may further automatically determine whether there is a UEFI program that needs to be installed, and if there is a UEFI program that needs to be installed, obtain a program file, and install and activate the program file.
Based on the method, the embodiment can support the starting of a specific efi format file, and extend the use scenes of various tools in a Unified Extensible Firmware Interface (UEFI) mode. For example, the client-specified efi-formatted file can be started to perform tool functions independent of the operating system, such as virus scanning, hardware diagnosis, information arrangement, system backup recovery and the like, namely UEFI programs with different functions, according to requirements in the GRUB stage.
Further, the electronic device in this embodiment has a plurality of first target storage areas, the plurality of first target storage areas are used for storing different operating systems, and each first target storage area supports presetting of the first designated flag. For example, a hard disk of an electronic device has multiple partitions, each partition may be provided with a first designation flag indicating that a different operating system needs to be installed, when a program scans the first partition and determines that the first designation flag exists, the operating system corresponding to the first designation flag of the first partition is installed, then the first designation flag of the first partition is deleted, and the device is restarted to activate the operating system that has just been installed. And then scanning the second partition, if the first specified mark exists in the second partition as it is, installing an operating system corresponding to the first specified mark, repeating the steps, traversing all the partitions until all the indicated operating systems are determined to be installed, and continuing to execute subsequent steps, such as determining whether a UEFI program needing to be installed exists. In practical application, a plurality of UEFI programs needing to be installed can be provided, and each UEFI program to be installed can be installed and activated sequentially during execution.
In this embodiment, the program module mainly includes three functions, i.e., GRUB _ MOD _ init (okrloader), GRUB _ MOD _ fini (okrloader), and GRUB _ cmd _ okrloader. GRUB _ MOD _ INIT (okloader) is an initialization function of a module program, GRUB _ MOD _ FINI (okloader) is an end function of a module function, the function has a stable format, and (GRUB _ cmd _ okloader) is an implementation function for completing a specific customized function. These functions constitute the basic structure of the GRUB2 module program.
As shown in fig. 3, when the GRUB program runs, the program module of this embodiment is loaded first, the registration command of the module is executed, and then the three functions of the module are executed in sequence. For example, the implementation function of the customized function is executed first, and then the initialization function and the end function are executed, thereby completing the operating system, the UEFI program, and the like.
Further, with continuing reference to fig. 3, when obtaining the system file of the target operating system, the present embodiment includes:
scanning and determining the position of a boot file corresponding to a target operating system;
the system file is obtained based on the boot file location.
For example, the first target storage area is scanned, or the full hard disk is scanned to determine the location of the UEFI boot file corresponding to the target operating system, and then a file of a desired system is obtained based on the location of the boot file, such as a boottmgfw. efi file of a windows system, a boot64.efi or bootaa64.efi file of a Linus system, and the like.
Next, the method of this embodiment further includes:
setting the starting parameters of the multi-operation system starting management program as the current system file;
determining whether the system file is compliant;
and if the target operating system is in compliance, finishing the installation of the target operating system.
And if the system file is not qualified, directly deleting the first designated mark and restarting the electronic equipment.
If the system file is in compliance, setting a root position of the GRUB as a current starting file, namely a partition where the system file is located, distributing the GRUB according to the size of the starting file to start a memory environment, starting and loading the starting file to conduct corresponding system booting, realizing system installation, entering a system auditing mode to conduct system activation and the like.
Continuing with fig. 3, in determining whether there is a UEFI program to install, the method includes:
determining whether a second target storage area in the electronic equipment has a second designated mark, wherein the second designated mark is used for indicating that a target UEFI program is installed;
and if the second specified mark is provided, determining that the UEFI program which needs to be installed exists.
The UEFI program can be preset during filling production of bare metal computers.
Further, after determining that there is a UEFI program to be installed, obtaining a UEFI program file, including:
scanning to determine the position of a UEFI program file;
and obtaining the UEFI program file based on the UEFI program file position.
Efi file location, etc. is determined by scanning, for example.
Then, the method further comprises:
setting the starting parameters of the multi-operating system starting management program as a current UEFI program file;
determining whether the UEFI program file is compliant;
if the UEFI program is in compliance, the UEFI program is installed;
and if the system file is not qualified, directly deleting the second designated mark and restarting the electronic equipment.
As shown in fig. 3, if the system file is in compliance, setting a root position of GRUB as a current start file, that is, a partition where the UEFI program file is located, allocating a GRUB start memory environment according to the size of the start file, starting and loading the UEFI program file, completing the UEFI program application function, then deleting the second designation flag, and restarting the electronic device. When the UEFI becomes plural, the above steps may be repeatedly performed until the installation of all programs is completed. After the above process is completed, the electronic device can be controlled to enter the next production link.
As shown in fig. 4, another embodiment of the present invention provides an electronic device having a multiple operating systems boot management program, including:
the processor is used for determining whether a first target storage area in the electronic equipment has a first designated mark, obtaining a system file of the target operating system when the first designated mark is determined to be possessed, completing installation of the target operating system based on the system file, deleting the first designated mark and restarting the electronic equipment, wherein the first designated mark is used for indicating installation of the target operating system.
Based on the disclosure of the above embodiment, the beneficial effects of the present embodiment include that the preset operating system can be automatically installed and activated, manual installation and determination are not required, the operation of the worker is greatly simplified, the automatic installation and activation of a plurality of operating systems are effectively realized, and the installation efficiency of the electronic device software system is significantly improved.
As an alternative embodiment, the processor is further configured to:
determining whether a UEFI program needing to be installed exists;
if yes, obtaining the UEFI program file, and installing the UEFI program;
and restarting the electronic equipment to realize the activation of the UEFI program.
As an optional embodiment, the electronic device has a plurality of first target storage areas, the plurality of first target storage areas are used for storing different operating systems, and each first target storage area supports presetting the first designated flag.
As an alternative embodiment, the obtaining the system file of the target operating system includes:
scanning the first target storage area to determine a boot file position corresponding to the target operating system;
and obtaining the system file based on the boot file position.
As an alternative embodiment, the processor is further configured to:
setting the starting parameters of the multi-operating system starting management program as a current system file;
determining whether the system file is compliant;
and if the target operating system is in compliance, finishing the installation of the target operating system.
As an alternative embodiment, the processor is further configured to:
and if the system file is not qualified, directly deleting the first designated mark and restarting the electronic equipment.
As an alternative embodiment, the determining whether there is a UEFI program that needs to be installed includes:
determining whether a second target storage area in the electronic equipment has a second designated mark, wherein the second designated mark is used for indicating installation of a target UEFI program;
and if the second index exists, determining that the UEFI program needing to be installed exists.
As an optional embodiment, the obtaining the UEFI program file includes:
scanning the second target storage area to determine the UEFI program file position;
and obtaining the UEFI program file based on the UEFI program file position.
As an alternative embodiment, the processor is further configured to:
setting the starting parameters of the multi-operating system starting management program as a current UEFI program file;
determining whether the UEFI program file is compliant;
and if the UEFI program is in compliance, finishing the installation of the UEFI program.
Another embodiment of the present application further provides an electronic device, including:
one or more processors;
a memory configured to store one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the processing methods described above.
An embodiment of the present invention also provides a storage medium on which a computer program is stored, which when executed by a processor implements the processing method as described above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.
Embodiments of the invention also provide a computer program product tangibly stored on a computer-readable medium and comprising computer-executable instructions that, when executed, cause at least one processor to perform a processing method such as those described in the embodiments above. It should be understood that each solution in this embodiment has a corresponding technical effect in the foregoing method embodiments, and details are not described here.
It should be noted that the computer storage media of the present application can be computer readable signal media or computer readable storage media or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access storage media (RAM), a read-only storage media (ROM), an erasable programmable read-only storage media (EPROM or flash memory), an optical fiber, a portable compact disc read-only storage media (CD-ROM), an optical storage media piece, a magnetic storage media piece, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, antenna, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
It should be understood that although the present application has been described in terms of various embodiments, not every embodiment includes only a single embodiment, and such description is for clarity purposes only, and those skilled in the art will recognize that the embodiments described herein may be combined as suitable to form other embodiments, as will be appreciated by those skilled in the art.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, and the scope of the present invention is defined by the claims. Various modifications and equivalents of the invention may be made by those skilled in the art within the spirit and scope of the invention, and such modifications and equivalents should also be considered as falling within the scope of the invention.

Claims (10)

1. A data processing method is applied to a multi-operating system startup management program, and is characterized by comprising the following steps:
determining whether a first target storage area in the electronic equipment has a first specified mark, wherein the first specified mark is used for indicating that a target operating system is installed;
upon determining to have the first assigned mark, obtaining a system file of the target operating system;
completing installation of the target operating system based on the system file;
and deleting the first designated mark and restarting the electronic equipment.
2. The method of claim 1, further comprising:
determining whether UEFI programs needing to be installed exist;
if yes, obtaining the UEFI program file, and installing the UEFI program;
and restarting the electronic equipment to realize the activation of the UEFI program.
3. The method of claim 1, wherein the electronic device has a plurality of first target memory areas, wherein the plurality of first target memory areas are used for storing different operating systems, and wherein each first target memory area supports presetting the first specific mark.
4. The method of claim 1, wherein obtaining the system file of the target operating system comprises:
scanning and determining a boot file position corresponding to the target operating system;
and obtaining the system file based on the guide file position.
5. The method of claim 1, further comprising:
setting the starting parameters of the multi-operating system starting management program as a current system file;
determining whether the system file is compliant;
and if the target operating system is in compliance, finishing the installation of the target operating system.
6. The method of claim 5, further comprising:
and if the system file is not qualified, directly deleting the first designated mark and restarting the electronic equipment.
7. The method of claim 2, wherein the determining whether there is a UEFI program to install comprises:
determining whether a second target storage area in the electronic equipment has a second designated mark, wherein the second designated mark is used for indicating that a target UEFI program is installed;
and if the second index exists, determining that the UEFI program needing to be installed exists.
8. The method of claim 2, wherein obtaining the UEFI program file comprises:
scanning and determining the UEFI program file position;
and obtaining the UEFI program file based on the UEFI program file position.
9. The method of claim 2, further comprising:
setting the starting parameters of the multi-operating system starting management program as a current UEFI program file;
determining whether the UEFI program file is compliant;
and if the UEFI program is in compliance, finishing the installation of the UEFI program.
10. An electronic device having a multiple operating system boot hypervisor, the electronic device comprising:
the processor is used for determining whether a first target storage area in the electronic equipment has a first designated mark, obtaining a system file of the target operating system when the first designated mark is determined to be possessed, completing installation of the target operating system based on the system file, deleting the first designated mark and restarting the electronic equipment, wherein the first designated mark is used for indicating installation of the target operating system.
CN202210156406.3A 2022-02-21 2022-02-21 Data processing method and electronic equipment Active CN114942787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210156406.3A CN114942787B (en) 2022-02-21 2022-02-21 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210156406.3A CN114942787B (en) 2022-02-21 2022-02-21 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN114942787A true CN114942787A (en) 2022-08-26
CN114942787B CN114942787B (en) 2024-07-30

Family

ID=82906105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210156406.3A Active CN114942787B (en) 2022-02-21 2022-02-21 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN114942787B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106873970A (en) * 2016-12-29 2017-06-20 紫光华山信息技术有限公司 The installation method and device of a kind of operating system
CN106911729A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of operating system remote installation method suitable for domestic processor
CN107408045A (en) * 2015-02-27 2017-11-28 三星电子株式会社 Control is provided with the method and the equipment of the equipment of multiple operating systems
CN109460241A (en) * 2018-11-14 2019-03-12 深圳市网心科技有限公司 A kind of pre-installation method, system, electronic equipment and the storage medium of operating system
CN113127015A (en) * 2021-04-25 2021-07-16 联想(北京)有限公司 Installation method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107408045A (en) * 2015-02-27 2017-11-28 三星电子株式会社 Control is provided with the method and the equipment of the equipment of multiple operating systems
US20170371509A1 (en) * 2015-02-27 2017-12-28 Samsung Electronics Co., Ltd. Method of controlling device having plurality of operating systems installed therein, and the device
CN106911729A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of operating system remote installation method suitable for domestic processor
CN106873970A (en) * 2016-12-29 2017-06-20 紫光华山信息技术有限公司 The installation method and device of a kind of operating system
CN109460241A (en) * 2018-11-14 2019-03-12 深圳市网心科技有限公司 A kind of pre-installation method, system, electronic equipment and the storage medium of operating system
CN113127015A (en) * 2021-04-25 2021-07-16 联想(北京)有限公司 Installation method and device and electronic equipment

Also Published As

Publication number Publication date
CN114942787B (en) 2024-07-30

Similar Documents

Publication Publication Date Title
US20190171430A1 (en) Preinstalled Application Management Method for Mobile Terminal and Mobile Terminal
CN109002346B (en) Conversion method of Windows virtual machine bootstrap program
CN107220085B (en) Method for automatically upgrading RAID card firmware
US20190310874A1 (en) Driver management method and host
CN114072765B (en) Method for container-based virtualization system
CN113760306A (en) Method and device for installing software, electronic equipment and storage medium
WO2011114476A1 (en) Multicore processor system, notification program, and notification method
CN107911816B (en) Starting method for multi-mode IoT device, multi-mode IoT device and storage medium
CN111966470B (en) Loading method and device of virtual machine monitor and electronic equipment
CN113821220A (en) Installation method and device of linux operating system
CN111913753A (en) Method and system for changing starting mode in cloud migration of windows system
CN109471665B (en) Method for automatically installing Windows operating system
CN114942787A (en) Data processing method and electronic equipment
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN113467893B (en) Automatic testing method and device for virtual machine, storage medium and processor
US11425203B2 (en) Commissioning a virtualized network function
CN111240589A (en) Partition isolation-based system management method, device, equipment and storage medium
CN110716753A (en) Cloud host initialization method and device, storage medium and electronic equipment
CN112463262A (en) Android system GPS module self-adaption method and terminal
CN114443582B (en) File system mounting method, device, equipment and medium on operating system
CN107562466B (en) Method and equipment for installing computer operating system
CN110928582B (en) Information processing apparatus and method of configuring target device of information processing apparatus
US20220197673A1 (en) Binary Image Publication by Firmware
CN111240752B (en) Operating system self-adaption method and system
JP2006012158A (en) Method and apparatus for providing extendable interaction between firmware and operating systems on digital devices

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