CN113626089B - Data operation method, system, medium and device based on BIOS (basic input output system) - Google Patents
Data operation method, system, medium and device based on BIOS (basic input output system) Download PDFInfo
- Publication number
- CN113626089B CN113626089B CN202110807534.5A CN202110807534A CN113626089B CN 113626089 B CN113626089 B CN 113626089B CN 202110807534 A CN202110807534 A CN 202110807534A CN 113626089 B CN113626089 B CN 113626089B
- Authority
- CN
- China
- Prior art keywords
- data
- buffer
- identifier
- storage area
- designated storage
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000003860 storage Methods 0.000 claims abstract description 96
- 230000004044 response Effects 0.000 claims abstract description 46
- 230000008569 process Effects 0.000 claims abstract description 13
- 230000001960 triggered effect Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 230000000295 complement effect Effects 0.000 claims description 3
- 229910044991 metal oxide Inorganic materials 0.000 claims description 3
- 150000004706 metal oxides Chemical class 0.000 claims description 3
- 239000004065 semiconductor Substances 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims description 2
- 230000037430 deletion Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 230000000717 retained effect Effects 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000011017 operating method Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007334 memory performance Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000010926 purge Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0652—Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0679—Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Computer Security & Cryptography (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a data operation method, a system, a medium and equipment based on a BIOS system, wherein the method comprises the following steps: in response to the initial start of the BIOS system, respectively setting default values and identifiers for all data in a designated storage area of the BIOS system; in response to the BIOS system having data updated to the current value in the designated storage area in the use process, judging whether the current value needs to be reserved after triggering the CMOS operation; if so, recording the identifier thereof into a list; responding to triggering a CMOS clearing operation on the BIOS system, and reading all data of a designated storage area to a buffer area; traversing all data in the buffer and copying data in which the identifier is present in the list to the backup buffer; and delete all data in the buffer and copy the data in the backup buffer to the buffer, and delete all data in the designated storage area and write the data in the buffer to the designated storage area. The invention can reserve the current value of the required data when performing the CMOS operation.
Description
Technical Field
The present invention relates to the field of BIOS technologies, and in particular, to a data operation method, system, medium, and device based on a BIOS system.
Background
BIOS (Basic Input Output System) basic input output system provides the lowest, most direct hardware setup and control for the computer system. The BIOS program of the server is stored in the flash memory chip. The BIOS binary file has a region name of NVRAM for storing variable information, and some basic information of the server is stored in the region of the NVRAM in the form of variables, and when a user executes a CMOS operation, the variable information stored in the region is cleared.
The server user will store some private data in the NVRAM area of the BIOS. When the user performs a purge CMOS operation for some reason, the data stored in the BIOS NVRAM area is purged. Therefore, when the user performs the CMOS operation, in order to ensure that the data is correct, the private data needs to be written into the BIOS again, which increases the complexity and cost of maintaining the server for the user.
Disclosure of Invention
Accordingly, the present invention is directed to a data operation method, system, medium and device based on a BIOS system, which is used for solving the problem that variable information is cleared after the CMOS operation is triggered by the BIOS in the prior art.
Based on the above object, the present invention provides a data operation method based on a BIOS system, comprising the following steps:
in response to the initial start of the BIOS system, respectively setting a default value and an identifier for all data in a designated storage area of the BIOS system;
responding to the fact that data in a designated storage area of the BIOS system is updated to be a current value in the using process, and judging whether the updated data is to keep the current value after triggering CMOS operation or not based on a preset data label;
in response to having updated data to retain a current value after triggering a clean CMOS operation, recording an identifier of the updated data into a list;
responding to triggering CMOS clearing operation to BIOS system, and reading all data of the appointed storage area into the buffer area;
traversing all data in the buffer and copying the data in which the identifier is in the list into the backup buffer;
in response to copying data in the buffer whose identifier is present in the list to the backup buffer, all data in the buffer is deleted and data in the backup buffer is copied to the buffer, and all data in the designated storage area is deleted and data in the buffer is written to the designated storage area.
In some embodiments, the method further comprises:
in response to the updated data, all data of the designated memory area need not be deleted after the clear CMOS operation is triggered and the clear CMOS operation is triggered for the BIOS system.
In some embodiments, in response to triggering a clear CMOS operation for the BIOS system, reading all data of the designated memory region into the buffer comprises:
and in response to triggering the CMOS clearing operation on the BIOS system, reading all data of the designated storage area into a buffer area of the memory.
In some embodiments, traversing all data in the buffer and copying data in which the identifier is present in the list into the backup buffer comprises:
traversing all data in the buffer area, and judging whether identifiers of the traversed data exist in the list or not;
in response to the identifier of the traversed data being present in the list, the traversed data is copied from the buffer into the backup buffer.
In some embodiments, copying data in which the identifier is present in the list into the backup buffer further comprises:
the data in which the identifier is present in the list is copied to a backup buffer having equal storage capacity as the buffer.
In some embodiments, the method further comprises:
in response to copying the data in the backup buffer into the buffer, the backup buffer is released.
In some embodiments, the designated storage area is a portion of the storage area in the nonvolatile memory chip where the data of the BIOS system is located.
In another aspect of the present invention, there is also provided a data operating system based on a BIOS system, including:
the identifier setting module is configured to respond to the initial startup of the BIOS system and respectively set a default value and an identifier for all data in a designated storage area of the BIOS system;
the judging module is configured to respond to the fact that data in a designated storage area of the BIOS system is updated to be a current value in the using process, and judge whether the updated data is to keep the current value after triggering the CMOS operation or not based on a preset data label;
an identifier recording module configured to record an identifier of updated data into a list in response to the updated data having a current value to be retained after triggering a CMOS clearing operation;
the data reading module is configured to respond to triggering the CMOS clearing operation on the BIOS system and read all data of the appointed storage area into the buffer area;
the backup module is configured to traverse all data in the buffer area and copy the data in which the identifier exists in the list into the backup buffer area; and
and a deletion and writing module configured to delete all data in the buffer and copy data in the backup buffer into the buffer, and delete all data in the designated storage area and write data in the buffer into the designated storage area in response to copying data in the buffer whose identifier is present in the list into the backup buffer.
In yet another aspect of the present invention, there is also provided a computer readable storage medium storing computer program instructions which, when executed, implement any of the methods described above.
In yet another aspect of the present invention, there is also provided a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, performs any of the methods described above.
The invention has at least the following beneficial technical effects:
1. the invention can identify the data needing to maintain the variable form by setting the unique identifiers for all the data in the appointed storage area of the BIOS system and recording the identifiers of the data needing to be reserved in the updated data in the appointed storage area in the use process of the BIOS system into the list;
2. the method comprises the steps of reading data of a designated storage area into a buffer area after triggering a CMOS clearing operation on a BIOS system, temporarily storing the data in the buffer area, traversing the buffer area to find an identifier of the data in a variable form to be reserved, copying the data to be reserved into a backup buffer area, emptying the buffer area, copying the data reserved in the backup buffer area into the buffer area, and writing the data in the buffer area into the designated storage area after deleting the data in the buffer area, so that the current value of private data stored in the designated storage area by a user can be reserved when the CMOS clearing operation is executed, and the flow complexity and the cost of a user maintenance server are reduced.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other embodiments may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a data operation method based on a BIOS system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data operating system based on a BIOS according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a computer readable storage medium implementing a data operation method based on a BIOS system according to an embodiment of the present invention;
fig. 4 is a schematic hardware structure of a computer device for performing a data operation method based on a BIOS system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention will be described in further detail with reference to the accompanying drawings.
It should be noted that, in the embodiments of the present invention, all the expressions "first" and "second" are used to distinguish two non-identical entities with the same name or non-identical parameters, and it is noted that the "first" and "second" are only used for convenience of expression, and should not be construed as limiting the embodiments of the present invention. Furthermore, the terms "comprise" and "have," and any variations thereof, are intended to cover a non-exclusive inclusion, such as a process, method, system, article, or other step or unit that comprises a list of steps or units.
With the above object in view, in a first aspect of the embodiments of the present invention, an embodiment of a data operation method based on a BIOS system is provided. Fig. 1 is a schematic diagram of an embodiment of a data operation method based on a BIOS system according to the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
step S10, in response to the initial start of the BIOS system, default values and identifiers are respectively set for all data in a designated storage area of the BIOS system;
step S20, in response to the fact that the BIOS system has data updated to a current value in a designated storage area in the using process, judging whether the updated data is to keep the current value after triggering the CMOS operation or not based on a preset data tag;
step S30, responding to that updated data is about to keep the current value after triggering the CMOS operation, and recording the identifier of the updated data into a list;
step S40, responding to triggering CMOS clearing operation to the BIOS system, and reading all data of the appointed storage area into a buffer area;
step S50, traversing all data in the buffer area, and copying the data with the identifier in the list into the backup buffer area;
step S60, in response to copying the data with the identifier in the buffer area in the list to the backup buffer area, deleting all the data in the buffer area, copying the data in the backup buffer area to the buffer area, deleting all the data in the designated storage area, and writing the data in the buffer area into the designated storage area.
According to the embodiment of the invention, the unique identifiers are set for all data in the appointed storage area of the BIOS system, and the identifiers of the data to be reserved in the data updated in the appointed storage area in the use process of the BIOS system are recorded into the list, so that the data to be maintained in a variable form can be identified; the method comprises the steps of reading data of a designated storage area into a buffer area after triggering a CMOS clearing operation on a BIOS system, temporarily storing the data in the buffer area, traversing the buffer area to find an identifier of the data in a variable form to be reserved, copying the data to be reserved into a backup buffer area, emptying the buffer area, copying the data reserved in the backup buffer area into the buffer area, and writing the data in the buffer area into the designated storage area after deleting the data in the buffer area, so that the value of private data stored in the designated storage area by a user can be reserved when the CMOS clearing operation is executed, and the flow complexity and the cost of a user maintenance server are reduced.
In the embodiment of the invention, BIOS (basic input output system) is a set of programs solidified on a ROM chip on a main board in a computer, and the programs of the most important basic input and output of the computer, a self-checking program after starting and a system self-starting program are stored. The embodiment of the invention is suitable for BIOS systems of mainboards of servers, personal computers and the like. For the server, the BIOS program is stored in a flash memory, and an NVRAM area in the flash memory is used to store variable forms of some basic information. Therefore, the designated storage area in the embodiment of the present invention mainly refers to NVRAM (Non-Volatile Random Access Memory), which belongs to a nonvolatile random access memory, and refers to a RAM that can still hold data after power is turned off. flash memory is a type of memory device, and is a type of nonvolatile memory.
CMOS (Complementary Metal Oxide Semiconductor): complementary metal oxide semiconductors. It is a technology for manufacturing large-scale integrated circuit chip or the chip manufactured by this technology, which is a readable and writable RAM chip on the computer motherboard. Because of its readable and writable nature, it has been used to save the data after BIOS has set the hardware parameters of computer on the computer motherboard, and the data updated during BIOS operation will be cleared by the clear CMOS operation. Although currently mainstream servers no longer use CMOS to store BIOS data, the expression of CMOS is still being used.
In this embodiment, the identifier has uniqueness, which may be GUID (Globally Unique Identifier). GUID, also known as a globally unique identifier, is an algorithmically generated numeric identifier with a binary length of 128 bits. In an ideal case, no computer would generate two identical GUIDs. The total number of GUIDs reaches 2≡128 (3.4X10≡38), so that it is very unlikely that two identical GUIDs will be randomly generated, but not 0. Therefore, algorithms for generating GUID typically incorporate non-random parameters (e.g., time) to ensure that such duplication does not occur.
In some embodiments, the method further comprises: in response to the updated data, all data of the designated memory area need not be deleted after the clear CMOS operation is triggered and the clear CMOS operation is triggered for the BIOS system.
In this embodiment, if the data in the designated storage area updated from the default value to the current value does not need to be reserved in the use process of the BIOS system, after the CMOS clearing operation is triggered on the BIOS system, the data in the designated storage area is deleted.
In some embodiments, in response to triggering a clear CMOS operation for the BIOS system, reading all data of the designated memory region into the buffer comprises: and in response to triggering the CMOS clearing operation on the BIOS system, reading all data of the designated storage area into a buffer area of the memory.
In some embodiments, the designated storage area is a portion of the storage area in the nonvolatile memory chip where the data of the BIOS system is located.
In the above embodiment, the designated storage area is a part of storage area in the flash memory, and the buffer area is located in the memory, and the corresponding backup buffer area is also located in the memory. After the CMOS operation is triggered for the BIOS system, all data of the appointed storage area are read and transferred into the buffer area of the memory.
In some embodiments, traversing all data in the buffer and copying data in which the identifier is present in the list into the backup buffer comprises: traversing all data in the buffer area, and judging whether identifiers of the traversed data exist in the list or not; in response to the identifier of the traversed data being present in the list, the traversed data is copied from the buffer into the backup buffer.
In some embodiments, copying data in which the identifier is present in the list into the backup buffer further comprises: the data in which the identifier is present in the list is copied to a backup buffer having equal storage capacity as the buffer.
In this embodiment, the backup buffer has an equal storage capacity as the buffer for satisfying the limit case when all data in the buffer needs to be retained.
In some embodiments, the method further comprises: in response to copying the data in the backup buffer into the buffer, the backup buffer is released.
In this embodiment, by releasing the backup buffer, the occupation of the memory space can be reduced, and the influence on the memory performance is avoided.
In a second aspect of the embodiment of the present invention, a data operating system based on a BIOS system is also provided. FIG. 2 is a schematic diagram of an embodiment of a BIOS-based data operating system according to the present invention. As shown in fig. 2, a data operating system based on a BIOS system includes: an identifier setting module 10 configured to set a default value and an identifier for all data in a designated storage area of the BIOS system, respectively, in response to a first boot of the BIOS system; a judging module 20, configured to respond to the fact that the BIOS system has data updated to the current value in the designated storage area in the use process, and judge whether the updated data is to keep the current value after triggering the CMOS operation based on the preset data label; an identifier recording module 30 configured to record an identifier of updated data into a list in response to there being the updated data to retain a current value after triggering a clear CMOS operation; a data reading module 40 configured to read all data of the designated memory area into the buffer area in response to triggering a CMOS clearing operation for the BIOS system; a backup module 50 configured to traverse all data in the buffer and copy data in which the identifier is present in the list into the backup buffer; and a delete and write module 60 configured to delete all data in the buffer and copy data in the backup buffer into the buffer and delete all data in the designated storage and write data in the buffer into the designated storage in response to copying data in the buffer whose identifier is present in the list to the backup buffer.
In some embodiments, the system further comprises a data all delete module configured to delete all data of the designated memory area in response to none of the updated data requiring a current value to be retained after triggering a clear CMOS operation and triggering a clear CMOS operation for the BIOS system.
In some embodiments, the data read module 40 is further configured to read all data of the designated storage area into the buffer of the memory in response to triggering a clear CMOS operation for the BIOS system.
In some embodiments, backup module 50 is further configured to traverse all data in the buffer and determine whether identifiers of the traversed data are present in the list; in response to the identifier of the traversed data being present in the list, the traversed data is copied from the buffer into the backup buffer.
In some embodiments, the backup module 50 includes a backup buffer module configured to copy data in which the identifier is present in the list into a backup buffer having equal storage capacity as the buffer.
In some embodiments, the system further comprises a backup buffer release module configured to release the backup buffer in response to copying data in the backup buffer into the buffer.
In some embodiments, the designated storage area is a portion of the storage area in the nonvolatile memory chip where the data of the BIOS system is located.
According to the data operating system based on the BIOS system, the unique identifiers are set for all data in the appointed storage area of the BIOS system, and the identifiers of the data to be reserved in the data updated in the appointed storage area in the use process of the BIOS system are recorded in the list, so that the data to be maintained in a variable form can be identified; the method comprises the steps of reading data of a designated storage area into a buffer area after triggering a CMOS clearing operation on a BIOS system, temporarily storing the data in the buffer area, traversing the buffer area to find an identifier of the data in a variable form to be reserved, copying the data to be reserved into a backup buffer area, emptying the buffer area, copying the data reserved in the backup buffer area into the buffer area, and writing the data in the buffer area into the designated storage area after deleting the data in the buffer area, so that the value of private data stored in the designated storage area by a user can be reserved when the CMOS clearing operation is executed, and the flow complexity and the cost of a user maintenance server are reduced.
In a third aspect of the embodiments of the present invention, a computer readable storage medium is provided, and fig. 3 shows a schematic diagram of a computer readable storage medium implementing a data operation method based on a BIOS system according to an embodiment of the present invention. As shown in fig. 3, the computer-readable storage medium 3 stores computer program instructions 31, which computer program instructions 31 are executable by a processor. The computer program instructions 31 when executed implement the steps of:
in response to the initial start of the BIOS system, respectively setting a default value and an identifier for all data in a designated storage area of the BIOS system;
responding to the fact that data in a designated storage area of the BIOS system is updated to be a current value in the using process, and judging whether the updated data is to keep the current value after triggering CMOS operation or not based on a preset data label;
in response to having updated data to retain a current value after triggering a clean CMOS operation, recording an identifier of the updated data into a list;
responding to triggering CMOS clearing operation to BIOS system, and reading all data of the appointed storage area into the buffer area;
traversing all data in the buffer and copying the data in which the identifier is in the list into the backup buffer;
in response to copying data in the buffer whose identifier is present in the list to the backup buffer, all data in the buffer is deleted and data in the backup buffer is copied to the buffer, and all data in the designated storage area is deleted and data in the buffer is written to the designated storage area.
In some embodiments, the steps further comprise: in response to the updated data, all data of the designated memory area need not be deleted after the clear CMOS operation is triggered and the clear CMOS operation is triggered for the BIOS system.
In some embodiments, in response to triggering a clear CMOS operation for the BIOS system, reading all data of the designated memory region into the buffer comprises: and in response to triggering the CMOS clearing operation on the BIOS system, reading all data of the designated storage area into a buffer area of the memory.
In some embodiments, traversing all data in the buffer and copying data in which the identifier is present in the list into the backup buffer comprises: traversing all data in the buffer area, and judging whether identifiers of the traversed data exist in the list or not; in response to the identifier of the traversed data being present in the list, the traversed data is copied from the buffer into the backup buffer.
In some embodiments, copying data in which the identifier is present in the list into the backup buffer further comprises: the data in which the identifier is present in the list is copied to a backup buffer having equal storage capacity as the buffer.
In some embodiments, the steps further comprise: in response to copying the data in the backup buffer into the buffer, the backup buffer is released.
In some embodiments, the designated storage area is a portion of the storage area in the nonvolatile memory chip where the data of the BIOS system is located.
It should be appreciated that all of the embodiments, features and advantages set forth above with respect to the BIOS system based data operating method according to the present invention apply equally to the BIOS system based data operating system and storage medium according to the present invention, without conflict.
In a fourth aspect of the embodiments of the present invention, there is also provided a computer device comprising a memory 402 and a processor 401, the memory storing a computer program which, when executed by the processor, implements the method of any of the embodiments described above.
Referring to fig. 4, a schematic hardware structure of an embodiment of a computer device for performing a data operation method based on a BIOS system according to the present invention is shown. Taking the example of a computer device as shown in fig. 4, a processor 401 and a memory 402 are included in the computer device, and may further include: an input device 403 and an output device 404. The processor 401, memory 402, input device 403, and output device 404 may be connected by a bus or otherwise, for example in fig. 4. The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the data operating system based on the BIOS system. The output 404 may include a display device such as a display screen.
The memory 402 is used as a non-volatile computer readable storage medium for storing non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the data operation method based on the BIOS system in the embodiments of the present application. Memory 402 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created based on the use of a data operation method of the BIOS system, and the like. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, memory 402 may optionally include memory located remotely from processor 401, which may be connected to the local module via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor 401 executes various functional applications of the server and data processing, that is, implements the data operating method based on the BIOS system of the above-described method embodiment, by running nonvolatile software programs, instructions, and modules stored in the memory 402.
Finally, it should be noted that the computer-readable storage media (e.g., memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. By way of example, and not limitation, nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of example, and not limitation, RAM may be available in a variety of forms such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. 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 disclosure.
The various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein may be implemented or performed with the following components designed to perform the functions herein: a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, e.g., a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP and/or any other such configuration.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that as used herein, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items. The foregoing embodiment of the present invention has been disclosed with reference to the number of embodiments for the purpose of description only, and does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that: the above discussion of any embodiment is merely exemplary and is not intended to imply that the scope of the disclosure of embodiments of the invention, including the claims, is limited to such examples; combinations of features of the above embodiments or in different embodiments are also possible within the idea of an embodiment of the invention, and many other variations of the different aspects of the embodiments of the invention as described above exist, which are not provided in detail for the sake of brevity. Therefore, any omission, modification, equivalent replacement, improvement, etc. of the embodiments should be included in the protection scope of the embodiments of the present invention.
Claims (10)
1. A data operation method based on a BIOS system, comprising the steps of:
in response to the initial start of a BIOS system, respectively setting a default value and an identifier for all data in a designated storage area of the BIOS system;
responding to the fact that data in the designated storage area of the BIOS system is updated to be a current value in the using process, and judging whether the updated data is to keep the current value after triggering CMOS operation or not based on a preset data tag;
in response to having updated data to retain a current value after triggering a clean CMOS operation, recording an identifier of the updated data into a list;
responding to triggering a CMOS clearing operation to the BIOS system, and reading all data of the designated storage area into a buffer area;
traversing all data in the buffer and copying data in which an identifier is present in the list into a backup buffer;
in response to copying data in the buffer whose identifier is present in the list to the backup buffer, all data in the buffer is deleted and data in the backup buffer is copied to the buffer, and all data in the designated storage area is deleted and data in the buffer is written to the designated storage area.
2. The method as recited in claim 1, further comprising:
in response to no updated data requiring that the current value be preserved after triggering a clear CMOS operation and that a clear CMOS operation be triggered for the BIOS system, all data of the designated storage area is deleted.
3. The method of claim 1, wherein reading all data of the designated memory region into a buffer in response to triggering a clear CMOS operation for the BIOS system comprises:
and in response to triggering a CMOS clearing operation on the BIOS system, reading all data of the designated storage area into a buffer area of a memory.
4. The method of claim 1, wherein traversing all data in the buffer and copying data in which an identifier is present in the list into a backup buffer comprises:
traversing all data in the buffer area, and judging whether identifiers of the traversed data exist in the list;
in response to an identifier of traversed data being present in the list, the traversed data is copied from the buffer into the backup buffer.
5. The method of claim 1, wherein copying data in which an identifier is present in the list into a backup buffer further comprises:
the data in which the identifier is present in the list is copied into a backup buffer having equal storage capacity as the buffer.
6. The method as recited in claim 1, further comprising:
releasing the backup buffer in response to copying the data in the backup buffer into the buffer.
7. The method of claim 1, wherein the designated storage area is a portion of a storage area in a non-volatile memory chip in which data of the BIOS system is located.
8. A BIOS system-based data operating system, comprising:
the identifier setting module is configured to respond to the initial startup of the BIOS system and respectively set a default value and an identifier for all data in a designated storage area of the BIOS system;
the judging module is configured to respond to the fact that data in the designated storage area of the BIOS system is updated to be a current value in the using process, and judge whether the updated data is to keep the current value after triggering a CMOS (complementary metal oxide semiconductor) clearing operation or not based on a preset data tag;
an identifier recording module configured to record an identifier of updated data into a list in response to having the updated data to retain a current value after triggering a CMOS clear operation;
the data reading module is configured to respond to triggering a CMOS clearing operation on the BIOS system and read all data of the designated storage area into a buffer area;
a backup module configured to traverse all data in the buffer and copy data in which an identifier exists in the list into a backup buffer; and
and a deletion and writing module configured to delete all data in the buffer and copy data in the backup buffer into the buffer, and delete all data in the designated storage and write data in the buffer into the designated storage in response to copying data in the buffer whose identifier is present in the list to the backup buffer.
9. A computer readable storage medium, characterized in that computer program instructions are stored, which when executed implement the method of any of claims 1-7.
10. A computer device comprising a memory and a processor, wherein the memory has stored therein a computer program which, when executed by the processor, performs the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110807534.5A CN113626089B (en) | 2021-07-16 | 2021-07-16 | Data operation method, system, medium and device based on BIOS (basic input output system) |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110807534.5A CN113626089B (en) | 2021-07-16 | 2021-07-16 | Data operation method, system, medium and device based on BIOS (basic input output system) |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113626089A CN113626089A (en) | 2021-11-09 |
CN113626089B true CN113626089B (en) | 2023-08-04 |
Family
ID=78380029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110807534.5A Active CN113626089B (en) | 2021-07-16 | 2021-07-16 | Data operation method, system, medium and device based on BIOS (basic input output system) |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113626089B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114003516B (en) * | 2021-12-30 | 2022-05-10 | 深圳市吉方工控有限公司 | Method, system, equipment and storage medium for setting BIOS as default value |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799497A (en) * | 2011-05-24 | 2012-11-28 | 鸿富锦精密工业(深圳)有限公司 | Data recovery system and method for non-volatile random access memory (NVRAM) |
-
2021
- 2021-07-16 CN CN202110807534.5A patent/CN113626089B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799497A (en) * | 2011-05-24 | 2012-11-28 | 鸿富锦精密工业(深圳)有限公司 | Data recovery system and method for non-volatile random access memory (NVRAM) |
Also Published As
Publication number | Publication date |
---|---|
CN113626089A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3352071B1 (en) | Data check method and storage system | |
CN109614055B (en) | Snapshot creating method and device, electronic equipment and machine-readable storage medium | |
CN113535708A (en) | Data deduplication method, system, storage medium and equipment | |
JP2019192316A (en) | Nonvolatile storage device, memory control device, and memory control method | |
JP2006114043A (en) | Data processing apparatus and method for flash memory | |
CN113626089B (en) | Data operation method, system, medium and device based on BIOS (basic input output system) | |
CN111125002B (en) | Data backup archiving method and system based on distributed storage | |
CN114546286B (en) | Method, system, storage medium and equipment for selecting members of homing group | |
CN116775579A (en) | Log management method, system, storage medium and equipment | |
CN111966531A (en) | Data snapshot method and device, computer equipment and storage medium | |
CN114610243B (en) | Method, system, storage medium and equipment for converting thin volume | |
CN113609160A (en) | B + tree traversal method, system, storage medium and equipment | |
US11163642B2 (en) | Methods, devices and computer readable medium for managing a redundant array of independent disks | |
CN113419870A (en) | Volume reading and writing method and device | |
CN113971006B (en) | Data writing method, system, storage medium and device based on hard disk | |
CN113076292B (en) | File caching method, system, storage medium and equipment | |
CN117609195B (en) | Object management method, device and equipment of distributed storage system and medium | |
CN113986390B (en) | Method, device and equipment for generating configuration file and readable storage medium | |
CN113448878B (en) | LBA processing method, system, storage medium and equipment | |
CN112925629B (en) | Bloom filter dynamic adjustment method, bloom filter dynamic adjustment system, electronic equipment and storage medium | |
CN114816266B (en) | Metadata restoration method, system, storage medium and device | |
CN112579481B (en) | Data processing method, data processing device and computing device | |
CN110674106B (en) | Storage method, device and equipment of policy data and computer readable storage medium | |
JP5708228B2 (en) | IC card and IC card refresh method | |
CN116303122A (en) | Chip data reading and writing method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |