CN111831346A - Starting method and device of memory operating system for data acquisition - Google Patents

Starting method and device of memory operating system for data acquisition Download PDF

Info

Publication number
CN111831346A
CN111831346A CN202010698856.6A CN202010698856A CN111831346A CN 111831346 A CN111831346 A CN 111831346A CN 202010698856 A CN202010698856 A CN 202010698856A CN 111831346 A CN111831346 A CN 111831346A
Authority
CN
China
Prior art keywords
data
operating system
memory operating
preset
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.)
Granted
Application number
CN202010698856.6A
Other languages
Chinese (zh)
Other versions
CN111831346B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202010698856.6A priority Critical patent/CN111831346B/en
Publication of CN111831346A publication Critical patent/CN111831346A/en
Priority to PCT/CN2020/125062 priority patent/WO2021139355A1/en
Application granted granted Critical
Publication of CN111831346B publication Critical patent/CN111831346B/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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

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 a method and a device for starting a memory operating system for data acquisition, computer equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a starting request for starting the memory operating system; judging a preset starting mode of a basic input and output system; if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system; and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system. The invention relates to a system performance optimization technology, and solves the problem that a memory operating system cannot be normally started due to a starting mode of a BIOS (basic input output System) in a server in the process of starting the memory operating system.

Description

Starting method and device of memory operating system for data acquisition
Technical Field
The invention belongs to the technical field of memory operating systems, and particularly relates to a starting method and device of a memory operating system for data acquisition, computer equipment and a computer readable storage medium.
Background
The memory operating system (RAM OS) is an operating system which does not depend on a hard disk after being started, all files can be loaded into the memory to run after being started, the running speed is high, and core files of the system are not easy to damage. The memory operating system is suitable for users with higher requirements on speed and performance, can be used for replacing a shadow system and a virtual machine, is convenient for various tests, can be used as a normal system, has good compatibility, and is also suitable for gigabit-capable diskless RAMOS.
Typically, the memory operating System enters the kernel of the memory operating System during start-up according to the start-up mode of the Basic Input Output System (BIOS). The boot modes of the BIOS include Legacy boot mode and UEFI (unified Extensible Firmware interface) boot mode. In the prior art, the memory operating system is executed in a single start mode, and the kernel of the memory operating system is also single, so that the memory operating system cannot automatically enter the corresponding OS kernel according to the start mode of the server, and the memory operating system cannot be normally started.
Disclosure of Invention
The embodiment of the invention provides a starting method and device of a memory operating system for data acquisition, computer equipment and a computer readable storage medium, which solve the problem that the memory operating system for data acquisition can automatically load kernel files corresponding to different starting modes under the condition of different starting modes so as to normally start the memory operating system.
In a first aspect, an embodiment of the present invention provides a method for starting a memory operating system for data acquisition, where the method includes:
receiving a starting request for starting the memory operating system;
judging a preset starting mode of a basic input and output system;
if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system;
and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
In a second aspect, an embodiment of the present invention provides a starting apparatus for a memory operating system for data acquisition, including:
a receiving unit, configured to receive a start request for starting the memory operating system;
the judging unit is used for judging a preset starting mode of the basic input and output system;
the first running unit is used for acquiring a preset first boot file according to the Legacy boot mode and loading a preset first kernel file according to the first boot file to run the memory operating system if the boot mode is the Legacy boot mode;
and the second running unit is used for acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system if the starting mode is the UEFI starting mode.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the method for starting the memory operating system for data acquisition according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the method for starting the memory operating system for data acquisition according to the first aspect.
The embodiment of the invention provides a starting method and a starting device of a memory operating system for data acquisition, computer equipment and a computer readable storage medium, wherein after a starting request for starting the memory operating system is received, the starting mode of a basic input and output system is judged; if the starting mode is a Legacy starting mode, acquiring a preset first boot file and loading a preset first kernel file according to the first boot file to run the memory operating system; and if the starting mode is a UEFI starting mode, acquiring a preset second boot file and loading a preset second kernel file according to the second boot file to run the memory operating system. According to the invention, the memory operating system is configured with the boot file and the kernel file corresponding to the BIOS in the server in the starting process, so that the problem that the memory operating system cannot be normally started due to the starting mode of the BIOS in the server in the starting process of the memory operating system is solved, and a server with a specific starting mode of the BIOS is not required to be selected when the server is replaced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating a method for starting a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 2 is a schematic sub-flow chart of a method for starting a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 3 is a schematic sub-flow chart of a method for starting a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 4 is a schematic sub-flow chart illustrating a method for starting a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 5 is a schematic block diagram of a starting apparatus of a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 6 is a schematic block diagram of a subunit of a starting apparatus of a memory operating system for data acquisition according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of another subunit of the starting apparatus of the memory operating system for data acquisition according to the embodiment of the present invention;
FIG. 8 is a schematic block diagram illustrating another subunit of a boot apparatus of a memory operating system for data acquisition according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a method for starting a memory operating system for data acquisition according to an embodiment of the present invention. The starting method of the memory operating system is applied to a server, and when the memory operating system is started, a kernel file corresponding to the memory operating system is loaded to a memory to run. The memory operating system in the implementation of the present invention is similar to a Windows PE (Windows Preinstallation Environment) system, is a memory operating system that is started up without depending on a hard disk in the starting process, and is mainly used for collecting data of a software and hardware system interacting with the memory operating system, where the software and hardware interacting with the memory operating system includes a server in the starting process of the memory operating system, and also includes a third-party system, a client, and a device connected with the memory operating system. For example, when the memory operating system is connected to a switch, the memory operating system is configured to collect data in an operating process of the switch to determine whether the switch has a data failure in the operating process, and if the switch has the data failure, the switch may be repaired by using the data collected by the memory operating system.
As shown in fig. 1, the method includes steps S110 to S140.
S110, receiving a starting request for starting the memory operating system
And receiving a starting request for starting the memory operating system. Specifically, the start request is start instruction information for starting the memory operating system, and the start instruction information is instruction information for entering a BIOS in a server and running the memory operating system according to the BIOS.
In an embodiment, step S110 further includes: and mounting a preset ISO image file, wherein the ISO image file comprises the first kernel file, the second kernel file, the first boot file and the second boot file.
And mounting a preset ISO image file, wherein the ISO image file comprises the first kernel file, the second kernel file, the first boot file and the second boot file. Specifically, the ISO image file is an image file in which a plurality of files are compressed into a single file and stored on an optical disc in an IOS format, and the ISO image file includes a kernel file and a boot file for starting the memory operating system, where the kernel file is the most basic part of the memory operating system, i.e., the most core part of the memory operating system, and provides the most basic function of the memory operating system, and is the basis of the operation of the memory operating system, and is responsible for managing a process, a memory, a kernel architecture device driver, a file, and a network system of the memory operating system, and determining the performance and stability of the system; the boot file is a system file with hidden and read-only properties, and is used for loading a kernel file so as to normally start the memory operating system. The kernel file of the memory operating system may be stored in a storage device in the server, or may be stored in a device that is externally connected to the server. When the kernel file of the memory operating system is stored in the device which is externally connected with the server, the device which is externally connected with the server can be connected with the server through a network, and can also be connected through interfaces such as USB, VGA, DVI, HDMI and DP. Before starting the memory operating system, the BIOS in the server loads the kernel file through the boot file by acquiring the boot file and the kernel file corresponding to the memory operating system so as to start the memory operating system. Since the boot mode of the BIOS in the server may be a conventional Legacy boot mode or a UEFI boot mode, in this embodiment, the ISO image includes both a first boot file and a first kernel file corresponding to the conventional Legacy boot mode, and also includes a second boot file and a second kernel file corresponding to the UEFI boot mode.
In addition, before the memory operating system is started, the ISO image file is mounted in a manner that a virtual machine is used to mount the ISO image file and the ISO image file is remotely mounted to a preset server, where the ISO image file can be directly selected and mounted in a setting of the virtual machine when the virtual machine is used to mount the ISO image file, and is not required to be uploaded to a virtual machine server, and the ISO image file is usually mounted by using the virtual machine in a test environment, but is generally required to be uploaded to the preset server in a formal environment to be remotely mounted, so that the ISO image file is remotely mounted to the preset server in this embodiment. The remote mounting of the ISO image can be realized by a tool provided by various manufacturers, such as an ipmitool tool.
And S120, judging a preset starting mode of the basic input and output system.
And judging a preset starting mode of the basic input and output system. Specifically, the Basic Input Output System (BIOS) is a set of programs that are fixed on a ROM chip on a motherboard in a computer, stores the most important Basic Input and Output programs of the computer, a self-test program after power-on, and a System self-start program, and can read and write specific information set by the System from a CMOS (Complementary Metal Oxide Semiconductor, read-write RAM chip), and the BIOS mainly functions to provide the bottommost and most direct hardware setting and control for the computer. The BIOS starting mode comprises a traditional Legacy boot mode and a UEFI boot mode, namely when the BIOS starting mode is the Legacy boot mode, the BIOS can only enter the memory operating system in the Legacy boot mode; when the boot mode of the BIOS is Legacy boot mode, the memory operating system can only be entered in Legacy boot mode. Therefore, the memory operating system determines the starting mode of the BIOS in the server in advance before starting so that the memory operating system can be started normally in the server.
S130, if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system.
If the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system. Specifically, after judging that the boot mode of the BIOS in the server is Legacy boot mode, the server obtains a first boot file and a first kernel file corresponding to the memory operating system according to the Legacy boot mode, and loads the first kernel file through the first boot file to run the memory operating system. In this embodiment, the first boot file is a syslnux.cfg boot file, the first kernel file is a centros 6 series kernel file, and the BOIS in the server can run the memory operating system by loading a centros 6 series kernel file through the syslnux.cfg boot file.
And S140, if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
And if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system. Specifically, after judging that the boot mode of the BIOS in the server is the UEFI boot mode, the server obtains a second boot file and a second kernel file corresponding to the memory operating system according to the UEFI boot mode, and loads the second kernel file through the second boot file to run the memory operating system. In this embodiment, the second boot file is a grub.cfg boot file, the first kernel file is a kernel file of the CentOS7 series, and the BOIS in the server can run the memory operating system by loading the kernel file of the CentOS7 series through the grub.cfg boot file.
In an embodiment, step S140 is followed by: and acquiring data interacted with the memory operating system in the memory operating system according to a preset acquisition tool and storing the acquired data into a preset database.
And acquiring data interacted with the memory operating system in the memory operating system according to a preset acquisition tool and storing the acquired data into a preset database. The acquisition tool is used for acquiring data during interaction with the memory operating system, and the acquired data comprises both data of software and hardware in a server where the memory operating system is located during operation and data transmitted and received by the server. After the memory operating system is closed, the memory operating system cannot store the data acquired by the detection tool, so that after the acquisition tool acquires the data interacted with the memory operating system, the acquired data is stored in a preset database to prevent the acquired data from being lost after the memory operating system is closed. Specifically, after the memory operating system is started and operated, the Agent service can be automatically started, data after interaction with the memory operating system is collected through a Python script, and after the collected data are collected through the Python script, the memory operating system uploads the collected data to a preset database.
In an embodiment, as shown in fig. 2, the acquiring, according to a preset acquisition tool, data interacting with the memory operating system in the memory operating system and storing the acquired data in a preset database includes: steps S151 and S152.
And S151, writing the acquired data into a preset block chain.
And writing the acquired data into a preset block chain. The Blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, and an encryption algorithm, and is essentially a decentralized database, which is a series of data blocks generated by association using a cryptographic method, and each data block contains information of a batch of network transactions, and is used for verifying the validity (anti-counterfeiting) of the information and generating a next block, and can effectively prevent data leakage or illegal tampering, so in this embodiment, the collected data is stored in a preset Blockchain.
In one embodiment, as shown in fig. 3, step S151 includes sub-steps S1511, S1512, and S1513.
S1511, identifying the structure type of the collected data.
Identifying a structure type of the collected data. Specifically, the structure type of the collected data includes structured data and unstructured data, wherein the structured data is also called row data, is logically expressed and implemented by a two-dimensional table structure, strictly follows the data format and length specification, and is mainly stored and managed by a relational database. The unstructured data is data which is irregular or incomplete in data structure and has no predefined data model, namely, data which is inconvenient to represent by a database two-dimensional logic table. The unstructured data comprises office documents, texts, pictures, XML, HTML, various reports, images, audio/video information and other data in all formats. The structure type of the collected data is identified so as to be convenient for subsequent encryption in different modes according to the structure type of the collected data and stored in the block chain. For example, if the acquired data is structured data, encrypting the acquired data by using an elliptic curve algorithm or an asymmetric encryption algorithm and storing the encrypted data in the block chain; and if the acquired data is unstructured data, performing hash calculation on the acquired data to generate a corresponding digital fingerprint, and encrypting the generated corresponding digital fingerprint to store the digital fingerprint in the block chain.
S1512, encrypting the acquired data according to the structure type of the acquired data to obtain encrypted data.
And encrypting the acquired data according to the structure type of the acquired data to obtain encrypted data. The structure type of the acquired data is obtained by identifying the structure type of the acquired data, so that the data can be encrypted in different modes and stored in the block chain according to the structure type of the acquired data. For example, if the acquired data is structured data, encrypting the acquired data by using an elliptic curve algorithm or an asymmetric encryption algorithm and storing the encrypted data in the block chain; and if the acquired data is unstructured data, performing hash calculation on the acquired data to generate a corresponding digital fingerprint, and encrypting the generated corresponding digital fingerprint to store the digital fingerprint in the block chain.
S1513, writing the encrypted data into the block chain.
S152, storing the data of the blocks in the block chain into the database.
Storing data of blocks in the blockchain into the database. The block in the block chain comprises a block header and a block body, the block header comprises an address and a time stamp of a previous block, the time stamp is used for indicating the creation time of the block, and the block body comprises the encrypted data, namely the data of the block in the block chain comprises both the data in the block header and the data in the block body. Because the data storage system at the bottom of the block chain uses the levelDB, which is a data storage system designed for write-intensive application, the read performance of data is sacrificed to improve the write performance. However, in the present invention, the data collected by the memory operating system is used for verifying the data collected by the preset third-party system, and the preset third-party system needs to frequently read and query the collected data, which limits the query and analysis efficiency of the collected data. Therefore, the data of the blocks in the block chain is stored in the database so as to facilitate quick query and analysis of the collected data by a preset third-party system.
In another embodiment, after the acquiring, according to a preset acquisition tool, data interacting with the memory operating system in the memory operating system and storing the acquired data in a preset database, the method further includes: and updating a preset third-party system according to the acquired data.
And updating a preset third-party system according to the acquired data. Specifically, the third-party system is a system which interacts with the memory operating system and is user-oriented, and can transmit and receive data with the memory operating system, and a user can interact with the memory operating system through the third-party system. Because the third-party system is a user-oriented system, the user can interact with the memory operating system by operating the third-party system. In this embodiment, the third party system is a bmp (bank Merchant pos) system. When a user operates the third-party system, because the user may have misoperation in the third-party system, the collected data can be used for inquiring the misoperation of the user on the third-party system so as to repair the problem that the user has misoperation on the third-party system, and the data collected by the third-party system on the user is repaired so as to update the third-party system.
In an embodiment, as shown in fig. 4, the third-party system for updating the preset according to the collected data includes: step S161, step S162, and step S163.
And S161, acquiring the acquired data from the database according to the third-party system.
And acquiring the acquired data from the database according to the third-party system. Specifically, the third-party system is connected to the database and can perform data transmission and reception with the database, that is, the data collected by the memory operating system can be obtained from the database. Before the third-party system acquires the acquired data from the database, the third-party system and the memory operating system have the same data acquisition function, the data acquired by the third-party system is data when the user operates on the third-party system, and the data acquired from the database is compared with the data when the user operates on the third-party system, so that the third-party system can conveniently inquire abnormal data of the third-party system, which is used for acquiring misoperation of the user.
S162, comparing the collected data with the data collected by the third-party system to obtain a result of whether the collected data is consistent with the data collected by the third-party system.
And comparing the acquired data with the data collected by the third-party system to obtain a result of whether the acquired data is consistent with the data collected by the third-party system. Specifically, the data collected by the third-party system is data when the user operates the third-party system, the data is stored in another preset database through the third-party system, when the third-party system needs to inquire whether the data is abnormal due to improper operation of the user or abnormal in the process of collecting the data operated by the user, the data collected by the memory operating system is compared with the data collected by the third-party system to inquire whether the data collected by the third-party system is consistent, and then whether the data collected by the third-party system is abnormal is judged, so that the data collected by the third-party system is repaired.
And S163, if the collected data is inconsistent with the data collected by the third-party system, replacing the data collected by the third-party system with the collected data to update the third-party system.
And if the collected data is inconsistent with the data collected by the third-party system, replacing the data collected by the third-party system with the collected data so as to update the third-party system. Specifically, when the third-party system inquires that the data acquired by the third-party system by itself is inconsistent with the data acquired from the memory operating system, it may be determined that the data acquired by the third-party system is abnormal, and the abnormal data acquired by the third-party system by itself may be repaired by replacing the data acquired by the third-party system with the data acquired from the memory operating system, so that the data acquired by the third-party system by itself is consistent with the data acquired by the memory operating system.
The embodiment of the present invention further provides a starting apparatus 100 for a memory operating system for data acquisition, which is configured to execute any embodiment of the foregoing starting method for a memory operating system for data acquisition. Specifically, referring to fig. 5, fig. 5 is a schematic block diagram of a starting apparatus 100 of a memory operating system for data acquisition according to an embodiment of the present invention.
As shown in fig. 5, the starting apparatus 100 for a memory operating system for data acquisition includes a receiving unit 110, a determining unit 120, a first operating unit 130, and a second operating unit 140.
The receiving unit 110 is configured to receive a start request for starting the memory operating system.
In other embodiments of the present invention, the starting apparatus 100 of the memory operating system for data collection further includes a mounting unit 110 a.
The mounting unit 110a is configured to mount a preset ISO image, where the ISO image includes the first kernel file, the second kernel file, the first boot file, and the second boot file.
The judging unit 120 is configured to judge a preset startup mode of the bios.
The first running unit 130 is configured to, if the boot mode is a Legacy boot mode, obtain a preset first boot file according to the Legacy boot mode, and load a preset first kernel file according to the first boot file to run the memory operating system.
A second running unit 140, configured to, if the boot mode is the UEFI boot mode, obtain a preset second boot file according to the UEFI boot mode, and load a preset second kernel file according to the second boot file to run the memory operating system.
In other embodiments of the present invention, the starting apparatus 100 of the memory operating system for data acquisition further includes a first storage unit 150.
The first storage unit 150 is configured to collect data interacting with the memory operating system in the memory operating system according to a preset collection tool and store the collected data in a preset database.
In other embodiments of the present invention, as shown in fig. 6, the first storage unit 150 includes a writing unit 151 and a second storage unit 152.
And a first writing unit 151, configured to write the acquired data into a preset block chain.
In other embodiments of the present invention, as shown in fig. 7, the first writing unit 151 includes an identifying unit 1511, an encrypting unit 1512, and a second writing unit 1513.
An identifying unit 1511, configured to identify a structure type of the acquired data.
The encrypting unit 1512 is configured to encrypt the acquired data according to the structure type of the acquired data to obtain encrypted data.
A second writing unit 1513, configured to write the encrypted data into the block chain.
A second storage unit 152, configured to store the data of the blocks in the block chain into the database.
In other embodiments of the present invention, the starting apparatus 100 of the memory operating system for data collection further includes an updating unit 160.
And the updating unit 160 is configured to update a preset third-party system according to the acquired data.
In another embodiment of the present invention, as shown in fig. 8, the updating unit 160 includes: acquisition unit 161, comparison unit 162 and replacement unit 163.
An obtaining unit 161, configured to obtain the acquired data from the database according to the third-party system.
A comparison unit 162, configured to compare the data with the data collected by the third-party system to obtain a result of whether the collected data is consistent with the data collected by the third-party system.
A replacing unit 163, configured to replace the data collected by the third-party system with the collected data to update the third-party system if the collected data is inconsistent with the data collected by the third-party system.
The starting device 100 of the memory operating system for data acquisition provided in the embodiment of the present invention is used for executing the starting method of the memory operating system for data acquisition, and receives a starting request for starting the memory operating system; judging a preset starting mode of a basic input and output system; if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system; and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Referring to fig. 9, the device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032, when executed, cause the processor 502 to perform a method for booting a memory operating system for data collection.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall device 500.
The memory 504 provides an environment for the computer program 5032 in the non-volatile storage medium 503 to run, and when the computer program 5032 is executed by the processor 502, the processor 502 may be enabled to execute a method for starting a memory operating system for data collection.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with aspects of the present invention and does not constitute a limitation of the apparatus 500 to which aspects of the present invention may be applied, and that a particular apparatus 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is configured to run the computer program 5032 stored in the memory to implement the following functions: receiving a starting request for starting the memory operating system; judging a preset starting mode of a basic input and output system; if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system; and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
Those skilled in the art will appreciate that the embodiment of the apparatus 500 shown in fig. 9 does not constitute a limitation on the specific construction of the apparatus 500, and in other embodiments, the apparatus 500 may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the apparatus 500 may only include the memory and the processor 502, and in such embodiments, the structure and function of the memory and the processor 502 are the same as those of the embodiment shown in fig. 9, and are not repeated herein.
It should be understood that in the present embodiment, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors 502, a Digital Signal Processor 502 (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general-purpose processor 502 may be a microprocessor 502 or the processor 502 may be any conventional processor 502 or the like.
In another embodiment of the present invention, a computer storage medium is provided. The storage medium may be a non-volatile computer-readable storage medium. The storage medium stores a computer program 5032, wherein the computer program 5032 when executed by the processor 502 performs the steps of: receiving a starting request for starting the memory operating system; judging a preset starting mode of a basic input and output system; if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system; and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be 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, devices or units, and may also be an electric, mechanical or other form of connection.
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 of the present invention.
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. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a device 500 (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A starting method of a memory operating system for data acquisition is characterized by comprising the following steps:
receiving a starting request for starting the memory operating system;
judging a preset starting mode of a basic input and output system;
if the starting mode is a Legacy starting mode, acquiring a preset first boot file according to the Legacy starting mode and loading a preset first kernel file according to the first boot file to run the memory operating system;
and if the starting mode is a UEFI starting mode, acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system.
2. The method according to claim 1, further comprising, before receiving a boot request for booting the memory operating system, the step of:
and mounting a preset ISO image file, wherein the ISO image file comprises the first kernel file, the second kernel file, the first boot file and the second boot file.
3. The method for starting the memory operating system for data collection according to claim 1, wherein after the operating the memory operating system, the method further comprises:
and acquiring data interacted with the memory operating system in the memory operating system according to a preset acquisition tool and storing the acquired data into a preset database.
4. The method for starting the memory operating system for data collection according to claim 3, wherein the step of storing the collected data in a preset database comprises:
writing the acquired data into a preset block chain;
storing data of blocks in the blockchain into the database.
5. The method as claimed in claim 4, wherein the writing the collected data into a predetermined block chain comprises:
identifying a structure type of the collected data;
encrypting the acquired data according to the structure type of the acquired data to obtain encrypted data;
and writing the encrypted data into the block chain.
6. The method for starting the memory operating system for data collection according to claim 3, further comprising, after storing the collected data in a preset database:
and updating a preset third-party system according to the acquired data.
7. The method for starting the memory operating system for data collection according to claim 6, wherein the updating the preset third-party system according to the collected data comprises:
acquiring the acquired data from the database according to the third-party system;
comparing the collected data with the data collected by the third-party system to obtain a result of whether the collected data is consistent with the data collected by the third-party system;
and if the collected data is inconsistent with the data collected by the third-party system, replacing the data collected by the third-party system with the collected data so as to update the third-party system.
8. A device for starting a memory operating system for data acquisition, comprising:
a receiving unit, configured to receive a start request for starting the memory operating system;
the judging unit is used for judging a preset starting mode of the basic input and output system;
the first running unit is used for acquiring a preset first boot file according to the Legacy boot mode and loading a preset first kernel file according to the first boot file to run the memory operating system if the boot mode is the Legacy boot mode;
and the second running unit is used for acquiring a preset second boot file according to the UEFI starting mode and loading a preset second kernel file according to the second boot file to run the memory operating system if the starting mode is the UEFI starting mode.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for booting the memory operating system for data collection according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, causes the processor to execute the method of booting a memory operating system for data collection according to any one of claims 1 to 7.
CN202010698856.6A 2020-07-20 2020-07-20 Method and device for starting memory operating system for data acquisition Active CN111831346B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010698856.6A CN111831346B (en) 2020-07-20 2020-07-20 Method and device for starting memory operating system for data acquisition
PCT/CN2020/125062 WO2021139355A1 (en) 2020-07-20 2020-10-30 Method and apparatus for starting ram os for data collection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010698856.6A CN111831346B (en) 2020-07-20 2020-07-20 Method and device for starting memory operating system for data acquisition

Publications (2)

Publication Number Publication Date
CN111831346A true CN111831346A (en) 2020-10-27
CN111831346B CN111831346B (en) 2023-06-09

Family

ID=72923318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010698856.6A Active CN111831346B (en) 2020-07-20 2020-07-20 Method and device for starting memory operating system for data acquisition

Country Status (2)

Country Link
CN (1) CN111831346B (en)
WO (1) WO2021139355A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139355A1 (en) * 2020-07-20 2021-07-15 平安科技(深圳)有限公司 Method and apparatus for starting ram os for data collection

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117311832B (en) * 2023-11-29 2024-02-20 苏州元脑智能科技有限公司 PCIE equipment starting mode display method, device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810430A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
US9672047B1 (en) * 2014-10-31 2017-06-06 American Megatrends, Inc. Systems and methods for accessing a bootable partition on a serial peripheral interface device
CN109002346A (en) * 2018-07-10 2018-12-14 广东微云科技股份有限公司 A kind of conversion method of Windows virtual machine boot program
CN110737479A (en) * 2019-09-04 2020-01-31 平安科技(深圳)有限公司 method for starting operating system without disk, server and readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101805627B1 (en) * 2011-11-28 2017-12-08 삼성전자주식회사 Method and apparatus for controlling booting of computer system
WO2015181963A1 (en) * 2014-05-30 2015-12-03 株式会社 東芝 Information processing device and trusted platform module version switching method
US10713061B2 (en) * 2017-09-26 2020-07-14 Dell Products, L.P. Boot disk detection and management in an information handling system manufacturing environment
CN108614718B (en) * 2018-04-25 2019-09-13 新华三信息技术有限公司 The method, apparatus and realization device of start-up operation system
CN111831346B (en) * 2020-07-20 2023-06-09 平安科技(深圳)有限公司 Method and device for starting memory operating system for data acquisition

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103810430A (en) * 2012-11-13 2014-05-21 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
US9672047B1 (en) * 2014-10-31 2017-06-06 American Megatrends, Inc. Systems and methods for accessing a bootable partition on a serial peripheral interface device
CN109002346A (en) * 2018-07-10 2018-12-14 广东微云科技股份有限公司 A kind of conversion method of Windows virtual machine boot program
CN110737479A (en) * 2019-09-04 2020-01-31 平安科技(深圳)有限公司 method for starting operating system without disk, server and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139355A1 (en) * 2020-07-20 2021-07-15 平安科技(深圳)有限公司 Method and apparatus for starting ram os for data collection

Also Published As

Publication number Publication date
CN111831346B (en) 2023-06-09
WO2021139355A1 (en) 2021-07-15

Similar Documents

Publication Publication Date Title
US9954727B2 (en) Automatic debug information collection
US9122501B1 (en) System and method for managing multiple bios default configurations
TWI465901B (en) Method and system for verification of computerized systems for cloud testing and remote monitoring of integrated circuit devices
TWI450103B (en) Remote management systems and methods for servers, and computer program products thereof
US20100306357A1 (en) Server, computer system, and method for monitoring computer system
US20070136638A1 (en) System and method for checking and correcting bios errors
US7987349B2 (en) Encryption acceleration
EP1345124A1 (en) Managing boot errors
CN111831346B (en) Method and device for starting memory operating system for data acquisition
US20100023741A1 (en) Method for setting bios and recreating checksum value
US8903967B2 (en) Out-of-band management of third party adapter configuration settings in a computing system
US11347519B2 (en) Systems and methods for detecting short-term changes to BIOS setup
US20170286097A1 (en) Method to prevent operating system digital product key activation failures
US20130179670A1 (en) Booting method of multimedia device and multimedia device
US8719637B2 (en) System and method for acquiring basic input/output system debug codes
US20120191965A1 (en) Boot systems and methods, and related devices
US20040030880A1 (en) Method for managing computer hardware configuration information
WO2022110405A1 (en) Blockchain-based on-chain storage method and apparatus, terminal device, and medium
US20220270538A1 (en) Display mode setting determinations
CN114968386B (en) Device information management method, device and equipment of electronic device
US20090144536A1 (en) Monitoring method and monitor apparatus
CN113448762B (en) Crash processing method and system, intelligent device and storage medium
US8423830B2 (en) Debug method for computer system
US8762699B1 (en) System, apparatus, and method for initiating a reboot of a personal computer system by pressing a button on an attached storage device and causing the operating system on the attached storage device to be booted
US20230359775A1 (en) Peripheral device connections responsive to identification data matching

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