[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114385251A - Operating system booting method, system, terminal and storage medium based on memory - Google Patents

Operating system booting method, system, terminal and storage medium based on memory Download PDF

Info

Publication number
CN114385251A
CN114385251A CN202111556575.8A CN202111556575A CN114385251A CN 114385251 A CN114385251 A CN 114385251A CN 202111556575 A CN202111556575 A CN 202111556575A CN 114385251 A CN114385251 A CN 114385251A
Authority
CN
China
Prior art keywords
operating system
memory
file
partition
starting
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.)
Withdrawn
Application number
CN202111556575.8A
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111556575.8A priority Critical patent/CN114385251A/en
Publication of CN114385251A publication Critical patent/CN114385251A/en
Withdrawn legal-status Critical Current

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • 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)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of servers, in particular to a method, a system, a terminal and a storage medium for guiding an operating system based on a memory, which comprises the following steps: loading a memory, reading a starting menu from the memory, and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which the plurality of starting files are stored; searching a target operating system image file from a first partition of a memory, and downloading a starting file matched with the target operating system image file from a second partition of the memory; and installing the target operating system locally by using the mirror image file of the target operating system and the matched starting file. The invention simplifies the burning process, enables the memory to be repeatedly used in multiple environments and greatly improves the installation efficiency of the operating system.

Description

Operating system booting method, system, terminal and storage medium based on memory
Technical Field
The invention relates to the technical field of servers, in particular to a method, a system, a terminal and a storage medium for booting an operating system based on a memory.
Background
For a server or a personal computer, especially in the field of server testing, it is necessary to install and transfer an operating system, and the operating system is operated very frequently. The general installation modes include optical drive installation, KVM mounting mirror installation, PXE boot installation and hardware storage installation. Different advantages and respective disadvantages exist for different mounting manners. In various installations, hardware memory installations are relatively fast and convenient enough to be the most common of the other various installations. However, the conventional way of installing the hardware memory system is generally the following steps: downloading an OS image to the local; and writing the OS into the hardware memory by using a hardware memory burning tool such as UltraISO/Rufus and the like.
This presents two problems: firstly, writing the OS into a hardware memory consumes too much time; secondly, if there are other different systems to be installed, the hardware memory is not rewritten, which will overwrite the previous OS or replace the hardware memory, which brings a certain trouble to the installation of the system for the hardware memory.
Disclosure of Invention
In view of the foregoing disadvantages in the prior art, the present invention provides a method, a system, a terminal and a storage medium for booting an operating system based on a memory, so as to solve the above technical problems.
In a first aspect, the present invention provides a boot method for an operating system based on a memory, including:
loading a memory, reading a starting menu from the memory, and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which the plurality of starting files are stored;
searching a target operating system image file from a first partition of a memory, and downloading a starting file matched with the target operating system image file from a second partition of the memory;
and installing the target operating system locally by using the mirror image file of the target operating system and the matched starting file.
Further, loading a memory, reading a boot menu from the memory, and selecting a target operating system through the boot menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which a plurality of boot files are stored, and the method comprises:
reading all starting file types of a second partition of the memory, and acquiring starting items corresponding to the starting file types;
generating a start menu based on the acquired start item by using a guiding tool;
selecting a target operating system from the launch menu.
Further, searching a target operating system image file from a first partition of a memory, and downloading a boot file matched with the target operating system image file from a second partition of the memory, includes:
and calling a target operating system image file from the first partition and calling a matched start file from the second partition according to the set binding relationship between the operating system type and the operating system image file and the start file when the start menu is generated, wherein the start file is in a unified extensible firmware interface format.
In a second aspect, the present invention provides a memory-based operating system boot system, comprising:
the target selection unit is used for loading a memory, reading a starting menu from the memory and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which the plurality of starting files are stored;
the file acquisition unit is used for searching a target operating system image file from a first partition of a memory and downloading a starting file matched with the target operating system image file from a second partition of the memory;
and the system installation unit is used for installing the target operating system locally by utilizing the mirror image file of the target operating system and the matched starting file.
Further, the target selecting unit includes:
the information reading module is used for reading all the starting file types of the second partition of the memory and acquiring starting items corresponding to the starting file types;
the menu generating module is used for generating a starting menu based on the acquired starting item by utilizing the guiding tool;
and the target selection module is used for selecting a target operating system from the starting menu.
Further, the file acquiring unit includes:
and the file acquisition module is used for calling a target operating system image file from the first partition and calling a matched start file from the second partition according to the set binding relationship between the operating system type and the operating system image file and the start file when the start menu is generated, wherein the start file is in a unified extensible firmware interface format.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The method, the system, the terminal and the storage medium for guiding the operating system based on the memory simplify the burning process, enable the memory to be repeatedly used in multiple environments, and greatly improve the installation efficiency of the operating system.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is another schematic flow diagram of a method of one embodiment of the invention.
FIG. 3 is a diagram of a memory architecture of a memory of a method according to an embodiment of the invention.
FIG. 4 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject of fig. 1 may be a memory-based operating system boot system.
As shown in fig. 1, the method includes:
step 110, loading a memory, reading a starting menu from the memory, and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which a plurality of starting files are stored;
step 120, searching a target operating system image file from a first partition of a memory, and downloading a start-up file matched with the target operating system image file from a second partition of the memory;
and step 130, installing the target operating system locally by using the mirror image file of the target operating system and the matched starting file.
In order to facilitate understanding of the present invention, the memory-based operating system booting method provided by the present invention is further described below with reference to the principle of the memory-based operating system booting method of the present invention and the process of booting the memory-based operating system in the embodiments.
Specifically, referring to fig. 2, the booting method of the memory-based operating system includes:
and S1, loading a memory, reading a starting menu from the memory, and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which a plurality of starting files are stored.
The memory is a usb disk, and the storage structure of the memory is as shown in fig. 3, and the usb disk needs to be burned before being loaded. The specific burning method comprises the following steps: formatting the USB flash disk and preparing for partitioning the USB flash disk; dividing the U disk into 2 partitions, wherein the first partition stores an ISO image file of an OS (operating system), and the second partition stores a starting file in a UEFI (unified extensible firmware interface) mode; in the second partition, a plurality of boot files such as BOOTX64.EFI and BOOTIA32.EFI can be added to support a plurality of operating systems; in the first partition, the installation resources of the operating system to be installed are put in, generally extracted from the ISO file, and can be copied to the usb disk through the UltraISO or after the ISO file is directly mounted.
Reading all starting file types of a second partition of the memory, and acquiring starting items corresponding to the starting file types; generating a start menu based on the acquired start item by using a guiding tool; selecting a target operating system from the launch menu. And adding a plurality of starting items of the operating system to the USB flash disk starting menu by using a grub tool to configure the total starting menu. Therefore, when the server is started from the USB flash disk, the general startup menu can be loaded first, and the operating system can be selected to be installed through manual operation.
S2, searching the target operating system image file from the first partition of the memory, and downloading the boot file matched with the target operating system image file from the second partition of the memory.
When the startup menu is generated, the binding relationship between the type of the operating system and the image file and the startup file of the operating system is automatically set, for example, the image file 1 and the startup file 1 are both only applicable to the operating system a, so the image file 1 and the startup file 1 are both bound to the operating system a. Therefore, according to the binding relationship, the target operating system image file is called from the first partition and the matched starting file is called from the second partition, and the starting file is in a unified extensible firmware interface format.
And S3, installing the target operating system locally by using the mirror image file of the target operating system and the matched boot file.
After the target operating system image file and the matched starting file are downloaded to the local, the image file is loaded by using the starting file, and the target operating system is installed.
As shown in fig. 4, the system 400 includes:
a target selecting unit 410, configured to load a memory, read a boot menu from the memory, and select a target operating system through the boot menu, where the memory is divided into a first partition in which multiple operating system image files are stored and a second partition in which multiple boot files are stored;
a file obtaining unit 420, configured to search for a target operating system image file from a first partition of a memory, and download a boot file matching the target operating system image file from a second partition of the memory;
and a system installation unit 430, configured to install the target operating system locally by using the target operating system image file and the matched boot file.
Optionally, as an embodiment of the present invention, the target selecting unit includes:
the information reading module is used for reading all the starting file types of the second partition of the memory and acquiring starting items corresponding to the starting file types;
the menu generating module is used for generating a starting menu based on the acquired starting item by utilizing the guiding tool;
and the target selection module is used for selecting a target operating system from the starting menu.
Optionally, as an embodiment of the present invention, the file obtaining unit includes:
and the file acquisition module is used for calling a target operating system image file from the first partition and calling a matched start file from the second partition according to the set binding relationship between the operating system type and the operating system image file and the start file when the start menu is generated, wherein the start file is in a unified extensible firmware interface format.
Fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present invention, where the terminal 500 may be used to execute the memory-based operating system booting method according to the embodiment of the present invention.
Among them, the terminal 500 may include: a processor 510, a memory 520, and a communication unit 530. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 520 may be used for storing instructions executed by the processor 510, and the memory 520 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 520, when executed by processor 510, enable terminal 500 to perform some or all of the steps in the method embodiments described below.
The processor 510 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, processor 510 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 530 for establishing a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention simplifies the burning process, enables the memory to be repeatedly used in multiple environments, and greatly improves the installation efficiency of the operating system.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a hardware Memory, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the methods in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A memory-based operating system boot method, comprising:
loading a memory, reading a starting menu from the memory, and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which the plurality of starting files are stored;
searching a target operating system image file from a first partition of a memory, and downloading a starting file matched with the target operating system image file from a second partition of the memory;
and installing the target operating system locally by using the mirror image file of the target operating system and the matched starting file.
2. The method of claim 1, wherein loading a memory and reading a boot menu from the memory, selecting a target operating system through the boot menu, the memory being partitioned into a first partition storing a plurality of operating system image files and a second partition storing a plurality of boot files, comprises:
reading all starting file types of a second partition of the memory, and acquiring starting items corresponding to the starting file types;
generating a start menu based on the acquired start item by using a guiding tool;
selecting a target operating system from the launch menu.
3. The method of claim 2, wherein searching for a target operating system image file from a first partition of memory and downloading a boot file from a second partition of memory that matches the target operating system image file comprises:
and calling a target operating system image file from the first partition and calling a matched start file from the second partition according to the set binding relationship between the operating system type and the operating system image file and the start file when the start menu is generated, wherein the start file is in a unified extensible firmware interface format.
4. A memory-based operating system boot system, comprising:
the target selection unit is used for loading a memory, reading a starting menu from the memory and selecting a target operating system through the starting menu, wherein the memory is divided into a first partition in which a plurality of operating system image files are stored and a second partition in which the plurality of starting files are stored;
the file acquisition unit is used for searching a target operating system image file from a first partition of a memory and downloading a starting file matched with the target operating system image file from a second partition of the memory;
and the system installation unit is used for installing the target operating system locally by utilizing the mirror image file of the target operating system and the matched starting file.
5. The system of claim 4, wherein the target selection unit comprises:
the information reading module is used for reading all the starting file types of the second partition of the memory and acquiring starting items corresponding to the starting file types;
the menu generating module is used for generating a starting menu based on the acquired starting item by utilizing the guiding tool;
and the target selection module is used for selecting a target operating system from the starting menu.
6. The system according to claim 5, wherein the file acquisition unit comprises:
and the file acquisition module is used for calling a target operating system image file from the first partition and calling a matched start file from the second partition according to the set binding relationship between the operating system type and the operating system image file and the start file when the start menu is generated, wherein the start file is in a unified extensible firmware interface format.
7. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-3.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN202111556575.8A 2021-12-17 2021-12-17 Operating system booting method, system, terminal and storage medium based on memory Withdrawn CN114385251A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111556575.8A CN114385251A (en) 2021-12-17 2021-12-17 Operating system booting method, system, terminal and storage medium based on memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111556575.8A CN114385251A (en) 2021-12-17 2021-12-17 Operating system booting method, system, terminal and storage medium based on memory

Publications (1)

Publication Number Publication Date
CN114385251A true CN114385251A (en) 2022-04-22

Family

ID=81198249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111556575.8A Withdrawn CN114385251A (en) 2021-12-17 2021-12-17 Operating system booting method, system, terminal and storage medium based on memory

Country Status (1)

Country Link
CN (1) CN114385251A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079901A (en) * 2022-06-08 2022-09-20 Oppo广东移动通信有限公司 Interface display method, device, storage medium and terminal
CN115794257A (en) * 2022-12-01 2023-03-14 北京首都在线科技股份有限公司 System starting method and device, electronic equipment and storage medium
CN116661875A (en) * 2022-11-17 2023-08-29 荣耀终端有限公司 Method for starting terminal equipment and electronic equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079901A (en) * 2022-06-08 2022-09-20 Oppo广东移动通信有限公司 Interface display method, device, storage medium and terminal
CN116661875A (en) * 2022-11-17 2023-08-29 荣耀终端有限公司 Method for starting terminal equipment and electronic equipment
CN116661875B (en) * 2022-11-17 2024-04-05 荣耀终端有限公司 Method for starting terminal equipment and electronic equipment
CN115794257A (en) * 2022-12-01 2023-03-14 北京首都在线科技股份有限公司 System starting method and device, electronic equipment and storage medium
CN115794257B (en) * 2022-12-01 2024-02-02 北京首都在线科技股份有限公司 System starting method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN106227579B (en) Docker container construction method and Docker management console
CN108847950B (en) Electronic device, cloud system software automatic deployment method and storage medium
CN110825392B (en) Customization method, batch deployment method and batch deployment system of operating system
EP3518099B1 (en) Installation of operating system
CN103580908A (en) Server configuration method and system
CN112631625B (en) System upgrading method and device for embedded equipment and embedded equipment
CN111708566A (en) Software increment updating method, device, system and computer readable storage medium
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN115291946A (en) Hongmong system transplanting method, device, electronic equipment and readable medium
CN103677937A (en) Method and device for upgrading and running software
CN111078305A (en) Information acquisition method and device, server and information management system
CN113254089B (en) System boot method correction method, device, equipment and storage medium
CN114780019A (en) Electronic device management method and device, electronic device and storage medium
CN113821220A (en) Installation method and device of linux operating system
US20150212866A1 (en) Management system for service of multiple operating environments, and methods thereof
CN103106086A (en) Processing method of operation system and system
EP1710697A1 (en) Method and apparatus for executing application in system having NAND flash memory
CN113419814B (en) Virtual machine creating method, device, equipment and storage medium in cloud platform
CN110045966A (en) Processing method, device and the equipment of erector
CN112527327A (en) Method, system, terminal and storage medium for factory restoration of UOS operating system
CN113849233A (en) BIOS null boot entry deleting method, system, terminal and storage medium
CN111324384B (en) Device and method for selecting starting image file according to device message in pre-execution environment
CN111736863A (en) Software upgrading method and device and electronic equipment
CN111949278B (en) Method, system, terminal and storage medium for automatically installing MCS system

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220422