SSD internal data recovery method and device, equipment and storage medium
By supporting folder structure recovery and data file resolution with preset specific instructions on the SSD device, the problem of SSD data being unable to be fully restored is solved, the correct recovery of the file system and file name is achieved, and the speed and efficiency of data recovery is improved.
Patent Information
- Application Number
- CN202411307965.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-31
AI Technical Summary
The existing SSD data recovery method cannot restore the system's file structure and file name, causing trouble for users.
By obtaining SSD devices that support preset specific instructions, data recovery of folder structures, parse data file structures, create and repair folder target structures, and recover data files.
It realizes complete recovery of SSD data, including correct recovery of file system and file name, improves data recovery speed and efficiency, and improves user experience.
Smart Images

Figure CN119226041A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of solid-state storage devices, and in particular to a method, device, equipment and storage medium for recovering data inside an SSD. Background Art
[0002] With the widespread use of solid state drives (SSDs), the requirements for data security in SSDs are getting higher and higher, and the requirements for ease of use are also getting higher and higher. Data is written and read from SSDs in various ways, and the correctness of the data must be guaranteed.
[0003] Although data on an SSD is not easily lost, the use of an SSD is affected by many external factors, such as whether it is safely plugged in and out, whether the power supply is normal, etc., which will affect the startup of the SSD. If the SSD cannot start normally or some modules cannot work normally during startup, the data stored in it cannot be read correctly; sometimes the data on the SSD is deleted or formatted due to some user errors, and the data is lost.
[0004] If the data on the SSD cannot be read and used normally, a data recovery function is required. The current data recovery function only recovers the data, but the system's file structure and file names cannot be recovered, causing great trouble to users. Summary of the invention
[0005] The main purpose of the present invention is to provide a method, device, equipment and storage medium for recovering internal data of an SSD, aiming to solve the technical problem in the prior art that when the data of the SSD cannot be read and used normally, only the data can be recovered, but the file structure and file name of the system cannot be recovered, causing trouble to users.
[0006] In a first aspect, the present invention provides a method for recovering data in an SSD, the method comprising the following steps:
[0007] Acquire an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device;
[0008] After detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result;
[0009] A specified folder target structure is created according to the parsing result, and data files are created and repaired according to the folder target structure.
[0010] Optionally, the acquiring of the SSD device for which data recovery is required, and when it is determined that the SSD device supports a preset specific instruction, performing data recovery with a folder structure according to the SSD device includes:
[0011] Obtain an SSD device for which data recovery is required, and determine whether the SSD device supports a preset specific instruction;
[0012] When it is determined that the SSD device supports the preset specific instruction, obtaining a data file map data table stored in the SSD;
[0013] Acquire the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure;
[0014] Data with a folder structure is restored according to the system file structure data.
[0015] Optionally, the recovering data with a folder structure according to the system file structure data includes:
[0016] The system file structure data is combined with the system characteristics of the current system to restore the folder structure;
[0017] The associated data with the folder structure is restored according to the restored folder structure.
[0018] Optionally, after detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result includes:
[0019] After detecting that the preset specific instruction is sent to the SSD device, obtaining data file structure data inside the SSD device according to the preset specific instruction;
[0020] The data file structure data is parsed to obtain a parsing result.
[0021] Optionally, parsing the data file structure data to obtain a parsing result includes:
[0022] Parsing the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes;
[0023] A parsing result is generated according to the folder attribute and the file attribute.
[0024] Optionally, the creating a specified folder target structure according to the parsing result, and creating and repairing a data file according to the folder target structure, includes:
[0025] Get the system characteristics of the current system;
[0026] Creating a specified folder target structure according to the system characteristics and the parsing results;
[0027] The data files of the current system are created and repaired according to the folder target structure.
[0028] Optionally, after creating a specified folder target structure according to the parsing result and creating and repairing a data file according to the folder target structure, the SSD internal data recovery method further includes:
[0029] Repeat the data analysis and create and restore the data files according to the target analysis results until all the data file structure data has been analyzed.
[0030] In a second aspect, to achieve the above-mentioned purpose, the present invention further provides an SSD internal data recovery device, the SSD internal data recovery device comprising:
[0031] A data recovery module, used for acquiring an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, performing data recovery with a folder structure according to the SSD device;
[0032] A data parsing module, configured to perform data parsing according to the preset specific instruction to obtain a parsing result after detecting that the preset specific instruction is sent to the SSD device;
[0033] The file creation and repair module is used to create a specified folder target structure according to the analysis result, and to create and repair data files according to the folder target structure.
[0034] In a third aspect, to achieve the above-mentioned purpose, the present invention further proposes an SSD internal data recovery device, the SSD internal data recovery device comprising: a memory, a processor, and an SSD internal data recovery program stored in the memory and executable on the processor, the SSD internal data recovery program being configured to implement the steps of the SSD internal data recovery method as described above.
[0035] In a fourth aspect, to achieve the above-mentioned purpose, the present invention further proposes a storage medium, on which an SSD internal data recovery program is stored, and when the SSD internal data recovery program is executed by a processor, the steps of the SSD internal data recovery method described above are implemented.
[0036] The SSD internal data recovery method proposed in the present invention obtains an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports preset specific instructions, performs data recovery with a folder structure according to the SSD device; after detecting that the preset specific instructions are sent to the SSD device, performs data parsing according to the preset specific instructions to obtain parsing results; creates a specified folder target structure according to the parsing results, creates and repairs data files according to the folder target structure, and can restore the original data on the SSD that has been accidentally deleted or formatted intact. When the user needs to use the SSD data recovery, the data can be restored to the state before the data was lost, including the file system and file name can be correctly restored, thereby improving the speed and efficiency of SSD internal data recovery and enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 A schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention;
[0038] Figure 2 This is a flow chart of a first embodiment of a method for recovering data inside an SSD according to the present invention;
[0039] Figure 3 This is a flow chart of a second embodiment of a method for recovering internal data of an SSD according to the present invention;
[0040] Figure 4 A schematic diagram of a flow chart of a third embodiment of a method for recovering internal data of an SSD according to the present invention;
[0041] Figure 5 A schematic diagram of a flow chart of a fourth embodiment of a method for recovering internal data of an SSD according to the present invention;
[0042] Figure 6 A schematic diagram of a flow chart of a fifth embodiment of a method for recovering internal data of an SSD according to the present invention;
[0043] Figure 7 It is a functional module diagram of the first embodiment of the SSD internal data recovery device of the present invention.
[0044] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0046] The solution of the embodiment of the present invention is mainly: by acquiring an SSD device that needs to perform data recovery, when it is determined that the SSD device supports preset specific instructions, data with a folder structure is recovered according to the SSD device; after detecting that the preset specific instructions are sent to the SSD device, data is parsed according to the preset specific instructions to obtain parsing results; a specified folder target structure is created according to the parsing results, and data files are created and repaired according to the folder target structure, so that the original data that has been accidentally deleted or formatted on the SSD can be restored intact. After the user needs to use the SSD data recovery, it can be restored to the state before the data was lost, including the file system and file name can be correctly restored, thereby improving the speed and efficiency of SSD internal data recovery, improving user experience, and solving the technical problem in the prior art that when the data on the SSD cannot be read and used normally, only data can be recovered, but the system file structure and file name cannot be restored, causing user trouble.
[0047] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present invention.
[0048] like Figure 1 As shown, the device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed RAM memory, or it may be a stable memory (Non-Volatile Memory), such as a disk memory. The memory 1005 may optionally be a storage device independent of the aforementioned processor 1001.
[0049] Those skilled in the art will understand that Figure 1 The device structure shown in the figure does not constitute a limitation of the device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0050] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating device, a network communication module, a user interface module, and an SSD internal data recovery program.
[0051] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and performs the following operations:
[0052] Acquire an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device;
[0053] After detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result;
[0054] A specified folder target structure is created according to the parsing result, and data files are created and repaired according to the folder target structure.
[0055] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0056] Obtain an SSD device for which data recovery is required, and determine whether the SSD device supports a preset specific instruction;
[0057] When it is determined that the SSD device supports the preset specific instruction, obtaining a data file map data table stored in the SSD;
[0058] Acquire the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure;
[0059] Data with a folder structure is restored according to the system file structure data.
[0060] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0061] The system file structure data is combined with the system characteristics of the current system to restore the folder structure;
[0062] The associated data with the folder structure is restored according to the restored folder structure.
[0063] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0064] After detecting that the preset specific instruction is sent to the SSD device, obtaining data file structure data inside the SSD device according to the preset specific instruction;
[0065] The data file structure data is parsed to obtain a parsing result.
[0066] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0067] Parsing the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes;
[0068] A parsing result is generated according to the folder attribute and the file attribute.
[0069] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0070] Get the system characteristics of the current system;
[0071] Creating a specified folder target structure according to the system characteristics and the parsing results;
[0072] The data files of the current system are created and repaired according to the folder target structure.
[0073] The device of the present invention calls the SSD internal data recovery program stored in the memory 1005 through the processor 1001, and also performs the following operations:
[0074] Repeat the data analysis and create and restore the data files according to the target analysis results until all the data file structure data has been analyzed.
[0075] This embodiment adopts the above scheme, by acquiring an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports preset specific instructions, data recovery with a folder structure is performed according to the SSD device; after detecting that the preset specific instructions are sent to the SSD device, data is parsed according to the preset specific instructions to obtain parsing results; a specified folder target structure is created according to the parsing results, and data files are created and repaired according to the folder target structure, so that the original data on the SSD that has been accidentally deleted or formatted can be restored intact. After the user needs to use the SSD for data recovery, the data can be restored to the state before the data is lost, including the file system and file name can be correctly restored, thereby improving the speed and efficiency of data recovery inside the SSD and enhancing the user experience.
[0076] Based on the above hardware structure, an embodiment of the SSD internal data recovery method of the present invention is proposed.
[0077] Reference Figure 2 , Figure 2FIG. 4 is a flow chart of a first embodiment of a method for recovering data within an SSD according to the present invention.
[0078] In a first embodiment, the SSD internal data recovery method comprises the following steps:
[0079] Step S10: Acquire an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device.
[0080] It should be noted that after obtaining the SSD device that needs to perform data recovery, when it is determined that the SSD device supports a preset specific instruction, data with a folder structure can be recovered according to the SSD device.
[0081] Step S20: After detecting that the preset specific instruction is sent to the SSD device, data parsing is performed according to the preset specific instruction to obtain a parsing result.
[0082] It should be understood that after detecting that the preset specific instruction is sent to the SSD device, data parsing can be performed according to the preset specific instruction to obtain a parsing result.
[0083] Step S30: Create a specified folder target structure according to the analysis result, and create and repair data files according to the folder target structure.
[0084] It can be understood that a specified folder target structure can be created according to the parsing result, and data files can be created and repaired according to the folder.
[0085] This embodiment adopts the above scheme, by acquiring an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports preset specific instructions, data recovery with a folder structure is performed according to the SSD device; after detecting that the preset specific instructions are sent to the SSD device, data is parsed according to the preset specific instructions to obtain parsing results; a specified folder target structure is created according to the parsing results, and data files are created and repaired according to the folder target structure, so that the original data on the SSD that has been accidentally deleted or formatted can be restored intact. After the user needs to use the SSD for data recovery, the data can be restored to the state before the data is lost, including the file system and file name can be correctly restored, thereby improving the speed and efficiency of data recovery inside the SSD and enhancing the user experience.
[0086] Further, Figure 3 FIG. 2 is a flow chart of a second embodiment of a method for recovering internal data of an SSD according to the present invention. Figure 3As shown, a second embodiment of the SSD internal data recovery method of the present invention is proposed based on the first embodiment. In this embodiment, the step S10 specifically includes the following steps:
[0087] Step S11: Acquire an SSD device that needs to perform data recovery, and determine whether the SSD device supports a preset specific instruction.
[0088] It should be noted that after obtaining the SSD device that needs to perform data recovery, it can be determined in a timely manner whether the SSD device supports the preset specific instructions.
[0089] Step S12: when it is determined that the SSD device supports the preset specific instruction, obtain the data file map data table stored in the SSD.
[0090] It is understandable that when it is determined that the SSD device supports the preset specific instructions, the data file map data table stored in the SSD can be obtained.
[0091] Step S13: Acquire the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure.
[0092] It should be understood that after obtaining the system file structure of the current system, the data file map data table may be analyzed and parsed to obtain system file structure data that conforms to the system file structure.
[0093] In the specific implementation, the software communicates with the firmware to obtain the data file mapping data table stored in the SSD, and analyzes and parses these data tables to obtain the data of the system file structure and specific data files.
[0094] Step S14: recovering data with a folder structure according to the system file structure data.
[0095] It is understandable that data with a folder structure can be restored based on the system file structure data.
[0096] Furthermore, the step S14 specifically includes the following steps:
[0097] The system file structure data is combined with the system characteristics of the current system to restore the folder structure;
[0098] The associated data with the folder structure is restored according to the restored folder structure.
[0099] It should be understood that, in combination with the system characteristics, the system file structure is restored, and then the data files associated with the file system are restored, that is, the system file structure data can be combined with the system characteristics of the current system to restore the folder structure, and the associated data is restored based on the restored folder structure.
[0100] Through the above scheme, this embodiment obtains the SSD device that needs to perform data recovery, and determines whether the SSD device supports preset specific instructions; when it is determined that the SSD device supports the preset specific instructions, obtains the data file map data table stored in the SSD; obtains the system file structure of the current system, analyzes and parses the data file map data table, and obtains system file structure data that conforms to the system file structure; performs data recovery with a folder structure based on the system file structure data; can quickly perform data recovery of the folder structure, thereby improving the speed and efficiency of SSD internal data recovery.
[0101] Further, Figure 4 FIG. 1 is a flow chart of a third embodiment of a method for recovering internal data of an SSD according to the present invention. Figure 4 As shown, a third embodiment of the SSD internal data recovery method of the present invention is proposed based on the first embodiment. In this embodiment, the step S20 specifically includes the following steps:
[0102] Step S21: after detecting that the preset specific instruction is sent to the SSD device, obtaining data file structure data inside the SSD device according to the preset specific instruction.
[0103] It should be noted that after detecting that the preset specific instruction is sent to the SSD device, the data file structure data inside the SSD device can be obtained according to the preset specific instruction.
[0104] Step S22: parse the data file structure data to obtain a parsing result.
[0105] It can be understood that after parsing the data file structure data, a parsing result can be obtained.
[0106] Furthermore, the step S22 specifically includes the following steps:
[0107] Parsing the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes;
[0108] A parsing result is generated according to the folder attribute and the file attribute.
[0109] It should be understood that the data file structure data is parsed according to the tree structure of the current system to obtain folder attributes and file attributes, and then a parsing result can be generated according to the folder attributes and the file attributes.
[0110] It should be noted that the tree structure is a hierarchical nested structure. The outer and inner layers of a tree structure have similar structures. It is an important type of nonlinear data structure. It also refers to a data structure in which there is a "one-to-many" tree relationship between data elements. In Windows, each logical disk has a root directory, each directory includes several folders and several files, and each file or each folder has only one parent directory.
[0111] Through the above scheme, this embodiment obtains the data file structure data inside the SSD device according to the preset specific instruction after detecting that the preset specific instruction is sent to the SSD device; parses the data file structure data to obtain the parsing result, and can quickly obtain the parsing result of the data file structure data, thereby improving the speed and efficiency of data recovery inside the SSD and enhancing the user experience.
[0112] Further, Figure 5 FIG. 4 is a flow chart of a fourth embodiment of a method for recovering internal data of an SSD according to the present invention. Figure 5 As shown, a fourth embodiment of the SSD internal data recovery method of the present invention is proposed based on the first embodiment. In this embodiment, the step S30 specifically includes the following steps:
[0113] Step S31: Obtain system characteristics of the current system.
[0114] It should be noted that when obtaining the system characteristics of the current system, different systems have different system characteristics, that is, different related system settings. The current system includes but is not limited to Windows, Linux and Mac.
[0115] Step S32: Create a specified folder target structure according to the system characteristics and the analysis results.
[0116] It can be understood that a specified folder target structure can be created according to the system characteristics and the parsing results.
[0117] Step S33: Create and repair the data files of the current system according to the folder target structure.
[0118] It should be understood that the data files of the current system can be created and repaired according to the folder target structure.
[0119] Through the above scheme, this embodiment obtains the system characteristics of the current system; creates a specified folder target structure according to the system characteristics and the analysis results; creates and repairs the data files of the current system according to the folder target structure; and can restore the original data on the SSD that has been accidentally deleted or formatted intact. When the user needs to use the SSD data recovery, it can be restored to the state before the data was lost, including the file system and file name can be correctly restored, thereby improving the speed and efficiency of SSD internal data recovery and enhancing the user experience.
[0120] Further, Figure 6 FIG. 5 is a flow chart of a fifth embodiment of a method for recovering internal data of an SSD according to the present invention. Figure 6 As shown, a fifth embodiment of the method for recovering internal data of an SSD according to the present invention is proposed based on the first embodiment. In this embodiment, after step S30, the method specifically includes the following steps:
[0121] Step S40, repeatedly perform data analysis and create and restore data files according to target analysis results until all data file structure data are analyzed.
[0122] It should be noted that after repeated data parsing, data files can be created and restored according to the target parsing results until all data file structure data is parsed.
[0123] In the specific implementation, the recovery process with file directory structure is as follows:
[0124] 1. Start the software and find the SSD device that needs data recovery.
[0125] 2. Confirm that the SSD device supports specific instructions.
[0126] 3. The user chooses to recover data with a folder structure.
[0127] 4. Send a specific command to the SSD to obtain the data file structure data inside the SSD.
[0128] 5. Parse the data file structure data, and according to the tree structure, parse out which are folder attributes and which are file attributes.
[0129] 6. Based on the system characteristics, create the specified folder directory structure, and then create and restore data files.
[0130] 7. Repeat steps 5 and 6 until the data file structure data is parsed.
[0131] Through the above scheme, this embodiment repeatedly performs data parsing and creates and restores data files according to the target parsing results until all data file structure data are parsed; the original data that is accidentally deleted or formatted on the SSD can be restored intact, thereby improving the user experience.
[0132] Accordingly, the present invention further provides an SSD internal data recovery device.
[0133] Reference Figure 7 , Figure 7 It is a functional module diagram of the first embodiment of the SSD internal data recovery device of the present invention.
[0134] In a first embodiment of the SSD internal data recovery device of the present invention, the SSD internal data recovery device comprises:
[0135] The data recovery module 10 is used to obtain an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device.
[0136] The data analysis module 20 is used to perform data analysis according to the preset specific instruction to obtain the analysis result after detecting that the preset specific instruction is sent to the SSD device.
[0137] The file creation and repair module 30 is used to create a specified folder target structure according to the analysis result, and to create and repair data files according to the folder target structure.
[0138] The data recovery module 10 is also used to obtain an SSD device that needs to perform data recovery, and determine whether the SSD device supports preset specific instructions; when it is determined that the SSD device supports the preset specific instructions, obtain the data file map data table stored in the SSD; obtain the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure; and perform data recovery with a folder structure based on the system file structure data.
[0139] The data recovery module 10 is further used to combine the system file structure data with the system characteristics of the current system to recover the folder structure; and to recover the data associated with the folder structure according to the recovered folder structure.
[0140] The data parsing module 20 is further used to obtain the data file structure data inside the SSD device according to the preset specific instruction after detecting that the preset specific instruction is sent to the SSD device; and parse the data file structure data to obtain a parsing result.
[0141] The data parsing module 20 is further used to parse the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes; and generate parsing results according to the folder attributes and the file attributes.
[0142] The file creation and repair module 30 is also used to obtain the system characteristics of the current system; create a specified folder target structure according to the system characteristics and the analysis results; and create and repair the data files of the current system according to the folder target structure.
[0143] The file creation and repair module 30 is further used to repeatedly perform data analysis and create and restore data files according to target analysis results until all data file structure data are analyzed.
[0144] The steps implemented by the functional modules of the SSD internal data recovery device may refer to the various embodiments of the SSD internal data recovery method of the present invention, and will not be described in detail here.
[0145] In addition, an embodiment of the present invention further provides a storage medium, on which an SSD internal data recovery program is stored. When the SSD internal data recovery program is executed by a processor, the following operations are implemented:
[0146] Acquire an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device;
[0147] After detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result;
[0148] A specified folder target structure is created according to the parsing result, and data files are created and repaired according to the folder target structure.
[0149] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0150] Obtain an SSD device for which data recovery is required, and determine whether the SSD device supports a preset specific instruction;
[0151] When it is determined that the SSD device supports the preset specific instruction, obtaining a data file map data table stored in the SSD;
[0152] Acquire the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure;
[0153] Data with a folder structure is restored according to the system file structure data.
[0154] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0155] The system file structure data is combined with the system characteristics of the current system to restore the folder structure;
[0156] The associated data with the folder structure is restored according to the restored folder structure.
[0157] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0158] After detecting that the preset specific instruction is sent to the SSD device, obtaining data file structure data inside the SSD device according to the preset specific instruction;
[0159] The data file structure data is parsed to obtain a parsing result.
[0160] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0161] Parsing the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes;
[0162] A parsing result is generated according to the folder attribute and the file attribute.
[0163] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0164] Get the system characteristics of the current system;
[0165] Creating a specified folder target structure according to the system characteristics and the parsing results;
[0166] The data files of the current system are created and repaired according to the folder target structure.
[0167] Furthermore, when the SSD internal data recovery program is executed by the processor, the following operations are also implemented:
[0168] Repeat the data analysis and create and restore the data files according to the target analysis results until all the data file structure data has been analyzed.
[0169] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned implementation method can be accomplished by instructing related hardware through a program, and the program is stored in a storage medium, including a number of instructions for enabling a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in each implementation method of the present application; and the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.
[0170] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0171] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0172] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for recovering data inside an SSD, characterized in that: The SSD internal data recovery method comprises: Acquire an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, perform data recovery with a folder structure according to the SSD device; After detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result; A specified folder target structure is created according to the parsing result, and data files are created and repaired according to the folder target structure.
2. The method for recovering internal data of an SSD according to claim 1, wherein: The step of obtaining an SSD device that needs to perform data recovery, and performing data recovery with a folder structure according to the SSD device when it is determined that the SSD device supports a preset specific instruction, includes: Obtain an SSD device for which data recovery is required, and determine whether the SSD device supports a preset specific instruction; When it is determined that the SSD device supports the preset specific instruction, obtaining a data file map data table stored in the SSD; Acquire the system file structure of the current system, analyze and parse the data file map data table, and obtain system file structure data that conforms to the system file structure; Data with a folder structure is restored according to the system file structure data.
3. The method for recovering internal data of an SSD according to claim 2, wherein: The data recovery with folder structure according to the system file structure data includes: The system file structure data is combined with the system characteristics of the current system to restore the folder structure; The associated data with the folder structure is restored according to the restored folder structure.
4. The method for recovering internal data of an SSD according to claim 1, wherein: After detecting that the preset specific instruction is sent to the SSD device, performing data parsing according to the preset specific instruction to obtain a parsing result includes: After detecting that the preset specific instruction is sent to the SSD device, obtaining data file structure data inside the SSD device according to the preset specific instruction; The data file structure data is parsed to obtain a parsing result.
5. The method for recovering internal data of an SSD according to claim 4, wherein: The step of parsing the data file structure data to obtain a parsing result includes: Parsing the data file structure data according to the tree structure of the current system to obtain folder attributes and file attributes; A parsing result is generated according to the folder attribute and the file attribute.
6. The method for recovering internal data of an SSD according to claim 1, wherein: The step of creating a specified folder target structure according to the parsing result, and creating and repairing a data file according to the folder target structure includes: Get the system characteristics of the current system; Creating a specified folder target structure according to the system characteristics and the parsing results; The data files of the current system are created and repaired according to the folder target structure.
7. The method for recovering internal data of an SSD according to claim 1, wherein: After creating a specified folder target structure according to the parsing result and creating and repairing data files according to the folder target structure, the SSD internal data recovery method further includes: Repeat the data analysis and create and restore the data files according to the target analysis results until all the data file structure data has been analyzed.
8. A device for recovering data inside an SSD, characterized in that: The SSD internal data recovery device comprises: A data recovery module, used for acquiring an SSD device that needs to perform data recovery, and when it is determined that the SSD device supports a preset specific instruction, performing data recovery with a folder structure according to the SSD device; A data parsing module, configured to perform data parsing according to the preset specific instruction to obtain a parsing result after detecting that the preset specific instruction is sent to the SSD device; The file creation and repair module is used to create a specified folder target structure according to the analysis result, and to create and repair data files according to the folder target structure.
9. An SSD internal data recovery device, characterized in that: The SSD internal data recovery device includes: a memory, a processor, and an SSD internal data recovery program stored in the memory and executable on the processor, wherein the SSD internal data recovery program is configured to implement the steps of the SSD internal data recovery method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium stores an SSD internal data recovery program, and when the SSD internal data recovery program is executed by the processor, the steps of the SSD internal data recovery method according to any one of claims 1 to 7 are implemented.
