Solid state disk data erasing method and system thereof
Technical Field
The invention relates to the technical field of safety, in particular to a solid state disk data erasing method and a solid state disk data erasing system.
Background
Solid State Drives (SSD), which are hard disks made of Solid State electronic memory chip arrays, are composed of a control unit and a memory unit (FLASH chip, DRAM chip). The specification, definition, function and use method of the interface of the solid state disk are completely the same as those of a common hard disk, and the appearance and size of the solid state disk are also completely consistent with those of a common 2.5-inch hard disk. The method is widely applied to the fields of military affairs, vehicle-mounted, industrial control, video monitoring, network terminals, electric power, medical treatment, aviation, navigation equipment and the like.
Military or commercial solid state disk has powerful data protection function, and when an emergency situation requiring urgent deletion is met, data is difficult to erase safely and quickly in a short time. The existing erasing method mostly depends on the existing computer control, and a data erasing instruction is issued to the SSD. And based on the inherent data protection function of the SSD, the data is easy to recover through technical means.
In the patent document with application number 201420491376.2, a solid state disk data security erasing device is disclosed, which can directly implement the transmission of an erasing command by a control switch, and replace the prior art that must rely on a computer to erase data, so as to implement a one-key erasing function. But the erased data can still be recovered, and the safe deletion of the data cannot be completely realized.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the data of the solid state disk can be safely deleted, so that the deleted data cannot be recovered, and data leakage is prevented.
In order to solve the technical problems, the invention adopts the technical scheme that: a solid state disk data erasing method comprises the following steps:
the solid state disk receives a trigger signal;
the solid state disk triggers a data erasing command comprising a data erasing command and a protocol shielding command according to the trigger signal;
erasing the full disk data according to the data erasing instruction;
and shielding the communication protocol of the physical layer of the solid state disk according to the protocol shielding instruction.
The invention also relates to a solid state disk data erasing system, which comprises
The receiving module is used for receiving the trigger signal by the solid state disk;
the triggering module is used for triggering a data erasing instruction comprising a data erasing instruction and a protocol shielding instruction by the solid state disk according to the triggering signal;
the erasing module is used for erasing the full disk data according to the data erasing instruction;
and the precaution module is used for shielding the communication protocol of the physical layer of the solid state disk according to the protocol shielding instruction.
The invention has the beneficial effects that: all data of the solid state disk are erased, so that the solid state disk has no data residue, and a physical layer of the solid state disk is protocol-shielded, so that a disk identifier of the solid state disk cannot be identified, the purpose of preventing data leakage is further realized, and the method has the characteristic of high safety.
Drawings
FIG. 1 is a flowchart of a method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a solid state drive data erasing system;
FIG. 3 is a schematic structural diagram of a system according to a second embodiment of the present invention;
fig. 4 is a diagram of a SATA interface according to a third embodiment of the present invention.
Description of reference numerals: 1. a receiving module; 2. a triggering module; 3. an erasing module; 4. a precautionary module; 5. an activation module; 6. and indicating the module.
Detailed Description
In order to explain technical contents, objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
The most key concept of the invention is as follows: and carrying out protocol shielding on a physical layer of the solid state disk, so that the drive letter of the solid state disk cannot be identified.
Referring to fig. 1, a method for erasing data in a solid state disk includes:
the solid state disk receives a trigger signal;
the solid state disk triggers a data erasing command comprising a data erasing command and a protocol shielding command according to the trigger signal;
erasing the full disk data according to the data erasing instruction;
and shielding the communication protocol of the physical layer of the solid state disk according to the protocol shielding instruction.
From the above description, the beneficial effects of the present invention are: the solid state disk after data erasure is connected with a computer and cannot display the disk letter, so that the safety is high.
Further, the trigger signal is activated by an erasing start device connected with the solid state disk interface, and the trigger signal is a level signal.
Furthermore, the solid state disk is connected with the erasing starting device through a SATA power interface, and the trigger signal is a low level signal.
As can be seen from the above description, the operation is fast by activating the trigger signal through hardware.
Further, the "erasing the full disk data according to the data erasing instruction" specifically includes: and after receiving the trigger signal, the main control unit of the solid state disk issues a data erasing instruction, and erases data of all storage areas of the Flash storage unit according to the data erasing instruction, wherein the storage areas comprise a guide area, a reserved area and a metadata area.
As can be seen from the above description, the solid state disk after data erasure has no data residue.
Further, the method also comprises the step of indicating in the process of erasing the full disk data.
As can be seen from the above description, the state of the solid state disk can be conveniently known through indication.
The invention also relates to a solid state disk data erasing system, which comprises
The receiving module 1 is used for receiving a trigger signal by the solid state disk;
the triggering module 2 is used for triggering a data erasing instruction comprising a data erasing instruction and a protocol shielding instruction by the solid state disk according to the triggering signal;
the erasing module 3 is used for erasing the full disk data according to the data erasing instruction;
and the precaution module 4 is used for shielding the communication protocol of the physical layer of the solid state disk according to the protocol shielding instruction.
Further, the device also comprises an erasing starting device connected with the solid state disk interface and used for sending the trigger signal to the solid state disk, wherein the trigger signal is a level signal.
Further, the solid state disk is connected with the erasing starting device through a SATA power interface; the trigger signal is a low level signal.
Further, the erasing module 3 is specifically configured to: and after receiving the trigger signal, issuing a data erasing instruction, and erasing data of all storage areas of the Flash storage unit according to the data erasing instruction, wherein the storage areas comprise a guide area, a reserved area and a metadata area.
Further, the device also comprises an indication module 6 for indicating in the process of erasing the full disk data.
Example one
Referring to fig. 1, a first embodiment of the present invention is: a solid state disk data erasing method comprises the following steps:
s1, the solid state disk receives a trigger signal; the trigger signal can be activated by software or hardware equipment, and when the trigger signal is activated by the hardware equipment, the trigger signal can be sent to the solid state disk connected with the trigger signal by one-key activation of a one-key erasing button of the hardware equipment; optionally, the trigger signal is a level signal, and further, is a low level signal; the hardware equipment only needs to be capable of activating and sending a trigger signal;
s2, the solid state disk triggers a data erasing command containing a data erasing command and a protocol shielding command according to the trigger signal; when a data erasing command is triggered, a reminding indication can be set, for example, an LED indicator light is set, and when the data erasing command is triggered, the LED indicator light is turned on;
s3, the main control unit of the solid state disk receives the data erasing command, and the whole disk data are erased according to the data erasing command; further, after receiving the level signal, a main control unit of the solid state disk erases data in all storage areas of the Flash storage unit, wherein the storage areas include a boot area, a reserved area, a metadata area and the like; optionally, when erasing data, the LED indicator lights flash;
s4, the main control unit performs security processing on the solid state disk, and further, the main control unit shields a communication protocol of a physical layer of the solid state disk according to the protocol shielding instruction, so that the solid state disk cannot be identified even if connected to an available interface, and optionally, the physical layer is an SATA physical layer.
And carrying out protocol shielding on a physical layer, and interrupting an external request and an internal request, so that the solid state disk after data erasure has no data residue and can not display a disk character when being connected with a computer, namely, the solid state disk after protocol shielding can not be used continuously, thereby preventing data leakage.
The steps S3 and S4 may be switched in order, that is, the protocol masking may be performed first and then the data is erased, and further, the steps S3 and S4 may be performed simultaneously; optionally, when the data erasure is completed, the LED indicator lights are on for a long time.
Example two
Referring to fig. 2-3, the present embodiment is a solid state disk data erasing system corresponding to the above method, and includes a receiving module 1, a triggering module 2, an erasing module 3, and a preventing module 4. The receiving module 1, the triggering module 2, the erasing module 3 and the precaution module 4 are arranged in the solid state disk.
The receiving module 1 is used for receiving a trigger signal; optionally, the trigger signal may be triggered by software configuration of the solid state disk itself, or by an erase start device connected to an interface of the solid state disk; the erasing starting device is provided with an activation module 5 for activating and sending a trigger signal to the solid state disk, wherein the trigger signal is a level signal, and further is a low level signal;
the trigger module 2 is used for triggering a data erasing command comprising a data erasing command and a protocol shielding command according to the trigger signal;
the erasing module 3 is used for erasing the full disk data according to the data erasing instruction; further, after receiving the level signal, the main control unit of the solid state disk issues a data erasing instruction, and erases data in all storage areas of the Flash storage unit according to the data erasing instruction, wherein the storage areas comprise a guide area, a reserved area, a metadata area and the like;
the precaution module 4 is used for shielding the communication protocol of the physical layer of the solid state disk according to the protocol shielding instruction, so that the drive letter of the solid state disk cannot be identified.
Optionally, the erasing start device or the solid state disk hard-wired to the erasing start device further includes an indication module 6, which is used to indicate in the process of erasing the full disk data, for example, when a data erasing command is triggered, the LED indicator lights up, when the data is erased, the LED indicator lights twinkle, and when the erasing is completed, the LED indicator lights up.
EXAMPLE III
An erasing start device comprises a SATA interface and an activation module 5; the SATA interface is used for being electrically connected with an SATA power interface of the solid state disk; further, the power supply is connected with a 12V pin of a SATA power interface of the solid state disk; the activation module 5 is configured to activate a trigger signal, so that the solid state disk triggers a data erasure command including a data erasure instruction and a protocol shielding instruction according to the trigger signal, and executes actions of erasing full disk data and shielding a communication protocol of a physical layer of the solid state disk. Further, the device further comprises an indicating module 6, which is used for indicating in the process of erasing the full disk data by the solid state disk.
The solid state disk does not need to be specially provided with an erasing interface, and can be connected with the erasing starting device through an existing SATA power interface. Fig. 4 is a schematic diagram of the SATA interface, in which the left part is a power interface, the right part is a signal interface, the erase activation apparatus is connected to the solid state disk through two pins of the 12V pins, for example, connected to P13 and P14, where P14 is an input pin for the solid state disk to receive a trigger signal sent by the erase activation apparatus, and P13 is an output pin for the indication module of the erase activation apparatus to receive an indicator light signal sent by the solid state disk.
The erasing starting device can be provided with a one-key erasing button, and after the erasing starting device is connected with the solid state disk through the SATA power interface, the one-key erasing button is started to activate a level signal, so that a data erasing command comprising a data erasing command and a protocol shielding command is triggered.
The data erasing command is different from an erasing command issued by traditional computer equipment, the traditional erasing is realized by sending a TRIM command through an SATA interface, and the SATA interface can also identify the drive letter of the solid state disk after the erasing.
In summary, according to the solid state disk data erasing method and system provided by the present invention, all data in the solid state disk are erased, so that the solid state disk has no data residue, and the protocol shielding is performed on the physical layer of the solid state disk after the data is erased, so that the disk identifier of the solid state disk cannot be identified, and the purpose of preventing data leakage is further achieved.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent changes made by using the contents of the present specification and the drawings, or applied directly or indirectly to the related technical fields, are included in the scope of the present invention.