Search

CN-121997390-A - Method, device and medium for soft destruction of server hard disk

CN121997390ACN 121997390 ACN121997390 ACN 121997390ACN-121997390-A

Abstract

The invention provides a soft destruction method, a device and a medium for a hard disk of a server, which relate to the technical field of servers, wherein when an external power supply of the server normally supplies power, the system normally supplies power for the hard disk, and destruction signals are triggered through destruction keys; when the external power supply of the server is powered off, the power supply circuit is switched to a backup power supply through the power supply switching module, and the destruction signal is triggered through the destruction key under the power supply state of the backup power supply. The invention solves the technical problems that the prior art relies on the normal power supply state of the server equipment to perform soft destruction operation, the working state cannot be normally maintained under emergency conditions such as power failure, and the destruction operation cannot be completed, so that data cannot be safely cleared, and the risk of data leakage is caused.

Inventors

  • HE JINYI

Assignees

  • 联想长风科技(北京)有限公司

Dates

Publication Date
20260508
Application Date
20260129

Claims (10)

  1. 1. The soft destruction method for the hard disk of the server is characterized by comprising the following steps of: when the external power supply of the server supplies power normally, the system supplies power for the hard disk, and a destruction signal is triggered through a destruction key; When the external power supply of the server is powered off, the power supply circuit is switched to a backup power supply through the power supply switching module, and the destruction signal is triggered through the destruction key under the power supply state of the backup power supply.
  2. 2. The soft destruction method of a hard disk of a server as claimed in claim 1, wherein the power supply switching module comprises a logic circuit composed of a P-channel MOS transistor and an N-channel MOS transistor, and is used for automatically switching main and standby power supply paths according to a system power supply state.
  3. 3. The method for soft destruction of hard disk of server as claimed in claim 2, wherein the hard disk is powered by a system normal power supply, comprising: When the normal power supply of the system is effective, a third MOS tube in the logic circuit is conducted, the grid potential of a second MOS tube is pulled down and is in a low level, the second MOS tube is conducted, the first MOS tube is turned off, the backup power supply is disconnected, and the hard disk is powered through the normal power supply of the system.
  4. 4. The method for soft destruction of hard disk of server as claimed in claim 2, wherein when the external power supply of the server is powered off, the power supply circuit is switched to the backup power supply by the power supply switching module, comprising: When the normal power supply of the system fails, a third MOS tube in the logic circuit is turned off, the grid potential of a second MOS tube is pulled up to a high level by the backup power supply to be turned off, and a first MOS tube is turned on to connect the backup power supply to the power input end of the hard disk.
  5. 5. The method for soft destruction of a hard disk of a server as claimed in claim 1, wherein the destruction keys comprise a first-stage destruction key and a second-stage destruction key; the function of the first-stage destroying key is soft destroying, and the function of the second-stage destroying key is destroying after overwriting 0.
  6. 6. The method for soft destruction of a hard disk of a server according to claim 2, wherein triggering the destruction signal by the destruction key comprises: in the logic circuit, the destruction key is electrically connected with a destruction pin of the hard disk, and when the destruction key is pressed down, the destruction signal level is pulled down to trigger the destruction of the hard disk.
  7. 7. The method for soft destruction of hard disk of server as claimed in claim 1, wherein the backup power source is a rechargeable battery or a super capacitor.
  8. 8. The method for soft destruction of hard disk of server as claimed in claim 1, wherein, when the external power supply of the server supplies power normally, the residual power of the backup power supply is detected, and when the residual power is lower than a preset threshold, the backup power supply is charged by the normal power supply of the system.
  9. 9. A soft destruction device for a server hard disk is characterized in that, a step for implementing a server hard disk soft destruction method according to any one of claims 1 to 8, comprising: The hard disk supports a soft destruction function; the system normal power supply is used for supplying power to the hard disk when the external power supply of the server supplies power normally; The backup power supply is used for supplying power to the hard disk when the external power supply is powered off; the destroying button is used for triggering a destroying signal; And the power supply switching module is used for switching the power supply circuit from the normal power supply of the system to the backup power supply when the external power supply is powered off.
  10. 10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed, implements the steps of a server hard disk soft destruction method according to any one of claims 1 to 8.

Description

Method, device and medium for soft destruction of server hard disk Technical Field The invention relates to the technical field of servers, in particular to a method, a device and a medium for soft destruction of a server hard disk. Background The server hard disk is used as a storage device and usually carries a large amount of user data, and in some application scenarios, it is important to ensure thorough destruction of the hard disk data, especially when the hard disk is recovered or discarded, not only physical destruction of the hardware is ensured, but also data recovery is prevented, which is the soft destruction function of the hard disk. Soft destruction is a technical means for deleting or covering data by controlling a hard disk through software, and does not involve physically damaging the hard disk, but logically deletes, covers or destroys the data in the hard disk through specific program instructions, so as to ensure that the data cannot be recovered. In the prior art, soft destruction operation is performed depending on the normal power supply state of the server equipment, namely, the data destruction of the hard disk is triggered by the power supply of the system and the destruction signal generated by CPLD logic, but under emergency situations such as power failure, the equipment cannot normally supply power, the CPLD cannot work, and the hard disk cannot be supported by power. When the power supply fails, the working state of the whole system cannot be normally maintained, and a trigger signal for destroying the keys cannot be processed by the system, so that the destroying operation cannot be completed, further, the data is still stored in the hard disk and cannot be safely cleared, and the risk of data leakage is caused. Disclosure of Invention The application provides a method, a device and a medium for soft destruction of a server hard disk, and aims to solve the technical problems that in the prior art, soft destruction operation is carried out depending on the normal power supply state of server equipment, the working state cannot be normally maintained under emergency conditions such as power failure, destruction operation cannot be completed, data cannot be safely cleared, and accordingly data leakage risks are caused. The application discloses a first aspect of the method for soft destruction of a server hard disk, which comprises the steps of supplying power to the hard disk by a system normal power supply when the external power supply of the server is normally supplied, triggering a destruction signal through a destruction key, switching a power supply circuit to a backup power supply through a power supply switching module when the external power supply of the server is disconnected, and triggering the destruction signal through the destruction key in a backup power supply state. Further, the power supply switching module comprises a logic circuit formed by a P-channel MOS tube and an N-channel MOS tube and is used for automatically switching the main and standby power supply paths according to the system power supply state. Further, when the normal power supply of the system is effective, the third MOS tube in the logic circuit is conducted, the grid potential of the second MOS tube is pulled down and is in a low level, the second MOS tube is conducted, the first MOS tube is turned off, the backup power supply is disconnected, and the normal power supply of the system is used for supplying power to the hard disk. When the external power supply of the server is powered off, the power supply circuit is switched to a backup power supply through the power supply switching module, wherein when the normal power supply of the system fails, the third MOS tube in the logic circuit is turned off, the grid potential of the second MOS tube is pulled up to a high level by the backup power supply to be turned off, and the first MOS tube is turned on to connect the backup power supply to the power supply input end of the hard disk. Further, the destroying keys comprise a first-stage destroying key and a second-stage destroying key, wherein the function of the first-stage destroying key is soft destroying, and the function of the second-stage destroying key is destroying after overwriting 0. Further, the destroying signal is triggered by the destroying key, and the destroying key is electrically connected with the destroying pin of the hard disk in the logic circuit, and when the destroying key is pressed down, the destroying signal level is pulled down to trigger the hard disk to destroy. Further, the backup power supply is a rechargeable battery or a super capacitor. Further, when the external power supply of the server supplies power normally, the residual electric quantity of the backup power supply is detected, and when the residual electric quantity is lower than a preset threshold value, the backup power supply is charged through the system normal power supply. The application dis