A security protection method, electronic device and medium for mobile solid state hard disk

Through the cooperation of capacity management and hardware protection switches, combined with the screening function of the request processing module, the problem of solid-state drive data security protection relying on third-party software is solved, multi-layer parallel intelligent security protection is realized, and data writing time is improved. security.

CN118228327BActive Publication Date: 2024-09-03SHENZHEN LINGDECHUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410641059.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-22
Publication Date
2024-09-03
Estimated Expiration
2044-05-22

AI Technical Summary

Technical Problem

In the existing technology, the data security protection of solid-state drives relies on third-party software, which results in security being limited by the software update frequency and virus database iteration rate, making it difficult to achieve intelligent multi-layer parallel data security protection.

Method used

The storage capacity of the solid-state drive is managed through the capacity management module. The corresponding capacity management process is enabled according to the normal occupancy level and fragmentation storage level. The hardware protection switch is used to switch the status of the solid-state drive, and the request processing module is combined with the request processing module to process the data write request. Screening and control to achieve multi-layered parallel security protection of data.

Benefits of technology

It implements multi-layer parallel intelligent security protection for the internal data of the solid-state drive to ensure the security of data when writing, and dynamically adjusts protective measures based on the usage status of the hard drive to improve data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118228327B
    Figure CN118228327B
Patent Text Reader

Abstract

The invention discloses a security protection method, electronic device and medium for a mobile solid-state hard disk, relates to the field of solid-state hard disks, solves the problem that data security protection of solid-state hard disks often depends on data security protection services provided by third-party security software, and the security protection method is specifically as follows: a capacity management module manages the storage capacity of the solid-state hard disk to obtain a normal occupancy level and a fragment accumulation level of the solid-state hard disk; a processor enables a corresponding capacity management process according to the normal occupancy level and the fragment accumulation level; a request processing module screens data write requests, and the screening generates a request passing signal or a request rejecting signal which is sent to a host corresponding to the fixed hard disk via a processor, and generates a hardware protection closing signal which is sent to a hardware protection switch. The invention realizes multi-layer parallel intelligent security protection of internal data of the solid-state hard disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of mobile solid-state hard drives and relates to data security protection technology, specifically a security protection method, electronic equipment and medium applied to mobile solid-state hard drives. Background Art

[0002] A solid-state drive (SSD) consists of a control unit and a storage unit. The interface specifications and definitions, functions, and usage of SSDs are identical to those of conventional hard drives, and their appearance and dimensions are essentially the same. SSDs are currently widely used in a variety of fields, including automotive, industrial control, video surveillance, network monitoring, network terminals, power, medical, aviation, and navigation equipment.

[0003] In the current technological landscape, data security protection for SSDs often relies on third-party security software. This means the security of stored data is largely constrained by the frequency of third-party software updates and the iteration rate of virus databases. Achieving intelligent data security protection for SSDs through the synergy of software and hardware remains a major challenge in the current technology landscape.

[0004] To this end, we propose a security protection method, electronic device and medium for mobile solid-state drives. Summary of the Invention

[0005] In view of the shortcomings of the existing technology, the purpose of the present invention is to provide a security protection method, electronic equipment and medium for mobile solid-state hard drives.

[0006] The technical problems to be solved by the present invention are:

[0007] How to provide multi-layer parallel intelligent security protection for data inside solid-state drives.

[0008] In order to achieve the above object, the present invention adopts the following technical solutions:

[0009] A security protection method for a mobile solid-state hard drive, the security protection method is as follows:

[0010] Step S1: The capacity management module manages the storage capacity of the solid-state drive, obtains the normal occupancy level and fragment accumulation level of the solid-state drive, and sends them to the processor;

[0011] Step S2: The processor activates the corresponding capacity management process based on the normal occupancy level and the fragment accumulation level. If a hardware protection activation signal is generated, it is transmitted to the hardware protection switch, which switches the solid-state drive to an on state.

[0012] Step S3, when executing the data writing task, a data writing request is generated and sent to the processor, and the processor sends the data writing request to the request processing module;

[0013] Step S4: The request processing module screens the data write request, generates a request approval signal or a request rejection signal, and sends it to the host corresponding to the fixed hard disk via the processor, and generates a hardware protection shutdown signal and sends it to the hardware protection switch;

[0014] In step S5, when the host receives the request approval signal, it executes the data writing task until the writing task is completed. When the host receives the request rejection signal, it interrupts the data writing task. After the hardware protection switch receives the hardware protection shutdown signal, it switches the solid state drive to the shutdown state.

[0015] Furthermore, the hard disk storage status includes the actual hard disk capacity, firmware occupied space, file occupied space, read / write buffer space, backup occupied space and hard disk idle space of the solid state disk.

[0016] Furthermore, in step S1, the management process of the capacity management module is as follows:

[0017] Regularly scan the actual capacity of the solid-state drive, the space occupied by firmware, the space occupied by files, the read / write buffer space, the space occupied by backups, and the idle space of the hard drive, and calculate the normal occupancy rate of the solid-state drive;

[0018] The firmware occupied space is the solid-state hard disk space occupied by the computer program deployed in the host. In this embodiment, the computer program is a system program used to support the normal operation of the host and the solid-state hard disk. The file occupied space is the solid-state hard disk space occupied by data files. The read and write buffer space is the solid-state hard disk space pre-allocated for temporary storage or caching of data during data read and write operations. The backup occupied space is the solid-state hard disk space used to store backup files.

[0019] Comparing the normal occupancy rate of the solid-state drive with the normal occupancy interval; if the normal occupancy rate of the solid-state drive falls within the first normal occupancy interval, determining that the normal occupancy level of the solid-state drive is the first normal occupancy level; if the normal occupancy rate of the solid-state drive falls within the second normal occupancy interval, determining that the normal occupancy level of the solid-state drive is the second normal occupancy level; if the normal occupancy rate of the solid-state drive falls within the third normal occupancy interval, determining that the normal occupancy level of the solid-state drive is the third normal occupancy level;

[0020] Then, the disk fragmentation capacity ratio of the solid state drive is calculated, and the disk fragmentation capacity ratio of the solid state drive is compared with the disk fragmentation capacity threshold;

[0021] If the value of the disk fragmentation capacity is less than or equal to the first disk fragmentation capacity threshold, the fragmentation accumulation level of the solid-state hard disk is determined to be the first fragmentation accumulation level; if the value of the disk fragmentation capacity is greater than the first disk fragmentation capacity threshold and less than or equal to the second disk fragmentation capacity threshold, the fragmentation accumulation level of the solid-state hard disk is determined to be the second fragmentation accumulation level; if the value of the disk fragmentation capacity is greater than the second disk fragmentation capacity threshold, the fragmentation accumulation level of the solid-state hard disk is determined to be the third fragmentation accumulation level.

[0022] Furthermore, the values ​​of the normal occupancy intervals are all greater than zero, the values ​​of the first normal occupancy interval are all less than the values ​​of the second normal occupancy interval, the values ​​of the second normal occupancy interval are all less than the values ​​of the third normal occupancy interval, the capacity emergency level of the first normal occupancy level is lower than the capacity emergency level of the second normal occupancy level, and the capacity emergency level of the second normal occupancy level is lower than the capacity emergency level of the third normal occupancy level;

[0023] The values ​​of the first disk fragmentation capacity threshold and the second disk fragmentation capacity threshold are both greater than zero, the first disk fragmentation capacity threshold is less than the first disk fragmentation capacity threshold, the level of the first fragmentation accumulation level is lower than the level of the second fragmentation accumulation level, and the level of the second fragmentation accumulation level is lower than the level of the third fragmentation accumulation level.

[0024] Furthermore, in step S2, the capacity management process is as follows:

[0025] If the normal occupancy level of the solid-state drive is the first normal occupancy level, the additional capacity management process is not enabled;

[0026] If the normal occupancy level of the solid-state hard disk is the second normal occupancy level, a hard disk capacity compression or hard disk capacity clearing process is initiated;

[0027] If the normal occupancy level of the solid state hard disk is the third normal occupancy level, the hard disk capacity compression and hard disk capacity clearing processes are simultaneously enabled and a hardware protection start signal is generated.

[0028] Furthermore, in step S2, the capacity management process further includes:

[0029] If the fragmentation accumulation level of the solid state drive is the first fragmentation accumulation level, the drive defragmentation process is maintained;

[0030] If the fragmentation accumulation level of the solid state drive is the second fragmentation accumulation level, a drive fragment compression process is added to the defragmentation process;

[0031] If the fragmentation accumulation level of the solid state drive is the third fragmentation accumulation level, a drive fragment cleaning process is added on the basis of the defragmentation and fragment compression processes.

[0032] Furthermore, in step S3, the hard disk protection switch is connected to the data input terminal of the solid state hard disk. When the hardware protection switch is in the on state, the solid state hard disk is in a readable but not writable state. When the hardware protection switch is in the off state, the solid state hard disk is in a readable and writable state.

[0033] Furthermore, in step S4, the write request screening process of the request processing module specifically includes:

[0034] Read the requesting user information and compare it with the user information of the authorized user written in the authorized user database:

[0035] If the comparison results between the requesting user information and the user information of all write permission users are inconsistent, a hardware protection start signal is generated;

[0036] If the comparison result of the requesting user information is consistent with the user information of any write-authorized user, the user information of the write-authorized user and the switch status of the hard disk protection switch are identified. When the write-authorized user is a host administrator and the hard disk protection switch is in the off state, a request approval signal is generated. When the write-authorized user is a host administrator and the hard disk protection switch is in the on state, a hardware protection off signal and a request approval signal are generated. When the write-authorized user is an ordinary user and the hard disk protection switch is in the off state, a request approval signal is generated, and the data write request is recorded and sent to the host administrator terminal. When the write-authorized user is an ordinary user and the hard disk protection switch is in the on state, a request rejection signal is generated.

[0037] The present application also provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the security protection method are executed.

[0038] The present application also provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the security protection method are executed.

[0039] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0040] 1. When a solid-state drive is in use, the present invention utilizes a capacity management module to manage the storage capacity of the solid-state drive, thereby obtaining the normal occupancy level and fragment accumulation level of the solid-state drive. Based on the normal occupancy level and fragment accumulation level, a corresponding capacity management process is activated. When a hardware protection activation signal is generated, it is transmitted to a hardware protection switch, which switches the solid-state drive to an on state. The present invention implements multi-layer, parallel, intelligent security protection for the internal data of the solid-state drive.

[0041] 2. The present invention also generates a data write request when actually executing a data write task and sends it to a request processing module. The request processing module is used to screen the data write request. The screening generates a request pass signal or a request rejection signal which is sent to the host corresponding to the fixed hard disk via the processor, and generates a hardware protection shutdown signal which is sent to the hardware protection switch. When the host receives the request pass signal, it allows the data write task to be executed until the write task is completed. When the host receives the request rejection signal, it interrupts the current data write task. At the same time, if the hardware protection switch receives the hardware protection shutdown signal, it switches the solid-state hard disk to a closed state. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] To facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0043] Figure 1 is a flow chart of the method of the present invention;

[0044] Figure 2 is a block diagram of the overall system of the present invention;

[0045] Figure 3 It is a structural schematic diagram of the electronic device in the present invention. DETAILED DESCRIPTION

[0046] The technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.

[0047] See also Figure 1 and Figure 2 The present invention provides a security protection method for a mobile solid-state hard drive. In this embodiment, the fixed hard drive is installed and configured inside a host. The host is not limited to a server cabinet, a computer group, or a personal computer. The default internal configuration of the host is a processor and a mobile solid-state hard drive used as a storage device.

[0048] When the host is in use, the solid-state hard disk configured inside the host is also enabled. Since the host is equipped with a processor, and the processor is respectively connected to the capacity management module, the request processing module, the permission user database and the hardware protection switch;

[0049] In this embodiment, the security protection method includes the following steps:

[0050] Step S1: The capacity management module manages the storage capacity of the solid-state drive, obtains the normal occupancy level and fragment accumulation level of the solid-state drive, and sends them to the processor;

[0051] In step S1, the management process of the capacity management module is as follows:

[0052] Step S11, periodically scanning the hard disk storage status of the solid-state hard disk, thereby obtaining the actual hard disk capacity RLZi, firmware occupied space GJi, file occupied space WJi, read / write buffer space HCi, backup occupied space BFi, and hard disk idle space XZi of the solid-state hard disk, where i is the sequence number of the solid-state hard disk periodically scanned, the value of i is a non-zero positive integer, the upper limit of i is n, and the value of n is equal to the number of periodic scans;

[0053] The hard disk storage status includes the actual hard disk capacity, firmware occupied space, file occupied space, read and write buffer space, backup occupied space and hard disk idle space of the solid state drive;

[0054] The firmware space is the solid-state drive space occupied by the computer program deployed in the host. In this embodiment, the computer program is a system program used to support the normal operation of the host and the solid-state drive. The file space is the solid-state drive space occupied by data files, and the types of data files are, for example, text, video, or audio. The read and write buffer space is the solid-state drive space pre-allocated for temporary storage or caching of data during data read and write operations. The backup space is the solid-state drive space used to store backup files. The backup files are completely consistent with the original data files in terms of data content.

[0055] In step S12, the normal occupancy rate CZ of the solid state drive is calculated according to the formula, which is as follows:

[0056] ;

[0057] RLCi is the normal occupied space of the solid-state drive. The values ​​of the actual capacity of the hard drive and the normal occupied space are both greater than zero. Under non-ideal conditions, the actual capacity of the hard drive is always greater than the normal occupied capacity.

[0058] Step S13: Compare the normal occupancy rate of the solid-state drive with the normal occupancy interval. If the normal occupancy rate of the solid-state drive falls within the first normal occupancy interval, determine that the normal occupancy level of the solid-state drive is the first normal occupancy level; if the normal occupancy rate of the solid-state drive falls within the second normal occupancy interval, determine that the normal occupancy level of the solid-state drive is the second normal occupancy level; if the normal occupancy rate of the solid-state drive falls within the third normal occupancy interval, determine that the normal occupancy level of the solid-state drive is the third normal occupancy level;

[0059] The values ​​of the normal occupancy interval are all greater than zero, the values ​​of the first normal occupancy interval are all less than the values ​​of the second normal occupancy interval, the values ​​of the second normal occupancy interval are all less than the values ​​of the third normal occupancy interval, the capacity emergency level of the first normal occupancy level is lower than the capacity emergency level of the second normal occupancy level, and the capacity emergency level of the second normal occupancy level is lower than the capacity emergency level of the third normal occupancy level;

[0060] Furthermore, in step S1, the management process of the capacity management module further includes:

[0061] Step S14, calculating the disk fragmentation capacity ratio SP of the solid state drive according to the formula, the specific formula is as follows:

[0062] ;

[0063] Step S15, comparing the disk fragmentation capacity ratio of the solid state drive with the disk fragmentation capacity threshold;

[0064] Step S16: If the value of the disk fragment capacity is less than or equal to the first disk fragment capacity threshold, then the fragment accumulation level of the solid state drive is determined to be the first fragment accumulation level;

[0065] Step S17: If the value of the disk fragmentation capacity is greater than the first disk fragmentation capacity threshold and less than or equal to the second disk fragmentation capacity threshold, then the fragmentation accumulation level of the solid state drive is determined to be the second fragmentation accumulation level;

[0066] Step S18: If the value of the disk fragmentation capacity is greater than the second disk fragmentation capacity threshold, the fragmentation accumulation level of the solid state drive is determined to be the third fragmentation accumulation level;

[0067] Wherein, the values ​​of the first disk fragment capacity threshold and the second disk fragment capacity threshold are both greater than zero, the first disk fragment capacity threshold is less than the second disk fragment capacity threshold, the level of the first fragment accumulation level is lower than the level of the second fragment accumulation level, and the level of the second fragment accumulation level is lower than the level of the third fragment accumulation level;

[0068] Step S2: The processor activates the corresponding capacity management process based on the normal occupancy level and the fragment accumulation level. If a hardware protection activation signal is generated, it is transmitted to the hardware protection switch, which switches the solid-state drive to an on state.

[0069] In this embodiment, the processor activates the corresponding capacity management process according to the normal occupancy level and the fragment accumulation level as follows:

[0070] Step S21: If the normal occupancy level of the solid-state drive is the first normal occupancy level, the additional capacity management process is not enabled; if the normal occupancy level of the solid-state drive is the second normal occupancy level, the hard disk capacity compression or hard disk capacity clearing process is enabled; if the normal occupancy level of the solid-state drive is the third normal occupancy level, both the hard disk capacity compression and hard disk capacity clearing processes are enabled and a hardware protection start signal is generated;

[0071] Step S22: If the fragmentation accumulation level of the solid state drive is the first fragmentation accumulation level, the drive defragmentation process is maintained; if the fragmentation accumulation level of the solid state drive is the second fragmentation accumulation level, the drive fragment compression process is added to the defragmentation process; if the fragmentation accumulation level of the solid state drive is the third fragmentation accumulation level, the drive fragment cleaning process is added to the defragmentation and fragment compression processes;

[0072] The hard disk protection switch is connected to the data input terminal of the solid-state hard disk. When the hardware protection switch is on, the solid-state hard disk is in a readable but not writable state. When the hardware protection switch is off, the solid-state hard disk is in a readable and writable state.

[0073] Preferably, in this embodiment, the switch state of the hardware protection switch is switched by a hardware protection switch control program in the host computer that is matched with the solid-state drive. For example, the hardware protection switch control program generates a hardware protection start signal or a hardware protection shutoff signal and sends it to the hardware protection switch via the processor. The user can download and install the hardware protection switch control program from the official website in the product manual.

[0074] Step S3, when executing the data writing task, a data writing request is generated and sent to the processor, and the processor sends the data writing request to the request processing module;

[0075] The data writing task specifically involves importing file data from an external storage device or writing file data through a host. The data writing request includes requesting user information and write data identification information. The requesting user information is the user information of the actual user of the host at the current moment, such as a user account or user ID.

[0076] Step S4: The request processing module screens the data write request, generates a request approval signal or a request rejection signal, and sends it to the host corresponding to the fixed hard disk via the processor, and generates a hardware protection shutdown signal and sends it to the hardware protection switch;

[0077] In the above step S4, the write request screening process of the request processing module specifically includes:

[0078] Step S41: Read the requesting user information and compare it with the user information of the authorized user written in the authorized user database:

[0079] Step S42: If the comparison result between the requesting user information and the user information of all write-authorized users is inconsistent, a hardware protection activation signal is generated; if the comparison result between the requesting user information and the user information of any write-authorized user is consistent, the subsequent steps are performed;

[0080] The authorized user database is set up in the cloud server of the host storage or solid-state drive. The write-authorized users include the host administrator and ordinary users who are granted write permissions by the host administrator.

[0081] Step S43: Identify the user information of the write-authorized user and the switch status of the hard disk protection switch:

[0082] Step S44: If the user with write permission is the host administrator and the hard disk protection switch is in the off state, a request approval signal is generated;

[0083] Step S45: If the user with write permission is a host administrator and the hard disk protection switch is on, a hardware protection shutdown signal and a request approval signal are generated;

[0084] Step S46: If the user with write permission is a common user and the hard disk protection switch is in the off state, a request approval signal is generated, and the data write request is recorded and sent to the host administrator terminal;

[0085] Step S47: If the user with write permission is a common user and the hard disk protection switch is on, a request rejection signal is generated;

[0086] Step S5: When the host receives the request approval signal, it executes the data writing task until the writing task is completed. When the host receives the request rejection signal, it interrupts the data writing task. The hardware protection switch switches the solid-state drive to the off state after receiving the hardware protection off signal.

[0087] In this application, if a corresponding calculation formula appears, the above calculation formula is dimensionless and its numerical calculation is performed. The weight coefficient, proportional coefficient and other coefficients in the formula are set to a result value obtained by quantifying each parameter. Regarding the size of the weight coefficient and the proportional coefficient, as long as it does not affect the proportional relationship between the parameter and the result value, it is acceptable.

[0088] like Figure 3As shown, the present application also provides an electronic device, including a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the above method are executed. Through the above technical solution, the processor and the memory are interconnected and communicate with each other via a communication bus or other form of connection mechanism. The memory stores a computer program executable by the processor. When the electronic device is running, the processor executes the computer program to perform the method in any optional implementation of the above embodiment to achieve the following functions:

[0089] The capacity management module manages the storage capacity of the solid-state hard disk, obtains the normal occupancy level and fragment accumulation level of the solid-state hard disk and sends them to the processor; the processor activates the corresponding capacity management process based on the normal occupancy level and fragment accumulation level, and if a hardware protection start signal is generated, it is transmitted to the hardware protection switch, and the hardware protection switch switches the solid-state hard disk to the on state; when executing a data write task, a data write request is generated and sent to the processor, and the processor sends the data write request to the request processing module; the request processing module screens the data write request, and the screening generates a request pass signal or a request rejection signal which is sent to the host corresponding to the fixed hard disk via the processor, and generates a hardware protection shutdown signal which is sent to the hardware protection switch; when the host receives the request pass signal, it executes the data write task until the write task is completed, and when the host receives the request rejection signal, it interrupts the data write task, and the hardware protection switch switches the solid-state hard disk to the off state after receiving the hardware protection shutdown signal;

[0090] The present application also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions:

[0091] The capacity management module manages the storage capacity of the solid-state hard disk, obtains the normal occupancy level and fragment accumulation level of the solid-state hard disk and sends them to the processor; the processor activates the corresponding capacity management process based on the normal occupancy level and fragment accumulation level, and if a hardware protection start signal is generated, it is transmitted to the hardware protection switch, and the hardware protection switch switches the solid-state hard disk to the on state; when executing a data write task, a data write request is generated and sent to the processor, and the processor sends the data write request to the request processing module; the request processing module screens the data write request, and the screening generates a request pass signal or a request rejection signal which is sent to the host corresponding to the fixed hard disk via the processor, and generates a hardware protection shutdown signal which is sent to the hardware protection switch; when the host receives the request pass signal, it executes the data write task until the write task is completed, and when the host receives the request rejection signal, it interrupts the data write task, and the hardware protection switch switches the solid-state hard disk to the off state after receiving the hardware protection shutdown signal;

[0092] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code. The storage medium may be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable red-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 The functions specified in one or more blocks in a flow chart or multiple flow charts.

[0093] The preferred embodiments of the present invention disclosed above are intended only to help illustrate the present invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the present invention to specific embodiments. Obviously, many modifications and variations are possible based on the contents of this specification. These embodiments are selected and described in detail in this specification to better explain the principles and practical applications of the present invention, thereby enabling those skilled in the art to better understand and utilize the present invention. The present invention is limited only by the claims and their full scope and equivalents.

Claims

1. A security protection method applied to a mobile solid-state hard disk, characterized in that: The specific safety protection methods are as follows: Step S1, the capacity management module manages the storage capacity of the solid state drive, obtains the normal occupancy level and the fragmentation accumulation level of the solid state drive and sends them to the processor; In step S1, the management process of the capacity management module is as follows: Scan the hard disk storage status of the solid state hard disk regularly to obtain the actual hard disk capacity RLZi, firmware occupied space GJi, file occupied space WJi, read-write buffer space HCi, backup occupied space BFi and hard disk idle space XZi of the solid state hard disk, i is the serial number of the solid state hard disk regularly scanned, the value of i is a non-zero positive integer, the upper limit of i is n, the value of n is equal to the number of regular scans, and the normal occupancy rate CZ of the solid state hard disk is calculated according to the formula, and the specific formula is as follows: ; Among them, RLCi is the normal occupied space of the solid state drive, and the values ​​of the actual capacity of the hard disk and the normal occupied space are both greater than zero; Comparing the normal occupancy rate of the solid state hard disk with the normal occupancy interval, determining whether the normal occupancy level of the solid state hard disk is the first normal occupancy level, the second normal occupancy level, or the third normal occupancy level; Then according to the formula Calculating a disk fragmentation capacity ratio SP of the solid state drive, and comparing the disk fragmentation capacity ratio of the solid state drive with a disk fragmentation capacity threshold, to determine whether the fragmentation accumulation level of the solid state drive is a first fragmentation accumulation level, a second fragmentation accumulation level, or a third fragmentation accumulation level; The hard disk storage status includes the actual hard disk capacity, firmware occupied space, file occupied space, read / write buffer space, backup occupied space and hard disk idle space of the solid state disk; Step S2, the processor activates the corresponding capacity management process according to the normal occupancy level and the fragmentation accumulation level, and if a hardware protection start signal is generated, it is transmitted to the hardware protection switch, and the hardware protection switch switches the solid state drive to the on state; Step S3, when executing the data writing task, a data writing request is generated and sent to the processor, and the processor sends the data writing request to the request processing module; Step S4, the request processing module screens the data write request, generates a request pass signal or a request reject signal through the screening and sends it to the host corresponding to the fixed hard disk through the processor, and generates a hardware protection shutdown signal and sends it to the hardware protection switch; Step S5, when the host receives a request approval signal, it executes the data writing task until the writing task is completed. When the host receives a request rejection signal, it interrupts the data writing task. After the hardware protection switch receives a hardware protection shutdown signal, it switches the solid state drive to a closed state.

2. A security protection method for a mobile solid state hard disk according to claim 1, characterized in that: The capacity emergency degree of the first normal occupancy level is lower than the capacity emergency degree of the second normal occupancy level, and the capacity emergency degree of the second normal occupancy level is lower than the capacity emergency degree of the third normal occupancy level; The level of the first fragment storage level is lower than that of the second fragment storage level, and the level of the second fragment storage level is lower than that of the third fragment storage level.

3. The security protection method for a mobile solid state hard disk according to claim 1, characterized in that: In step S2, the capacity management process is as follows: If the normal occupancy level of the solid state drive is the first normal occupancy level, the additional capacity management process is not enabled; If the normal occupancy level of the solid state hard disk is the second normal occupancy level, a hard disk capacity compression or hard disk capacity clearing process is enabled; If the normal occupancy level of the solid state hard disk is the third normal occupancy level, the hard disk capacity compression and hard disk capacity cleaning processes are simultaneously enabled and a hardware protection start signal is generated.

4. A security protection method for a mobile solid state hard disk according to claim 3, characterized in that: In step S2, the capacity management process further includes: If the fragmentation accumulation level of the solid state drive is the first fragmentation accumulation level, the drive defragmentation process is maintained; If the fragmentation accumulation level of the solid state hard disk is the second fragmentation accumulation level, a drive fragment compression process is added on the basis of the defragmentation process; If the fragmentation accumulation level of the solid state drive is the third fragmentation accumulation level, a drive fragmentation cleaning process is added on the basis of the defragmentation and fragmentation compression processes.

5. The security protection method for a mobile solid state hard disk according to claim 1, characterized in that: In step S3, the hard disk protection switch is connected to the data input terminal of the solid state hard disk. When the hardware protection switch is in the on state, the solid state hard disk is in a readable but not writable state. When the hardware protection switch is in the off state, the solid state hard disk is in a readable and writable state.

6. The security protection method for a mobile solid state hard disk according to claim 1, characterized in that: In step S4, the write request screening process of the request processing module specifically includes: Read the requesting user information and compare it with the user information of the authorized user written in the authorized user database: If the comparison results between the requesting user information and the user information of all write-authorized users are inconsistent, a hardware protection start signal is generated; If the comparison result of the requesting user information is consistent with the user information of any write-authorized user, the user information of the write-authorized user and the switch status of the hard disk protection switch are identified. When the write-authorized user is a host administrator and the hard disk protection switch is in the off state, a request approval signal is generated. When the write-authorized user is a host administrator and the hard disk protection switch is in the on state, a hardware protection off signal and a request approval signal are generated. When the write-authorized user is an ordinary user and the hard disk protection switch is in the off state, a request approval signal is generated, and the data write request is recorded and sent to the host administrator terminal. When the write-authorized user is an ordinary user and the hard disk protection switch is in the on state, a request rejection signal is generated.

7. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 6 are executed.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 6 are executed.