CN109189333B - Hard disk adaptation method, device and system - Google Patents

Hard disk adaptation method, device and system Download PDF

Info

Publication number
CN109189333B
CN109189333B CN201810931026.6A CN201810931026A CN109189333B CN 109189333 B CN109189333 B CN 109189333B CN 201810931026 A CN201810931026 A CN 201810931026A CN 109189333 B CN109189333 B CN 109189333B
Authority
CN
China
Prior art keywords
hard disk
read
grade
identifier
file
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
Application number
CN201810931026.6A
Other languages
Chinese (zh)
Other versions
CN109189333A (en
Inventor
张羽
闫永刚
刘清林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810931026.6A priority Critical patent/CN109189333B/en
Publication of CN109189333A publication Critical patent/CN109189333A/en
Application granted granted Critical
Publication of CN109189333B publication Critical patent/CN109189333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device

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)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The embodiment of the application discloses a method, a device and a system for hard disk adaptation, wherein a reading and writing device is connected with a hard disk to obtain a mark file of a preset position of the hard disk, the mark file is generated by a tool system in advance according to a grade mark of the hard disk, wherein the grade mark of the hard disk is determined according to the performance of the hard disk, for example, the higher performance corresponds to the higher grade, whether the grade mark of the hard disk is matched with the grade mark of the read-write equipment is judged, wherein, the grade mark of the read-write equipment is determined according to the performance of the read-write equipment, for example, higher performance corresponds to higher grade, if the grade mark of the hard disk is not matched with the grade mark of the read-write equipment, the performance grade of the hard disk is not matched with that of the read-write equipment, then prompt can be carried out, therefore, the problem that the read-write equipment is not matched with the connected hard disk is avoided, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.

Description

Hard disk adaptation method, device and system
Technical Field
The present application relates to the field of computers, and in particular, to a method, an apparatus, and a system for hard disk adaptation.
Background
With the development of information Technology, information storage is applied in more scenes, and a hard disk is a common information storage unit, where the hard disk may be a Serial Advanced Technology interface (SATA) hard disk, a Serial Attached SCSI (SAS), a Solid State Drive (SSD), and the like.
In general, data can be written into the hard disk by the read-write device to realize data storage, or the data in the hard disk can be read by the read-write device to obtain the stored data. For example, a Network Storage device may be connected to a hard disk, and a disk array (RAID) is formed by a plurality of hard Disks, and the Network Storage device may be connected to a Direct Attached Storage (DAS), a Storage Area Network (SAN), a Network Attached Storage (NAS), or the like.
Because data is stored in the hard disk, the performance of the hard disk directly affects the overall performance of the system, and how to select a proper hard disk when constructing the storage system is an important problem in improving the overall performance of the storage system and reducing the storage cost.
Disclosure of Invention
In order to improve the overall performance of a storage system and reduce the storage cost, the embodiment of the application provides a method, a device and a system for hard disk adaptation.
The embodiment of the application provides a method, a device and a system for hard disk adaptation,
a method for hard disk adaptation is characterized in that the method is applied to a read-write device, the read-write device is connected with a hard disk, and the method comprises the following steps:
acquiring a mark file of a preset position of the hard disk, wherein the mark file is generated by the tool system according to a grade identifier of the hard disk, and the grade identifier of the hard disk is determined according to the performance of the hard disk;
and judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment, if not, prompting, and determining the grade identification of the read-write equipment according to the performance of the read-write equipment.
Optionally, the determining whether the level identifier of the hard disk matches the level identifier of the read-write device includes:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a first operation value, wherein the first operation value is obtained by verifying the unique identifier of the hard disk and the grade identifier of the hard disk by the tool system through a preset verification algorithm;
acquiring a unique identifier of the hard disk;
verifying the acquired unique identifier of the hard disk and the grade identifier of the read-write equipment by the preset verification algorithm to obtain a second calculated value;
and judging whether the first operation value and the second operation value are matched.
Optionally, the determining whether the level identifier of the hard disk matches the level identifier of the read-write device includes:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain the grade identification of the hard disk;
acquiring a unique identifier of the hard disk, and judging whether the unique identifier is consistent with a unique identifier obtained by decrypting the mark file;
and if so, judging whether the first level identification is matched with the second level identification of the read-write equipment.
The method for adapting the hard disk is applied to a tool system, the tool system is connected with the hard disk, and the method comprises the following steps:
detecting the hard disk to obtain a grade identifier of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk;
generating a marking file according to the grade identification of the hard disk;
and writing the mark file into a preset position of the hard disk so that when the read-write equipment is connected with the hard disk, whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment is determined according to the mark file.
Optionally, the generating a markup file according to the level identifier of the hard disk includes:
acquiring a unique identifier of the hard disk;
and encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key prestored by the tool system to obtain a marked file.
Optionally, the encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key pre-stored by the tool system to obtain a markup file includes:
carrying out verification operation on the unique identifier of the hard disk and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value;
and encrypting the first operation value according to an encryption key prestored by the tool system to obtain a marker file.
Optionally, before the detecting the hard disk, the method further includes:
sending the attribute information of the tooling system to authorization equipment so that the authorization equipment can authenticate the attribute information of the tooling system;
acquiring an authentication file from the authorization equipment; the authentication file is generated when the authorization equipment passes the authentication of the attribute information of the tooling system;
and verifying the authentication file, and executing the step of detecting the hard disk when the authentication file passes the verification.
The embodiment of the application provides a read-write device, the read-write device is connected with a hard disk, including:
the system comprises a mark file acquisition unit, a mark file acquisition unit and a file management unit, wherein the mark file acquisition unit is used for acquiring a mark file of a preset position of the hard disk, the mark file is generated by the tool system according to a grade identifier of the hard disk, and the grade identifier of the hard disk is determined according to the performance of the hard disk;
the first judging unit is used for judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not, and if not, the prompting unit is activated; the grade mark of the read-write equipment is determined according to the performance of the read-write equipment
And the prompting unit is used for prompting.
Optionally, the first determining unit includes:
the first decryption unit is used for decrypting the markup file according to a decryption key prestored by the read-write equipment to obtain a first operation value, and the first operation value is obtained by verifying the unique identifier of the hard disk and the grade identifier of the hard disk by the tool system through a preset verification algorithm;
the first unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
the first verification operation unit is used for performing verification operation on the acquired unique identifier of the hard disk and the grade identifier of the read-write equipment through the preset verification algorithm to obtain a second operation value;
and the second judgment unit is used for judging whether the first operation value and the second operation value are matched.
Optionally, the first determining unit includes:
the second decryption unit is used for decrypting the markup file according to a decryption key pre-stored by the read-write equipment to obtain the grade identifier of the hard disk;
a third judging unit, configured to obtain a unique identifier of the hard disk, and judge whether the unique identifier is consistent with a unique identifier obtained by decrypting the markup file;
and the fourth judging unit is used for judging whether the first-level identification is matched with the second-level identification of the read-write equipment or not if the judgment result of the third judging unit is consistent.
The utility model provides a tooling system, tooling system and hard disk connection include:
the grade identification obtaining unit is used for detecting the hard disk to obtain the grade identification of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk;
a label file generating unit, configured to generate a label file according to the level identifier of the hard disk;
and the mark file writing unit is used for writing the mark file into a preset position of the hard disk so as to determine whether the grade identifier of the hard disk is matched with the grade identifier of the reading and writing equipment according to the mark file when the reading and writing equipment is connected with the hard disk.
Optionally, the markup file generating unit includes:
the second unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
and the first encryption unit is used for encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key pre-stored by the tool system to obtain a marked file.
Optionally, the first encryption unit includes:
the second verification operation unit is used for performing verification operation on the unique identifier of the hard disk and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value;
and the second encryption unit is used for encrypting the first operation value according to an encryption key pre-stored by the tool system to obtain a marker file.
Optionally, the tooling system further includes:
the attribute information sending unit is used for sending the attribute information of the tool system to authorization equipment so that the authorization equipment can authenticate the attribute information of the tool system;
an authentication file acquisition unit configured to acquire an authentication file from the authorization apparatus; the authentication file is generated when the authorization equipment passes the authentication of the attribute information of the tooling system;
and the verification unit is used for verifying the authentication file and activating the grade identification acquisition unit when the authentication file passes the verification.
The system for hard disk adaptation provided by the embodiment of the application comprises:
the tool system is used for detecting the hard disk when the tool system is connected with the hard disk to obtain the grade identification of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk; generating a marking file according to the grade identification of the hard disk; writing the mark file into a preset position of the hard disk;
the read-write equipment is used for acquiring a mark file of a preset position of the hard disk when the read-write equipment is connected with the hard disk; and judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment, if not, prompting, and determining the grade identification of the read-write equipment according to the performance of the read-write equipment.
In the method, the device and the system for hard disk adaptation provided by the embodiment of the application, the read-write equipment is connected with the hard disk to obtain the mark file of the preset position of the hard disk, the mark file is generated by the tool system in advance according to the grade identification of the hard disk, wherein the grade mark of the hard disk is determined according to the performance of the hard disk, for example, the higher performance corresponds to the higher grade, whether the grade mark of the hard disk is matched with the grade mark of the read-write equipment is judged, wherein, the grade mark of the read-write equipment is determined according to the performance of the read-write equipment, for example, higher performance corresponds to higher grade, if the grade mark of the hard disk is not matched with the grade mark of the read-write equipment, the performance grade of the hard disk is not matched with that of the read-write equipment, then prompt can be carried out, therefore, the problem that the read-write equipment is not matched with the connected hard disk is avoided, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a hard disk adaptation method according to an embodiment of the present application;
fig. 2 is a flowchart of another hard disk adapting method according to an embodiment of the present application;
fig. 3 is an application scenario of a hard disk adaptation method according to an embodiment of the present application;
fig. 4 is a block diagram of a read/write device according to an embodiment of the present disclosure;
fig. 5 is a block diagram of a tooling system according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a hard disk adaptation system according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the prior art, data can be written into a hard disk through a read-write device, and stored data can also be read from the hard disk, so that the performance of the hard disk directly affects the overall performance of a system. For example, if the performance of the hard disk is poor, for example, the read-write speed is low, even if the read-write device has a high read-write speed, the overall read-write speed of the storage system composed of the hard disk and the read-write device is also low, that is, the performance is poor, and at this time, the performance of the read-write speed is not effectively utilized; if the performance of the hard disk is good, for example, the read-write speed is high, and the performance of the read-write device is poor, the overall performance of the russian storage system composed of the hard disk and the read-write device is also poor, at this time, the performance of the hard disk is not effectively utilized, and generally, the read-write device and the hard disk with good performance have high prices.
Therefore, when the performance of the read-write device and the connected hard disk is not matched, the performance of one device is not effectively utilized, the performance of a storage system consisting of the read-write device and the hard disk is not improved, and the overall cost is higher than expected.
In order to solve the above technical problem, an embodiment of the present application provides a method for adapting a hard disk, in which a read/write device is connected to the hard disk, a markup file of a preset position of the hard disk is obtained, the markup file is generated by a tooling system in advance according to a grade identifier of the hard disk, wherein the grade identifier of the hard disk is determined according to a performance of the hard disk, for example, a higher read/write speed corresponds to a higher performance grade, and whether the grade identifier of the hard disk matches the grade identifier of the read/write device is determined according to the performance of the read/write device, for example, the higher read/write speed corresponds to the higher performance grade, if the grade identifier of the hard disk does not match the grade identifier of the read/write device, it is determined that the performance grade identifiers of the hard disk and the read/write device do not match, a prompt can be performed at this time, thereby avoiding a problem that the read/write device does not adapt to the connected hard disk, therefore, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
Referring to fig. 1, the figure is a flowchart of a method for hard disk adaptation provided in an embodiment of the present application, and is applied to a read-write device, where the read-write device is connected to a hard disk, and the method includes the following steps.
S101, obtaining a mark file of a preset position of the hard disk.
In this embodiment of the present application, the read-write device may be a network storage device, or may be other devices that can write and read data to and from a hard disk. Different read-write devices can have different performances, specifically, the read-write devices can have data processing capacity, the data processing capacity of different read-write devices can be different, the read-write devices can have read-write capacity, and the read-write speed of different read-write devices can be different. The performance of the read-write device can be embodied by the level identifier of the read-write device, and the level identifier of the read-write device can be determined by the performance of the read-write device, for example, the level identifiers "a", "B", "C", "D", and "E" can respectively indicate the performance is good, medium, poor, and bad.
The hard disk is a device for storing data, and may be a SATA hard disk, a SAS hard disk, a solid state hard disk, and the like, and different hard disks may have different performances, specifically, different hard disks may have different memories, lifetimes, read/write speeds, and the like.
The tool system comprises a hard disk, a marking file, a tool system and a tool system, wherein the marking file can be stored in a preset position in the hard disk and is generated by the tool system according to a grade mark of the hard disk, and the grade mark of the hard disk is determined according to the performance of the hard disk.
The tooling system may be a device, such as a computer, having processing capabilities and read-write capabilities. Specifically, the tool system can detect the hard disk to obtain the performance of the hard disk, the performance of the hard disk can be embodied by the grade identification of the hard disk, and the grade identification of the hard disk is determined according to the performance of the hard disk. The rank indication of the hard disk may be, for example, "a", "B", "C", "D", and "E", respectively representing performance: excellent, good, medium, poor and inferior. It can be understood that the level identifier of the hard disk and the level identifier of the read-write device have a corresponding relationship.
After the grade identification of the hard disk is determined, the tool system can generate a marking file according to the grade identification of the hard disk.
Specifically, the tooling system may encrypt the peer identifier to obtain the markup file.
Specifically, the tooling system may also perform a verification operation on the level identifier of the hard disk through a preset verification Algorithm to obtain the markup file, where the preset verification Algorithm may be, for example, a HASH (HASH) Algorithm or a Message Digest Algorithm (Message-Digest Algorithm 5, MD 5).
Specifically, the tool system may also obtain the unique identifier of the hard disk, and encrypt the unique identifier and the level identifier of the hard disk according to an encryption key stored in advance by the tool system to obtain the markup file. The Encryption may be performed by a gpg Encryption tool, and the Encryption mode may be a symmetric Encryption, such as Data Encryption Standard (DES), Advanced Encryption Standard (AES), Triple Data Encryption Algorithm (3 DES), or an asymmetric Encryption, such as RSA (Ron Rivest-Adi Shamir-Leonard adapter), Digital Signal Algorithm (DSA), or gaelmal Algorithm. In addition, the unique identifier of the hard disk is an identifier that can identify different hard disks, and may be, for example, a serial number of the hard disk.
Specifically, the tool system can also perform verification operation on the unique identifier and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value, and obtain the markup file according to the first operation value.
Specifically, the tooling system may also encrypt the first operation value obtained by the verification operation according to an encryption key stored in advance by the tooling system, so as to obtain the markup file.
After the mark file is generated, the tool system can write the generated mark file into a preset position of the hard disk. The preset location may be a location for storing user-defined data, which is not modified by default.
S102, judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not, and prompting if not.
After the mark file of the preset position of the hard disk is obtained, the read-write device can judge whether the grade identifier of the hard disk in the mark file is matched with the grade identifier of the read-write device according to the mark file, if so, the read-write device considers that the performance of the hard disk is matched with that of the read-write device, the read-write device can perform read-write operation on the hard disk, and if not, the hard disk is considered to be not matched with the performance of the read-write device, for example, the high-performance read-write device is connected with the low-performance hard disk, or the low-performance read-write device is connected with the high-performance hard disk.
As a possible implementation manner, if the markup file is generated by encrypting the level identifier of the hard disk by the tooling system, it is determined whether the level identifier of the hard disk in the markup file matches the level identifier of the read-write device, which may specifically be to decrypt the markup file according to a decryption key stored in advance by the read-write device to obtain the level identifier of the hard disk, and then determine whether the level identifier of the hard disk matches the level identifier of the read-write device.
As another possible implementation manner, if the markup file is that the tooling system performs a verification operation on the level identifier of the hard disk according to a preset verification algorithm pre-stored by the tooling system to obtain a third operation value, and generates the markup file according to the third operation value, it is determined whether the level identifier of the hard disk in the markup file matches with the level identifier of the read-write device.
As another possible implementation manner, if the markup file is generated by encrypting the level identifier and the unique identifier of the hard disk by the tooling system, the determining whether the level identifier of the hard disk in the markup file matches the level identifier of the read-write device may specifically be that, according to a decryption key stored in advance by the read-write device, the markup file is decrypted to obtain the level identifier and the unique identifier of the hard disk, the unique identifier of the hard disk connected to the read-write device is obtained, whether the obtained unique identifier of the hard disk matches the decrypted unique identifier is determined, and if so, whether the decrypted level identifier of the hard disk matches the level identifier of the read-write device is determined.
As another possible implementation manner, if the markup file is that the tooling system performs verification operation on the unique identifier and the level identifier of the hard disk through a preset verification algorithm to obtain a first operation value, and the first operation value is used as the markup file, it is determined whether the level identifier of the hard disk in the markup file matches the level identifier of the read-write device, which may be specifically, obtaining the unique identifier of the hard disk connected to the read-write device, performing verification operation on the level identifier of the read-write device and the unique identifier of the hard disk through the preset verification algorithm to obtain a second operation value, and determining whether the first operation value matches the second operation value.
As another possible implementation manner, if the markup file is generated by the tooling system through performing verification operation on the unique identifier and the level identifier of the hard disk by using a preset verification algorithm to obtain a first operation value, and then encrypting the first operation value, it is determined whether the level identifier of the hard disk in the markup file matches the level identifier of the read-write device, and specifically, the method includes decrypting the markup file according to a decryption key stored in advance by the read-write device to obtain the first operation value, obtaining the unique identifier of the hard disk connected to the read-write device, performing verification operation on the obtained unique identifier of the hard disk and the read-write level identifier by using the preset verification algorithm to obtain a second operation value, and determining whether the first operation value matches the second operation value. Because the obtained unique identifier of the hard disk is fixed, if the first operation value is matched with the second operation value, the grade identifier of the hard disk is matched with the grade identifier of the read-write equipment.
It can be understood that the tooling system can also sign the markup file, and at this time, after the read-write device reads and writes the markup file, the read-write device can perform the steps of first de-signing the markup file and then performing the judgment step or the decryption step.
If the grade identification of the hard disk is not matched with the grade identification of the read-write equipment, the performance of the hard disk and the performance of the read-write equipment are not matched, at the moment, the overall performance of the storage system is low, the cost is high, and the effective utilization of the hard disk and the read-write equipment is not facilitated, so that prompt can be performed, and a user can connect other hard disks for the read-write equipment according to the prompt.
In the embodiment of the application, the grade identification of the hard disk can be determined according to the marking file.
As a possible implementation manner, the first level identifier may be subjected to a verification operation by using a preset verification algorithm to obtain a fifth operation value, where the first level identifier may be one of all the level identifiers of the hard disk, if the fifth operation value matches the first operation value in the markup file, the level identifier of the hard disk is considered as the first level identifier, if the fifth operation value does not match the first operation value in the markup file, the second level identifier may be subjected to a verification operation by using the preset verification algorithm to obtain a sixth operation value, the second level identifier may be a level identifier different from the first level identifier in all the level identifiers of the hard disk, if the sixth operation value matches the first operation value in the markup file, the level identifier of the hard disk is considered as the second level identifier, and if the sixth operation value does not match the first operation value in the markup file, the other level identifiers may also be subjected to a verification operation.
As another possible implementation manner, a preset verification algorithm may be performed on the first class identifier and the unique identifier of the hard disk through a preset verification algorithm to obtain a seventh operation value, and with reference to the above implementation manner, the class identifier of the hard disk is determined. For example, the read-write device may further determine a level identifier of the hard disk, specifically, hash operations may be performed on all level identifiers of the hard disk, such as "a", "B", "C", "D", and "E", and the unique identifier of the hard disk, and it is determined whether the obtained operation value matches the first operation value, where the level identifier corresponding to the operation value matching the first operation value is the level identifier of the hard disk.
In the method for adapting a hard disk provided by the embodiment of the application, a read-write device is connected with the hard disk to obtain a label file of a preset position of the hard disk, the label file is generated by a tool system in advance according to a grade identifier of the hard disk, wherein the grade identifier of the hard disk is determined according to the performance of the hard disk, for example, a higher read-write speed corresponds to a higher performance grade, whether the grade identifier of the hard disk is matched with the grade identifier of the read-write device is judged, wherein the grade identifier of the read-write device is determined according to the performance of the read-write device, for example, a higher read-write speed corresponds to a higher performance grade, if the grade identifier of the hard disk is not matched with the grade identifier of the read-write device, the performance grade of the hard disk is not matched with the performance grade identifier of the read-write device, a prompt can be given at the moment, thereby avoiding the problem that the read-write device is not matched with the connected hard disk, and improving the utilization rate of the hard disk, the work efficiency of the read-write equipment is improved.
Referring to fig. 2, a flowchart of another hard disk adapting method provided in an embodiment of the present application is applied to a tooling system, where the tooling system is connected to a hard disk, and the method includes the following steps.
S201, detecting the hard disk to obtain the grade identification of the hard disk.
The tooling system may be a device, such as a computer, having processing capabilities and read-write capabilities.
The hard disk is detected, so that the performance of the hard disk can be obtained, the grade identification of the hard disk is determined according to the performance of the hard disk, specifically, the automatic detection analysis and report information of the hard disk can be obtained through detection, and the information can comprise the unique identification and the grade identification of the hard disk. The unique identifier of the hard disk is an identifier capable of identifying different hard disks, for example, a serial number of the hard disk, and the rank identifier of the hard disk is an identifier capable of embodying the performance of the hard disk, for example, "a", "B", "C", "D", and "E", which respectively represent the performance: excellent, good, medium, poor and inferior.
S202, generating a marking file according to the grade identification of the hard disk.
After the grade mark of the hard disk is determined, a mark file can be generated according to the grade mark of the hard disk. Specifically, the level identifier may be encrypted to obtain a tag file, or the level identifier of the hard disk may be verified by a preset verification algorithm to obtain a third operation value, and the tag file is generated according to the third operation value, or the unique identifier of the hard disk may be obtained, and the unique identifier and the level representation of the hard disk may be encrypted according to an encryption key pre-stored in the tool system to obtain the tag file, or the unique identifier and the level identifier of the hard disk may be verified by the preset verification algorithm to obtain a first operation value, and the tag file may be generated according to the first operation value, or the first operation value obtained by the verification operation may be encrypted according to the encryption key pre-stored in the tool system to obtain the tag file.
It is understood that, in order to further improve the security of the markup file, in the embodiment of the present application, the generated markup file may also be signed.
And S203, writing the mark file into a preset position of the hard disk.
After the markup file is generated, the generated markup file may be written in a preset location of the hard disk. The preset location may be a location for storing user-defined data, which may not be modified by default.
When the hard disk is connected with the read-write equipment, the read-write equipment can acquire the label file in the hard disk, and judge whether the grade identifier of the hard disk is matched with the grade identifier of the read-write equipment or not according to the label file, if so, the performance of the hard disk is matched with that of the read-write equipment, the read-write equipment can carry out read-write operation on the hard disk, if not, the performance of the hard disk is not matched with that of the read-write equipment, for example, the high-performance read-write equipment is connected with the low-performance hard disk, or the low-performance read-write equipment is connected with the high-performance hard disk, at the moment, the overall performance of the storage system is low, the cost is high, the effective utilization of the hard disk and the read-write equipment is not facilitated, and at the moment, a prompt can be carried out, so that a user can connect other hard disks for the read-write equipment according to the prompt.
In the embodiment of the application, in order to prevent illegal personnel from maliciously marking the hard disk, the tool system can be verified, and only if the tool system passes the verification, the marking file can be written in the preset position of the hard disk.
Specifically, the tooling system may send attribute information of the tooling system to the authorization device, so that the authorization device authenticates the tooling system according to the attribute information. The attribute information of the tool system may include at least one of information of a Central Processing Unit (CPU), memory information, a serial number of a boot disk, a Media Access Control (MAC) address, an Identification (ID) of an operating system, and the like in the tool system. The authorization device may be a device with data processing capabilities, such as a computer device.
In order to enhance the security of the attribute information of the tool system, the attribute information of the tool system may be encrypted according to an encryption key pre-stored in the tool system to obtain encrypted attribute information, and the encrypted attribute information of the tool system may be sent to the authorization device.
The authorization device receives the attribute information of the tool system, authenticates the tool system according to the attribute information of the tool system, specifically, the authorization device can judge whether the attribute information of the tool system is matched with the attribute information stored in advance, if yes, the authentication is passed, an authentication file is generated, and if not, the authentication is not passed.
After receiving the encrypted attribute information of the tool system, the authorization device can decrypt the attribute information of the tool system according to a decryption key prestored by the authorization device, wherein the decryption key corresponds to the encryption key prestored by the tool system, if the attribute information of a plaintext can be obtained, the decryption is successful, the authentication can be considered to pass, an authentication file is generated, and if the decryption is not successful, the authentication is not considered to pass. Of course, the authorization device may also determine whether the attribute information of the tooling system matches the attribute information stored in advance.
The authorization device generates an authentication file, which may specifically be that the authorization device uses the acquired attribute information of the tool system as the authentication file, or signs the acquired attribute information of the tool system to obtain the authentication file, or decrypts the encrypted attribute information of the tool system according to a decryption key stored in advance by the authorization device to obtain the attribute information of the tool system, and signs the attribute information to obtain the authentication file.
After the authorization equipment generates the authentication file, the authentication file can be sent to the tooling system, and the authentication file can also be stored to a position designated by the tooling system, so that the authorization of the tooling system is completed.
The tooling system may acquire the authentication file from the authorization device, for example, receive the authentication file from the authorization device, or read the authentication file from the authorization device at a specified location.
After the authentication file is obtained, the authentication file may be verified. Specifically, whether the attribute information in the acquired authentication file is matched with the attribute information of the tool system or not can be judged, and before judgment, the authentication file can be subjected to label release. And if the attribute information in the acquired authentication file is matched with the attribute information of the tool system, the verification is considered to be passed, and S101 can be executed at the moment, if the attribute information is not matched, the verification is considered not to be passed, and at the moment, prompting can be performed, the process can be exited, and generation and writing of the marking file are not performed.
In the method for adapting a hard disk provided by the embodiment of the application, the hard disk is connected with a tool system, the hard disk is detected, and a grade identifier of the hard disk is obtained, wherein the grade identifier of the hard disk is determined according to the performance of the hard disk, for example, higher performance corresponds to higher grade, a label file is generated according to the grade identifier of the hard disk, and the label file is written into a preset position of the hard disk, so that when a read-write device is connected with the hard disk, whether the grade identifier of the hard disk is matched with the grade identifier of the read-write device can be determined according to the label file, and whether the hard disk is matched with the read-write device is judged. By writing the mark file in the hard disk, the performance of the hard disk can be verified for the read-write equipment, so that the problem that the read-write equipment is not matched with the connected hard disk is solved, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
For convenience of understanding, the method for hard disk adaptation provided in the foregoing embodiments of the present application is described below with reference to a specific scenario, which is shown in fig. 3 and may include the following steps.
S301, the tooling system sends the encrypted attribute information of the tooling system to the authorization equipment.
The attribute information of the tool system includes information of a Central Processing Unit (CPU), memory information, a serial number of a boot disk, a Media Access Control (MAC) address of a network card, an Identification (ID) of an operating system, and the like.
The encrypted attribute information of the tool system is obtained by encrypting the attribute information of the tool system through an encryption key pre-stored in the tool system.
S302, the authorization device decrypts the received encrypted attribute information and generates an authentication file according to the attribute information obtained by decryption.
Specifically, the authorization device decrypts the encrypted attribute information by using a decryption key pre-stored in the authorization device, where the decryption key pre-stored in the authorization device corresponds to the encryption key pre-stored in the tooling system. If the encrypted attribute information is successfully decrypted, the encrypted attribute information is considered to pass the authentication, and at the moment, the attribute information obtained by decryption is signed to generate an authentication file.
And after the authentication file is generated, the authorization equipment stores the authentication file in a position designated by the tooling system.
And S303, the tooling system acquires the authentication file and verifies the authentication file.
The tooling system can read the authentication file from the designated position, and carries out the label release on the authentication file to obtain the decryption attribute information. The tool system corresponds to the way of signature removal of the authentication file and the way of signature of the authorization equipment on the attribute information.
And verifying the authentication file, specifically, judging whether the decrypted attribute information is matched with the attribute information of the tool system, if so, executing S304, and if not, prompting and exiting the process.
And S304, connecting the tool system with the hard disk, and detecting the hard disk to obtain the grade identification of the hard disk.
Specifically, the tool system may detect the performance of the hard disk, such as the size of the memory, the read-write speed, and the like, and determine the grade identifier of the hard disk according to the performance of the hard disk, for example, determine that the grade identifier of the hard disk is "B", which indicates that the performance of the hard disk is good.
S305, generating a marking file according to the grade mark of the hard disk.
Specifically, the unique identifier "abc" of the hard disk is obtained, hash operation is performed on the unique identifier "abc" of the hard disk and the level identifier "B" of the hard disk to obtain a first operation value "M1", and RSA encryption and signature are performed on the first operation value "M1" by using gpg to generate a tag file "M2".
S306, writing the mark file into the preset position of the hard disk.
Specifically, the preset position may be a position for storing user-defined data.
And S307, connecting the reading and writing equipment with the hard disk, and acquiring the mark file of the preset position of the hard disk.
The read-write device can read the label file "M2" at the preset position of the hard disk.
And S308, the read-write equipment judges whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not according to the label file, and if not, prompting is carried out.
Specifically, the read-write device may perform the decryption and the decryption on the markup file "M2" to obtain the first operation value "M1".
The method comprises the steps of obtaining a unique identifier 'abc' of a hard disk connected with the read-write equipment, if the grade identifier of the read-write equipment is 'B', indicating that the performance of the read-write equipment is good, carrying out hash operation on the unique identifier 'abc' of the hard disk and the grade identifier 'B' of the read-write equipment to obtain a second operation value 'N1', matching a first operation value 'M1' with a second operation value 'N1', indicating that the grade identifier of the read-write equipment is matched with the grade identifier of the hard disk, matching the read-write equipment with the hard disk, and carrying out read-write operation on the hard disk by the read-write equipment.
The method comprises the steps of obtaining a unique identifier 'abc' of a hard disk connected with the read-write equipment, if the grade identifier of the read-write equipment is 'A', indicating that the performance of the read-write equipment is good, carrying out hash operation on the unique identifier 'abc' of the hard disk and the grade identifier 'A' of the read-write equipment to obtain a second operation value 'N2', wherein the first operation value 'M1' is not matched with the second operation value 'N2', indicating that the grade identifier of the read-write equipment is not matched with the grade identifier of the hard disk, and then the read-write equipment is not matched with the hard disk.
In the method for adapting the hard disk, the hard disk is connected with the hard disk through the tool system, the hard disk is detected, the grade identification of the hard disk is obtained, the mark file is generated according to the grade identification of the hard disk, the mark file is written into the preset position of the hard disk, the read-write equipment is connected with the hard disk, the mark file of the preset position of the hard disk is obtained, whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not is judged according to the mark file, if the grade identification of the hard disk is not matched with the grade identification of the read-write equipment, the performance grade of the hard disk and the performance grade of the read-write equipment are not matched, and prompt can be carried out, so that the problem that the read-write equipment is not matched with the connected hard disk is avoided, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
Based on the method for hard disk adaptation provided by the above embodiment, the embodiment of the present application further provides a device for hard disk adaptation, and the working principle of the device is described in detail below with reference to the accompanying drawings.
Referring to fig. 4, which is a block diagram of a structure of an apparatus for hard disk adaptation provided in an embodiment of the present application, the apparatus is a read-write device, where the read-write device is connected to a hard disk, and the apparatus includes:
a markup file obtaining unit 110, configured to obtain a markup file of a preset position of the hard disk, where the markup file is generated by the tool system according to a level identifier of the hard disk, and the level identifier of the hard disk is determined according to performance of the hard disk;
a first judging unit 120, configured to judge whether the level identifier of the hard disk matches the level identifier of the read-write device, and if not, activate a prompting unit; the grade mark of the read-write equipment is determined according to the performance of the read-write equipment
The prompting unit 130 is configured to perform prompting.
Optionally, the first determining unit includes:
the first decryption unit is used for decrypting the markup file according to a decryption key prestored by the read-write equipment to obtain a first operation value, and the first operation value is obtained by verifying the unique identifier of the hard disk and the grade identifier of the hard disk by the tool system through a preset verification algorithm;
the first unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
the first verification operation unit is used for performing verification operation on the acquired unique identifier of the hard disk and the grade identifier of the read-write equipment through the preset verification algorithm to obtain a second operation value;
and the second judgment unit is used for judging whether the first operation value and the second operation value are matched.
Optionally, the first determining unit includes:
the second decryption unit is used for decrypting the markup file according to a decryption key pre-stored by the read-write equipment to obtain the grade identifier of the hard disk;
a third judging unit, configured to obtain a unique identifier of the hard disk, and judge whether the unique identifier is consistent with a unique identifier obtained by decrypting the markup file;
and the fourth judging unit is used for judging whether the first-level identification is matched with the second-level identification of the read-write equipment or not if the judgment result of the third judging unit is consistent.
In the hard disk adapting device provided by the embodiment of the application, the reading and writing equipment is connected with the hard disk to obtain the mark file of the preset position of the hard disk, the mark file is generated by the tool system in advance according to the grade mark of the hard disk, wherein the grade mark of the hard disk is determined according to the performance of the hard disk, for example, the higher performance corresponds to the higher grade, whether the grade mark of the hard disk is matched with the grade mark of the read-write equipment is judged, wherein, the grade mark of the read-write equipment is determined according to the performance of the read-write equipment, for example, higher performance corresponds to higher grade, if the grade mark of the hard disk is not matched with the grade mark of the read-write equipment, the performance grade of the hard disk is not matched with that of the read-write equipment, then prompt can be carried out, therefore, the problem that the read-write equipment is not matched with the connected hard disk is avoided, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
Referring to fig. 5, which is a block diagram of a structure of another hard disk adapting device provided in the embodiment of the present application, the device is a tooling system, where the tooling system is connected to a hard disk, and the device includes:
a level identifier obtaining unit 210, configured to detect the hard disk to obtain a level identifier of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk;
a markup file generating unit 220, configured to generate a markup file according to the level identifier of the hard disk;
a flag file writing unit 230, configured to write the flag file into a preset position of the hard disk, so that when the read-write device is connected to the hard disk, whether the level identifier of the hard disk matches the level identifier of the read-write device is determined according to the flag file.
Optionally, the markup file generating unit includes:
the second unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
and the first encryption unit is used for encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key pre-stored by the tool system to obtain a marked file.
Optionally, the first encryption unit includes:
the second verification operation unit is used for performing verification operation on the unique identifier of the hard disk and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value;
and the second encryption unit is used for encrypting the first operation value according to an encryption key pre-stored by the tool system to obtain a marker file.
Optionally, the apparatus further comprises:
the attribute information sending unit is used for sending the attribute information of the tool system to authorization equipment so that the authorization equipment can authenticate the attribute information of the tool system;
an authentication file acquisition unit configured to acquire an authentication file from the authorization apparatus; the authentication file is generated when the authorization equipment passes the authentication of the attribute information of the tooling system;
and the verification unit is used for verifying the authentication file and activating the grade identification acquisition unit when the authentication file passes the verification.
In another apparatus for adapting a hard disk provided in this application, a tool system is connected to the hard disk, the hard disk is detected to obtain a level identifier of the hard disk, where the level identifier of the hard disk is determined according to a performance of the hard disk, for example, a higher performance corresponds to a higher level, a tag file is generated according to the level identifier of the hard disk, and the tag file is written into a preset position of the hard disk, so that when a read-write device is connected to the hard disk, whether the level identifier of the hard disk matches with the level identifier of the read-write device can be determined according to the tag file, thereby determining whether the hard disk matches with the read-write device. By writing the mark file in the hard disk, the performance of the hard disk can be verified for the read-write equipment, so that the problem that the read-write equipment is not matched with the connected hard disk is solved, the utilization rate of the hard disk is improved, and the working efficiency of the read-write equipment is improved.
Referring to fig. 6, this figure is a system for hard disk adaptation provided in this embodiment of the present application, where the system includes:
the tool system 100 is used for detecting the hard disk when being connected with the hard disk to obtain the grade identification of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk; generating a marking file according to the grade identification of the hard disk; writing the mark file into a preset position of the hard disk;
the read-write equipment 200 is used for acquiring a mark file of a preset position of the hard disk when the read-write equipment is connected with the hard disk; and judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment, if not, prompting, and determining the grade identification of the read-write equipment according to the performance of the read-write equipment.
In the system of hard disk adaptation that this application embodiment provided, be connected with the hard disk through the frock system, detect the hard disk, obtain the grade sign of hard disk, generate the mark file according to the grade sign of hard disk, write the mark file into the preset position of hard disk, be connected with the hard disk through reading and writing equipment, acquire the mark file of the preset position of hard disk, judge whether the grade sign of hard disk and reading and writing equipment's grade sign match according to the mark file, if mismatch, it unmatched to explain the performance grade of hard disk and reading and writing equipment, can indicate, thereby avoid reading and writing equipment and the problem of the hard disk nonconformity of being connected, thereby improve the utilization ratio of hard disk, improve reading and writing equipment's work efficiency.
When introducing elements of various embodiments of the present application, the articles "a," "an," "the," and "said" are intended to mean that there are one or more of the elements. The terms "comprising," "including," and "having" are intended to be inclusive and mean that there may be additional elements other than the listed elements.
It should be noted that, as one of ordinary skill in the art would understand, all or part of the processes of the above method embodiments may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when executed, the computer program may include the processes of the above method embodiments. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, it is relatively simple to describe, and reference may be made to some descriptions of the method embodiment for relevant points. The above-described apparatus embodiments are merely illustrative, and the units and modules described as separate components may or may not be physically separate. In addition, some or all of the units and modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is directed to embodiments of the present application and it is noted that numerous modifications and adaptations may be made by those skilled in the art without departing from the principles of the present application and are intended to be within the scope of the present application.

Claims (13)

1. A method for hard disk adaptation is characterized in that the method is applied to a read-write device, the read-write device is connected with a hard disk, and the method comprises the following steps:
acquiring a mark file of a preset position of the hard disk, wherein the mark file is generated by a tool system according to a grade identifier of the hard disk, and the grade identifier of the hard disk is determined according to the performance of the hard disk;
judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not, if not, prompting, wherein the grade identification of the read-write equipment is determined according to the performance of the read-write equipment;
the judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment comprises the following steps:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a grade identifier of the hard disk obtained by decryption and a unique identifier obtained by decryption;
acquiring a unique identifier of a hard disk connected with the read-write equipment;
judging whether the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption;
and if the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption, judging whether the grade identifier of the hard disk obtained by decryption is matched with the grade identifier of the read-write equipment or not.
2. The method of claim 1, wherein the determining whether the level identifier of the hard disk matches the level identifier of the read/write device comprises:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a first operation value, wherein the first operation value is obtained by verifying the unique identifier of the hard disk and the grade identifier of the hard disk by the tool system through a preset verification algorithm;
acquiring a unique identifier of the hard disk;
verifying the acquired unique identifier of the hard disk and the grade identifier of the read-write equipment by the preset verification algorithm to obtain a second calculated value;
and judging whether the first operation value and the second operation value are matched.
3. A method for adapting a hard disk is applied to a tool system, the tool system is connected with the hard disk, and the method comprises the following steps:
detecting the hard disk to obtain a grade identifier of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk;
generating a marking file according to the grade identification of the hard disk;
writing the mark file into a preset position of the hard disk so that when a read-write device is connected with the hard disk, whether the grade identification of the hard disk is matched with the grade identification of the read-write device is determined according to the mark file;
wherein, the determining whether the grade identifier of the hard disk is matched with the grade identifier of the read-write device according to the markup file includes:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a grade identifier of the hard disk obtained by decryption and a unique identifier obtained by decryption;
acquiring a unique identifier of a hard disk connected with the read-write equipment;
judging whether the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption;
and if the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption, judging whether the grade identifier of the hard disk obtained by decryption is matched with the grade identifier of the read-write equipment or not.
4. The method of claim 3, wherein generating a markup file according to the hierarchical identifier of the hard disk comprises:
acquiring a unique identifier of the hard disk;
and encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key prestored by the tool system to obtain a marked file.
5. The method according to claim 4, wherein the encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key pre-stored by the tool system to obtain a markup file comprises:
carrying out verification operation on the unique identifier of the hard disk and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value;
and encrypting the first operation value according to an encryption key prestored by the tool system to obtain a marker file.
6. The method of claim 3, wherein prior to said detecting said hard disk, said method further comprises:
sending the attribute information of the tooling system to authorization equipment so that the authorization equipment can authenticate the attribute information of the tooling system;
acquiring an authentication file from the authorization equipment; the authentication file is generated when the authorization equipment passes the authentication of the attribute information of the tooling system;
and verifying the authentication file, and executing the step of detecting the hard disk when the authentication file passes the verification.
7. A read-write device, characterized in that the read-write device is connected to a hard disk, the read-write device comprising:
the system comprises a mark file acquisition unit, a mark file acquisition unit and a file management unit, wherein the mark file acquisition unit is used for acquiring a mark file of a preset position of the hard disk, the mark file is generated by a tool system according to a grade identifier of the hard disk, and the grade identifier of the hard disk is determined according to the performance of the hard disk;
the first judging unit is used for judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment or not, and if not, the prompting unit is activated; the grade mark of the read-write equipment is determined according to the performance of the read-write equipment
The prompting unit is used for prompting;
the first judgment unit includes:
the second decryption unit is used for decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a grade identifier of the hard disk obtained by decryption and a unique identifier obtained by decryption;
the third judgment unit is used for acquiring the unique identifier of the hard disk connected with the read-write equipment and judging whether the acquired unique identifier of the hard disk is matched with the unique identifier obtained by decryption;
and the fourth judging unit is used for judging whether the grade identifier of the hard disk obtained by decryption is matched with the grade identifier of the read-write equipment or not if the judgment result of the third judging unit is consistent.
8. The reading-writing apparatus according to claim 7, wherein the first judgment unit includes:
the first decryption unit is used for decrypting the markup file according to a decryption key prestored by the read-write equipment to obtain a first operation value, and the first operation value is obtained by verifying the unique identifier of the hard disk and the grade identifier of the hard disk by the tool system through a preset verification algorithm;
the first unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
the first verification operation unit is used for performing verification operation on the acquired unique identifier of the hard disk and the grade identifier of the read-write equipment through the preset verification algorithm to obtain a second operation value;
and the second judgment unit is used for judging whether the first operation value and the second operation value are matched.
9. The utility model provides a frock system, its characterized in that, frock system and hard disk connection, frock system includes:
the grade identification obtaining unit is used for detecting the hard disk to obtain the grade identification of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk;
a label file generating unit, configured to generate a label file according to the level identifier of the hard disk;
a tag file writing unit, configured to write the tag file into a preset location of the hard disk, so that when a read-write device is connected to the hard disk, whether a level identifier of the hard disk matches a level identifier of the read-write device is determined according to the tag file;
wherein, the determining whether the grade identifier of the hard disk is matched with the grade identifier of the read-write device according to the markup file includes:
decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a grade identifier of the hard disk obtained by decryption and a unique identifier obtained by decryption;
acquiring a unique identifier of a hard disk connected with the read-write equipment;
judging whether the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption;
and if the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption, judging whether the grade identifier of the hard disk obtained by decryption is matched with the grade identifier of the read-write equipment or not.
10. The tooling system of claim 9, wherein the markup file generating unit comprises:
the second unique identifier acquisition unit is used for acquiring the unique identifier of the hard disk;
and the first encryption unit is used for encrypting the unique identifier of the hard disk and the grade identifier of the hard disk according to an encryption key pre-stored by the tool system to obtain a marked file.
11. The tooling system of claim 10, wherein the first encryption unit comprises:
the second verification operation unit is used for performing verification operation on the unique identifier of the hard disk and the grade identifier of the hard disk through a preset verification algorithm to obtain a first operation value;
and the second encryption unit is used for encrypting the first operation value according to an encryption key pre-stored by the tool system to obtain a marker file.
12. The tooling system of claim 9, further comprising:
the attribute information sending unit is used for sending the attribute information of the tool system to authorization equipment so that the authorization equipment can authenticate the attribute information of the tool system;
an authentication file acquisition unit configured to acquire an authentication file from the authorization apparatus; the authentication file is generated when the authorization equipment passes the authentication of the attribute information of the tooling system;
and the verification unit is used for verifying the authentication file and activating the grade identification acquisition unit when the authentication file passes the verification.
13. A system for hard disk adaptation, the system comprising:
the tool system is used for detecting the hard disk when the tool system is connected with the hard disk to obtain the grade identification of the hard disk; the grade identification of the hard disk is determined according to the performance of the hard disk; generating a marking file according to the grade identification of the hard disk; writing the mark file into a preset position of the hard disk;
the read-write equipment is used for acquiring a mark file of a preset position of the hard disk when the read-write equipment is connected with the hard disk; judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment, if not, prompting, and determining the grade identification of the read-write equipment according to the performance of the read-write equipment, wherein the judging whether the grade identification of the hard disk is matched with the grade identification of the read-write equipment comprises the following steps: decrypting the mark file according to a decryption key prestored by the read-write equipment to obtain a grade identifier of the hard disk obtained by decryption and a unique identifier obtained by decryption;
acquiring a unique identifier of a hard disk connected with the read-write equipment;
judging whether the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption;
and if the obtained unique identifier of the hard disk is matched with the unique identifier obtained by decryption, judging whether the grade identifier of the hard disk obtained by decryption is matched with the grade identifier of the read-write equipment or not.
CN201810931026.6A 2018-08-15 2018-08-15 Hard disk adaptation method, device and system Active CN109189333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810931026.6A CN109189333B (en) 2018-08-15 2018-08-15 Hard disk adaptation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810931026.6A CN109189333B (en) 2018-08-15 2018-08-15 Hard disk adaptation method, device and system

Publications (2)

Publication Number Publication Date
CN109189333A CN109189333A (en) 2019-01-11
CN109189333B true CN109189333B (en) 2021-10-15

Family

ID=64918006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810931026.6A Active CN109189333B (en) 2018-08-15 2018-08-15 Hard disk adaptation method, device and system

Country Status (1)

Country Link
CN (1) CN109189333B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110674522B (en) * 2019-09-27 2022-06-17 苏州浪潮智能科技有限公司 Hard disk encryption method, device, server, system and storage medium
CN111680334B (en) * 2020-06-11 2023-05-09 深圳市网心科技有限公司 Disk security access method, device, equipment and medium
CN118567916A (en) * 2023-02-28 2024-08-30 华为技术有限公司 Method and related device for prolonging service life of hard disk

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510145A (en) * 2009-03-27 2009-08-19 杭州华三通信技术有限公司 Storage system management method and apparatus
CN102033717A (en) * 2010-12-07 2011-04-27 清华大学 Data storage method and system based on RAID (Redundant Array of Inexpensive Disk)
CN103092527A (en) * 2011-10-31 2013-05-08 深圳市快播科技有限公司 Storage method and storage system for small files
CN104133750A (en) * 2014-08-20 2014-11-05 浪潮(北京)电子信息产业有限公司 Method and system for testing compatibility adaptability of host and storage device
CN106875980A (en) * 2017-02-17 2017-06-20 紫光华山信息技术有限公司 Method for testing hard disk and device
CN107341077A (en) * 2017-06-30 2017-11-10 郑州云海信息技术有限公司 A kind of method and its system for hard disk screening
CN107688756A (en) * 2017-08-08 2018-02-13 深圳市海邻科信息技术有限公司 Hard disk control method, equipment and readable storage medium storing program for executing
CN107918572A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of high-volume hard disk detection method, device and platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8375190B2 (en) * 2007-12-11 2013-02-12 Microsoft Corporation Dynamtic storage hierarachy management

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510145A (en) * 2009-03-27 2009-08-19 杭州华三通信技术有限公司 Storage system management method and apparatus
CN102033717A (en) * 2010-12-07 2011-04-27 清华大学 Data storage method and system based on RAID (Redundant Array of Inexpensive Disk)
CN103092527A (en) * 2011-10-31 2013-05-08 深圳市快播科技有限公司 Storage method and storage system for small files
CN104133750A (en) * 2014-08-20 2014-11-05 浪潮(北京)电子信息产业有限公司 Method and system for testing compatibility adaptability of host and storage device
CN107918572A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 A kind of high-volume hard disk detection method, device and platform
CN106875980A (en) * 2017-02-17 2017-06-20 紫光华山信息技术有限公司 Method for testing hard disk and device
CN107341077A (en) * 2017-06-30 2017-11-10 郑州云海信息技术有限公司 A kind of method and its system for hard disk screening
CN107688756A (en) * 2017-08-08 2018-02-13 深圳市海邻科信息技术有限公司 Hard disk control method, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN109189333A (en) 2019-01-11

Similar Documents

Publication Publication Date Title
US11604633B2 (en) Trusted startup methods and apparatuses of blockchain integrated station
US9811478B2 (en) Self-encrypting flash drive
CN110798315B (en) Data processing method and device based on block chain and terminal
WO2017041603A1 (en) Data encryption method and apparatus, mobile terminal, and computer storage medium
CN109189333B (en) Hard disk adaptation method, device and system
CN109951295B (en) Key processing and using method, device, equipment and medium
JP5827692B2 (en) Bound data card and mobile host authentication method, apparatus and system
CN103635911A (en) Storage device and host device for protecting content and method thereof
CN110362427A (en) A kind of processing method of image file, system, BMC and readable storage medium storing program for executing
CN106682521B (en) File transparent encryption and decryption system and method based on driver layer
CN102855574A (en) Method and system for identifying commodity information based on NFC (Near Field Communication)
CN202870900U (en) NFC (Near Field Communication)-based commodity information identification system
TW201939337A (en) Behavior recognition, data processing method and apparatus
CA3239475A1 (en) Key recovery based on contactless card authentication
CN102289607A (en) Universal serial bus (USB) device verification system and method
CN103077359A (en) Data decryption method, device and system
KR101630462B1 (en) Apparatus and Method for Securing a Keyboard
CN101609492B (en) Method and system for encrypting/decrypting embedded device
CN108616528A (en) A kind of cloud storage method and system
JP2006268513A (en) Log-on management device for terminal device
CN114244565B (en) Key distribution method, device, equipment and storage medium
CN111984605B (en) Small file management method, electronic equipment and storage device
CN111130788B (en) Data processing method and system, data reading method and iSCSI server
CN112825093B (en) Security baseline checking method, host, server, electronic device and storage medium
US20090092019A1 (en) Information processing apparatus, disc, and information processing method, and computer program used therewith

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