Method and device for managing storage medium
By reading the unique identification of the hard disk and decrypting the encryption information of the reserved area, identifying the usage status of the storage medium, and performing hard disk recovery and data synchronization when necessary, solving the problems of storage medium usage status identification and data recovery in the prior art. , improves the reliability and information security of storage media.
Patent Information
- Application Number
- CN202411444033.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-07
AI Technical Summary
The lack of effective means of identifying the usage status of storage media in the prior art, resulting in data management difficulties and information security risks, and the lack of data recovery mechanism leads to data loss.
By reading the unique identifier of the hard disk, check whether there is encrypted information in the reserved area, decrypt and compare the target decryption information with the unique identifier, perform corresponding hard disk operations to determine the usage status, and perform hard disk recovery and data synchronization when needed.
Accurate identification of the usage status of the storage medium is achieved, the risks brought by users' blind operations are avoided, the reliability of the storage medium is improved, and the probability of data loss is reduced.
Smart Images

Figure CN119396336A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a method and device for managing storage media. Background Art
[0002] In related NAS system applications, accurately identifying the historical usage status of storage media is often a challenge.
[0003] Storage media such as hard disks and solid-state drives are often transferred and used between different devices without a reliable way to track their usage history. When these media are reconnected to a NAS device, due to the lack of an effective identification mechanism, users may not be able to tell whether they are brand new or have a certain usage history. If a used storage medium is used to store sensitive data again without thorough data erasure, it may leave a risk of data leakage.
[0004] In addition, some important data may be accidentally deleted or damaged during the life cycle management of the storage medium, and the lack of an effective data recovery solution may lead to permanent loss of these data. Therefore, the related art lacks a comprehensive solution that can simultaneously solve the problems of storage medium status identification and data recovery.
[0005] In order to solve the above problems, a method and device for managing storage media are proposed in this application. Summary of the invention
[0006] In order to address the deficiencies of the prior art, the present application provides a method and electronic device for managing storage media, which solves the problems in the prior art that there is a lack of effective identification means for storage media such as hard disks, and that hard disk data is easily accidentally deleted and leaked.
[0007] The technical effects to be achieved by this application are achieved through the following solutions: In a first aspect, the present application provides a method for managing a storage medium, the method comprising: Reading a unique identifier of a hard disk, wherein the unique identifier is used to uniquely identify the hard disk; Checking a reserved area corresponding to the hard disk to determine whether encryption information exists in the reserved area; If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; It is determined whether the target decryption information is the same as the unique identifier, and a hard disk operation is performed based on the determination result.
[0008] In some embodiments, performing a hard disk operation based on the determination result includes: When the target decryption information is the same as the unique identifier, it is indicated that the hard disk is a registered hard disk, and the data of the hard disk is loaded and used normally; In the case that the target decryption information is different from the unique identifier, it is prompted that the hard disk is a newly inserted hard disk or a faulty hard disk, and a hard disk recovery judgment operation is performed.
[0009] In some embodiments, if the encryption information does not exist in the reserved area, a hard disk recovery determination operation is performed.
[0010] In some embodiments, the performing of the hard disk recovery determination operation includes: Based on the user's operation instructions, determine whether a hard disk recovery operation needs to be performed; In the case where a hard disk recovery operation needs to be performed, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten.
[0011] In some embodiments, after rewriting the target ciphertext information corresponding to the unique identifier of the hard disk, the method further includes: Execute hard disk data synchronization operation to obtain synchronization data corresponding to the hard disk from the cloud.
[0012] In some embodiments, obtaining the synchronization data corresponding to the hard disk from the cloud disk includes: The user's client is connected to the NAS device; Obtain user authorization; Acquire synchronization data from the cloud and synchronize the synchronization data to the NAS device.
[0013] In some embodiments, before reading the unique identifier of the hard disk, the process includes: After the NAS device is powered on, start the NAS device. Perform system initialization of the NAS device and load the operating system and related drivers.
[0014] In a second aspect, the present application provides a device for managing a storage medium, the device comprising: A hard disk identification module is used to read a unique identifier of a hard disk, where the unique identifier is used to uniquely identify the hard disk; check a reserved area corresponding to the hard disk to determine whether encryption information exists in the reserved area; If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; whether the target decrypted information is the same as the unique identifier is determined, and a hard disk operation is performed based on the determination result; A hard disk recovery module is used to determine whether a hard disk recovery operation needs to be performed based on a user's operation instruction; if a hard disk recovery operation needs to be performed, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten; The hard disk data synchronization module is used to execute hard disk data synchronization operations and obtain synchronization data corresponding to the hard disk from the cloud.
[0015] In a third aspect, the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the aforementioned methods for managing a storage medium when executing the computer program.
[0016] In a fourth aspect, the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement any of the aforementioned methods for managing storage media.
[0017] The method and device for managing storage media provided by the present application decrypts the ciphertext information of the hard disk by using a preset key, and determines whether the unique identifier of the hard disk is the same as the decrypted information to determine the usage status of the hard disk, thereby avoiding the risks brought by the user's blind operation of the hard disk, improving the reliability of the storage medium, and reducing the probability of loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present application or the existing technical solutions, 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 some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0019] Figure 1 The process of the method for managing the storage medium in one embodiment of the present application is as follows Figure 1 ; Figure 2 The process of the method for managing the storage medium in one embodiment of the present application is as follows Figure 2 ; Figure 3 A schematic diagram of a hard disk recovery operation of a method for managing a storage medium in an embodiment of the present application; Figure 4 A schematic diagram of data synchronization operation of a method for managing a storage medium in an embodiment of the present application; Figure 5A schematic diagram of a device for managing a storage medium in an embodiment of the present application; Figure 6 It is a schematic block diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. 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 the field without creative work are within the scope of protection of the present application.
[0021] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in one or more embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0022] In related NAS systems, there is usually a lack of effective means to identify the usage status of storage media, that is, to determine whether it is a new disk or an old disk that has been used. This lack of information may lead to difficulties in data management, such as the inability to effectively track data storage history, or the possibility of ignoring the remaining data in the old disk when it is necessary to recycle or reuse it, causing information security risks. At the same time, if there is important data in the old disk that needs to be recovered, the lack of a corresponding data recovery mechanism will also bring the risk of data loss.
[0023] This application designs a device that integrates usage status recognition and data recovery functions, which can accurately determine whether the storage medium has been used and can restore user data to the hard disk.
[0024] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0025] First, refer to Figure 1, the method for managing the storage medium of the present application is described in detail.
[0026] The present application provides a method for managing a storage medium, the method comprising: S1. Reading a unique identifier of a hard disk, where the unique identifier is used to uniquely identify the hard disk; S2, checking the reserved area corresponding to the hard disk to determine whether there is encryption information in the reserved area; S3. If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; S4. Determine whether the target decryption information is the same as the unique identifier, and perform hard disk operation based on the determination result.
[0027] The above steps are all completed by the hard disk identification module in the device for managing the storage medium. For example, the NAS device (Network Attached Storage) is started after power-on, and the unique identifier of the local storage of the hard disk is read by software; it is determined whether there is ciphertext information corresponding to the unique identifier in the reserved area corresponding to the hard disk; if there is ciphertext information, the ciphertext information will be obtained and decrypted to obtain the target decrypted information, and compared with the unique identifier stored locally, and according to the judgment result, it is determined whether the hard disk is a used hard disk; if the unique identifier is not obtained or the comparison result is not different, it is considered to be a newly inserted hard disk or a faulty hard disk, and it is necessary to enter the hard disk recovery process.
[0028] Specifically, step S2 may include: 1. Read the metadata of the reserved area: First, the system needs to read the metadata of the reserved area of the hard disk. The metadata contains basic information about the reserved area, such as its size, location, and whether it contains any form of encrypted information. By parsing the metadata, it can be preliminarily determined whether there is encrypted information in the reserved area.
[0029] 2. Analyze the data structure of the reserved area: After confirming that there is encrypted information in the reserved area, the system needs to further analyze the data structure of the area, including determining the storage format of the encrypted information, the type of encryption algorithm, and the location of the key; the relevant information is crucial for subsequent decryption operations.
[0030] 3. Verify the integrity of the encrypted information: To ensure the security and reliability of the encrypted information, the system also needs to verify the integrity of the encrypted information in the reserved area. This usually involves calculating the hash value or checksum of the encrypted information and comparing it with a pre-stored reference value. If the two do not match, it means that the encrypted information may have been tampered with or damaged.
[0031] 4. Record the inspection results: The system records the inspection results for subsequent use. These records may include whether there is encrypted information in the reserved area, the data structure of the encrypted information, and the results of the integrity verification.
[0032] In some embodiments, performing a hard disk operation based on the determination result includes: When the target decryption information is the same as the unique identifier, it is indicated that the hard disk is a registered hard disk, and the data of the hard disk is loaded and used normally; In the case where the target decryption information is different from the unique identifier, it is indicated that the hard disk is a newly inserted hard disk or a faulty hard disk, and a hard disk recovery judgment operation is performed. Figure 2 , Figure 2 Another example of the method for managing storage media of the present application is described.
[0033] Specifically, the unique identifier of the hard disk is read as follows: (1) The software automatically scans all connected hard disks; (2) The unique serial number of each hard disk can be read; (3) The serial number can be read by sending ATA / SATA commands, such as using The SMART_READ_DATA command reads the serial number in the SMART attributes.
[0034] Exemplarily, checking the reserved area includes: (1) For each hard disk, check whether there is encryption information in its reserved area; (2) The reserved area is usually located in the non-user accessible part of the hard disk; (3) ATA / SATA commands such as SECURITY FREEZE_LOCL and SECURITY SEND_DRIVE_PASSWORD can be sent to the hard disk to unlock access to the secure area.
[0035] Specifically, step S3 may include: 1. Extracting encrypted information: The system first extracts the encrypted information from the reserved area. The encrypted information usually exists in the form of binary data and contains an encrypted representation of the original data.
[0036] 2. Select the corresponding decryption algorithm: Based on the data structure information obtained from the previous analysis, the system selects a suitable decryption algorithm to decrypt the encrypted information. The decryption algorithm can include symmetric encryption algorithms (such as AES, DES) and asymmetric encryption algorithms (such as RSA). When selecting an algorithm, this application can use the AES encryption algorithm.
[0037] 3. Applying a preset key: During the decryption process, the system needs to use a preset key to restore the encrypted information. This key is usually generated in advance and stored securely. Only users with the correct key can successfully decrypt. The length, type, and complexity of the key will affect the security of decryption.
[0038] 4. Perform decryption operation: Using the selected decryption algorithm and the preset key, the system decrypts the encrypted information. This process involves mathematical operations and data processing, the purpose of which is to restore the original plaintext data.
[0039] 5. Verify the decryption result: After the decryption is completed, the system needs to verify the decryption result. This can be achieved by recalculating the hash value or checksum of the decrypted plaintext data and comparing it with the original data. If the two match, the decryption is successful; otherwise, the correctness of the decryption process or key may need to be rechecked.
[0040] 6. Process the decrypted data: Once the decryption is successful, the system can process the decrypted data as needed.
[0041] Exemplarily, obtaining target decryption information includes: (1) If the encrypted information is found in the reserved area, it is decrypted using the preset key; (2) After decryption, the target decrypted information is the identification information of the corresponding hard disk; Exemplarily, the comparison identification information includes: (1) Compare the decrypted target decryption information with the known unique serial number stored inside the NAS device; (2) If the match is successful, the hard disk is considered to be a registered hard disk.
[0042] Decision-making based on the judgment results: (1) If the hard disk identification information matches successfully, that is, the two are the same, the system loads the data in the hard disk normally; (2) If the encrypted identification information is not found, or the decrypted information does not match the stored identification (ie, they are not the same), it is considered that the hard disk is newly inserted or that the hard disk is faulty (ie, a faulty hard disk).
[0043] In some embodiments, if the encryption information does not exist in the reserved area, a hard disk recovery judgment operation is performed. Specifically, the hard disk recovery judgment operation includes: Based on the user's operation instructions, determine whether a hard disk recovery operation needs to be performed; In the event that you need to perform a hard drive recovery operation, such as Figure 3As shown, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten. If the hard disk recovery operation is not required, the hard disk cannot be used, that is, the use of the hard disk is prohibited.
[0044] In some embodiments, after rewriting the target ciphertext information corresponding to the unique identifier of the hard disk, the method further includes: Execute hard disk data synchronization operation to obtain synchronization data corresponding to the hard disk from the cloud.
[0045] In some embodiments, the synchronization data corresponding to the hard disk is obtained from the cloud disk, such as Figure 4 As shown, including: The user's client is connected to a NAS (Network Attached Storage) device; Obtain user authorization; Acquire synchronization data from the cloud and synchronize the synchronization data to the NAS device.
[0046] In some embodiments, before reading the unique identifier of the hard disk, the process includes: After the NAS device is powered on, start the NAS device. Perform system initialization of the NAS device and load the operating system and related drivers.
[0047] The present application provides a device for managing a storage medium, such as Figure 5 As shown, the device comprises: A hard disk identification module is used to read a unique identifier of a hard disk, where the unique identifier is used to uniquely identify the hard disk; check a reserved area corresponding to the hard disk to determine whether encryption information exists in the reserved area; If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; whether the target decrypted information is the same as the unique identifier is determined, and a hard disk operation is performed based on the determination result; A hard disk recovery module is used to determine whether a hard disk recovery operation needs to be performed based on a user's operation instruction; if a hard disk recovery operation needs to be performed, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten; The hard disk data synchronization module is used to execute hard disk data synchronization operations and obtain synchronization data corresponding to the hard disk from the cloud.
[0048] Exemplarily, the hard disk recovery module: the user operates through the client to determine whether to initialize the hard disk. If initialization is performed, the hard disk data is erased and the target ciphertext information corresponding to the unique identifier is rewritten, and then the user data synchronization process is entered; if the hard disk is not initialized, the hard disk cannot be used.
[0049] Exemplarily, hard disk data synchronization module: The NAS device has an end-cloud intercommunication function. After user authorization, the NAS data and the cloud associated with the user will be encrypted and synchronized. When the user recovers the hard disk data, the data stored in the cloud disk by the user will be synchronized to the NAS hard disk.
[0050] The method and device for managing storage media provided by the present application decrypts the ciphertext information of the hard disk by using a preset key, and determines whether the unique identifier of the hard disk is the same as the decrypted information to determine the usage status of the hard disk, thereby avoiding the risks brought by the user's blind operation of the hard disk, improving the reliability of the storage medium, and reducing the probability of loss.
[0051] It should be noted that the method of one or more embodiments of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of one or more embodiments of the present application, and the multiple devices will interact with each other to complete the described method.
[0052] It should be noted that the above describes specific embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0053] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also discloses an electronic device; Specifically, Figure 6 A hardware structure diagram of an electronic device for managing a storage medium provided in this embodiment is shown, and the device may include: a processor 410, a memory 420, an input / output interface 430, a communication interface 440, and a bus 450. The processor 410, the memory 420, the input / output interface 430, and the communication interface 440 are connected to each other in communication within the device through the bus 450.
[0054] The processor 410 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0055] The memory 420 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 420 may store an operating system and other application programs. When the technical solution provided in the embodiment of the present application is implemented by software or firmware, the relevant program code is stored in the memory 420 and is called and executed by the processor 410.
[0056] The input / output interface 430 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0057] The communication interface 440 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (for example, USB, network cable, etc.) or a wireless mode (for example, mobile network, WIFI, Bluetooth, etc.).
[0058] The bus 450 includes a path that transmits information between the various components of the device (eg, the processor 410 , the memory 420 , the input / output interface 430 , and the communication interface 440 ).
[0059] It should be noted that, although the above device only shows the processor 410, the memory 420, the input / output interface 430, the communication interface 440 and the bus 450, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiment of the present application, and does not necessarily include all the components shown in the figure.
[0060] The electronic device of the above embodiment is used to implement the corresponding method of managing the storage medium in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0061] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, one or more embodiments of the present application also provide a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method for managing the storage medium as described in any of the above embodiments.
[0062] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0063] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the method for managing the storage medium as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0064] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0065] In addition, to simplify the description and discussion, and in order not to make one or more embodiments of the present application difficult to understand, the well-known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided figures. In addition, the device may be shown in the form of a block diagram to avoid making one or more embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which one or more embodiments of the present application will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that one or more embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0066] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.
[0067] One or more embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for managing a storage medium, characterized in that: The method comprises: Reading a unique identifier of a hard disk, wherein the unique identifier is used to uniquely identify the hard disk; Checking the reserved area corresponding to the hard disk to determine whether there is encryption information in the reserved area; If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; It is determined whether the target decryption information is the same as the unique identifier, and a hard disk operation is performed based on the determination result.
2. The method for managing storage media according to claim 1, characterized in that: Executing a hard disk operation based on the determination result includes: When the target decryption information is the same as the unique identifier, it is indicated that the hard disk is a registered hard disk, and the data of the hard disk is loaded and used normally; In the case that the target decryption information is different from the unique identifier, it is prompted that the hard disk is a newly inserted hard disk or a faulty hard disk, and a hard disk recovery judgment operation is performed.
3. The method for managing storage media according to claim 1, characterized in that: If the encryption information does not exist in the reserved area, a hard disk recovery judgment operation is performed.
4. The method for managing storage media according to claim 2 or 3, characterized in that: The performing of the hard disk recovery judgment operation includes: Based on the user's operation instructions, determine whether a hard disk recovery operation needs to be performed; In the case where a hard disk recovery operation needs to be performed, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten.
5. The method for managing storage media according to claim 4, characterized in that: After rewriting the target ciphertext information corresponding to the unique identifier of the hard disk, the method further includes: Execute hard disk data synchronization operation to obtain synchronization data corresponding to the hard disk from the cloud.
6. The method for managing storage media according to claim 5, characterized in that: Acquiring synchronization data corresponding to the hard disk from the cloud disk includes: The user's client is connected to the NAS device; Obtain user authorization; Acquire synchronization data from the cloud and synchronize the synchronization data to the NAS device.
7. The method for managing storage media according to claim 1, characterized in that: Before reading the unique identifier of the hard disk, the following steps are included: After the NAS device is powered on, start the NAS device. Perform system initialization of the NAS device and load the operating system and related drivers.
8. A device for managing a storage medium, characterized in that: The device comprises: A hard disk identification module is used to read a unique identifier of a hard disk, where the unique identifier is used to uniquely identify the hard disk; check a reserved area corresponding to the hard disk to determine whether encryption information exists in the reserved area; If the encrypted information exists in the reserved area, the encrypted information is obtained, and the encrypted information is decrypted using a preset key to obtain target decrypted information; whether the target decrypted information is the same as the unique identifier is determined, and a hard disk operation is performed based on the determination result; A hard disk recovery module is used to determine whether a hard disk recovery operation needs to be performed based on a user's operation instruction; if a hard disk recovery operation needs to be performed, the hard disk is initialized, the data in the hard disk is erased, and the target ciphertext information corresponding to the unique identifier of the hard disk is rewritten; The hard disk data synchronization module is used to execute hard disk data synchronization operations and obtain synchronization data corresponding to the hard disk from the cloud.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for managing a storage medium as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for managing storage media as described in any one of claims 1 to 7.
Citation Information
Cited By
SSD test method and device and storage medium
CN121565227A