CN102495777A - Hard disc failure processing method and processing device - Google Patents

Hard disc failure processing method and processing device Download PDF

Info

Publication number
CN102495777A
CN102495777A CN201110415641XA CN201110415641A CN102495777A CN 102495777 A CN102495777 A CN 102495777A CN 201110415641X A CN201110415641X A CN 201110415641XA CN 201110415641 A CN201110415641 A CN 201110415641A CN 102495777 A CN102495777 A CN 102495777A
Authority
CN
China
Prior art keywords
sector number
file system
fault
fault sector
hard disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110415641XA
Other languages
Chinese (zh)
Other versions
CN102495777B (en
Inventor
王志谦
魏伟
胡殿明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201110415641.XA priority Critical patent/CN102495777B/en
Publication of CN102495777A publication Critical patent/CN102495777A/en
Application granted granted Critical
Publication of CN102495777B publication Critical patent/CN102495777B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a hard disc failure processing method. The hard disc failure processing method includes steps of acquiring a failure sector number of a hard disc with failure; acquiring a file system of the failure sector number according to the failure sector number and partition information of various file systems, and acquiring a sector address corresponding to the failure sector number according to the failure sector number and the file system of the failure sector number; determining a file corresponding to the failure sector number according to the sector address; and realizing failure processing for a failure sector according to the file. The invention further discloses a hard disc failure processing device. By the aid of the hard disc failure processing method and the hard disc failure processing device, the hardware sector of the hard disc can be directly mapped to the file system and the file, the hard disc failure processing method and the hard disc failure processing device bring convenience for processing the failure sector and restoring data, and accordingly failure processing and data restoration efficiency can be improved.

Description

Hard disk failure disposal route and treating apparatus
Technical field
The present invention relates to the network equipment maintenance technical field, particularly a kind of hard disk failure disposal route and fault treating apparatus.
Background technology
Along with the continuous development of science and technology, the capacity of single hard disk becomes increasing.In the server field, the sector in the single hard disk reaches 10 especially 9Individual.Because hard disk comprises a large amount of sectors, makes hard disk in use, the overall probability that breaks down in the sector increases.For hard disk,, single sector assert that primary fault has taken place hard disk if breaking down.Traditional is the replacement DISK to Image to sector Fault Processing mode.But adopt this mode, need the total data in the synchronous hard disk, need artificial the replacing and the transportation hard disk simultaneously, thereby brought the lot of manpower and material resources waste.
Summary of the invention
The present invention is intended to solve at least one of technical matters that exists in the prior art.
For this reason; First purpose of the present invention is to propose a kind of hard disk failure disposal route; This method can be directly from hard disk hardware sector map to file system and file, for fault sectors process and data are recovered to provide convenience, thereby can improve the efficient of fault handling and data recovery.Second purpose of the present invention is to propose a kind of hard disk failure treating apparatus.
For realizing above-mentioned purpose; The embodiment of first aspect present invention provides a kind of hard disk failure disposal route; Comprise the steps: to obtain the fault sector number that hard disk breaks down; Wherein, store partition table in the subregion list area of said hard disk, store the partition information of each file system in the said file system storage section in the said partition table; Obtain the file system under the said fault sector number according to the partition information of said fault sector number and said each file system, and obtain the corresponding sevtor address of said fault sector number according to the file system under said fault sector number and the said fault sector number; Confirm said fault sector number corresponding file according to said sevtor address; And fault handling is carried out in the sector of breaking down according to said file.
Hard disk failure disposal route according to the embodiment of the invention; File system and file under can finding through the sector number of hard disk; When break down in the sector of hard disk, can realize timely location, thereby can improve the efficient that fault is got rid of and data are recovered the sector respective file.
The embodiment of second aspect present invention provides a kind of hard disk failure treating apparatus; Comprise: the sector fault detection module; Be used to detect the fault sector number that breaks down; Wherein, store partition table in the subregion list area of said hard disk, store the partition information of each file system in the said file system storage section in the said partition table; The sevtor address acquisition module; Be used for partition information according to said fault sector number and said each file system and obtain the file system under the said fault sector number, and obtain the corresponding sevtor address of said fault sector number according to the file system under said fault sector number and the said fault sector number; The file system locating module is used for confirming said fault sector number corresponding file according to said sevtor address; And fault processing module, be used for fault handling being carried out in the sector of breaking down according to said file.
Hard disk failure treating apparatus according to the embodiment of the invention; File system and file under can finding through the sector number of hard disk; When break down in the sector of hard disk, can realize timely location, thereby can improve the efficient that fault is got rid of and data are recovered the sector respective file.
Additional aspect of the present invention and advantage part in the following description provide, and part will become obviously from the following description, or recognize through practice of the present invention.
Description of drawings
Above-mentioned and/or additional aspect of the present invention and advantage obviously with are easily understood becoming the description of embodiment from combining figs, wherein:
Fig. 1 is the process flow diagram of hard disk failure disposal route according to an embodiment of the invention;
Fig. 2 is the hard disk logical partitioning synoptic diagram according to the embodiment of the invention;
Fig. 3 is the fdisk synoptic diagram according to the embodiment of the invention;
Fig. 4 is the process flow diagram of hard disk failure disposal route in accordance with another embodiment of the present invention;
Fig. 5 is the synoptic diagram according to the hard disk failure treating apparatus of the embodiment of the invention;
Fig. 6 is the synoptic diagram according to the sevtor address acquisition module of the embodiment of the invention; And
Fig. 7 is the synoptic diagram according to the file system locating module of the embodiment of the invention.
Embodiment
Describe embodiments of the invention below in detail, the example of said embodiment is shown in the drawings, and wherein identical from start to finish or similar label is represented identical or similar elements or the element with identical or similar functions.Be exemplary through the embodiment that is described with reference to the drawings below, only be used to explain the present invention, and can not be interpreted as limitation of the present invention.
With reference to following description and accompanying drawing, with these and other aspects of knowing embodiments of the invention.These describe with accompanying drawing in, some specific implementations in the embodiments of the invention are specifically disclosed, represent some modes of principle of the embodiment of embodiment of the present invention, still should be appreciated that the scope of embodiments of the invention is not limited.On the contrary, embodiments of the invention comprise and fall into appended spirit that adds the right claim and all changes, modification and the equivalent in the intension scope.
Referring to figs. 1 to Fig. 4 the hard disk failure disposal route according to the embodiment of the invention is described below.
Hard disk failure disposal route as shown in Figure 1, that the embodiment of the invention provides comprises the steps:
Step S101 obtains the fault sector number that breaks down.
As shown in Figure 2, the hard disk logic can be divided into boot section, subregion list area and file system storage section.Wherein, file system storage section can comprise a plurality of file system, for example: file system 1, file system 2, file system 3....... file system N.Wherein, the size of each file system is not fixed, and can be 1T~8T.
The length of boot section is fixed, and in the boot section, stores guidance information.In the subregion list area, store the partition information of each file system in the file system memory.In one embodiment of the invention, record boot section in the hard disk and be the number of the subregion of file system storage section, the reference position and the end position of each subregion in the partition table.
When hard disk is carried out subregion, at first skip the boot section, in the subregion list area, search the partition table of hard disk.Then, this partition table is read in the internal memory, the boot section and the file system storage section of hard disk is carried out subregion according to partition table.According to the partition table that reads, hard disk is increased sector auxiliary information.Fig. 3 is the synoptic diagram of fdisk.The boot section is divided into 4 sectors, is respectively 1~sector, sector 4.The partition table zoning is divided into 4 sectors, is respectively 5~sector, sector 8.File system 1 is divided into 12 sectors, is respectively 9~sector, sector 20.File system 2 is divided into 12 sectors, is respectively 21~sector, sector 32.File system 3 is divided into 12 sectors, is respectively 33~sector, sector 44.File system N is divided into 20 sectors, is respectively 45~sector, sector 64.In example of the present invention, each sector can comprise 512 bytes.
Need to prove that the dividing mode of above-mentioned boot section to hard disk, subregion list area and file system storage section only is for exemplary purposes, rather than in order to limit the present invention.It is understandable that according to the difference of the size of hard disk and file system, boot section, subregion list area and file system storage section can also be the sector of other quantity.
With volume is that 3.5 cun, capacity are that the hard disk of 3TB is an example, and this hard disk comprises the 3*1024*1024*1024*1024 byte altogether.Wherein, each sector comprises 512 bytes, thereby this hard disk comprises 3*1024*1024*1024*2 sector altogether, is about 6*10 9Individual sector.From Fig. 3, can find out that each sector all belongs to a file system, the sector number and the file system of sector have corresponding relation.
When detecting a sector and break down, promptly detect when bad sector occurring in the hard disk, obtain the fault sector number of the sector of breaking down.
Step S102, according to the file system under the partition information acquisition fault sector number of fault sector number and each file system, and according to the corresponding sevtor address of the acquisition of the file system under fault sector number and fault sector number fault sector number.
The partition information of each file system that obtains according to step S101 obtains the partition information of each file system.According to the fault sector number that obtains among the step S102 and the partition information of each file system, search the affiliated file system of fault sector number then.For example: when the fault sector number is 13,, can know that the fault sector number belongs to file system 1 according to the partition information of each file system.Then, obtain the filesystem information table of the affiliated file system of this fault sector number.Obtain corresponding piece and the block message of affiliated file system according to this document system message list.Wherein, block message comprises the capacity (blocksize) of piece.For example, blocksize can be 1K or 4K.
Table 2 is the data partition signal of EXT paper series system.
Wherein, each file system is all formed by one to a plurality of, and each piece group is relatively independent, all possesses piece group descriptor separately.In the table 2 first row Super Block is a superblock, and wherein, superblock information is unique to whole file system, and in file system, has a plurality of backups.Second row and the third line Group Descriptor (GDT) are the piece group descriptor.Fourth line is a bitmap block, and by bitmap block, whether bitmap block is used for description block (block) and is used for each piece group.Fifth line is the inode bitmap.The 6th behavior index node inode, wherein, index node inode stores the sevtor address of the sector of fileinfo and directory information and file system.The data block that the 7th behavior is bad.
Particularly, confirm piece corresponding in affiliated file system according to the fault sector number, and according to the calculation of capacity sevtor address of fault sector number with the piece of correspondence.
Sevtor address=int (capacity of sector number * 100* sector-size/piece),
Wherein, int is a bracket function.
With sector number is 44, and sector-size is that 512 bytes, blocksize are that 1K is an example,
Sevtor address=int (12300*512/1*1024)
Step S104 confirms fault sector number corresponding file according to sevtor address.
According to the index node inode in the filesystem information table of corresponding each file system of sevtor address traversal of fault sector number.Wherein, index node inode has independent structures and bitmap.In index node inode, store the sevtor address of all sectors under fileinfo, directory information and the affiliated file system.Therefore, through all the index node inode of sevtor address traversal that calculated, can find the corresponding index node inode of sevtor address of fault sector number.
Owing in index node, store fileinfo and directory information, behind the index node inode that finds under the fault sector number, and then can recursive lookup to index node inode corresponding file.Particularly, obtain the fullpath of index node inode, search the file under the inode, and then find the catalogue under this document according to this fullpath.
For example: index node inode fullpath is/tmp/s0/t.txt, and wherein, t.txt is index node inode, and s0 is a filename, and tmp is a catalogue.According to the fullpath of index node inode,, can find index node inode affiliated file and catalogue, thereby can obtain the file under the fault sector number through the recursive lookup mode.
Step S105 carries out fault handling according to file to the sector of breaking down.
Behind the file that finds under the index node inode, can reach the purpose of the sector of fault being carried out fault handling through this document is handled, the failure problems that is about to the sector converts the failure problems of file into.
Hard disk failure disposal route with reference to 4 pairs of embodiment of the invention of figure is described in detail below.It is as shown in Figure 4,
Step S401 obtains the sector number of fault sector.
When breaking down, obtain the fault sector number that breaks down by the sector.
Step S402 reads partition information.
Read partition table to obtain partition information, wherein record boot section in the hard disk in the partition table and be the number of the subregion of file system storage section, the reference position and the end position of each subregion.
Step S403 judges whether subregion of file system, if, execution in step S404 then, otherwise execution in step S409.
According to partition information, judge file system whether accomplish by subregion.
Step S404 reads the filesystem information table.
According to the partition information of fault sector number and each file system, search the affiliated file system of fault sector number.Obtain the filesystem information table of the affiliated file system of this fault sector number.
Step S405 obtains the capacity of pairing of fault sector number.
Obtain corresponding piece and the block message of affiliated file system according to this document system message list.Wherein, block message comprises the capacity (blocksize) of piece.
Step S406 calculates the sevtor address of fault sector.
Confirm piece corresponding in affiliated file system according to the fault sector number, and according to the calculation of capacity sevtor address of fault sector number with the piece of correspondence.
Sevtor address=int (capacity of sector number * 100* sector-size/piece),
Wherein, int is a bracket function.
Step S407 travels through the index node inode of each file system.
According to the index node inode in the filesystem information table of corresponding each file system of sevtor address traversal of fault sector number.Store the sevtor address of all sectors under fileinfo, directory information and the affiliated file system among the index node inode.Through all the index node inode of sevtor address traversal that calculated, can find the corresponding index node inode of sevtor address of fault sector number.
Step S408 recalls visit until root directory.
Behind the index node inode that finds under the fault sector number, obtain the fullpath of index node inode, search the file under the inode according to this fullpath, and then find the catalogue under this document.
Step S409, output information.
Obtain the affiliated fileinfo and the directory information of fault sector number among the output step S408.Thereby, can reach the purpose of the sector of fault being carried out fault handling through this document is handled.
According to the hard disk failure disposal route of the embodiment of the invention, can arrive affiliated file system and file through the sector number reverse find of hard disk, a kind of directly mapping mode from hard disk hardware sector to operating system logical device and blocks of files promptly is provided.When break down in the sector of hard disk, timely location can be realized, thereby the problem of single file can be the problem of DISK to Image be converted into the sector respective file, improve the efficient that fault is got rid of and data are recovered.
The hard disk failure treating apparatus of describing according to the embodiment of the invention with reference to figure 5 to Fig. 8 below 500.
As shown in Figure 5, the hard disk failure treating apparatus 500 that the embodiment of the invention provides comprises: sector fault detection module 510, sevtor address acquisition module 520, file system locating module 530 and fault processing module 540.Wherein, sector fault detection module 510 is used to detect the fault sector number that breaks down.Wherein, the partition table of the subregion list area of hard disk storage stores the partition information of each file system in the file system storage section.Sevtor address acquisition module 520 is used for according to file system and the corresponding sevtor address of fault sector number under the partition information acquisition fault sector number of fault sector number and each file system.File system locating module 530 is used for confirming fault sector number corresponding file according to sevtor address.Fault processing module 540 is used for according to file fault handling being carried out in the sector of breaking down.
Particularly, the hard disk logic can be divided into boot section, subregion list area and file system storage section.Wherein, file system storage section can comprise a plurality of file system, for example: file system 1, file system 2, file system 3....... file system N.Wherein, the size of each file system is not fixed, and can be 1T~8T.
The length of boot section is fixed, and in the boot section, stores guidance information.In the subregion list area, store the partition information of each file system in the file system memory.In one embodiment of the invention, record boot section in the hard disk and be the number of the subregion of file system storage section, the reference position and the end position of each subregion in the partition table.
When hard disk is carried out subregion, at first skip the boot section, in the subregion list area, search the partition table of hard disk.Then, this partition table is read in the internal memory, the boot section and the file system storage section of hard disk is carried out subregion according to partition table.According to the partition table that reads, hard disk is increased sector auxiliary information.In example of the present invention, each sector can comprise 512 bytes.Each sector all belongs to a file system, and the sector number and the file system of sector have corresponding relation.
Need to prove that the dividing mode of above-mentioned boot section to hard disk, subregion list area and file system storage section only is for exemplary purposes, rather than in order to limit the present invention.It is understandable that according to the difference of the size of hard disk and file system, boot section, subregion list area and file system storage section can also be the sector of other quantity.
When sector fault detection module 510 detects a sector and breaks down, promptly detect when bad sector occurring in the hard disk, obtain the fault sector number of the sector of breaking down.
As shown in Figure 6, sevtor address acquisition module 520 further comprises information acquisition unit 521 and sevtor address computing unit 522.Wherein, information acquisition unit 521 is used for searching the file system under the said fault sector number according to the partition information of said fault sector number and said each file system, and obtains the filesystem information table of the file system under the said fault sector number.Information acquisition unit 521 then according to the partition information of fault sector number and each file system, is searched the affiliated file system of fault sector number according to the partition information of each file system of partition information acquisition of each file system.For example: when the fault sector number was 13, information acquisition unit 521 can know that according to the partition information of each file system the fault sector number belongs to file system 1.Then, information acquisition unit 521 is obtained the filesystem information table of the file system under this fault sector number, corresponding piece and the block message of file system under obtaining according to this document system message list.Wherein, block message comprises the capacity (blocksize) of piece.For example, blocksize can be 1K or 4K.
Sevtor address computing unit 522 is used for obtaining the corresponding sevtor address of fault sector number according to fault sector number and corresponding piece and the block message of file system.Wherein, sevtor address computing unit 522 is confirmed pairing of fault sector number and pairing data capacity according to the fault sector number, and according to the corresponding sevtor address of calculation of capacity fault sector number of fault sector number and corresponding piece.
Sevtor address=int (capacity of sector number * 100* sector-size/piece),
Wherein, int is a bracket function.
As shown in Figure 7, file system locating module 530 comprises traversal unit 531, searches unit 532 and positioning unit 533.Wherein, traversal unit 531 is used for the index node inode according to the filesystem information table of corresponding each file system of sevtor address traversal of fault sector number.Index node inode has independent structures and bitmap.In index node inode, store the sevtor address of all sectors under fileinfo, directory information and the affiliated file system.
Owing in index node, store fileinfo and directory information, search unit 532 all index node inode of sevtor address traversal through having calculated, can find the corresponding index node inode of sevtor address of fault sector number.
Behind the index node inode that finds under the fault sector number, positioning unit 533 and then can be according to the index node inode recursive lookup under the fault sector number to index node inode corresponding file.Particularly, obtain the fullpath of index node inode, search the file under the inode, and then find the catalogue under this document according to this fullpath.
For example: index node inode fullpath is/tmp/s0/t.txt, and wherein, t.txt is index node inode, and s0 is a filename, and tmp is a catalogue.According to the fullpath of index node inode,, can find index node inode affiliated file and catalogue, thereby can obtain the file under the fault sector number through the recursive lookup mode.
Fault processing module 540 can reach the purpose of the sector of fault being carried out fault handling through this document is handled behind the file that finds under the index node inode, the failure problems that is about to the sector converts the failure problems of file into.
According to the hard disk failure treating apparatus of the embodiment of the invention, can arrive affiliated file system and file through the sector number reverse find of hard disk, a kind of directly mapping mode from hard disk hardware sector to operating system logical device and blocks of files promptly is provided.When break down in the sector of hard disk, timely location can be realized, thereby the problem of single file can be the problem of DISK to Image be converted into the sector respective file, improve the efficient that fault is got rid of and data are recovered.
Describe and to be understood that in the process flow diagram or in this any process otherwise described or method; Expression comprises module, fragment or the part of code of the executable instruction of the step that one or more is used to realize specific logical function or process; And the scope of preferred implementation of the present invention comprises other realization; Wherein can be not according to order shown or that discuss; Comprise according to related function and to carry out function by the mode of basic while or by opposite order, this should be understood by the embodiments of the invention person of ordinary skill in the field.
In process flow diagram the expression or in this logic of otherwise describing and/or step; For example; Can be considered to be used to realize the sequencing tabulation of the executable instruction of logic function; May be embodied in any computer-readable medium; Use for instruction execution system, device or equipment (like computer-based system, comprise that system or other of processor can be from the systems of instruction execution system, device or equipment instruction fetch and execution command), or combine these instruction execution systems, device or equipment and use.With regard to this instructions, " computer-readable medium " can be anyly can comprise, storage, communication, propagation or transmission procedure are for instruction execution system, device or equipment or combine these instruction execution systems, device or equipment and the device that uses.The example more specifically of computer-readable medium (non-exhaustive list) comprises following: the electrical connection section (electronic installation) with one or more wirings; Portable computer diskette box (magnetic device); Random-access memory (ram), ROM (read-only memory) (ROM) can be wiped and can edit ROM (read-only memory) (EPROM or flash memory); Fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition; Computer-readable medium even can be paper or other the suitable media that to print said program above that; Because can be for example through paper or other media are carried out optical scanning; Then edit, decipher or handle to obtain said program with other suitable methods in case of necessity with the electronics mode, then it is stored in the computer memory.
Should be appreciated that each several part of the present invention can use hardware, software, firmware or their combination to realize.In the above-described embodiment, a plurality of steps or method can realize with being stored in the storer and by software or firmware that suitable instruction execution system is carried out.For example; If realize with hardware; The same in another embodiment, each in the available following technology well known in the art or their combination realize: have the discrete logic that is used for data-signal is realized the logic gates of logic function, have the special IC of suitable combinational logic gate circuit; Programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to accomplish through program; Described program can be stored in a kind of computer-readable recording medium; This program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can be integrated in the processing module, also can be that the independent physics in each unit exists, and also can be integrated in the module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If said integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
In the description of this instructions, the description of reference term " embodiment ", " some embodiment ", " example ", " concrete example " or " some examples " etc. means the concrete characteristic, structure, material or the characteristics that combine this embodiment or example to describe and is contained at least one embodiment of the present invention or the example.In this manual, the schematic statement to above-mentioned term not necessarily refers to identical embodiment or example.And concrete characteristic, structure, material or the characteristics of description can combine with suitable manner in any one or more embodiment or example.
Although illustrated and described embodiments of the invention; For those of ordinary skill in the art; Be appreciated that under the situation that does not break away from principle of the present invention and spirit and can carry out multiple variation, modification, replacement and modification that scope of the present invention is accompanying claims and be equal to and limit to these embodiment.

Claims (10)

1. a hard disk failure disposal route is characterized in that, may further comprise the steps:
Obtain the fault sector number that hard disk breaks down, wherein, store partition table in the subregion list area of said hard disk, store the partition information of each file system in the said file system storage section in the said partition table;
Obtain the file system under the said fault sector number according to the partition information of said fault sector number and said each file system, and obtain the corresponding sevtor address of said fault sector number according to the file system under said fault sector number and the said fault sector number;
Confirm said fault sector number corresponding file according to said sevtor address; And
According to said file fault handling is carried out in the sector of breaking down.
2. hard disk failure disposal route as claimed in claim 1 is characterized in that, the file system that said partition information according to fault sector number and each file system obtains under the fault sector number further comprises:
Search the file system under the said fault sector number according to the partition information of said fault sector number and said each file system, and obtain the filesystem information table of the file system under the said fault sector number;
Saidly obtain the corresponding sevtor address of said fault sector number according to the file system under said fault sector number and the said fault sector number and further comprise:
Obtain said file system corresponding piece and block message according to said filesystem information table; And
Obtain the corresponding sevtor address of said fault sector number according to said fault sector number and corresponding piece and the block message of said file system.
3. hard disk failure disposal route as claimed in claim 2 is characterized in that, the said sevtor address that obtains fault sector number correspondence according to the piece and the block message of fault sector number and each file system correspondence further comprises:
Confirm pairing of said fault sector number according to the fault sector number;
According to the corresponding sevtor address of the said fault sector number of the calculation of capacity of pairing of said fault sector number and said fault sector number.
4. hard disk failure disposal route as claimed in claim 2 is characterized in that, said according to said sevtor address to confirm said fault sector number corresponding file system and file, further comprise:
According to the index node inode in the filesystem information table of corresponding said each file system of sevtor address traversal of said fault sector number, wherein, the sevtor address of all sectors of file system under storing among the said index node inode;
Search the affiliated index node inode of said sevtor address;
According to the index node inode under the said sevtor address, search said index node inode corresponding file.
5. hard disk processing method as claimed in claim 1 is characterized in that, said is boot section, subregion list area and file system storage section with hard disk partition, further comprises:
Said partition table is read in internal memory, and said boot section and said file system memory are divided according to said partition table.
6. a hard disk failure treating apparatus is characterized in that, comprising:
The sector fault detection module is used to detect the fault sector number that breaks down, and wherein, stores partition table in the subregion list area of said hard disk, stores the partition information of each file system in the said file system storage section in the said partition table;
The sevtor address acquisition module; Be used for partition information according to said fault sector number and said each file system and obtain the file system under the said fault sector number, and obtain the corresponding sevtor address of said fault sector number according to the file system under said fault sector number and the said fault sector number;
The file system locating module is used for confirming said fault sector number corresponding file according to said sevtor address; And
Fault processing module is used for according to said file fault handling being carried out in the sector of breaking down.
7. hard disk failure treating apparatus as claimed in claim 6 is characterized in that, said partition table comprises the number of partitions of said hard disk, the reference position and the end position of each subregion.
8. hard disk failure treating apparatus as claimed in claim 6 is characterized in that, said sevtor address acquisition module further comprises:
Information acquisition unit is used for searching the file system under the said fault sector number according to the partition information of said fault sector number and said each file system, and obtains the filesystem information table of the file system under the said fault sector number;
The sevtor address computing unit is used for obtaining the corresponding sevtor address of said fault sector number according to said fault sector number and corresponding piece and the block message of said file system.
9. hard disk failure treating apparatus as claimed in claim 8; It is characterized in that; Said sevtor address computing unit is confirmed pairing of said fault sector number and said pairing data capacity according to said fault sector number, and according to the corresponding sevtor address of the said fault sector number of the calculation of capacity of the piece of said fault sector number and said correspondence.
10. hard disk failure treating apparatus as claimed in claim 6 is characterized in that, said file system locating module further comprises:
The traversal unit; Be used for index node inode according to the filesystem information table of corresponding said each file system of sevtor address traversal of said fault sector number; Wherein, store the sevtor address of all sectors of affiliated file system among the said index node inode;
Search the unit, be used to search the affiliated index node inode of said sevtor address;
Positioning unit is used for according to the index node inode under the said sevtor address, searches said index node inode corresponding file.
CN201110415641.XA 2011-12-13 2011-12-13 Hard disc failure processing method and processing device Active CN102495777B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110415641.XA CN102495777B (en) 2011-12-13 2011-12-13 Hard disc failure processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110415641.XA CN102495777B (en) 2011-12-13 2011-12-13 Hard disc failure processing method and processing device

Publications (2)

Publication Number Publication Date
CN102495777A true CN102495777A (en) 2012-06-13
CN102495777B CN102495777B (en) 2014-10-22

Family

ID=46187603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110415641.XA Active CN102495777B (en) 2011-12-13 2011-12-13 Hard disc failure processing method and processing device

Country Status (1)

Country Link
CN (1) CN102495777B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318960A (en) * 2014-09-15 2015-01-28 华为数字技术(成都)有限公司 Method and device for repairing hard disk bad track
CN104794027A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Parameter identification error repair method
CN105242985A (en) * 2015-09-09 2016-01-13 华为技术有限公司 Data recovery method and apparatus
CN108182126A (en) * 2018-01-02 2018-06-19 联想(北京)有限公司 A kind of hard disk processing method and electronic equipment
CN109298979A (en) * 2018-08-17 2019-02-01 新华三技术有限公司成都分公司 Hard disc failure processing method and device
CN111274070A (en) * 2019-11-04 2020-06-12 华为技术有限公司 Hard disk detection method and device and electronic equipment
CN112115002A (en) * 2020-09-21 2020-12-22 武汉轻工大学 Method and device for recovering file from damaged or non-trusted mechanical hard disk
CN112800005A (en) * 2021-01-22 2021-05-14 中孚安全技术有限公司 Deep inspection method, system, terminal and storage medium for file system
CN112817975A (en) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 Method and system for setting physical memory and mobile terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173291B1 (en) * 1997-09-26 2001-01-09 Powerquest Corporation Method and apparatus for recovering data from damaged or corrupted file storage media
CN1661568A (en) * 2004-02-24 2005-08-31 中国科学院声学研究所 File system in device of recording and playing back sounds and images under embedded type environment
CN101772757A (en) * 2007-08-21 2010-07-07 汤姆逊许可公司 Method and system for repairing damaged hard disk file systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6173291B1 (en) * 1997-09-26 2001-01-09 Powerquest Corporation Method and apparatus for recovering data from damaged or corrupted file storage media
CN1661568A (en) * 2004-02-24 2005-08-31 中国科学院声学研究所 File system in device of recording and playing back sounds and images under embedded type environment
CN101772757A (en) * 2007-08-21 2010-07-07 汤姆逊许可公司 Method and system for repairing damaged hard disk file systems

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104318960A (en) * 2014-09-15 2015-01-28 华为数字技术(成都)有限公司 Method and device for repairing hard disk bad track
CN104318960B (en) * 2014-09-15 2018-06-05 华为数字技术(成都)有限公司 The restorative procedure and device of a kind of bad track of hard disk
CN104794027A (en) * 2015-04-30 2015-07-22 四川效率源信息安全技术有限责任公司 Parameter identification error repair method
CN104794027B (en) * 2015-04-30 2017-12-08 四川效率源信息安全技术股份有限公司 A kind of restorative procedure of parameter identification mistake
CN105242985A (en) * 2015-09-09 2016-01-13 华为技术有限公司 Data recovery method and apparatus
WO2017041670A1 (en) * 2015-09-09 2017-03-16 华为技术有限公司 Data recovery method and apparatus
CN105242985B (en) * 2015-09-09 2018-05-25 华为技术有限公司 Data recovery method and device
CN108182126A (en) * 2018-01-02 2018-06-19 联想(北京)有限公司 A kind of hard disk processing method and electronic equipment
CN109298979A (en) * 2018-08-17 2019-02-01 新华三技术有限公司成都分公司 Hard disc failure processing method and device
CN109298979B (en) * 2018-08-17 2022-08-12 新华三技术有限公司成都分公司 Hard disk fault processing method and device
CN111274070A (en) * 2019-11-04 2020-06-12 华为技术有限公司 Hard disk detection method and device and electronic equipment
CN111274070B (en) * 2019-11-04 2021-10-15 华为技术有限公司 Hard disk detection method and device and electronic equipment
CN112115002A (en) * 2020-09-21 2020-12-22 武汉轻工大学 Method and device for recovering file from damaged or non-trusted mechanical hard disk
CN112115002B (en) * 2020-09-21 2024-04-02 武汉轻工大学 Method and device for recovering file from damaged or untrusted mechanical hard disk
CN112800005A (en) * 2021-01-22 2021-05-14 中孚安全技术有限公司 Deep inspection method, system, terminal and storage medium for file system
CN112800005B (en) * 2021-01-22 2023-01-03 中孚安全技术有限公司 Deep inspection method, system, terminal and storage medium for file system
CN112817975A (en) * 2021-01-25 2021-05-18 惠州Tcl移动通信有限公司 Method and system for setting physical memory and mobile terminal

Also Published As

Publication number Publication date
CN102495777B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
CN102495777B (en) Hard disc failure processing method and processing device
US10019459B1 (en) Distributed deduplication in a distributed system of hybrid storage and compute nodes
JP5327497B2 (en) Map data distribution system and map data update method
CN103229173B (en) Metadata management method and system
KR100856245B1 (en) File system device and method for saving and seeking file thereof
US20130262758A1 (en) Systems and Methods for Tracking Block Ownership
CN105303456A (en) Method for processing monitoring data of electric power transmission equipment
US8234250B1 (en) Processing data of a file using multiple threads during a deduplication gathering phase
CN103440205B (en) A kind of set top box data storage method and device
AU2013210018B2 (en) Location independent files
KR20140026821A (en) Method and apparatus for recovering partition using backup boot record
CN109614054B (en) data reading method and system
CN104978627A (en) Inner energy meter file updating method of electric force acquisition terminal
JP2014521176A (en) Index construction method, search method, search device, and search system
CN102413010B (en) Testing environment deployment method and device
CN103078906A (en) Document transparent moving method
CN105830041A (en) Metadata recovery method and apparatus
CN105426375A (en) Relationship network calculation method and apparatus
CN105653731A (en) Method for restoring deleted data of journaling file system
CN103186622A (en) Updating method of index information in full text retrieval system and device thereof
CN105354102B (en) A kind of method and apparatus of file system maintenance and reparation
CN102282545B (en) Storage system
US11409720B2 (en) Metadata reduction in a distributed storage system
CN109189724B (en) Method and device for improving audio and video data storage efficiency of video monitoring system
US20100318585A1 (en) Method for installing fat file system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant