Server hard disk soft destruction method and device and medium
By using a power switching module and backup power supply in the server hard drive, the system ensures that the hard drive can still perform data destruction operations in the event of a power outage, thus solving the data leakage problem caused by power outages in existing technologies and achieving secure data erasure of the hard drive.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- 联想长风科技(北京)有限公司
- Filing Date
- 2026-01-29
- Publication Date
- 2026-05-08
AI Technical Summary
Existing technologies for soft destruction of server hard drives rely on the device's normal power supply. In emergency situations such as power outages, the device cannot maintain its operation, resulting in data that cannot be safely erased and posing a risk of data leakage.
The power switching module uses a logic circuit composed of P-channel MOSFETs and N-channel MOSFETs to automatically switch between primary and backup power supply paths, ensuring that the hard drive continues to be powered by the backup power supply when the external power supply fails, and triggering the destruction signal by pressing the destroy button.
Data destruction can be completed under any power condition, avoiding the risk of data leakage and improving data security.
Smart Images

Figure CN121997390A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server technology, and specifically to a method, apparatus, and medium for soft destruction of server hard drives. Background Technology
[0002] Server hard drives, as storage devices, typically hold large amounts of user data. In certain application scenarios, ensuring the complete destruction of hard drive data is crucial, especially when the hard drive is recycled or abandoned. It's essential not only to prevent physical damage to the hardware but also to prevent data recovery. This is where the hard drive's soft destruction function comes in. Soft destruction is a technique that uses software to control the deletion or overwriting of data on the hard drive. It doesn't involve physical damage to the hard drive; instead, it uses specific program instructions to logically delete, overwrite, or destroy the data on the hard drive, ensuring that the data cannot be recovered.
[0003] Current technology relies on the server device being powered normally for soft data erasure. This involves triggering data deletion on the hard drive through system power supply and CPLD logic generating a destruction signal. However, in emergencies such as power outages, the device cannot supply power, the CPLD ceases operation, and the hard drive loses power. Because the entire system cannot maintain its normal operation during power failure, the trigger signal for the destroy button cannot be processed by the system, thus failing to complete the destruction operation. Consequently, data remains on the hard drive and cannot be safely erased, posing a risk of data leakage. Summary of the Invention
[0004] This application provides a method, apparatus, and medium for soft destruction of server hard drives, aiming to solve the technical problem that existing technologies rely on the server equipment being powered normally for soft destruction operations. In emergency situations such as power outages, the working state cannot be maintained normally, and the destruction operation cannot be completed, resulting in the inability to securely erase data and thus causing the risk of data leakage.
[0005] The first aspect disclosed in this application provides a method for soft destruction of a server hard drive. The method includes: when the server is powered by an external power supply, the system power supply powers the hard drive and triggers a destruction signal by pressing a destruction button; when the server is powered off, the power supply circuit is switched to a backup power supply by a power switching module, and the destruction signal is triggered by pressing a destruction button while the backup power supply is in operation.
[0006] Furthermore, the power switching module includes a logic circuit composed of P-channel MOSFETs and N-channel MOSFETs, used to automatically switch the primary and backup power supply paths according to the system power status.
[0007] Furthermore, the system's normal power supply powers the hard drive, including: when the system's normal power supply is effective, the third MOSFET in the logic circuit is turned on, the gate potential of the second MOSFET is pulled low and is at a low level, the second MOSFET is turned on, the first MOSFET is turned off, the backup power supply is disconnected, and the hard drive is powered by the system's normal power supply.
[0008] Furthermore, when the external power supply to the server fails, the power supply circuit is switched to the backup power supply through the power switching module, including: when the normal power supply of the system fails, the third MOSFET in the logic circuit is turned off, the gate potential of the second MOSFET is pulled up to a high level by the backup power supply and turned off, the first MOSFET is turned on, and the backup power supply is connected to the power input terminal of the hard disk.
[0009] Furthermore, the destroy button includes a first-level destroy button and a second-level destroy button; wherein, the function of the first-level destroy button is soft destroy, and the function of the second-level destroy button is to first overwrite with 0 and then destroy.
[0010] Furthermore, triggering the destruction signal via the destruction button includes: in the logic circuit, the destruction button is electrically connected to the destruction pin of the hard drive, and when the destruction button is pressed, it pulls down the destruction signal level to trigger the destruction of the hard drive.
[0011] Furthermore, the backup power source is a rechargeable battery or a supercapacitor.
[0012] Furthermore, when the external power supply to the server is working normally, the remaining power of the backup power supply is detected. When the remaining power is lower than a preset threshold, the backup power supply is charged by the normal power supply of the system.
[0013] The second aspect disclosed in this application provides a server hard drive soft destruction device. The device is used in the aforementioned server hard drive soft destruction method. The device includes: a hard drive supporting soft destruction functionality; a normal system power supply for supplying power to the hard drive when the external power supply to the server is normal; a backup power supply for supplying power to the hard drive when the external power supply is interrupted; a destruction button for triggering a destruction signal; and a power switching module for switching the power supply circuit from the normal system power supply to the backup power supply when the external power supply is interrupted.
[0014] The third aspect disclosed in this application provides a storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the server hard disk soft destruction method of the first aspect.
[0015] One or more technical solutions provided in this application have at least the following beneficial effects: When the server's external power supply is normal, the hard drive is powered by the system's normal power supply. At this time, the hard drive operates under normal power conditions, and the user can trigger the destruction signal by pressing the destroy button to perform a soft destruction operation. Soft destruction ensures that the data on the hard drive is logically erased or overwritten, ensuring that the hard drive can perform data destruction operations under normal working conditions and avoiding the risk of data not being destroyed in the event of a power outage or other unexpected circumstances. When the external power supply fails, the power supply circuit switches from the normal system power supply to the backup power supply through the power switching module. This switching operation ensures that the backup power supply can continue to power the hard drive when the system power fails, thereby ensuring that the hard drive's destruction function is not interrupted. This ensures that the hard drive can maintain power supply and continue to perform destruction operations regardless of whether the system has normal power, further improving data security and avoiding the risk of destruction failure or data leakage caused by power outages.
[0016] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0017] Figure 1 This is a schematic flowchart of a server hard drive soft destruction method provided in an embodiment of this application.
[0018] Figure 2 This is an exemplary server design circuit diagram for a server hard drive soft destruction method provided in an embodiment of this application.
[0019] Figure 3 This is a schematic diagram of a server hard drive soft destruction device provided in an embodiment of this application.
[0020] Figure labeling: Hard disk 10, normal system power supply 20, backup power supply 30, destroy button 40, power switching module 50. Detailed Implementation
[0021] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below.
[0022] Example 1, as Figure 1 As shown in the figure, this application provides a method for soft destruction of a server hard drive, the method including: When the server is powered by an external power source, the hard drive is powered by the system's normal power supply, and the destruction signal is triggered by pressing the destroy button.
[0023] When the server's external power supply is normal, the server's normal system power supply powers the hard drive. At this time, the hard drive is powered by the server's main power supply and is in normal working condition. During normal system operation, the user can trigger a destruction signal by pressing the destroy button. When the button is pressed, an electrical signal is generated, pulling the destroy signal line low and notifying the hard drive to perform a destruction operation. The destruction operation is data destruction, meaning the hard drive permanently deletes the data it stores.
[0024] When the external power supply to the server fails, the power switching module switches the power supply circuit to the backup power supply. When the backup power supply is in operation, the destruction signal is triggered by pressing the destruction button.
[0025] When the server's external power supply fails, the system's main power supply also fails. At this time, the power switching module switches the hard drive's power supply from the normal system power supply to the backup power supply. The backup power supply provides power through devices such as batteries or supercapacitors, ensuring that the hard drive continues to be powered even in the event of an external power failure. The power switching module automatically detects whether the external power supply is down. If it is down, it continues to provide power to the hard drive through the backup power supply. In this case, the hard drive continues to operate, ensuring that data destruction can be performed. Even when the external power supply is down and only the backup power supply is available, the destroy button can still trigger the destroy signal. When the destroy button is pressed, the destroy signal is pulled low, triggering the hard drive to perform data destruction. This ensures that even if the server cannot operate on the main power supply, the destruction operation can still be performed, guaranteeing data security.
[0026] like Figure 2 The diagram shown is an exemplary server design circuit. In this server design, an M.2 hard drive with soft-kill functionality is used for storage, and a battery pack is used as backup power. When the server is running normally, the 3V3_VSYS power supply is normal, Q3 is on, and the GATE pin of Q2 is pulled low, making Q2 on. The GATE pin of Q1 is high, making Q1 off. In this case, the hard drive is powered solely by the system power supply 3V3_VSYS. When the kill button is pressed, the kill signal is pulled low, triggering the M.2 hard drive's kill function. In an emergency where the server loses power, the system 3V3_VSYS fails. Q3 is off, and Q2's GATE pin is pulled high by VBAT, making Q2 off. Q1's GATE pin is low, making Q1 on. The backup battery power supply VBAT provides power to the hard drive separately, and simultaneously provides a pull-up level to the kill signal through R4. Pressing the kill button pulls the kill signal low, triggering the hard drive's kill. This design implements the function of switching between primary and backup power supplies through simple logic circuits, ensuring that the server can use the destruction function even when there is no power supply.
[0027] Furthermore, the power switching module includes a logic circuit composed of P-channel MOSFETs and N-channel MOSFETs, used to automatically switch the primary and backup power supply paths according to the system power status.
[0028] The power switching module consists of P-channel and N-channel MOSFETs, common semiconductor switching elements. Their function is to control the circuit's switching, switching the hard drive's power supply based on the system power status. When the system power is operating normally, the gate potential of the P-channel MOSFET is pulled low, thus turning it on and allowing the main power supply to power the hard drive. When the system power fails, the P-channel MOSFET turns off, while the gate potential of the N-channel MOSFET is pulled low (from the backup power supply voltage), turning it on and switching to backup power supply for the hard drive. The automatic switching logic is as follows: when the server's normal power supply is available, the P-channel MOSFET turns on, and power is supplied to the hard drive through the system power path, while the backup power supply is off. When the external power supply fails, the P-channel MOSFET turns off, and the N-channel MOSFET turns on, with the backup power supply supplying power to the hard drive through the N-channel MOSFET. In this situation, the hard drive can still operate and perform a destruction operation.
[0029] Furthermore, the hard drive is powered by the system's normal power supply, including: When the system's normal power supply is effective, the third MOSFET in the logic circuit is turned on, the gate potential of the second MOSFET is pulled low and is at a low level, the second MOSFET is turned on, the first MOSFET is turned off, the backup power supply is disconnected, and the hard drive is powered by the system's normal power supply.
[0030] When the system's normal power supply is active, the hard drive requires power from this supply. In this case, the power switching module's circuit logic determines to provide power to the hard drive through the system power supply. The MOSFET operation is as follows: When the system's normal power supply is active, the third MOSFET is turned on, allowing current to flow and activating downstream circuitry, ensuring a stable power supply. The gate potential of the second MOSFET is pulled low, turning it on. That is, the gate potential of the second MOSFET is pulled low to a low level through the conduction of the third MOSFET, thus turning it on and allowing the system power supply to continue supplying power to the hard drive. The first MOSFET is turned off, its gate potential now set to a high level, causing it to turn off and preventing current flow from the backup power supply. Thus, the backup power supply is cut off and does not supply power to the hard drive. Because the backup power supply is cut off, the hard drive is only powered by the system's normal power supply. The hard drive continues to operate in normal condition and can be destroyed as needed.
[0031] Furthermore, when the external power supply to the server fails, the power supply circuit is switched to a backup power supply via a power switching module, including: When the normal power supply of the system fails, the third MOSFET in the logic circuit is turned off, the gate potential of the second MOSFET is pulled up to a high level by the backup power supply and turned off, and the first MOSFET is turned on, connecting the backup power supply to the power input terminal of the hard disk.
[0032] When the external power supply fails or the system power supply malfunctions, the normal system power supply fails. In this case, the power switching module automatically switches to backup power supply through its built-in logic circuit. The MOSFET operation is as follows: When the system power fails, the third MOSFET turns off, thus breaking the current path previously conducted by the third MOSFET, preventing the system power supply from continuing to power the hard drive. The gate potential of the second MOSFET is pulled high by the backup power supply, turning the second MOSFET off. That is, the backup power supply voltage, through the pull-up resistor in the circuit, pulls the gate potential of the second MOSFET high, causing it to turn off. Thus, the second MOSFET no longer conducts, cutting off the system power connection. As the second MOSFET turns off, the gate potential of the first MOSFET is pulled low, turning it on. This connects the backup power supply to the hard drive's power input, ensuring the hard drive continues to be powered even in the event of a power outage. In this situation, with the first MOSFET on, the backup power supply directly powers the hard drive, allowing it to continue operating. Even if the system power fails, the hard drive's self-destruct function remains unaffected.
[0033] Furthermore, the destroy button includes a first-level destroy button and a second-level destroy button; wherein, the function of the first-level destroy button is soft destroy, and the function of the second-level destroy button is to first overwrite with 0 and then destroy.
[0034] The first-level destroy button performs a soft destroy. When the first-level destroy button is pressed, the hard drive performs a data destruction operation. This is achieved through hard drive firmware instructions or a specific destruction algorithm, such as erasing stored metadata and file systems. Soft destroy refers to the logical deletion or clearing of data stored on the hard drive, using a predetermined algorithm to overwrite the data and prevent it from being easily recovered. This does not involve physical damage to the hard drive, but rather makes the data inaccessible.
[0035] The second-level destroy button performs a soft destroy operation by first overwriting all data with zeros. When this button is pressed, the hard drive not only performs a soft destroy operation but also overwrites all data on the drive with zeros. Overwriting with zeros is a secure data destruction technique that ensures that the contents of all storage areas are rewritten, making the data unrecoverable. After the data is overwritten, the hard drive will perform further destruction, such as using more thorough destruction algorithms or commands, to ensure that the data is completely deleted and cannot be recovered by any means.
[0036] The difference between the first-level destroy button and the second-level destroy button lies in the thoroughness of the destruction. The first-level destroy button only performs a standard soft destroy, while the second-level destroy button takes a more thorough approach, first overwriting with 0s and then destroying the data to ensure data security.
[0037] Furthermore, triggering a destruction signal via the destruction button includes: In the logic circuit, the destroy button is electrically connected to the destroy pin of the hard drive. When the destroy button is pressed, it pulls down the destroy signal level to trigger the hard drive to be destroyed.
[0038] The destroy button is electrically connected to the hard drive's destroy pin, ensuring that the hard drive receives the signal and initiates the corresponding destruction process, whether it's a soft destroy or a complete destroy. Pressing the destroy button directly affects the hard drive's destroy pin, transmitting the destroy signal. When the destroy button is pressed, the destroy signal is pulled low; this is achieved by pulling the destroy signal line low in the circuit. At this point, the hard drive receives a trigger signal and initiates the data destruction process. The destroy signal is an internal control signal that tells the hard drive to perform the destruction operation. The hard drive's internal firmware or hardware circuitry will perform a soft destroy or a more thorough destruction operation, such as data erasure or rewriting, based on the received destroy signal.
[0039] Furthermore, the backup power source is a rechargeable battery or a supercapacitor.
[0040] A backup power supply can be a rechargeable battery, such as a lithium-ion or nickel-metal hydride battery. These batteries provide a stable power supply, continuing to power the hard drive when the main power supply fails. Rechargeable batteries have a long lifespan and high energy density, making them suitable for providing continuous power support. Alternatively, a backup power supply can be a supercapacitor. Supercapacitors have very fast charging and discharging characteristics, capable of providing high power in a short time, but their energy storage capacity is relatively low. They are suitable for scenarios requiring short-term emergency power supply, such as power switching during a power outage and short-term power support. Whether it's a battery or a supercapacitor, the main function of a backup power supply is to continue providing power to the hard drive when the system power fails, ensuring that the hard drive's data destruction function can operate normally under any circumstances. Especially in the event of a system power outage, the backup power supply can maintain the hard drive's operation until the data destruction operation is complete, ensuring data security.
[0041] Furthermore, when the external power supply to the server is working normally, the remaining power of the backup power supply is detected. When the remaining power is lower than a preset threshold, the backup power supply is charged by the normal power supply of the system.
[0042] Continuous monitoring of the backup power supply's remaining charge is achieved through a built-in power monitoring circuit or battery management system. This monitoring provides real-time status information, helping the system assess whether charging is necessary. When the backup power supply's charge drops below a preset threshold, the charging process automatically begins. This threshold is a designed power standard; when the backup power supply's remaining charge falls below this value, it is considered insufficient to provide adequate power and charging is required. When the system's normal power supply is available, it charges the backup power supply. The specific charging method is controlled by a dedicated power management module. For example, if the backup power supply is a battery, it is charged via a charging circuit; if it is a supercapacitor, it is powered by a fast-charging module. This charging mechanism ensures that the backup power supply always maintains sufficient charge for a seamless switchover in the event of a power outage. Pre-charging and regular maintenance ensure the system can quickly recover and provide continuous power to the hard drive at any time when the external power supply is lost.
[0043] Example 2, based on the same inventive concept as the server hard drive soft destruction method in the foregoing examples, such as... Figure 3 As shown in the figure, this application embodiment provides a server hard disk soft destruction device, the device comprising: Hard disk 10 supports soft destroy function; system normal power supply 20 is used to power hard disk 10 when the external power supply of the server is normal; backup power supply 30 is used to power hard disk 10 when the external power supply is cut off; destroy button 40 is used to trigger the destroy signal; power switching module 50 is used to switch the power supply circuit from the system normal power supply 20 to the backup power supply 30 when the external power supply is cut off.
[0044] Hard disk 10 is one of the core components of the server hard disk soft destruction device. It is responsible for storing data and performing destruction functions. Hard disk 10 supports soft destruction function, which means that after receiving a destruction signal, it can erase or rewrite the stored data in a specific way. Soft destruction involves logical deletion, data overwriting or destruction of the integrity of stored data to ensure that the data cannot be recovered.
[0045] The system power supply 20 is an external main power source, such as a DC power source converted from AC power, which provides regular power to the hard drive 10. When the external power supply is normal, it directly powers the hard drive 10 and supports its normal operation, including data storage, retrieval, and destruction. In this case, the hard drive 10 is powered by the system power supply 20, and the backup power supply 30 is not required.
[0046] The backup power supply 30 functions when the normal power supply 20 fails. When the external power supply is interrupted, such as in the event of a power failure or power shutdown, the backup power supply 30 provides emergency power to ensure that the hard drive 10 can continue to operate, especially when a destruction operation needs to be performed.
[0047] The destroy button 40 is an input device for the hard drive 10's destruction process. When the user presses this button, a destruction signal is triggered. The function of the destroy button 40 is to transmit the destruction signal to the hard drive's destruction pin, initiating the hard drive's data destruction process. After pressing the destroy button 40, the destruction signal will be pulled low or triggered, thereby initiating the internal data erasure operation of the hard drive to ensure complete data destruction.
[0048] The power switching module 50 is the core component responsible for ensuring that the hard drive 10 continues to be powered even when the external power supply is interrupted. When the normal power supply 20 fails, the power switching module 50 automatically switches to the backup power supply 30 to ensure that the hard drive 10 is not interrupted in its power supply. The power switching module 50 consists of logic circuits and MOSFETs, among other components. When the normal power supply 20 is providing power, the power switching module 50 disconnects the power path of the backup power supply 30, keeping the hard drive 10 powered by the normal power supply 20. When the normal power supply 20 fails, the power switching module 50 automatically switches the path, connecting the backup power supply 30 to the power supply system of the hard drive 10, ensuring that the hard drive 10 continues to receive power and can perform the destruction operation.
[0049] The purpose of this device is to ensure that the hard drive 10 can still perform a destruction operation even in the event of an emergency where the external power fails, thereby ensuring data security and preventing data leakage.
[0050] Example 3 provides a storage medium on which a computer program is stored, which, when executed by a processor, implements any step of Example 1.
[0051] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any modifications, equivalent changes, and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A method for soft-destroying a server hard drive, characterized in that, The method includes: When the server is powered by an external power source, the hard drive is powered by the system's normal power supply, and the destruction signal is triggered by the destroy button. When the external power supply to the server fails, the power switching module switches the power supply circuit to the backup power supply. When the backup power supply is in operation, the destruction signal is triggered by pressing the destruction button.
2. The server hard drive soft destruction method as described in claim 1, characterized in that, The power switching module includes a logic circuit composed of P-channel MOSFETs and N-channel MOSFETs, used to automatically switch the primary and backup power supply paths according to the system power status.
3. The server hard drive soft destruction method as described in claim 2, characterized in that, The hard drive is powered by the system's normal power supply, including: When the system's normal power supply is effective, the third MOSFET in the logic circuit is turned on, the gate potential of the second MOSFET is pulled low and is at a low level, the second MOSFET is turned on, the first MOSFET is turned off, the backup power supply is disconnected, and the hard drive is powered by the system's normal power supply.
4. The server hard drive soft destruction method as described in claim 2, characterized in that, When the external power supply to the server fails, the power switching module switches the power supply circuit to the backup power supply, including: When the normal power supply of the system fails, the third MOSFET in the logic circuit is turned off, the gate potential of the second MOSFET is pulled up to a high level by the backup power supply and turned off, and the first MOSFET is turned on, connecting the backup power supply to the power input terminal of the hard disk.
5. The server hard drive soft destruction method as described in claim 1, characterized in that, The destroy button includes a first-level destroy button and a second-level destroy button; The first-level destroy button is for soft destroy, while the second-level destroy button is for overwriting with zeros and then destroying.
6. The server hard drive soft destruction method as described in claim 2, characterized in that, The destruction signal is triggered by the destroy button, including: In the logic circuit, the destroy button is electrically connected to the destroy pin of the hard drive. When the destroy button is pressed, it pulls down the destroy signal level to trigger the hard drive to be destroyed.
7. The server hard drive soft destruction method as described in claim 1, characterized in that, The backup power source is a rechargeable battery or a supercapacitor.
8. The server hard drive soft destruction method as described in claim 1, characterized in that, When the external power supply to the server is normal, the remaining power of the backup power supply is detected. When the remaining power is lower than a preset threshold, the backup power supply is charged by the normal power supply of the system.
9. A server hard drive soft destruction device, characterized in that, The steps for implementing a server hard disk soft destruction method according to any one of claims 1 to 8 include: The hard drive supports soft-kill functionality; The system normal power supply is used to power the hard drive when the server is powered by an external power source. Backup power supply, used to power the hard drive when the external power supply fails; The destroy button is used to trigger a destroy signal; A power switching module is used to switch the power supply circuit from the normal power supply of the system to the backup power supply when the external power supply fails.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the steps of the server hard disk soft destruction method according to any one of claims 1 to 8.