A processing method and a processing device

By sending repair instructions to the storage component and controlling its operation of repair files, the problem of corruption of internal programs in the storage component is solved, and reliable data recovery is achieved.

CN112667168BActive Publication Date: 2025-03-25LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011630227.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2025-03-25
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The prior art is difficult to recover data when internal programs of the storage component are damaged, resulting in the inability to repair the storage component if it is unrecognized.

Method used

By determining the abnormal state of the storage component, sending repair instructions to it, and controlling it to run the target repair file to repair from the abnormal state to the normal state.

Benefits of technology

The repair of storage components is realized to ensure reliable data recovery, and solve the problem of data loss caused by storage components being unable to recognize.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112667168B_ABST
    Figure CN112667168B_ABST
Patent Text Reader

Abstract

The present application provides a processing method and a processing device, the method comprising: if it is determined that a target storage component is abnormal, sending a repair instruction to the target storage component, controlling the target storage component to run a target repair file, so as to repair the target storage component from an abnormal state to a normal state. It can be seen that the present application can, when it is determined that the target storage component is abnormal, send a repair instruction to the target storage component, control the target storage component to run a target repair file so that the target storage component returns to normal, thereby realizing the repair of the target storage component.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of storage technology, and more specifically to a processing method and a processing device. Background Art

[0002] Storage components have been widely deployed in various electronic devices, such as solid-state drives. However, due to the characteristics of storage components, there may be problems such as disk recognition and disk loss, which may lead to the loss of user data stored on the storage components. For users, data is priceless, so it is very important to provide a reliable method to recover data.

[0003] Existing data recovery methods all recover data by re-establishing the file system under the premise that the storage component can be identified. However, for some storage components, when their internal programs are damaged, they often cannot be identified, which will lead to the inability to recover data. Therefore, how to repair the storage component with damaged internal programs has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] This application provides the following technical solutions:

[0005] A processing method, comprising:

[0006] If it is determined that the target storage component is abnormal, a repair instruction is sent to the target storage component, and the target storage component is controlled to run a target repair file to repair the target storage component from an abnormal state to a normal state.

[0007] Optionally, determining that the target storage component is abnormal includes:

[0008] If the target storage component cannot be detected, determining that the target storage component is abnormal; or,

[0009] If a target signal sent by a target storage component is received, it is determined that the target storage component is abnormal; or,

[0010] If no response information of the target storage component executing the erase command is received within the first time period, it is determined that the target storage component is abnormal.

[0011] Optionally, the sending a repair instruction to the target storage component includes:

[0012] Determining an abnormality type of the target storage component;

[0013] According to the exception type, a target repair file corresponding to the exception type is obtained from other storage media different from the target storage component, and the target repair file is transmitted to the target storage component through a transmission method corresponding to the exception type;

[0014] After determining that the target storage component has completed the transmission, a repair instruction is sent to the target storage component.

[0015] Optionally, controlling the target storage component to run the target repair file includes:

[0016] Obtaining first verification information corresponding to the target storage component, and sending the first verification information to the target storage component;

[0017] If the first verification information passes the verification of the target storage component, the target storage component is controlled to run the target repair file to perform an abnormal repair operation.

[0018] Optionally, also include:

[0019] Acquire the abnormality repair information of the target storage component to adjust its own first control parameter and the second control parameter used to control the target storage component according to the abnormality repair information.

[0020] Optionally, the sending of the repair instruction to the target storage component includes: if a target repair file corresponding to the abnormal type is stored in the target storage component, sending the repair instruction to the target storage component;

[0021] Accordingly, controlling the target storage component to run the target repair file includes:

[0022] Determining an abnormality type of the target storage component;

[0023] The target storage component is controlled to respond to the repair command to execute a target repair file corresponding to the abnormal type.

[0024] Optionally, transmitting the target repair file to the target storage component in a transmission mode corresponding to the exception type includes:

[0025] If the exception type is a first exception type, determining a first transmission mode corresponding to the first exception type, and transmitting the target repair file to the target storage component through a first bus under the first transmission mode;

[0026] If the exception type is a second exception type, determining a second transmission mode corresponding to the second exception type, and transmitting the target repair file to the target storage component through a second bus under the second transmission mode;

[0027] The first bus is a bus that operates normally in the target storage component and communicates with the target storage component, and the second bus is different from the first bus.

[0028] Optionally, also include:

[0029] If an erase instruction is obtained when the target storage component is in a normal state, controlling the target storage component in a normal state to run the target erase file to perform an erase operation; or,

[0030] If an erasing instruction is obtained when the target storage component is in an abnormal state, the target storage component is controlled to execute an abnormal repair operation and then run a target erasing file to execute an erasing operation corresponding to the erasing instruction.

[0031] Optionally, also include:

[0032] Sending the target erased file and the second verification information corresponding to the target storage component to the target storage component;

[0033] If the second verification information passes the verification of the target storage component, the target storage component is controlled to run the target erasure file to perform an erasure operation.

[0034] A processing device, comprising:

[0035] A first determination module, used to determine that the target storage component is abnormal;

[0036] A first sending module, used for sending a repair instruction to the target storage component;

[0037] The first control module is used to control the target storage component to run a target repair file to repair the target storage component from an abnormal state to a normal state.

[0038] An electronic device, comprising:

[0039] Memory, used to store programs;

[0040] The processor is used to send a repair instruction to the target storage component if it is determined that the target storage component is abnormal, and control the target storage component to run a target repair file to repair the target storage component from an abnormal state to a normal state by running the program.

[0041] A storage medium stores a program, wherein if a target storage component is determined to be abnormal, a repair instruction is sent to the target storage component, and the target storage component is controlled to run a target repair file to repair the target storage component from an abnormal state to a normal state.

[0042] It can be seen from the above technical solution that the present application provides a processing method. If it is determined that the target storage component is abnormal, a repair instruction is sent to the target storage component, and the target storage component is controlled to run a target repair file to repair the target storage component from an abnormal state to a normal state. It can be seen that the present application can, when it is determined that the target storage component is abnormal, send a repair instruction to the target storage component, control the target storage component to run a target repair file, and restore the target storage component to normal, thereby realizing the repair of the target storage component. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0044] Figure 1 A flowchart of a processing method provided for a method embodiment of the present application;

[0045] Figure 2 A flowchart of a processing method provided for another method embodiment of the present application;

[0046] Figure 3 A schematic diagram of the structure of a processing device provided for an embodiment of the present application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] The present application method embodiment provides a processing method, such as Figure 1 As shown, the method comprises the following steps:

[0049] Step 101: Determine that the target storage component is abnormal;

[0050] In the present application, the target storage component is a component for storing data, for example, the target storage component may be a solid state drive SSD, more specifically, an SSD based on NAND medium. A processing method provided in the present application may be applied to a processing component in an electronic device that can communicate with the target storage component, such as the processing component may be a processor of a host, or may also be a basic input and output system BIOS in the host.

[0051] Determining that the target storage component is abnormal may include any of the following methods:

[0052] First, if the target storage component cannot be detected, it is determined that the target storage component is abnormal.

[0053] At startup or when data in the target storage component needs to be used, the target storage component will be detected. If the target storage component cannot be detected, it is determined that the target storage component is abnormal.

[0054] Specifically, the target storage component may be detected through a first bus, where the first bus is a bus that normally communicates with the target storage component, such as a PCIE bus.

[0055] It should be noted that if the target storage component cannot be detected through the first bus, the target storage component can be searched through the first bus or a second bus different from the first bus, such as the SMbus bus, to give the target storage component enough response time to perform abnormality repair.

[0056] It should be noted that the second bus may be a bus belonging to the Out-band data link layer, and can work normally when the first bus fails. That is, when searching for the target storage component through the second bus different from the first bus, in one way, as long as the target storage component cannot be detected through the first bus, the target storage component is searched through the second bus; in another way, the target storage component can be searched through the second bus when the first bus fails.

[0057] Second, if a target signal sent by a target storage component is received, it is determined that the target storage component is abnormal.

[0058] When the target storage component cannot be started normally, a target signal can be sent to the processing component communicating with it to notify that it is currently in an abnormal state. The target signal can specifically be a notification signal, such as an Alert# signal.

[0059] Specifically, the target signal sent by the target storage component may be received through the first bus or a second bus different from the first bus.

[0060] Thirdly, if no response information of the target storage component executing the erase command is received within the first time period, it is determined that the target storage component is abnormal.

[0061] In this way, when an erase command is received for the target storage component, an erase operation can be performed on the target storage component based on the erase command. If the target storage component is abnormal, the target storage component cannot respond to the erase instruction. That is, if no response information of the target storage component executing the erase command is received within the first time period, it is determined that the target storage component is abnormal.

[0062] The first duration can be flexibly set in advance, and this application does not limit it to a specific value.

[0063] Step 102: Sending a repair instruction to the target storage component;

[0064] When it is determined that the target storage component is abnormal, a repair instruction may be sent to the target storage component. In the present application, sending the repair instruction to the target storage component may include the following process:

[0065] (1) determining the abnormality type of the target storage component;

[0066] The abnormality of the target storage component includes at least two types, one is the abnormality caused by ROM damage, and the other is the abnormality caused by FW damage.

[0067] The target storage component stores an initialization file ROM code and at least one working file Normal FW, wherein ROM CODE is used to guide the initialization action and runs in RAM, and Normal FW is used to control the normal operation of the target storage component. Under normal circumstances, when the target storage component is powered on, ROM code is first run to initialize, and after the initialization is completed, the complete Normal FW is imported into the memory of the target storage component, and the target storage component is maintained in a normal state by Normal FW.

[0068] The damage of ROM code or Normal FW will cause the target storage component to be abnormal, that is, the abnormal types of the target storage component include abnormalities caused by ROM damage and abnormalities caused by Normal FW damage.

[0069] The target storage component may feedback its abnormality type. For example, the target storage component may feedback the abnormality type through a target signal. For example, the target signal may be an Alert# signal, and different types of Alert# signals correspond to different abnormality types.

[0070] (2) obtaining a target repair file corresponding to the exception type from another storage medium different from the target storage component according to the exception type, and transmitting the target repair file to the target storage component through a transmission method corresponding to the exception type;

[0071] In the present application, different abnormality types correspond to different repair files, and specifically, the target repair file corresponding to the abnormality type is obtained from other storage media different from the target storage component. Among them, other storage media can correspond to the storage area in the basic input and output system, or to the memory of the electronic device, or to the external storage of the electronic device, or to the network storage, etc., which are all achievable.

[0072] In one mode, a special area inside the target storage component may store different repair files corresponding to different abnormality types, and the special area is different from the area storing ROM code and Normal FW. The repair file may be burned into the target storage component when the target storage component leaves the factory, and then optionally, the repair file stored inside the target storage component may be backed up to other storage media related to the electronic device and different from the target storage component when the target storage component is powered on for the first time or when the electronic device to which it belongs is started for the first time, so as to ensure that the repair file in the other storage media can be used if the repair file inside the target storage component is unavailable.

[0073] Of course, the target storage component may not store the repair file. The repair files in other storage media are not limited to come from the target storage component and can also be obtained from other locations. This application does not limit this.

[0074] Specifically, the target storage component is controlled to respond to the repair command so as to import the target repair file stored in the special area of ​​the target storage component into the memory, thereby running the target repair file.

[0075] In the present application, transmitting the target repair file to the target storage component by a transmission method corresponding to the exception type may include the following steps:

[0076] (2.1) If the exception type is a first exception type, determine a first transmission mode corresponding to the first exception type, and transmit the target repair file to the target storage component through a first bus under the first transmission mode;

[0077] In the present application, different exception types may correspond to different transmission methods. Specifically, the first exception type corresponds to the first transmission method. For example, if the first exception type is an exception caused by damage to the Normal FW, then this exception will not cause the first bus to fail, so the target repair file can be transmitted to the target storage component through the first bus.

[0078] (2.2) if the exception type is a second exception type, determining a second transmission mode corresponding to the second exception type, and transmitting the target repair file to the target storage component through a second bus under the second transmission mode;

[0079] The second exception type corresponds to the second transmission mode. For example, if the second exception type is an exception caused by ROM damage, then this exception generally causes the first bus to fail. Therefore, the target repair file can be transmitted to the target storage component through the second bus.

[0080] The first bus is a bus that communicates with the target storage component when the target storage component is normal, such as a PCIE bus, and the second bus is different from the first bus and can be used when the first bus fails, such as an SMbus bus.

[0081] (3) After determining that the target storage component has completed the transmission, sending a repair instruction to the target storage component.

[0082] After all the target repair files are transferred to the target storage component, it is determined that the target storage component has completed the transfer, and then a repair instruction is sent to the target storage component. The repair instruction can be used to control the operation of the target repair file.

[0083] Specifically, the repair instruction may be referred to as an Active# instruction.

[0084] Step 103: Control the target storage component to run the target repair file to repair the target storage component from an abnormal state to a normal state.

[0085] Since the target repair file corresponds to the exception type, the exception repair completed by controlling the target storage component to run the target repair file is also a modification based on the exception type. If the exception type is caused by ROM damage, then the ROM code can be restored to normal by controlling the target storage component to run the target repair file. If the exception type is caused by Normal FW damage, then the Normal FW can be restored to normal by controlling the target storage component to run the target repair file.

[0086] In the present application, as described above, the target storage component may store a target repair file corresponding to the abnormal type. In response to this situation, the sending of the repair instruction to the target storage component may include: if the target storage component stores a target repair file corresponding to the abnormal type, sending the repair instruction to the target storage component. Correspondingly, the controlling the target storage component to run the target repair file includes: determining the abnormal type of the target storage component; controlling the target storage component to respond to the repair command to run the target repair file corresponding to the abnormal type.

[0087] That is, if the target storage component stores a target repair file corresponding to the abnormal type, there is no need to transmit the target repair file to the target storage component, but the target storage component is controlled to respond to the repair command to run the target repair file corresponding to the abnormal type. Specifically, the target storage component can be controlled to respond to the repair command so as to import the target repair file stored in the special area of ​​the target storage component into the memory of the target storage component, thereby running the target repair file to repair the target storage component from the abnormal state to the normal state.

[0088] The method for determining the abnormal type of the target storage component can refer to the above description, which will not be repeated here.

[0089] It can be seen that the present application can, when determining that the target storage component is abnormal, send a repair instruction to the target storage component, control the target storage component to run the target repair file so that the target storage component returns to normal, thereby realizing the repair of the target storage component.

[0090] In the present application, in order to ensure the security of repair, in the process of controlling the target storage component to run the target repair file, a security verification may be performed first. Optionally, controlling the target storage component to run the target repair file may include the following process:

[0091] (1) obtaining first verification information corresponding to the target storage component, and sending the first verification information to the target storage component;

[0092] Specifically, an input interface may be provided for the user to input the first verification information, thereby obtaining the first verification information and sending it to the target storage component. Alternatively, the first verification information may be obtained from an encryption area of ​​the electronic device.

[0093] (2) If the first verification information passes the verification of the target storage component, control the target storage component to run the target repair file to perform an abnormal repair operation.

[0094] It should be noted that the verification of the first verification information can prevent the import and execution of illegal repair files. After the target storage component verifies the first verification information, the target storage component can be controlled to execute the target repair file to perform the abnormal repair operation.

[0095] In the present application, in order to ensure that the target storage component can be repaired normally, the method may further include the following process:

[0096] Acquire the abnormality repair information of the target storage component to adjust its own first control parameter and the second control parameter used to control the target storage component according to the abnormality repair information.

[0097] In which, during the process of the target storage component running the target repair file for repair, abnormal repair information containing the repair progress can be fed back so that the processing component in the electronic device can adjust its own first control parameter and the second control parameter for controlling the target storage component according to the abnormal repair information.

[0098] Among them, the first control parameter and the second control parameter are used to ensure that the target storage component can complete the abnormal repair work. For example, the first control parameter is used to control itself to be in a working state, and the second control parameter can be used to control the target storage component to be in a working state, that is, a normal power-on state without entering a low power consumption or sleep state.

[0099] Optionally, after the target storage component is repaired from an abnormal state to a normal state, a repair completion status may be fed back. After determining that the modification of the target storage component is complete, other processing may be performed on the target storage component, such as normal communication or erasing the target storage component.

[0100] In practical applications, the confidentiality of data stored in the target storage component is of vital importance to users. Therefore, in order to ensure the security of data, users have the need to erase the data in the target storage component. However, currently, data in the target storage component in a normal state is erased, and it is impossible to erase the target storage component in an abnormal state. However, this leads to the risk of data loss in the target storage component, such as hackers can recover data through the metadata of the target storage component.

[0101] To solve the above problems, the present application also provides a processing method, such as Figure 2 As shown, the method comprises the following steps:

[0102] Step 201: Obtain an erase instruction;

[0103] Step 202: Detect the status of the target storage component;

[0104] Step 203: If the target storage component is in a normal state, control the target storage component in a normal state to run the target erasure file to perform an erasure operation;

[0105] Step 204: If the target storage component is in an abnormal state, send a repair instruction to the target storage component;

[0106] Step 205: Control the target storage component to run the target repair file to repair the target storage component from an abnormal state to a normal state;

[0107] Step 206: Control the target storage component to execute the abnormal repair operation and then run the target erasure file to execute the erasure operation corresponding to the erasure instruction.

[0108] That is to say, in the present application, if an erase instruction is obtained when the target storage component is in a normal state, the target storage component in a normal state is controlled to run the target erase file to perform an erase operation; or, if an erase instruction is obtained when the target storage component is in an abnormal state, the target storage component is controlled to execute an abnormal repair operation and then run the target erase file to perform the erase operation corresponding to the erase instruction.

[0109] Through the above manner, the erasing operation can cover all target storage components, and in particular, the erasing operation can also be performed on abnormal target storage components to ensure that data will not be leaked.

[0110] Furthermore, in order to ensure the legitimacy of erasure, the method may also include the following process:

[0111] Sending the target erasure file and the second verification information corresponding to the target storage component to the target storage component; if the second verification information passes the verification of the target storage component, controlling the target storage component to run the target erasure file to perform an erasure operation.

[0112] Specifically, an input interface may be provided for the user to input the second verification information, thereby obtaining the second verification information and sending it to the target storage component. Alternatively, the second verification information may be obtained in other ways, such as collecting feature information related to the user through a collector, and using the collected feature information as the second verification information.

[0113] The second verification information may be a default encryption password of the target storage component, and a legitimate user may obtain and input the encryption password. Of course, the second verification information may also be identity verification information, authority verification information, and the like.

[0114] It should be noted that if the target storage component stores a target erasure file, it is also possible not to send the target erasure file to the target storage component, but directly control the target storage component to run the target erasure file to perform the erasure operation, or after sending the second verification information corresponding to the target storage component to the target storage component, if the second verification information passes the verification of the target storage component, control the target storage component to run the target erasure file to perform the erasure operation.

[0115] To facilitate understanding, two specific examples are provided below.

[0116] Example 1

[0117] The first storage area of ​​the solid state drive SSD stores ROM code and multiple copies of Normal FW, and the second storage area is a special storage area, different from the first storage area, storing a repair file for data repair.

[0118] In this example, the processing component is a basic input and output system BIOS. When the BIOS is started, if it is determined that the SSD cannot be detected normally, it is determined that the SSD is currently in an abnormal state, and the corresponding SSD can be searched through the SMbus.

[0119] When the ROM CODE in the SSD cannot be started, or the Normal FW cannot be started, the SSD also sends an Alert# signal through the SMBus to notify the BIOS that it is currently in an abnormal state.

[0120] After the BIOS detects the Alert# signal, it determines the abnormality type according to the type of Alert#, and determines the target repair file corresponding to the abnormality type.

[0121] If the repair file in the SSD is unavailable, the BIOS can transfer the target repair file to the SSD via the SMBus bus or the PCIe bus.

[0122] After confirming that the target repair file has been transferred, the BIOS sends an Active# command to control the operation of the target repair file in the SSD.

[0123] If the repair file in the SSD is available, the BIOS can directly send an Active# command to control the SSD to import the corresponding target repair file into the internal RAM, thereby running the target repair file.

[0124] Before the target repair file is run, the BIOS needs to enter the corresponding password PSID. After the SSD verification is confirmed, the corresponding target repair file is run to perform the abnormal repair operation.

[0125] During the SSD repair process, the progress information of the abnormal repair can be fed back to the BIOS, so that the BIOS can ensure that the SSD is always powered on during the repair process.

[0126] After the SSD is repaired, the repair status can be fed back to the BIOS.

[0127] Example 2

[0128] The solid state drive SSD stores ROM code and multiple copies of Normal FW. When the ROM code fails, the ROM can notify the Host (corresponding to the processing component in this application) through #SMBALETER that the ROM has been damaged and needs to be repaired. If the SSD ROM code is not damaged, the ROM code detects the integrity of the Normal FW. If it is found that the Normal FW cannot be started, it notifies the host through #SMBALETER that the Normal FW is damaged and needs to be repaired.

[0129] The host receives #SMBALETER, determines the exception type, obtains the corresponding target repair file, transfers the target repair file to the SSD, and controls the SSD to run the target repair file, thereby repairing the metadata and table data in the SSD.

[0130] After confirming that the SSD is repaired, the Host transmits a target erasure file with an erasure function to the SSD based on the acquired erasure instruction. After the transmission is completed, the Host obtains the default encryption password PSID on the hard disk entered by the user. After the SSD verifies the password successfully, it runs the target erasure file.

[0131] After the SSD completes the erase operation, it feeds back the status to the Host.

[0132] Corresponding to the above processing method, the present application also provides a processing device, such as Figure 3 As shown, the processing device includes: a first determination module 310, a first sending module 320 and a first control module 330;

[0133] in:

[0134] The first determining module 310 is configured to determine whether a target storage component is abnormal.

[0135] The first determining module 310 may include any one of the following units:

[0136] The first type, a first determination unit, is configured to determine that the target storage component is abnormal if the target storage component cannot be detected.

[0137] The second type is a second determination unit, which is used to determine that the target storage component is abnormal if a target signal sent by the target storage component is received.

[0138] The third type is a third determination unit, which is used to determine that the target storage component is abnormal if no response information of the target storage component executing the erase command is received within a first time period.

[0139] The first determining unit may detect the target storage component at startup or when data in the target storage component needs to be used. If the target storage component cannot be detected, the target storage component is determined to be abnormal.

[0140] Specifically, the first determining unit may detect the target storage component through a first bus, where the first bus is a bus that normally communicates with the target storage component, such as a PCIE bus.

[0141] It should be noted that if the target storage component cannot be detected through the first bus, the target storage component can be searched through the first bus or a second bus different from the first bus, such as the SMbus bus, to give the target storage component enough response time to perform abnormality repair.

[0142] It should be noted that the second bus may be a bus belonging to the Out-band data link layer, and can work normally when the first bus fails. That is, when searching for the target storage component through the second bus different from the first bus, in one way, as long as the target storage component cannot be detected through the first bus, the target storage component is searched through the second bus; in another way, the target storage component can be searched through the second bus when the first bus fails.

[0143] The second determining unit may receive the target signal sent by the target storage component through the first bus or a second bus different from the first bus.

[0144] The first sending module 320 is configured to send a repair instruction to the target storage component.

[0145] In one embodiment, the first sending module 302 may include:

[0146] A type determination unit, used to determine the abnormal type of the target storage component;

[0147] an acquisition transmission unit, configured to obtain a target repair file corresponding to the abnormality type from other storage media different from the target storage component according to the abnormality type, and transmit the target repair file to the target storage component through a transmission method corresponding to the abnormality type;

[0148] A determination sending unit is used to send a repair instruction to the target storage component after determining that the target storage component has completed the transmission.

[0149] The abnormality of the target storage component includes at least two types, one is the abnormality caused by ROM damage, and the other is the abnormality caused by FW damage.

[0150] Optionally, the acquisition transmission unit transmits the target repair file to the target storage component through a transmission method corresponding to the exception type, which may specifically include: if the exception type is a first exception type, determining a first transmission method corresponding to the first exception type, and transmitting the target repair file to the target storage component through a first bus under the first transmission method; if the exception type is a second exception type, determining a second transmission method corresponding to the second exception type, and transmitting the target repair file to the target storage component through a second bus under the second transmission method.

[0151] The first exception type corresponds to the first transmission mode. For example, if the first exception type is an exception caused by damage to the Normal FW, then this exception will not cause the first bus to fail, so the target repair file can be transmitted to the target storage component through the first bus. The second exception type corresponds to the second transmission mode. For example, if the second exception type is an exception caused by damage to the ROM, then this exception generally causes the first bus to fail, so the target repair file can be transmitted to the target storage component through the second bus.

[0152] The first bus is a bus that communicates with the target storage component when the target storage component is normal, such as a PCIE bus, and the second bus is different from the first bus and can be used when the first bus fails, such as an SMbus bus. The first control module 330 is used to control the target storage component to run the target repair file to repair the target storage component from an abnormal state to a normal state.

[0153] Since the target repair file corresponds to the exception type, the exception repair completed by controlling the target storage component to run the target repair file is also a modification based on the exception type. If the exception type is caused by ROM damage, then the ROM code can be restored to normal by controlling the target storage component to run the target repair file. If the exception type is caused by Normal FW damage, then the Normal FW can be restored to normal by controlling the target storage component to run the target repair file.

[0154] In the present application, the target storage component may store a target repair file corresponding to the abnormal type. In this case, the first sending module specifically includes:

[0155] A file determination unit, used for determining whether a target repair file corresponding to the abnormality type is stored in the target storage component;

[0156] The first sending unit is used to send a repair instruction to the target storage component.

[0157] Correspondingly, the first control module includes:

[0158] A type determination unit, used to determine the abnormal type of the target storage component;

[0159] The first control unit is used to control the target storage component to respond to the repair command to run a target repair file corresponding to the abnormal type.

[0160] It can be seen that the present application can, when determining that the target storage component is abnormal, send a repair instruction to the target storage component, control the target storage component to run the target repair file so that the target storage component returns to normal, thereby realizing the repair of the target storage component.

[0161] In the present application, in order to ensure the security of repair, in the process of controlling the target storage component to run the target repair file, a security verification may be performed first. Optionally, the first control module includes:

[0162] The obtaining and sending unit is used to obtain the first verification information corresponding to the target storage component and send the first verification information to the target storage component.

[0163] A control operation unit is used for controlling the target storage component to execute the target repair file to perform an abnormal repair operation after the first verification information passes the verification of the target storage component.

[0164] The obtaining and sending unit may provide an input interface for the user to input the first verification information, thereby obtaining the first verification information and sending it to the target storage component, or the first verification information may be obtained from an encrypted area in a storage module included in the processing device.

[0165] In the present application, in order to ensure that the target storage component can be repaired normally, the processing device may further include:

[0166] An information acquisition module is used to acquire abnormality repair information of a target storage component;

[0167] The parameter adjustment module is used to adjust its own first control parameter and a second control parameter used to control the target storage component according to the abnormal repair information.

[0168] In the process of the target storage component running the target repair file for repair, abnormal repair information including the repair progress can be fed back so that its own first control parameter and the second control parameter for controlling the target storage component can be adjusted according to the abnormal repair information.

[0169] Among them, the first control parameter and the second control parameter are used to ensure that the target storage component can complete the abnormal repair work. For example, the first control parameter is used to control itself to be in a working state, and the second control parameter can be used to control the target storage component to be in a working state, that is, a normal power-on state without entering a low power consumption or sleep state.

[0170] In practical applications, the confidentiality of the data stored in the target storage component is of vital importance to the user. In order to ensure the security of the data, the user has the need to erase the data in the target storage component. However, currently, the data in the target storage component in a normal state is erased, and the target storage component in an abnormal state cannot be erased. However, this leads to the risk of data loss in the target storage component, such as hackers can recover the data through the metadata of the target storage component. To solve this problem, in another device embodiment of the present application, the processing device also includes:

[0171] The first erasure control module is used to obtain an erasure instruction when the target storage component is in a normal state, and control the target storage component in the normal state to run the target erasure file to perform an erasure operation.

[0172] Alternatively, the second erasure control module is used to obtain an erasure instruction when the target storage component is in an abnormal state, and control the target storage component to execute an abnormal repair operation and then run the target erasure file to execute the erasure operation corresponding to the erasure instruction.

[0173] Furthermore, in order to ensure the legality of erasure, in another device embodiment of the present application, the processing device further includes:

[0174] A second sending module, used for sending the target erasure file and the second verification information corresponding to the target storage component to the target storage component;

[0175] The erasing control module is used for controlling the target storage component to run the target erasing file to perform an erasing operation if the second verification information passes the verification of the target storage component.

[0176] Specifically, the second sending module can obtain the second verification information input by the user, thereby obtaining the first verification information and sending it to the target storage component. The second verification information can be the default encryption password of the target storage component, or identity verification information, or authority verification information.

[0177] It should be noted that if the target storage component stores a target erasure file, the first sending module may only send the second verification information corresponding to the target storage component to the target storage component, and then control the erasure module to control the target storage component to run the target erasure file to perform the erasure operation if the second verification information passes the verification of the target storage component.

[0178] The device embodiment of the present application further provides an electronic device, including a memory and a processor, wherein:

[0179] Memory, used to store programs;

[0180] The processor is used to send a repair instruction to the target storage component if it is determined that the target storage component is abnormal, and control the target storage component to run a target repair file to repair the target storage component from an abnormal state to a normal state by running the program.

[0181] For a specific description of the processor, please refer to the description of a processing method in the above method embodiment, which will not be repeated here.

[0182] The present application also provides a storage medium storing a program, wherein if a target storage component is determined to be abnormal, a repair instruction is sent to the target storage component, and the target storage component is controlled to run a target repair file to repair the target storage component from an abnormal state to a normal state.

[0183] The specific implementation method and corresponding other embodiments can be found in the description of a processing method in the above method embodiment, which will not be repeated here in detail.

[0184] The features described in the various embodiments of this specification can be replaced or combined with each other. Each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0185] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A processing method comprising: If it is determined that the target storage component is abnormal, sending a repair instruction to the target storage component, controlling the target storage component to run a target repair file, so as to repair the target storage component from an abnormal state to a normal state; The sending of the repair instruction to the target storage component includes: Determining an abnormality type of the target storage component; According to the exception type, a target repair file corresponding to the exception type is obtained from other storage media different from the target storage component, and the target repair file is transmitted to the target storage component through a transmission method corresponding to the exception type; After determining that the target storage component has completed the transmission, a repair instruction is sent to the target storage component.

2. The method according to claim 1, wherein determining that the target storage component is abnormal comprises: If the target storage component cannot be detected, determining that the target storage component is abnormal; or, If a target signal sent by a target storage component is received, determining that the target storage component is abnormal; or, If no response information of the target storage component executing the erase command is received within the first time period, it is determined that the target storage component is abnormal.

3. The method according to claim 1, wherein controlling the target storage component to run the target repair file comprises: Obtaining first verification information corresponding to the target storage component, and sending the first verification information to the target storage component; If the first verification information passes the verification of the target storage component, the target storage component is controlled to run the target repair file to perform an abnormal repair operation.

4. The method according to claim 3, wherein: Also includes: Acquire the abnormality repair information of the target storage component to adjust its own first control parameter and the second control parameter used to control the target storage component according to the abnormality repair information.

5. The method according to claim 2, wherein: The sending of the repair instruction to the target storage component further includes: if the target storage component stores a target repair file corresponding to the abnormal type, sending the repair instruction to the target storage component; Accordingly, controlling the target storage component to run the target repair file includes: Determining an abnormality type of the target storage component; The target storage component is controlled to respond to the repair instruction to execute a target repair file corresponding to the abnormal type.

6. The method according to claim 1, wherein: The method of transmitting the target repair file to the target storage component in a transmission mode corresponding to the abnormality type includes: If the exception type is a first exception type, determining a first transmission mode corresponding to the first exception type, and transmitting the target repair file to the target storage component through a first bus under the first transmission mode; If the exception type is a second exception type, determining a second transmission mode corresponding to the second exception type, and transmitting the target repair file to the target storage component through a second bus under the second transmission mode; The first bus is a bus that operates normally in the target storage component and communicates with the target storage component, and the second bus is different from the first bus.

7. The method according to any one of claims 1 to 6, further comprising: If an erasing instruction is obtained when the target storage component is in a normal state, controlling the target storage component in a normal state to run the target erasing file to perform an erasing operation; or, If an erasing instruction is obtained when the target storage component is in an abnormal state, the target storage component is controlled to execute an abnormal repair operation and then run a target erasing file to execute an erasing operation corresponding to the erasing instruction.

8. The method according to claim 7, wherein: Also includes: Sending the target erased file and the second verification information corresponding to the target storage component to the target storage component; If the second verification information passes the verification of the target storage component, the target storage component is controlled to run the target erasure file to perform an erasure operation.

9. A processing device comprising: A first determination module, used to determine that the target storage component is abnormal; A first sending module, used for sending a repair instruction to the target storage component; A first control module, configured to control the target storage component to run a target repair file to repair the target storage component from an abnormal state to a normal state; The first sending module sends a repair instruction to the target storage component, including: Determining an abnormality type of the target storage component; According to the exception type, a target repair file corresponding to the exception type is obtained from other storage media different from the target storage component, and the target repair file is transmitted to the target storage component through a transmission method corresponding to the exception type; After determining that the target storage component has completed the transmission, a repair instruction is sent to the target storage component.

Citation Information

Patent Citations

  • Terminal and electronic equipment

    CN110322921A

  • Secure erasure and repair of non-mechanical storage media

    US9990382B1