CN-121979722-A - Method and system for recovering damaged data of solid state disk firmware
Abstract
The embodiment of the invention provides a method and a system for recovering damaged data of firmware of a solid state disk, wherein the method comprises the steps of identifying information of the solid state disk to be recovered; the method comprises the steps of identifying a main control type and NAND particle information in a preset security mode, selecting matched target microcode from a preset firmware library based on the identified main control type and NAND particle information, carrying out information identification again based on the target microcode, configuring parameter information of a solid state disk to be recovered according to the hard disk information if the hard disk information meeting the preset condition is identified, and carrying out file system data recovery based on the NAND particle information and the parameter information. The method improves the data recovery efficiency and the data integrity.
Inventors
- LIN CHENG
- TENG DA
- SHAO BINGYANG
- SHEN CHANGDA
- WANG ZHONGWEI
Assignees
- 厦门市美亚柏科信息安全研究所有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251205
Claims (10)
- 1. The method for recovering the damaged data of the firmware of the solid state disk is characterized by comprising the following steps: Carrying out information identification on the solid state disk to be recovered; if the hard disk information meeting the preset conditions is not identified, controlling the hard disk to be recovered to enter a preset safety mode; identifying the master control type and NAND particle information of the solid state disk to be recovered under the preset safety mode; selecting matched target microcode from a preset firmware library based on the identified main control type and NAND particle information; based on the target microcode, carrying out information identification on the solid state disk to be recovered again; If the hard disk information meeting the preset conditions is identified, configuring the parameter information of the solid state disk to be recovered according to the hard disk information; and based on the NAND particle information and the parameter information, recovering file system data of the solid state disk to be recovered.
- 2. The system of claim 1, wherein the performing file system data recovery on the solid state disk to be recovered based on the NAND grain information and the parameter information comprises: Based on the NAND particle information and the parameter information, reorganizing a disk image of the solid state disk to be recovered; and based on the disk mirror image, recovering file system data of the solid state disk to be recovered.
- 3. The system of claim 2, wherein reorganizing the disk image of the solid state disk to be restored based on the NAND grain information and the parameter information comprises: determining a system block set and a user block set of the solid state disk to be recovered based on the NAND particle information; And reorganizing the disk mirror image of the solid state disk to be recovered based on the parameter information, the system block set and the user block set.
- 4. The system of claim 3, wherein reorganizing the disk image of the solid state disk to be restored based on the parameter information, the set of system blocks, and the set of user blocks comprises: generating a flash translation translator based on the parameter information and the system block set; generating an out-of-band data translator based on the parameter information and the set of user blocks; And recombining the disk mirror image of the solid state disk to be recovered based on the flash memory conversion translator and the out-of-band data translator.
- 5. The system of claim 3, wherein the determining the set of system blocks and the set of user blocks of the solid state disk to be restored based on the NAND granular information comprises: based on the master control type, configuring a master control instruction set which is communicated with a master control chip corresponding to the solid state disk to be recovered; and downloading the system block set and the user block set in the master instruction set based on the NAND grain information.
- 6. The system of claim 4, wherein generating a flash translation translator based on the parameter information and the set of system blocks comprises: determining flash memory conversion layer information of the system block set; Reconstructing the flash memory conversion layer information to obtain reconstructed information; and generating the flash translation translator based on the reconstructed information.
- 7. The system of claim 1, wherein the re-identifying the information of the solid state disk to be restored based on the target microcode comprises: writing the target microcode into a memory of a main control chip corresponding to the solid state disk to be recovered; running the target microcode in the memory of the main control chip to establish a bottom communication channel; and carrying out information identification on the solid state disk to be recovered again based on the bottom communication channel.
- 8. The system of claim 1, wherein the identifying information of the solid state disk to be restored comprises: Identifying the model, capacity and initiative type of the solid state disk to be recovered; and determining the identified model, capacity and initiative type as the hard disk information.
- 9. The system according to claim 1, wherein controlling the hard disk to be restored to a preset security mode if the hard disk information satisfying the preset condition is not recognized comprises: If the hard disk information meeting the preset conditions is not identified, determining a bonding pad marked with a preset mark in the hard disk to be recovered; and short-circuiting the bonding pad to electrify the hard disk to be recovered.
- 10. A solid state disk firmware corruption data recovery system, the system comprising: the first identification module is used for carrying out information identification on the solid state disk to be recovered; The control module is used for controlling the hard disk to be restored to enter a preset safety mode if the hard disk information meeting the preset condition is not identified; The second identification module is used for identifying the main control type and the NAND particle information of the solid state disk to be recovered under the preset safety mode; The matching module is used for selecting matched target microcode from a preset firmware library based on the identified main control type and NAND particle information; The third identification module is used for carrying out information identification on the solid state disk to be recovered again based on the target microcode; the configuration module is used for configuring the parameter information of the solid state disk to be recovered according to the hard disk information if the hard disk information meeting the preset condition is identified; And the recovery module is used for recovering file system data of the solid state disk to be recovered based on the NAND particle information and the parameter information.
Description
Method and system for recovering damaged data of solid state disk firmware Technical Field The invention relates to the technical field of data storage and recovery, in particular to a method and a system for recovering damaged data of firmware of a solid state disk in the technical field of data storage and recovery. Background In the related art, a Solid state disk (Solid STATE DRIVES, SSD) mainly comprises an SSD controller and a Flash array, has good random read-write performance, and is gradually replacing the traditional mechanical hard disk. The SSD firmware is core control software of the solid state disk and is responsible for managing key functions of read-write operation, wear balance, garbage collection, error correction and the like of the flash memory chip. Normal operation of firmware is the basis for ensuring SSD data integrity and performance. When the firmware is damaged, the SSD can be damaged, and the phenomena of disk non-recognition, partition failure, incapability of formatting, blue screen crash of reading and writing, abnormal capacity and the like can occur, so that the data content in the SSD disk can not be checked, and finally the data is lost. Disclosure of Invention The invention aims to provide a method and a system for recovering damaged data of solid state disk firmware, wherein the adopted technical scheme is as follows: In a first aspect, an embodiment of the present invention provides a method for recovering firmware damage data of a solid state disk, where the method includes: Carrying out information identification on the solid state disk to be recovered; if the hard disk information meeting the preset conditions is not identified, controlling the hard disk to be recovered to enter a preset safety mode; identifying the master control type and NAND particle information of the solid state disk to be recovered under the preset safety mode; selecting matched target microcode from a preset firmware library based on the identified main control type and NAND particle information; based on the target microcode, carrying out information identification on the solid state disk to be recovered again; If the hard disk information meeting the preset conditions is identified, configuring the parameter information of the solid state disk to be recovered according to the hard disk information; and based on the NAND particle information and the parameter information, recovering file system data of the solid state disk to be recovered. In a second aspect, a system for recovering firmware damage data of a solid state disk is provided, the system comprising: the first identification module is used for carrying out information identification on the solid state disk to be recovered; The control module is used for controlling the hard disk to be restored to enter a preset safety mode if the hard disk information meeting the preset condition is not identified; The second identification module is used for identifying the main control type and the NAND particle information of the solid state disk to be recovered under the preset safety mode; The matching module is used for selecting matched target microcode from a preset firmware library based on the identified main control type and NAND particle information; The third identification module is used for carrying out information identification on the solid state disk to be recovered again based on the target microcode; the configuration module is used for configuring the parameter information of the solid state disk to be recovered according to the hard disk information if the hard disk information meeting the preset condition is identified; And the recovery module is used for recovering file system data of the solid state disk to be recovered based on the NAND particle information and the parameter information. In a third aspect, there is provided a computer program product comprising computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect. In a fourth aspect, a computer readable storage medium is provided, the computer readable storage medium storing computer program code which, when run on a computer, causes the computer to perform the method of the first aspect or any one of the possible implementations of the first aspect. The method has the advantages that after the solid state disk to be recovered is obtained, information identification is carried out on the solid state disk to be recovered, if the hard disk information meeting the preset condition is not identified, the solid state disk to be recovered is controlled to enter a preset safety mode, so that the hard disk is controlled to enter the preset safety mode aiming at the firmware hard disk to be recovered, basic bottom communication can be established, and the master control type and NAND particle information of the solid state disk to be recovered can be effectiv