CN115659426A - Anti-counterfeiting method, device and medium for hard disk - Google Patents

Anti-counterfeiting method, device and medium for hard disk Download PDF

Info

Publication number
CN115659426A
CN115659426A CN202211102435.8A CN202211102435A CN115659426A CN 115659426 A CN115659426 A CN 115659426A CN 202211102435 A CN202211102435 A CN 202211102435A CN 115659426 A CN115659426 A CN 115659426A
Authority
CN
China
Prior art keywords
hard disk
counterfeiting
code
information
configuration table
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.)
Pending
Application number
CN202211102435.8A
Other languages
Chinese (zh)
Inventor
梁文俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211102435.8A priority Critical patent/CN115659426A/en
Publication of CN115659426A publication Critical patent/CN115659426A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses an anti-counterfeiting method, an anti-counterfeiting device and an anti-counterfeiting medium for a hard disk, which are suitable for the field of hard disk anti-counterfeiting. The method comprises the following steps: acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table; setting an anti-counterfeiting code of the hard disk in the special field; and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a check result. The method defines the anti-counterfeiting code of the hard disk, writes the anti-counterfeiting code into the firmware of the hard disk, realizes double-layer anti-counterfeiting identification of the hard disk through BMC and BIOS verification, effectively discriminates the authenticity of the hard disk, avoids the malicious imitation of the existing anti-counterfeiting label by people, realizes automatic identification of a system, and ensures the compatibility of the hard disk and a server.

Description

Anti-counterfeiting method, device and medium for hard disk
Technical Field
The invention relates to the field of hard disk anti-counterfeiting, in particular to an anti-counterfeiting method, an anti-counterfeiting device and an anti-counterfeiting medium for a hard disk.
Background
With the development of servers, a large number of server hard disks are used, the capacity, the type and the type of the hard disks are more and more, various counterfeit and fake hard disk products are also produced in the market, and the counterfeit method is to stick an anti-counterfeit label on the surface of the hard disk and perform anti-counterfeit identification through anti-counterfeit label paper. Or the Serial Number (SN) Number of the hard disk is searched on the anti-counterfeiting official network manually.
Therefore, the common anti-counterfeiting method has the advantages that the anti-counterfeiting label is easily and maliciously imitated, and meanwhile, the automatic identification of the anti-counterfeiting label of the system cannot be realized, so that the compatibility of a forged hard disk and a server is caused to be problematic, and even the brand effect of a server product is influenced.
Therefore, it is an urgent need to solve the problem of finding an anti-counterfeit method for hard disks.
Disclosure of Invention
The invention aims to provide an anti-counterfeiting method, an anti-counterfeiting device and an anti-counterfeiting medium for a hard disk, which are used for effectively distinguishing the authenticity of the hard disk, avoiding the malicious imitation of the conventional anti-counterfeiting label by people, realizing the automatic identification of a system and ensuring the compatibility of the hard disk and a server.
In order to solve the technical problem, the invention provides an anti-counterfeiting method for a hard disk, which comprises the following steps:
acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table;
setting an anti-counterfeiting code of the hard disk in the special field;
and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a check result.
Preferably, the byte length of the developed special field is greater than or equal to the byte length of the anti-counterfeiting code.
Preferably, the anti-counterfeiting code of the hard disk is set in the special field, and comprises the following steps:
setting key information of an anti-counterfeiting code of the hard disk, wherein the key information of the anti-counterfeiting code at least comprises a hard disk model, a spacer, a user-defined character string and PN information;
and writing the key information of the anti-counterfeiting code into a special field of an equipment identification configuration table of the hard disk in a firmware refreshing mode.
Preferably, the BIOS firmware checks and compares the anti-counterfeit code of the hard disk to obtain a corresponding check result, including:
acquiring preset information of a configuration table of BIOS firmware in a server;
reading an equipment identification configuration table of the hard disk through an identification equipment command to acquire an anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
if the preset information is different from the key information, determining that the verification result does not pass;
and if the preset information is the same as the key information, determining that the verification result passes.
Preferably, when the verification result corresponding to the BIOS firmware is passed, the BMC checks and compares the anti-counterfeit code of the hard disk to obtain a corresponding verification result, including:
acquiring preset information of a configuration table of BMC in a server;
reading an equipment identification configuration table of the hard disk through an identification equipment command to acquire an anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
and if the preset information is different from the key information, determining that the verification result does not pass.
Preferably, when the verification result is failed, the method further comprises:
and outputting alarm information.
Preferably, when the BMC checks the anti-counterfeit code of the hard disk and the check result passes, the method further includes:
and displaying the brand logo and the authentication PN information of the hard disk.
In order to solve the above technical problem, the present invention further provides an anti-counterfeit device for a hard disk, comprising:
the acquisition module is used for acquiring an equipment identification configuration table of the hard disk and developing a special field in the equipment identification configuration table;
the setting module is used for setting the anti-counterfeiting code of the hard disk in the special field;
and the verification module is used for applying the set hard disk to a server, and verifying and comparing the anti-counterfeiting codes of the hard disk respectively through the BIOS firmware and the BMC of the server to obtain a verification result.
In order to solve the above technical problem, the present invention further provides an anti-counterfeit device for a hard disk, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the anti-counterfeiting method of the hard disk when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the anti-counterfeiting method for a hard disk are implemented.
The invention provides an anti-counterfeiting method of a hard disk, which comprises the following steps: acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table; setting an anti-counterfeiting code of the hard disk in the special field; and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a verification result. The method defines the anti-counterfeiting code of the hard disk, writes the anti-counterfeiting code into the firmware of the hard disk, realizes double-layer anti-counterfeiting identification of the hard disk through BMC and BIOS verification, effectively discriminates the authenticity of the hard disk, avoids the malicious imitation of the existing anti-counterfeiting label by people, realizes automatic identification of a system, and ensures the compatibility of the hard disk and a server.
In addition, the invention also provides an anti-counterfeiting device and medium of the hard disk, which have the same beneficial effects as the anti-counterfeiting method of the hard disk.
Drawings
In order to more clearly illustrate the embodiments of the present invention, the drawings required for the embodiments will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of an anti-counterfeiting method for a hard disk according to an embodiment of the present invention;
fig. 2 is a structural diagram of an anti-counterfeit device for a hard disk according to an embodiment of the present invention;
FIG. 3 is a block diagram of an anti-counterfeit device for a hard disk according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating verification of BIOS firmware according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a BMC verification process according to 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide an anti-counterfeiting method, an anti-counterfeiting device and an anti-counterfeiting medium for hard disks, which effectively discriminate the authenticity of the hard disks, prevent the existing anti-counterfeiting labels from being maliciously imitated by people, realize the automatic identification of a system and ensure the compatibility of the hard disks and a server.
In order that those skilled in the art will better understand the disclosure, reference will now be made in detail to the embodiments of the disclosure as illustrated in the accompanying drawings.
It should be noted that the anti-counterfeiting function of the hard disk is only based on the SN number of the hard disk, and the anti-counterfeiting function of the server system cannot be realized because the anti-counterfeiting function needs to be manually inquired on the anti-counterfeiting official network. The invention provides an anti-counterfeiting method of a hard disk, aiming at an anti-counterfeiting code set by a hard disk Firmware of the hard disk, wherein the hard disk Firmware (FW) is installed on a memory chip of the hard disk and is used for guiding the hard disk to work. The system is used as the most basic and bottom work of any system, is provided with assembly language written guide commands, control statements and execution statements, and coordinates and interacts with various internal components of the red paper hard disk. The storage positions of the firmware are the same for different hard disks of different brands, some hard disks are partially stored in a chip of a circuit board, and are partially stored in a negative track, namely a track before a zero track, and all firmware information is completely stored in the negative track by some hard disks.
In the normal operating state of the hard disk, the firmware area is inaccessible. Only when the hard disk is switched to a factory technical state through a professional tool, the operations of reading and writing the firmware area information, acquiring the firmware area module and the table configuration diagram, acquiring the sector allocation table, exchanging the LBA (logical address) and the CHS (physical address), performing low-level formatting, reading and writing the flash memory chip of the hard disk and the like can be realized.
Fig. 1 is a flowchart of an anti-counterfeiting method for a hard disk according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
s11: acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table;
s12: setting an anti-counterfeiting code of the hard disk in the special field;
s13: and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a check result.
Specifically, the device identification configuration table of the hard disk is designed for configuration parameters of the hard disk itself and space size of the configuration parameters, and includes a firmware version number of a hard disk firmware, a state content of a current hard disk, a serial number of ATA string, a save discard flag, and the like. In order to design the anti-counterfeit code of the hard disk, a special field with a certain space size needs to be developed in the equipment identification configuration table to separately store the key information of the hard disk.
The space size of the corresponding special field is not specifically described, and can be set according to the time condition content and the specific information of the set anti-counterfeiting code. As a preferred embodiment, it exploits a special field of size 20 word spaces. It will be appreciated that the particular fields developed are of sufficient size to accommodate the byte length of the anti-counterfeit code to warrant subsequent verification procedures. As an example, the byte length of the special field is developed to be greater than or equal to the byte length of the anti-counterfeit code.
In combination with the above example, it develops a special field with 20 word space sizes, and the byte length is 40 bytes, so the maximum length of the anti-counterfeiting code can support 40 bytes. As a preferred embodiment, the step S12 of setting the anti-counterfeit code of the hard disk in the special field includes:
setting key information of an anti-counterfeiting code of the hard disk, wherein the key information of the anti-counterfeiting code at least comprises a hard disk model, a spacer, a custom character string and PN information;
and writing the key information of the anti-counterfeiting code into a special field of an equipment identification configuration table of the hard disk in a firmware refreshing mode.
Specifically, as a preferred embodiment, the anti-counterfeit code is provided with 40 bytes, and the distribution of the bytes of the key information is shown in table 1:
TABLE 1 reference table for definition of anti-counterfeit code
Figure BDA0003841146740000051
As shown in Table 1, the hard disk MN information is stored in 0-15 bytes, the 16 th byte stores a spacer, the 17 th-28 th bytes store a self-defined character string, the 29 th byte stores a spacer, and the 30 th-39 th bytes store the hard disk PN information.
And writing the key information of the anti-counterfeiting code into a special field of an equipment identification configuration table of the hard disk in a firmware refreshing mode. The firmware determines the function and performance of the hardware device, and in the hard disk, the firmware is responsible for driving, controlling, decoding, transmitting, detecting and other works, such as managing the storage position of data, recording damaged defective sectors, avoiding reusing the damaged defective sectors in the using process, and recording the temperature of the hard disk in the working process or errors. The information module of the firmware includes a management module, a configuration and setting table, a defect list, a work record table, and the like. Although the firmware is named as the firmware, the firmware is the software in reality, the performance of the disk can be improved by using the firmware of a new version, so that the key information of the anti-counterfeiting code is written into the equipment identification configuration table in a firmware refreshing mode to represent that the firmware of the current hard disk is refreshed, and meanwhile, an anti-explosion refreshing means is avoided.
The set hard disk is applied to a server, and the anti-counterfeiting codes of the hard disk are respectively checked through Basic Input Output System (BIOS) firmware and BMC of the server to realize double-layer verification. The BIOS firmware of the server is a set of system programs solidified in a storage chip on a mainboard of the computing equipment, plays an indispensable role in normal initialization, starting and operating system boot of a computer system, and is a key link for realizing key functions of the computer system, such as safety, reliability and the like.
The main functions of the BIOS firmware include:
1. central Processing Unit (CPU)/memory initialization: the CPU and the memory of the computer system can be safely, stably and efficiently used after the BIOS is responsible for initialization;
2. initialization of Input/Output (I/O) chips and system buses: an I/O chip and a system BUS (such as a Peripheral Component Interconnect Express (PCIE) and a Universal Serial BUS (USB)) outside a CPU of a computer system need to be initialized by a BIOS, and then can be operated safely, efficiently, and without conflict;
3. peripheral device initialization: peripheral devices connected to a CPU and an I/O chip or hung on a system bus, such as network devices, storage devices, display devices, human-computer interaction devices and the like, can normally work after BIOS initialization and configuration;
4. initialization of additional functions: additional functions of the computer system, such as a security function, a reliability function, a fault report diagnosis and repair function, etc., are implemented only by initializing and supporting the BIOS at the start-up stage of the computer system;
5. and starting an operating system: after the system hardware self-check and initialization are completed, the BIOS can guide the operating system to start, and the whole starting process of the system is completed. During the sleep and wake processes of the operating system, the BIOS and the operating system need to be cooperated with each other to complete the sleep and wake processes.
Through verification and comparison of BIOS firmware of the server, if the BIOS firmware does not meet the anti-counterfeiting requirement, interception can be carried out, subsequent anti-counterfeiting code inspection of a Baseboard Management Controller (BMC) is not needed to be carried out so as to improve verification efficiency, and if the verification accuracy is guaranteed, subsequent anti-counterfeiting code verification of the BMC can be continued so as to achieve double-layer identification accuracy.
The anti-counterfeiting code of the hard disk can be verified by the BMC, and the verification of the BMC can be carried out on the basis of the verification of the BIOS firmware or not. The premise of the BMC is for platform management, which means a series of monitoring and control functions, and the object of operation is system hardware. Such as by monitoring the temperature, voltage, fans, power supply, etc. of the system and making adjustments to ensure that the system is in a healthy state. Of course, if the system is not really normal, the system can be restarted in a reset mode. Meanwhile, the platform management is also responsible for recording information and log records of various hardware and is used for prompting a user and positioning subsequent problems. The above functions may be implemented integrated into a controller, which is a BMC.
The BMC is an independent System, and is independent of other hardware (such as a CPU, a memory, and the like) on the System, and is also independent of a BIOS, an Operating System (OS), and the like (however, the BMC may interact with the BIOS and the OS, which may play a better role in platform management, and System management software under the OS may cooperate with the BMC to achieve a better management effect).
It can be understood that the obtained verification result may be a verification result of the BIOS firmware on the anti-counterfeit code of the hard disk, may also be a verification result of the BMC on the anti-counterfeit code of the hard disk, and may also be a comprehensive verification result obtained under the above two combinations, which is not limited herein.
And if the verification result passes, alarming or reporting an error to remind the user.
The anti-counterfeiting method for the hard disk provided by the embodiment of the invention comprises the following steps: acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table; setting an anti-counterfeiting code of the hard disk in the special field; and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a verification result. The method defines the anti-counterfeiting code of the hard disk, writes the anti-counterfeiting code into the firmware of the hard disk, realizes double-layer anti-counterfeiting identification of the hard disk through BMC and BIOS verification, effectively discriminates the authenticity of the hard disk, avoids the malicious imitation of the existing anti-counterfeiting label by people, realizes automatic identification of a system, and ensures the compatibility of the hard disk and a server.
On the basis of the above embodiment, the step S13 of checking and comparing the anti-counterfeit code of the hard disk by the BIOS firmware to obtain a corresponding check result includes:
acquiring preset information of a configuration table of BIOS firmware in a server;
reading an equipment identification configuration table of the hard disk through an identification equipment command to acquire an anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
if the preset information is different from the key information, determining that the verification result does not pass;
and if the preset information is the same as the key information, determining that the verification result passes.
Specifically, the preset information of a configuration table of BIOS firmware in the server is obtained, the preset information is pre-stored anti-counterfeiting codes aiming at a plurality of hard disks supportable in the server, the equipment identification configuration table of the hard disks is read through an identification equipment command to obtain the anti-counterfeiting codes, the identification equipment command is an identification device command, the pre-stored anti-counterfeiting codes of the hard disks are obtained through the address of a special field, the anti-counterfeiting codes are analyzed, and corresponding key information (hard disk MN information, user-defined character string information, PN information and the like) is identified. And judging whether the preset information is the same as the key information, if so, determining that the current hard disk meets the anti-counterfeiting requirement, which means that the verification result passes. If the hard disk is different from the anti-counterfeiting standard, the current hard disk is determined not to meet the anti-counterfeiting standard, and the verification result is not passed.
It can be understood that, in this embodiment, the BMC is entered to check the anti-counterfeit code of the hard disk when the check result passes, the BMC is also entered to check the anti-counterfeit code of the hard disk when the check result does not pass, and an alarm message may also be output, intercepted, and subsequent check processing is not performed.
In addition, as an embodiment, after the BIOS firmware performs verification and comparison on the anti-counterfeit code of the hard disk to obtain a corresponding verification result, when the verification result corresponding to the BIOS firmware is passed, the BMC performs verification and comparison on the anti-counterfeit code of the hard disk to obtain a corresponding verification result, including:
acquiring preset information of a configuration table of BMC in a server;
reading an equipment identification configuration table of the hard disk through an identification equipment command to acquire an anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
and if the preset information is different from the key information, determining that the verification result does not pass.
It should be noted that the verification process may be the same as or different from the verification process of the BIOS firmware in the foregoing embodiment, and in this embodiment, the verification process is the same as the verification process of the BIOS firmware in order to ensure the verification accuracy and the improvement of the verification efficiency. The preset information of the configuration table of the BMC is the same as the preset information storage content of the configuration table of the BIOS firmware of the above embodiment. And acquiring hard disk equipment identification configuration table information through a pass command, reading a hard disk anti-counterfeiting code at the address bit of the special field, analyzing the anti-counterfeiting code, effectively identifying hard disk MN information, custom character string information and PN information, and checking and comparing the hard disk anti-counterfeiting code with preset information of a BMC configuration table. And judging whether the preset information is the same as the key information, if so, determining that the current hard disk meets the anti-counterfeiting requirement, and indicating that the verification result is passed. If the hard disk is different from the anti-counterfeiting requirement, the current hard disk is determined to be not in accordance with the anti-counterfeiting requirement, and the verification result is not passed.
The verification of the BIOS firmware aims at the verification when the system is started, the verification of the BMC aims at the verification under the OS system, the dimensionalities of the BIOS firmware and the dimensionalities of the OS system are different, the BIOS firmware is read along with the firmware after the server is started, and if the firmware is not read, the BMC under the OS system is started for comparison.
The verification of BIOS firmware and the verification of BMC provided by the embodiment of the invention have two different dimensions, so that double-layer anti-counterfeiting identification of the hard disk is realized, the authenticity of the hard disk is effectively discriminated, the existing anti-counterfeiting label is prevented from being maliciously imitated by people, the automatic identification of a system is realized, and the compatibility of the hard disk and a server is ensured.
On the basis of the above embodiment, when the verification result fails, the method further includes:
and when the verification result is failed, outputting alarm information.
Correspondingly, when the verification result is output, the result can be output based on the verification under different conditions, and different warning information can be output according to the verification result obtained by the verification under different conditions.
As a preferred embodiment, when the check result of the BIOS firmware check is failed, the first alarm information may be output, and when the check result of the BMC check is failed, the second alarm information may be output, where sound frequency and loudness of the alarm information of the first alarm information and the second alarm information are different, and the alert mode of the alarm information may be determined according to the time critical.
Correspondingly, the form of the warning information is not specifically limited, and may be sound output, or page prompt box prompt, and the like, and the setting is performed according to specific situations as long as the user can be prompted. When the alarm information is output, the firmware of the current hard disk can be intercepted to prevent the normal work of the server, and the compatibility service of the subsequent server and the hard disk firmware meeting the anti-counterfeiting requirement is ensured.
The embodiment of the invention outputs the alarm information when the verification result is failed. The method realizes the reminding of the user and the anti-counterfeiting alarm measure for the hard disk.
On the basis of the embodiment, when the BMC checks the anti-counterfeiting code of the hard disk and the check result passes, the method further comprises the following steps:
and displaying the brand logo and the authentication PN information of the hard disk.
It can be understood that when the BMC checks the anti-counterfeit code of the hard disk to obtain a check result, the check result is obtained based on checking and identifying different dimensions of the BIOS firmware and the BMC, which indicates that the configuration content of the current hardware can perform compatibility work with the server, and then the brand ogo and the authentication PN information of the hard disk need to be displayed to remind the user of the safety of the current hard disk.
According to the embodiment, when the BMC checks the anti-counterfeiting code of the hard disk to obtain a verification result, brand logo and authentication PN information of the hard disk are displayed, automatic identification of a system is achieved, and compatibility of the hard disk and a server is guaranteed.
On the basis of the above detailed description of each embodiment corresponding to the anti-counterfeiting method for the hard disk, the present invention further discloses an anti-counterfeiting device for the hard disk corresponding to the above method, and fig. 2 is a structural diagram of the anti-counterfeiting device for the hard disk provided by the embodiment of the present invention. As shown in fig. 2, the anti-counterfeit device for a hard disk includes:
the acquisition module 11 is configured to acquire an equipment identification configuration table of the hard disk and develop a special field in the equipment identification configuration table;
the setting module 12 is used for setting the anti-counterfeiting code of the hard disk in the special field;
and the inspection module 13 is used for applying the set hard disk to a server, and respectively inspecting and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a verification result.
Since the embodiment of the apparatus portion corresponds to the above-mentioned embodiment, the embodiment of the apparatus portion is described with reference to the embodiment of the method portion, and is not described again here.
For the introduction of the anti-counterfeiting device for the hard disk provided by the invention, please refer to the embodiment of the method, which is not repeated herein, and has the same beneficial effects as the anti-counterfeiting method for the hard disk.
Fig. 3 is a structural diagram of another anti-counterfeit device for a hard disk according to an embodiment of the present invention, as shown in fig. 3, the device includes:
a memory 21 for storing a computer program;
and the processor 22 is used for realizing the steps of the anti-counterfeiting method of the hard disk when executing the computer program.
The anti-counterfeiting device for the hard disk provided by the embodiment can include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
The processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The Processor 22 may be implemented in hardware using at least one of a Digital Signal Processor (DSP), a Field-Programmable Gate Array (FPGA), and a Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor, the main processor being a processor for processing data in the wake-up state, also referred to as a CPU; a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 22 may be integrated with a Graphics Processing Unit (GPU) that is responsible for rendering and rendering content that the display screen needs to display. In some embodiments, processor 22 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 21 may include one or more computer-readable storage media, which may be non-transitory. Memory 21 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used for storing the following computer program 211, wherein after the computer program is loaded and executed by the processor 22, the relevant steps of the anti-counterfeiting method for a hard disk disclosed in any one of the foregoing embodiments can be implemented. In addition, the resources stored in the memory 21 may also include an operating system 212, data 213, and the like, and the storage manner may be a transient storage or a permanent storage. Operating system 212 may include Windows, unix, linux, etc., among others. Data 213 may include, but is not limited to, data involved in anti-counterfeiting methods for hard disks, and the like.
In some embodiments, the anti-counterfeit device for hard disk may further include a display 23, an input/output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
It will be understood by those skilled in the art that the structure shown in fig. 3 is not intended to limit the security device to a hard disk and may include more or fewer components than those shown.
The processor 22 calls the instructions stored in the memory 21 to implement the anti-counterfeiting method for the hard disk provided by any one of the above embodiments.
For the introduction of the anti-counterfeiting device for the hard disk provided by the invention, please refer to the embodiment of the method, which is not repeated herein, and has the same beneficial effects as the anti-counterfeiting method for the hard disk.
Further, the present invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 22, implements the steps of the anti-counterfeiting method for the hard disk.
It is to be understood that if the method in the above embodiments is implemented in the form of software functional units and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and performs all or part of the steps of the methods according to the embodiments of the present invention, or all or part of the technical solution. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which is not described herein again, and has the same beneficial effects as the above hard disk anti-counterfeiting method.
As a preferred embodiment, fig. 4 is a flowchart illustrating verification of BIOS firmware according to an embodiment of the present invention, as shown in fig. 4:
s21: starting a server system;
s22: starting up self-checking;
s23: the BIOS checks the hard disk device;
s24: reading a hard disk configuration table;
s25: acquiring anti-counterfeiting field information of the hard disk;
s26: resolving the hard disk anti-counterfeiting code;
s27: the anti-counterfeiting code of the hard disk is checked and compared with preset information;
s28: judging whether the hard disk anti-counterfeiting code meets the hard disk anti-counterfeiting requirement, if so, entering step S29, and if not, entering step S30;
s29: the system is normally started;
s30: hard disk anti-counterfeiting alarm.
As a preferred embodiment, fig. 5 is a flowchart of a BMC check process provided in an embodiment of the present invention, as shown in fig. 5:
s31: reading a hard disk configuration table by the BMC;
s25: acquiring anti-counterfeiting field information of the hard disk;
s26: resolving the hard disk anti-counterfeiting code;
s27: the anti-counterfeiting code of the hard disk is checked and compared with preset information;
s28: judging whether the anti-counterfeiting code of the hard disk meets the anti-counterfeiting requirement of the hard disk, if so, entering step S32, and if not, entering step S30;
s30: hard disk anti-counterfeiting alarm;
s32: correctly displaying a hard disk brand logo and an authentication PN;
s33: and displaying that the hard disk passes the authentication.
It should be noted that steps S25 to S28 and S30 in this embodiment are common, and only the preset information is obtained from the configuration table corresponding to different inspection objects.
For the introduction of the flow chart of the verification of the BIOS firmware and the verification of the BMC provided by the present invention, please refer to the above method embodiment, which is not described herein again, and has the same beneficial effects as the above anti-counterfeiting method for a hard disk.
The anti-counterfeiting method, the anti-counterfeiting device and the medium for the hard disk provided by the invention are introduced in detail above. The embodiments are described in a progressive mode in the specification, the emphasis of each embodiment is on the difference from the other embodiments, and the same and similar parts among the embodiments can be referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. An anti-counterfeiting method of a hard disk is characterized by comprising the following steps:
acquiring an equipment identification configuration table of a hard disk, and developing a special field in the equipment identification configuration table;
setting an anti-counterfeiting code of the hard disk in the special field;
and applying the set hard disk to a server, and respectively checking and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a checking result.
2. The hard disk anti-counterfeiting method according to claim 1, wherein the byte length of the developed special field is greater than or equal to the byte length of the anti-counterfeiting code.
3. The method for preventing the hard disk from being faked according to claim 2, wherein the step of setting the anti-faking code of the hard disk in the special field comprises the following steps:
setting key information of the anti-counterfeiting code of the hard disk, wherein the key information of the anti-counterfeiting code at least comprises a hard disk model, a spacer, a custom character string and PN information;
and writing the key information of the anti-counterfeiting code into the special field of the equipment identification configuration table of the hard disk in a firmware refreshing mode.
4. The method according to claim 3, wherein the BIOS firmware checks and compares the anti-counterfeit code of the hard disk to obtain a corresponding verification result, and comprises:
acquiring preset information of a configuration table of the BIOS firmware in the server;
reading the equipment identification configuration table of the hard disk through an identification equipment command to obtain the anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
if the preset information is different from the key information, determining that the verification result does not pass;
and if the preset information is the same as the key information, determining that the verification result passes.
5. The anti-counterfeiting method for the hard disk according to claim 4, wherein when the verification result corresponding to the BIOS firmware is passed, the BMC checks and compares the anti-counterfeiting code of the hard disk to obtain a corresponding verification result, and the method comprises the following steps:
acquiring the preset information of the configuration table of the BMC in the server;
reading the equipment identification configuration table of the hard disk through an identification equipment command to acquire the anti-counterfeiting code;
analyzing the anti-counterfeiting code to identify key information of the anti-counterfeiting code;
comparing the preset information with the key information;
and if the preset information is different from the key information, determining that the verification result does not pass.
6. The hard disk anti-counterfeiting method according to any one of claims 1 to 5, wherein when the verification result fails, the method further comprises:
and outputting alarm information.
7. The anti-counterfeiting method for the hard disk according to claim 6, wherein when the BMC checks the anti-counterfeiting code of the hard disk to obtain a verification result, the method further comprises:
and displaying the brand logo and the authentication PN information of the hard disk.
8. An anti-counterfeiting device of a hard disk, comprising:
the acquisition module is used for acquiring an equipment identification configuration table of the hard disk and developing a special field in the equipment identification configuration table;
the setting module is used for setting the anti-counterfeiting code of the hard disk in the special field;
and the inspection module is used for applying the set hard disk to a server, and respectively inspecting and comparing the anti-counterfeiting codes of the hard disk through the BIOS firmware and the BMC of the server to obtain a verification result.
9. An anti-counterfeiting device of a hard disk, comprising:
a memory for storing a computer program;
processor for implementing the steps of the anti-counterfeiting method for the hard disk according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the hard disk anti-counterfeiting method according to any one of claims 1 to 7.
CN202211102435.8A 2022-09-09 2022-09-09 Anti-counterfeiting method, device and medium for hard disk Pending CN115659426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211102435.8A CN115659426A (en) 2022-09-09 2022-09-09 Anti-counterfeiting method, device and medium for hard disk

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211102435.8A CN115659426A (en) 2022-09-09 2022-09-09 Anti-counterfeiting method, device and medium for hard disk

Publications (1)

Publication Number Publication Date
CN115659426A true CN115659426A (en) 2023-01-31

Family

ID=84983978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211102435.8A Pending CN115659426A (en) 2022-09-09 2022-09-09 Anti-counterfeiting method, device and medium for hard disk

Country Status (1)

Country Link
CN (1) CN115659426A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117574352A (en) * 2024-01-16 2024-02-20 苏州元脑智能科技有限公司 Software and hardware combined anti-counterfeiting method, system, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117574352A (en) * 2024-01-16 2024-02-20 苏州元脑智能科技有限公司 Software and hardware combined anti-counterfeiting method, system, equipment and storage medium
CN117574352B (en) * 2024-01-16 2024-04-05 苏州元脑智能科技有限公司 Software and hardware combined anti-counterfeiting method, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109558282A (en) A kind of PCIE chain circuit detecting method, system and electronic equipment and storage medium
US20070220228A1 (en) Computer memory configuration inspection method and system
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
CN106547653B (en) Computer system fault state detection method, device and system
WO2023092942A1 (en) Data storage method and apparatus, and electronic device and readable storage medium
CN109445691B (en) Method and device for improving FTL algorithm development and verification efficiency
CN115659426A (en) Anti-counterfeiting method, device and medium for hard disk
CN111048138A (en) Hard disk fault detection method and related device
US20070294430A1 (en) Generating a device address persistent across different instantiations of an electronic device
CN104750600A (en) Equipment state recording method and equipment state recording system
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
CN114138527A (en) Method, device and medium for improving performance of server
CN112486519A (en) Method and equipment for configuring embedded product
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN114936135A (en) Abnormity detection method and device and readable storage medium
CN108920338A (en) A kind of method and terminal indicating file system state
CN103677875A (en) Method for starting electronic equipment, method for controlling permission and electronic equipment
CN114218001A (en) Fault repairing method and device, electronic equipment and readable storage medium
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
CN114510751A (en) Hardware replacement prevention device and method based on processor security kernel
US10922023B2 (en) Method for accessing code SRAM and electronic device
CN114155906A (en) Data block repairing method, device, equipment and storage medium
CN110647455A (en) Storage device restart recording method and system
CN112256465A (en) Method and device for repairing memory bank errors
TWM520713U (en) Hard disk monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination