Disk defect detection system based on win system
By designing a disk defect detection system based on win system, including the collaborative work of multiple functional units, the problem that existing tools cannot fully analyze disk conditions is solved, and detailed and accurate defect identification and evaluation of disks are achieved, providing users with targeted disk health information.
Patent Information
- Application Number
- CN202510031831.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-09
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-01-09
AI Technical Summary
Existing disk detection tools cannot comprehensively and in-depth accurately analyze and diagnose disk conditions, especially complex logical defects and potential disk problems are difficult to identify, lack of systematicity and comprehensiveness, and cannot provide users with detailed, accurate and targeted disk defect information.
A disk defect detection system based on win system is designed, including a disk information acquisition unit, a disk status analysis unit, an abnormal area analysis unit, a specific defect identification unit and a detection information output unit. By obtaining the strength, quality and error rate of the head read signal, comprehensive calculation and judgment, identifying the overall condition of the disk, and conducting detailed analysis of the abnormal areas to identify specific defects, and finally output detailed disk defect information.
It realizes a comprehensive and in-depth evaluation of the disk, and can quickly and accurately evaluate the disk status. The specific defect identification unit identifies disk defects from multiple angles, providing users with detailed and accurate disk defect information, helping users quickly locate the root cause of the problem.
Smart Images

Figure CN119415341B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of disk defect detection, in particular to a disk defect detection system based on a Windows system. Background Art
[0002] In the daily use of Windows systems, disks are key components for data storage, and their stability and reliability are of vital importance. However, disks are affected by a variety of factors during long-term use, such as physical wear, electrical failures, software conflicts, sudden power outages, etc., which can lead to various problems on the disks, including physical damage and logical defects. These problems may cause serious consequences such as data loss, read and write errors, and system crashes, causing great trouble and loss to users.
[0003] Although there are some disk detection tools and methods, most of them have relatively simple functions and cannot comprehensively and deeply analyze and diagnose the disk status. Some tools can only detect the basic physical parameters of the disk, such as some indicators in the SMART information, and it is difficult to effectively identify complex logical defects and potential disk problems. Moreover, when analyzing disk problems, they often lack systematicity and comprehensiveness, and cannot comprehensively evaluate the disk from multiple dimensions, and cannot provide users with detailed, accurate and targeted disk defect information, making it difficult to meet users' high requirements for disk data security and stable operation. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a disk defect detection system based on the Windows system, which solves the problems of lack of systematicity and comprehensiveness, inability to comprehensively evaluate the disk from multiple dimensions, and inability to provide users with detailed, accurate and targeted disk defect information.
[0005] To achieve the above objectives, the present invention is implemented through the following technical solutions: a disk defect detection system based on the win system, comprising:
[0006] The disk information acquisition unit is used to acquire basic information of the disk in the win system and transmit the acquired basic information to the disk status analysis unit;
[0007] The disk status analysis unit is used to identify the overall status of the disk according to the acquired basic information, obtain the disk status judgment value by analyzing and calculating the basic information, and generate the status judgment result based on the judgment value;
[0008] The abnormal area analysis unit is used to analyze the acquired state damage results, determine the initial abnormal area by analyzing the change of signal strength, and optimize the initial abnormal area to determine the abnormal sector according to the signal quality and read error rate, and classify the sector files corresponding to the abnormal sector to obtain file classification information, and transmit the file classification information to the specific defect identification unit;
[0009] The specific defect identification unit is used to process the acquired file classification information, determine the corresponding specific defects by separately analyzing the normal files and the abnormal files, and transmit the specific defects to the detection information output unit.
[0010] As a further solution of the present invention, the disk status analysis unit generates the status judgment result in the following specific manner:
[0011] Get the disk of the win system and label it as i, where i=1, 2, ..., j, where j represents the number of disks. At the same time, get the head read signal in the basic information of disk i, and get the signal strength, signal quality and read error rate corresponding to the head read signal. Then assign values to the three and record them as Qi, Zi and Ci respectively.
[0012] Then substitute the obtained parameters into the formula Calculate the status judgment value Yi corresponding to disk i, where It is a preset proportional coefficient, and the specific value is set by the operator. The obtained condition judgment value Yi is matched with the preset judgment interval to generate a condition judgment result. The specific condition judgment results include normal condition results, minor damage condition results and damaged condition results. Then the normal condition results and minor damage condition results are directly transmitted to the detection information output unit, and the damaged condition results are transmitted to the abnormal area analysis unit.
[0013] As a further solution of the present invention, the specific method of analyzing the state damage result by the abnormal area analysis unit is:
[0014] Obtain the disk corresponding to the state damage result and record it as an abnormal disk. At the same time, analyze the signal strength change of the abnormal disk, and determine the initial abnormal area according to the signal strength change. Then, obtain the signal quality and read error rate corresponding to the initial abnormal area, analyze the initial abnormal area according to the signal quality change, determine the change or reduction of the initial abnormal area, generate a secondary analysis area, and finally determine the secondary analysis area in combination with the read error rate to obtain the abnormal sector.
[0015] In this way, the abnormal sectors corresponding to all abnormal disks are obtained and analyzed.
[0016] As a further solution of the present invention, the specific manner in which the abnormal region analysis unit analyzes the abnormal sector is:
[0017] Take any group of abnormal sectors as the analysis object for analysis, obtain the sector files corresponding to the abnormal sectors of the analysis object, and mark the sector files as n, where n=1, 2, ..., m, where m represents the number of sector files. Then read and analyze the sector files, mark the sector files that can be read as normal reading files, mark the sector files that cannot be read as abnormal reading files, and transmit the normal reading files and the abnormal reading files to the specific defect identification unit.
[0018] As a further solution of the present invention, the specific defect recognition unit analyzes the normal files read from the file classification information in a specific manner as follows:
[0019] All normal read files are obtained and labeled as a, where a=1, 2, ..., o, where o represents the number of normal read files. Then the data type corresponding to the normal read file a is obtained, and the normal read files are classified according to the data type to obtain data classification information. At the same time, the integrity of the obtained data classification information is judged. If the data classification information is incomplete, it indicates that the metadata corresponding to the data classification information is abnormal. If the data classification information is complete, a data content analysis signal is generated and the data content analysis signal is processed.
[0020] As a further solution of the present invention, the specific defect recognition unit processes the data content analysis signal in the following specific manner:
[0021] Determine any group of data classification information as the object to be analyzed, then obtain all the normal reading files in the object to be analyzed, and simultaneously obtain the original data capacity and the restored data capacity corresponding to the normal reading files. If the original data capacity is the same as the restored data capacity, it indicates that the corresponding normal reading files are normal. Conversely, if the original data capacity is different from the restored data capacity, it indicates that the corresponding normal reading files are abnormal, and metadata abnormality information is generated simultaneously.
[0022] As a further solution of the present invention, the specific defect identification unit analyzes the abnormal files read in the file classification information in a specific manner as follows:
[0023] Classify the abnormal reading files according to the data type, and identify the data type classification results. If there is only one type of data type, further analyze the distribution of the abnormal reading files. If the distribution of the abnormal reading files is concentrated, it means that there is a problem with the corresponding abnormal sector, and generate sector defect information. If the distribution of the abnormal reading files is scattered, it means that there is a problem with the metadata of the corresponding abnormal reading files, and generate metadata abnormal information;
[0024] If there are multiple types of data, the Chkdsk tool provided by the system is used to perform checks and judgments, and defect information is generated, and the generated defect information is transmitted to the detection information output unit.
[0025] As a further solution of the present invention, it also includes a detection information output unit, which is used to display the acquired metadata abnormality information, defect information and sector defect information to the corresponding operator.
[0026] The present invention provides a disk defect detection system based on the Windows system. Compared with the prior art, it has the following beneficial effects:
[0027] The present invention can accurately obtain the head reading signal through a special disk information acquisition unit, develop a driver program or use an existing driver program interface, and perform detailed analysis and assignment of its strength, quality and reading error rate, thereby establishing a comprehensive and in-depth disk condition assessment basis. Through comprehensive calculation and judgment of the head reading signal related parameters, it can quickly and accurately perform a qualitative assessment of the overall disk condition, providing a clear direction for subsequent further analysis. The specific defect identification unit further performs separate analysis on reading normal files and reading abnormal files, and comprehensively identifies the specific defects of the disk from multiple angles such as file data type integrity, content accuracy and metadata. This defect location and identification technology from macro to micro, from overall to local, can provide users with detailed and accurate disk defect information, helping users quickly locate the root cause of the problem. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 This is a block diagram of the system principle of the present invention. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0030] Example 1: Please refer to Figure 1 The present application provides a disk defect detection system based on the win system, including a disk information acquisition unit, a disk status analysis unit, an abnormal area analysis unit, a specific defect identification unit and a detection information output unit, and at the same time combines Figure 1 It can be known that the above functional units are electrically connected in a unidirectional manner.
[0031] The disk information acquisition unit is used to acquire basic information of the disk in the win system, and transmit the acquired basic information to the disk status analysis unit. The acquired basic information includes the head read signal. The head read signal is used to develop a driver by using Windows Driver Kit (WDK) or to obtain relevant information by using an existing driver interface.
[0032] The disk status analysis unit is used to identify the overall status of the disk based on the acquired basic information, obtain the disk status judgment value by analyzing and calculating the basic information, and generate a status judgment result based on the judgment value.
[0033] Get the disk of the win system and label it as i, where i=1, 2, ..., j, where j represents the number of disks. At the same time, get the head read signal in the basic information of disk i, and get the signal strength, signal quality and read error rate corresponding to the head read signal. Then assign values to the three and record them as Qi, Zi and Ci respectively.
[0034] The specific assignment analysis is to divide the head signal strength into three levels, namely normal, slightly damaged and severely damaged, where the head signal strength corresponding to normal is 700-1000, the head signal strength corresponding to slightly damaged is 300-699, and the head signal strength corresponding to severely damaged is 0-299. The corresponding assignment value for normal is 3, the corresponding assignment value for slightly damaged is 2, and the corresponding assignment value for severely damaged is 1. Similarly, the signal quality and read error rate are analyzed, and the corresponding judgment criteria are generated.
[0035] Then substitute the obtained parameters into the formula Calculate the status judgment value Yi corresponding to disk i, where It is a preset proportional coefficient, and the specific value is set by the operator. The obtained condition judgment value Yi is matched with the preset judgment interval to generate a condition judgment result, and the judgment value corresponding to the preset judgment interval is set by the operator. The specific condition judgment results include normal state results, minor state damage results and damaged state results. Then the normal state results and minor state damage results are directly transmitted to the detection information output unit, and the damaged state results are transmitted to the abnormal area analysis unit.
[0036] When Yi ≥ 80, it is determined as a normal state result, which means that all parameters of the disk perform excellently, without obvious problems, and can perform data reading and writing operations stably and efficiently. When 40 < Yi < 80, it is determined as a slightly damaged state result, indicating that there are some minor problems with the disk, such as a slight decrease in signal strength or some small flaws in signal quality. When Yi ≤ 40, it is determined as a damaged state result, representing that the condition of the disk is very bad, and there may be serious physical damage or a large number of logical errors.
[0037] An abnormal area analysis unit, which is used to analyze the obtained damaged state result. By analyzing the change in signal strength, the initial abnormal area is determined, and based on the signal quality and read error rate, the initial abnormal area is optimized to determine the abnormal sector. At the same time, the sector files corresponding to the abnormal sectors are classified to obtain file classification information, and the file classification information is transmitted to the specific defect identification unit.
[0038] Obtain the disk corresponding to the damaged state result and record it as an abnormal disk. At the same time, analyze the change in signal strength of the abnormal disk, and determine the initial abnormal area according to the change in signal strength. For example, assume that in the normal working state of an abnormal disk, the baseline value of the signal strength read by the magnetic head is stable at 80 (assuming the full value of the signal strength is 100, and the value here is only for convenient illustration). As the disk continues to run and data reading and writing operations are carried out, through professional data acquisition equipment and analysis software, it is found that in a specific area of the disk (such as from sector 5000 to sector 8000), the signal strength read by the magnetic head shows a sharp downward trend, dropping below 30, and this low-strength signal reading situation appears stably in multiple tests. At the same time, in other areas, although the signal strength also fluctuates to some extent, it still remains at a relatively high and stable level (such as between 70 - 80). Based on the above signal strength change characteristics, it can be initially determined that the area from sector 5000 to sector 8000 is the initial abnormal area. Then, obtain the signal quality and read error rate corresponding to the initial abnormal area, analyze the initial abnormal area according to the change in signal quality, judge the change or reduction of the initial abnormal area, generate a secondary analysis area, and finally determine the abnormal sector by combining the read error rate. And so on, obtain the abnormal sectors corresponding to all abnormal disks.
[0039] For example, for a faulty disk, its initial abnormal area is determined to be from sector 1000 to sector 3000. With further inspection and data collection of the disk, it is found that the signal quality in the sub-area from sector 1500 to sector 2500 shows a trend of continuous deterioration. From sector 1500 to sector 2500, it is determined as the secondary analysis area. Combined with the read error rate, in this secondary analysis area, the read error rate climbs to more than 40 errors for every 50 sectors read. The sharp rise in error rate and the serious deterioration of signal quality are mutually confirmed. Taking all these factors into consideration, it can be finally determined that from sector 1500 to sector 2500 is an abnormal sector.
[0040] Then, the obtained abnormal sectors are analyzed, and any group of abnormal sectors are obtained as analysis objects for analysis, and the sector files corresponding to the abnormal sectors of the analysis objects are obtained. At the same time, the sector files are labeled as n, and n=1, 2, ..., m, where m represents the number of sector files. Then, the sector files are read and analyzed, and the sector files that can be read are marked as normal reading files, and the sector files that cannot be read are marked as abnormal reading files, and the normal reading files and the abnormal reading files are transmitted to the specific defect identification unit.
[0041] The specific defect identification unit is used to process the acquired file classification information, determine the corresponding specific defects by separately analyzing the normal files and the abnormal files, and transmit the specific defects to the detection information output unit.
[0042] The normal read files in the file classification information are analyzed, all the normal read files are obtained and labeled as a, and a=1, 2, ..., o, where o represents the number of normal read files, then the data type corresponding to the normal read file a is obtained, and the normal read files are classified according to the data type to obtain data classification information. For example, the extension of file 1 is .docx, and according to its file header and internal structure characteristics, it is determined to be a word processing document type; the extension of file 20 is .jpg, and its data conforms to the encoding format of the image file, and is determined to be an image file type; the extension of file 50 is .mp4, and through the analysis of its video encoding and file structure, it is determined to be a video file type, etc. At the same time, the integrity of the obtained data classification information is judged. If the data classification information is incomplete, it means that the metadata corresponding to the data classification information is abnormal. If the data classification information is complete, a data content analysis signal is generated and processed. Taking a word processing document as an example, when the system processes its content analysis signal, it will use natural language processing technology and grammar checking tools to check whether the vocabulary in the document is used appropriately, whether the sentence structure is complete, and whether the logical relationship between paragraphs is clear. If a large number of typos, grammatical errors or confusing paragraphs are found during the processing, this may indicate that the file has been damaged during the storage process. Although the file can be read, the accuracy and integrity of the content have been affected. Similarly, for image files, if it is found that some areas of the image are blurred, the color is distorted or pixels are missing, it also indicates that the data of the image file may be damaged.
[0043] Any set of data classification information is obtained and recorded as an object to be analyzed, and then all the normal-read files in the object to be analyzed are obtained, and at the same time, the original data capacity and the restored data capacity corresponding to the normal-read files are obtained. If the original data capacity is the same as the restored data capacity, it means that the corresponding normal-read files are normal. On the contrary, if the original data capacity is different from the restored data capacity, it means that the corresponding normal-read files are abnormal, and metadata abnormality information is generated at the same time. Specifically, the same and different here means that the difference in capacity between the two is within the allowable range, and the specific value of the allowable range is set by the operator.
[0044] Analyze the read abnormal files in the file classification information, obtain all the read abnormal files, and classify them according to the data types of the read abnormal files. At the same time, identify the data type type of the read abnormal files. If there is only one data type type, further analyze the distribution of the read abnormal files. If the distribution of the read abnormal files is concentrated, it means that there is a problem with the corresponding abnormal sector, and generate sector defect information. If the distribution of the read abnormal files is scattered, it means that there is a problem with the metadata of the corresponding read abnormal file, and generate metadata abnormal information;
[0045] If there are multiple types of data, the Chkdsk tool provided by the system is used to perform checks and judgments, and defect information is generated, and the generated defect information is transmitted to the detection information output unit.
[0046] For example, in a disk partition, there are many types of data, including office documents (such as Word, Excel files), image files (such as JPEG, PNG format), video files (such as MP4 format), and installation files of various applications, etc. After running the Chkdsk tool, it may find the following:
[0047] In terms of the file system structure, some folder indexes have errors, which leads to confusion in the display of some files in the directory structure. Some files clearly exist on the disk, but cannot be displayed normally in the corresponding folders. This is a logical defect at the file system level. The Chkdsk tool will record such problems in detail and generate defect information about file system index errors, clearly indicating the affected folder path and the possible range of files involved.
[0048] For metadata, Chkdsk may detect that the creation time, modification time and other metadata information of some files have been incorrectly modified or lost. For example, the creation date displayed in the metadata of an important business contract document has been tampered with to a future time, which may affect the sorting and searching of files, and will also be recorded as metadata abnormality defect information, including the specific file name, the original correct metadata information, and the details of the metadata that has been incorrectly modified.
[0049] In the sector read and write status check, Chkdsk found that some sectors were difficult to read. These sectors may be physical bad sectors or logical bad sectors due to physical wear of the disk or previous abnormal power failure. For physical bad sectors, Chkdsk will mark these sectors and record their location information on the disk, while trying to restore the data originally stored on these bad sectors to other available sectors as much as possible; for logical bad sectors, Chkdsk will try to repair their data structure to restore normal read and write functions, and generate detailed defect information about the bad sectors, such as the starting position and number of bad sectors and the results of the repair.
[0050] Once Chkdsk completes a comprehensive check of the disk, the detailed defect information generated, including file system structure errors, metadata anomalies, and sector read and write problems, will be quickly transmitted to the detection information output unit. The detection information output unit will present this defect information to the user in a clear and easy-to-understand manner, such as in the form of a detailed text report, or in the graphical disk detection software interface with eye-catching logos and prompts to inform the user of the disk problem, so that the user can take appropriate measures in time, such as backing up data, trying to repair disk defects, or replacing the disk, so as to ensure the security and integrity of the disk data and ensure the stable operation of the computer system.
[0051] The detection information output unit is used to display the acquired metadata abnormality information, defect information and sector defect information to the corresponding operator.
[0052] Some of the data in the above formulas are dimensionless and numerically calculated. Meanwhile, the contents not described in detail in this specification belong to the prior art known to those skilled in the art.
[0053] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A disk defect detection system based on the win system, characterized in that: include: The disk information acquisition unit is used to acquire basic information of the disk in the win system and transmit the acquired basic information to the disk status analysis unit; The disk status analysis unit is used to identify the overall status of the disk according to the acquired basic information, obtain the disk status judgment value by analyzing and calculating the basic information, and generate the status judgment result based on the judgment value; The abnormal area analysis unit is used to analyze the acquired state damage results, determine the initial abnormal area by analyzing the change of signal strength, and optimize the initial abnormal area to determine the abnormal sector according to the signal quality and read error rate, and classify the sector files corresponding to the abnormal sector to obtain file classification information, and transmit the file classification information to the specific defect identification unit. The specific processing method is: Obtain the disk corresponding to the state damage result and record it as an abnormal disk. At the same time, analyze the signal strength change of the abnormal disk, and determine the initial abnormal area according to the signal strength change. Then obtain the signal quality and read error rate corresponding to the initial abnormal area, analyze the initial abnormal area according to the signal quality change, judge the change of the initial abnormal area, generate a secondary analysis area, and finally determine the secondary analysis area in combination with the read error rate to obtain the abnormal sector. Similarly, the abnormal sectors corresponding to all abnormal disks are obtained and analyzed; Then, any group of abnormal sectors is obtained as the analysis object for analysis, and the sector files corresponding to the abnormal sectors of the analysis object are obtained, and the sector files are labeled as n, and n=1, 2, ..., m, where m represents the number of sector files, and then the sector files are read and analyzed, and the sector files that can be read are marked as normal reading files, and the sector files that cannot be read are marked as abnormal reading files, and the normal reading files and the abnormal reading files are transmitted to the specific defect identification unit; The specific defect identification unit is used to process the acquired file classification information, determine the corresponding specific defects by separately analyzing the normal files and the abnormal files, and transmit the specific defects to the detection information output unit.
2. The disk defect detection system based on the win system according to claim 1 is characterized in that: The specific method of generating the status judgment result by the disk status analysis unit is as follows: Get the disk of the win system and label it as i, where i=1, 2, ..., j, where j represents the number of disks. At the same time, get the head read signal in the basic information of disk i, and get the signal strength, signal quality and read error rate corresponding to the head read signal. Then assign values to the three and record them as Qi, Zi and Ci respectively. Then substitute the obtained parameters into the formula Calculate the status judgment value Yi corresponding to disk i, where It is a preset proportional coefficient, and the specific value is set by the operator. The obtained condition judgment value Yi is matched with the preset judgment interval to generate a condition judgment result. The specific condition judgment results include normal condition results, minor damage condition results and damaged condition results. Then the normal condition results and minor damage condition results are directly transmitted to the detection information output unit, and the damaged condition results are transmitted to the abnormal area analysis unit.
3. The disk defect detection system based on the win system according to claim 1 is characterized in that: The specific method in which the specific defect identification unit analyzes the normal files read from the file classification information is as follows: All normal read files are obtained and labeled as a, where a=1, 2, ..., o, where o represents the number of normal read files. Then the data type corresponding to the normal read file a is obtained, and the normal read files are classified according to the data type to obtain data classification information. At the same time, the integrity of the obtained data classification information is judged. If the data classification information is incomplete, it indicates that the metadata corresponding to the data classification information is abnormal. If the data classification information is complete, a data content analysis signal is generated and the data content analysis signal is processed.
4. The disk defect detection system based on the win system according to claim 3 is characterized in that: The specific method in which the specific defect identification unit processes the data content analysis signal is as follows: Determine any group of data classification information as the object to be analyzed, then obtain all the normal reading files in the object to be analyzed, and simultaneously obtain the original data capacity and the restored data capacity corresponding to the normal reading files. If the original data capacity is the same as the restored data capacity, it indicates that the corresponding normal reading files are normal. Conversely, if the original data capacity is different from the restored data capacity, it indicates that the corresponding normal reading files are abnormal, and metadata abnormality information is generated simultaneously.
5. The disk defect detection system based on the win system according to claim 1 is characterized in that: The specific method in which the specific defect identification unit analyzes the abnormal files read in the file classification information is as follows: Classify the abnormal reading files according to the data type, and identify the data type classification results. If there is only one type of data type, analyze the distribution of the abnormal reading files. If the distribution of the abnormal reading files is concentrated, it means that there is a problem with the corresponding abnormal sector, and generate sector defect information. If the distribution of the abnormal reading files is scattered, it means that there is a problem with the metadata of the corresponding abnormal reading files, and generate metadata abnormal information; If there are multiple types of data, the Chkdsk tool provided by the system is used to perform checks and judgments, and defect information is generated, and the generated defect information is transmitted to the detection information output unit.
6. The disk defect detection system based on the win system according to claim 1 is characterized in that: It also includes a detection information output unit, which is used to display the acquired metadata abnormality information, defect information and sector defect information to the corresponding operator.
Citation Information
Patent Citations
Manufacturing method for magnetic disk drive
US20060126204A1
Information memory device, failure predicting device and failure predicting method
US20170263283A1