CN105354099A - Western digital hard disk repair method - Google Patents
Western digital hard disk repair method Download PDFInfo
- Publication number
- CN105354099A CN105354099A CN201510639310.2A CN201510639310A CN105354099A CN 105354099 A CN105354099 A CN 105354099A CN 201510639310 A CN201510639310 A CN 201510639310A CN 105354099 A CN105354099 A CN 105354099A
- Authority
- CN
- China
- Prior art keywords
- hard disk
- magnetic head
- module
- data
- mapping module
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
Abstract
The present invention discloses a western digital hard disk repair method which comprises the following steps of: S1, analyzing magnetic head bitmap information by an acquired map module; S2, modifying the bitmap information and shielding damaged magnetic heads; and S3, loading a No.11 module matched with a microcode into a cache, loading an ATA to enable a hard disk to normally run and writing back to enable the hard disk to normally access main firmware of data. The western digital hard disk repair method has the beneficial effects that the damaged magnetic heads are forbidden to work by using a shielding method so as to prevent a disk from being damaged again; and by checking and reconstructing an effective data part of a magnetic head bitmap and the integral map module and finally loading the No.11 module to the cache in a microcode matching manner, the aim of enabling a damaged disk motor to run up and normally work is fulfilled, the fund cost of replacing the magnetic head is reduced, the stability of repairing the hard disk is improved and the repair success rate is higher. The magnetic heads with serious bad tracks are closed by the magnetic head bitmap, so that the disk knocking phenomenon is avoided in the powering-on process, the hard disk can be normally tracked and the problems of abnormal sound, continuous rotation and the like can be avoided.
Description
Technical field
The present invention relates to field of information security technology, particularly one western number Hard Disk Repair method.
Background technology
The western number hard-disk capacity 500G at least that society of today circulates, 2000G at most.These jumbo hard disks all need multiple magnetic head read and write hard disc and store data.In the production and life of reality, long read-write operation, the life-span of hard disc magnetic head more or less can weaken, and bad track may be caused thus to produce, and causes hard disk to strike the generation of dish phenomenon.Once strike dish, hard disk may be caused normally to seek, load hard disk firmware, finally causing cannot access hard disk Data Area data.This method is avoided damaging magnetic head work by the method for Use Adjustment magnetic head bitmap, thus hard disk can be allowed to use other good heads to visit firmware district, and the method reading firmware district firmware recovers hard disc data.
Illustrate about technical term herein:
Mapping module: the memory location of each module in firmware district is recorded in mapping module.
Summary of the invention
The present invention is directed to the defect of prior art, provide a kind of western number Hard Disk Repair method, effectively can solve above-mentioned prior art Problems existing.
In order to realize above goal of the invention, the technical scheme that the present invention takes is as follows:
A kind of western number Hard Disk Repair method, comprises the following steps:
S1: obtain ROM from hard disk circuit board, and from ROM analytic map module, from the mapping module obtained, resolve magnetic head message bit pattern;
S2: amendment message bit pattern, shields bad magnetic head;
S3: No. 11 module loading of being mated by microcode, to buffer memory, load ATA and hard disk is normally run up, and write-back makes the Main firmware of the normal visit data of hard disk energy.
The detailed step of described S1 is as follows:
S101: obtain western number hard disk ROM by ATA instruction;
S102: the data in retrieval ROM, searching map module head feature, this feature locations offsets 5 byte locations backward and finds mapping module reference position, in the position offseting 2 byte locations backward and find record mapping module size;
S103: scan entirely module according to the mapping module size of S102 and reference position, map block head " 0x06 " byte is mapping module valid data reference positions, this position can obtain valid data length, find the magnetic head message bit pattern of mapping module, magnetic head message bit pattern comprises physics magnetic head number information, the magnetic head number information, the message bit pattern used that use and records default message bit pattern.
As preferably, the detailed step of described S2 is as follows:
S201: according to head test result, finds magnetic head and the bad track of damage;
S202: the magnetic head that shielding damages, performs formula:
The magnetic head number of the magnetic head number of the magnetic head number used-bad=revise;
The bitmap numerical value used is comprehensive-the bitmap numerical value of the bitmap numerical value that damages=revise;
Then last 2 bytes of verification write are covered old verification, allow the magnetic head bitmap of amendment come into force by S203: perform 0x10000-valid data byte summation=valid data proof test value;
S204: whole magnetic head mapping module is effectively verified, and the position check code write head mapping module head back of 4 bytes being offset 12 bytes.
As preferably, the checking algorithm of verification is as follows:
S2041: establish variable: effect Value Data and, proof test value compose initial value 0;
S2042: data to be tested for magnetic head mapping module are divided into N part according to 4 bytes: N=firmware district sector length * 512/4;
S2043: the DWORD type signless integer sum calculating every a 4 bytes, assignment to data and;
S2044: perform formula: proof test value=0x100000000-data and;
S2045: after converting verification Value Data to 4 bytes, according to low front high rear arrangement.
As preferably, the detailed step of described S3 is as follows:
S301: load same microcode ATA, by checking the microcode of 4F module in ROM, 11 modules finding an energy consistent with microcode in the 4F module of faulty disk from other good dishes, and by 11 consistent for microcode module loading to damaging in hard disk cache;
S302: make to make good use of the Main firmware that head read makes the normal visit data of hard disk energy, and by Main firmware backup in other storage mediums;
S303: write-back Main firmware is to magnetic track again, the write-back S302 main modular that backs up out is to magnetic track again.Mainly there is the impaired place of bad track to allow, again writing with a brush dipped in Chinese ink the structure of a main modular, hard disk self can be detected by verification.
Compared with prior art the invention has the advantages that: use screen method to forbid damaging magnetic head work, prevent from again damaging disc, magnetic head bitmap valid data part and entirely module is rebuild by verification, finally by the mode of coupling microcode, by 11 module loading to buffer memory, reach low-quality disk motor and to run up the object of normal work, reduce the fund cost changing magnetic head, improve the stability of repairing hard disk, reparation has higher success rate.Close the serious magnetic head of bad track by magnetic head bitmap, avoid power-up procedures to strike dish, normally can seek, abnormal sound not occur, the problems such as not stall.
Embodiment
For making object of the present invention, technical scheme and advantage clearly understand, by the following examples, the present invention is described in further details.
A kind of western number Hard Disk Repair method, comprises the following steps:
S1: obtain ROM from hard disk circuit board, and from ROM analytic map module, from the mapping module obtained, resolve magnetic head message bit pattern;
S2: amendment message bit pattern, shields bad magnetic head;
S3: No. 11 module loading of being mated by microcode, to buffer memory, load ATA and hard disk is normally run up, and write-back makes the Main firmware of the normal visit data of hard disk energy.
The detailed step of described S1 is as follows:
S101: obtain western number hard disk ROM by ATA instruction;
S102: the data in retrieval ROM, the hexadecimal value of searching map module head feature " 0x524F594C ", it is mapping module reference position that this feature locations offsets 5 byte locations backward, offseting 2 byte locations backward, for the position of record mapping module size, it is generally a sector;
S103: scan entirely module according to the mapping module size of S102 and reference position, map block head " 0x06 " byte is mapping module valid data reference positions, this position can obtain valid data length, find the magnetic head message bit pattern of mapping module, magnetic head message bit pattern comprises physics magnetic head number information, the magnetic head number information, the message bit pattern used that use and records default message bit pattern.
" 0x03 " position record physics magnetic head number information is offset backward finding valid data reference position;
Offset " 0x04 " position backward and record the current magnetic head number information used;
Offset " 0x05 " position backward and record the current message bit pattern used;
Offset " 0x06 " position backward and record default message bit pattern.
The detailed step of described S2 is as follows:
S201: according to head test result, finds magnetic head and the bad track of damage;
S202: the magnetic head that shielding damages, performs formula:
The magnetic head number of the magnetic head number of the magnetic head number used-bad=revise;
The bitmap numerical value used is comprehensive-the bitmap numerical value of the bitmap numerical value that damages=revise;
Such as:
Physics magnetic head number information is " 0x04 ";
The magnetic head number information used is " 0x02 ";
The message bit pattern used is " 0x03 ";
Default message bit pattern is " 0x0F ".
And magnetic head message bit pattern is " 0402030F ", if find that in S201 No. 0 magnetic head damages, magnetic head message bit pattern can be revised as " 0401020F " and allow a good magnetic head job.
S203: in last 2 bytes of the valid data part of magnetic head bitmap is the verification of magnetic head bitmap valid data part; Want to allow the magnetic head bitmap of amendment come into force, 0x10000 must be used to deduct valid data byte value summation.Then proof test value is write last 2 bytes and cover old verification.
S204: whole magnetic head mapping module is effectively verified, and the position check code write head mapping module head back of 4 bytes being offset 8 bytes.
The checking algorithm of described verification is as follows:
S2041: establish variable: effect Value Data and, proof test value compose initial value 0;
S2042: data to be tested for magnetic head mapping module are divided into N part according to 4 bytes: N=firmware district sector length * 512/4;
S2043: the DWORD type signless integer sum calculating every a 4 bytes, assignment to data and;
S2044: perform formula: proof test value=0x100000000-data and;
S2045: after converting verification Value Data to 4 bytes, according to low front high rear arrangement.
The detailed step of described S3 is as follows:
S301: load same microcode ATA, by checking the microcode of 4F module in ROM, 11 modules finding an energy consistent with microcode in the 4F module of faulty disk from other good dishes, and by 11 consistent for microcode module loading to damaging in hard disk cache;
S302: make to make good use of the Main firmware that head read makes the normal visit data of hard disk energy, and by Main firmware backup in other storage mediums.
S303: write-back Main firmware is to magnetic track again, the write-back S302 main modular that backs up out is to magnetic track again.Mainly there is the impaired place of bad track to allow, again writing with a brush dipped in Chinese ink the structure of a main modular, hard disk self can be detected by verification.Such hard disk normally can access firmware, and firmware district can normally work, thus finally affects the data of data field.
Those of ordinary skill in the art will appreciate that, embodiment described here is to help reader understanding's implementation method of the present invention, should be understood to that protection scope of the present invention is not limited to so special statement and embodiment.Those of ordinary skill in the art can make various other various concrete distortion and combination of not departing from essence of the present invention according to these technology enlightenment disclosed by the invention, and these distortion and combination are still in protection scope of the present invention.
Claims (5)
1. a western number Hard Disk Repair method, is characterized in that comprising the following steps:
S1: obtain ROM from hard disk circuit board, and from ROM analytic map module, from the mapping module obtained, resolve magnetic head message bit pattern;
S2: amendment message bit pattern, shields bad magnetic head;
S3: No. 11 module loading of being mated by microcode, to buffer memory, load ATA and hard disk is normally run up, and write-back makes the Main firmware of the normal visit data of hard disk energy.
2. one according to claim 1 western number Hard Disk Repair method, is characterized in that the detailed step of described S1 is as follows:
S101: obtain western number hard disk ROM by ATA instruction;
S102: the data in retrieval ROM, searching map module head feature, this feature locations offsets 5 byte locations backward and finds mapping module reference position, in the position offseting 2 byte locations backward and find record mapping module size;
S103: scan entirely module according to the mapping module size of S102 and reference position, map block head " 0x06 " byte is mapping module valid data reference positions, this position can obtain valid data length, find the magnetic head message bit pattern of mapping module, magnetic head message bit pattern comprises physics magnetic head number information, the magnetic head number information, the message bit pattern used that use and records default message bit pattern.
3. one according to claim 2 western number Hard Disk Repair method, is characterized in that the detailed step of described S2 is as follows:
S201: according to head test result, finds magnetic head and the bad track of damage;
S202: the magnetic head that shielding damages, performs formula:
The magnetic head number of the magnetic head number of the magnetic head number used-bad=revise;
The bitmap numerical value used is comprehensive-the bitmap numerical value of the bitmap numerical value that damages=revise;
Then last 2 bytes of verification write are covered old verification, allow the magnetic head bitmap of amendment come into force by S203: perform 0x10000-valid data byte summation=valid data proof test value;
S204: whole magnetic head mapping module is effectively verified, and the position check code write head mapping module head back of 4 bytes being offset 12 bytes.
4. one according to claim 3 western number Hard Disk Repair method, is characterized in that the algorithm verified in S204 is as follows:
S2041: establish variable: effect Value Data and, proof test value compose initial value 0;
S2042: data to be tested for magnetic head mapping module are divided into N part according to 4 bytes: N=firmware district sector length * 512/4;
S2043: the DWORD type signless integer sum calculating every a 4 bytes, assignment to data and;
S2044: perform formula: proof test value=0x100000000-data and;
S2045: after converting verification Value Data to 4 bytes, according to low front high rear arrangement.
5. one according to claim 3 western number Hard Disk Repair method, is characterized in that the detailed step of described S3 is as follows:
S301: load same microcode ATA, by checking the microcode of 4F module in ROM, 11 modules finding an energy consistent with microcode in the 4F module of faulty disk from other good dishes, and by 11 consistent for microcode module loading to damaging in hard disk cache;
S302: make to make good use of the Main firmware that head read makes the normal visit data of hard disk energy, and by Main firmware backup in other storage mediums;
S303: write-back Main firmware is to magnetic track again, the write-back S302 main modular that backs up out is to magnetic track again, mainly there is the impaired place of bad track to allow, again writing with a brush dipped in Chinese ink the structure of a main modular, and hard disk self can be detected by verification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639310.2A CN105354099A (en) | 2015-09-30 | 2015-09-30 | Western digital hard disk repair method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510639310.2A CN105354099A (en) | 2015-09-30 | 2015-09-30 | Western digital hard disk repair method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105354099A true CN105354099A (en) | 2016-02-24 |
Family
ID=55330073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510639310.2A Pending CN105354099A (en) | 2015-09-30 | 2015-09-30 | Western digital hard disk repair method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105354099A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407036A (en) * | 2016-10-08 | 2017-02-15 | 四川秘无痕信息安全技术有限责任公司 | Method for relieving firmware lock of western digital hard disk and extracting data |
CN106648989A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Repairing method for Western Digital hard disk stalling fault |
CN106648948A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Restorative method aiming at damages of western digital hard disk number 11 module |
CN107015877A (en) * | 2017-03-14 | 2017-08-04 | 唐山钢铁集团有限责任公司 | A kind of recycling method of the RAID disk with physical bad track |
CN107122257A (en) * | 2017-05-02 | 2017-09-01 | 四川艾特赢泰智能科技有限责任公司 | There is the method for NO_HOST and 3005_ERROR failures simultaneously in a kind of reparation Seagate hard disk |
CN109445976A (en) * | 2018-10-23 | 2019-03-08 | 四川巧夺天工信息安全智能设备有限公司 | A method of extracting the western number hard disc data of circuit board model 800041 |
CN109656747A (en) * | 2018-11-30 | 2019-04-19 | 四川巧夺天工信息安全智能设备有限公司 | A method of carving the data adaptation module of multiple western number hard disk |
CN111145789A (en) * | 2019-12-31 | 2020-05-12 | 厦门市美亚柏科信息股份有限公司 | Magnetic head matching method and system for Seagate hard disk |
CN111785305A (en) * | 2020-06-23 | 2020-10-16 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk outer edge scratch data recovery method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375918A (en) * | 2014-11-14 | 2015-02-25 | 江门市未来之星网络科技有限公司 | Horizontal pushing type data detection device and detection method of western digital 3.5-inch hard disk |
CN104391774A (en) * | 2014-11-14 | 2015-03-04 | 江门市未来之星网络科技有限公司 | Western digital 3.5-inch hard disk fault detection equipment and fault detection method thereof |
CN104714869A (en) * | 2015-03-31 | 2015-06-17 | 四川效率源信息安全技术有限责任公司 | Method for repairing Western Digital hard disk unable to access data |
CN104821176A (en) * | 2015-04-27 | 2015-08-05 | 四川效率源信息安全技术有限责任公司 | Method for repairing faults of magnetic read of Seagate hard disk |
-
2015
- 2015-09-30 CN CN201510639310.2A patent/CN105354099A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375918A (en) * | 2014-11-14 | 2015-02-25 | 江门市未来之星网络科技有限公司 | Horizontal pushing type data detection device and detection method of western digital 3.5-inch hard disk |
CN104391774A (en) * | 2014-11-14 | 2015-03-04 | 江门市未来之星网络科技有限公司 | Western digital 3.5-inch hard disk fault detection equipment and fault detection method thereof |
CN104714869A (en) * | 2015-03-31 | 2015-06-17 | 四川效率源信息安全技术有限责任公司 | Method for repairing Western Digital hard disk unable to access data |
CN104821176A (en) * | 2015-04-27 | 2015-08-05 | 四川效率源信息安全技术有限责任公司 | Method for repairing faults of magnetic read of Seagate hard disk |
Non-Patent Citations (2)
Title |
---|
ADMIN: "《http://bbs.huakebosi.com/forum.php?mod=viewthread&tid=60&extra=page%3D5%26filter%3Dlastpost%26orderby%3Dlastpost》", 14 December 2014 * |
MRTLAB: "《http://cn.mrtlab.com/how-to-use-mrt-pro-to-edit-rom-headmap-on-western-digital-hdd》", 30 October 2014 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106407036A (en) * | 2016-10-08 | 2017-02-15 | 四川秘无痕信息安全技术有限责任公司 | Method for relieving firmware lock of western digital hard disk and extracting data |
CN106648989A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Repairing method for Western Digital hard disk stalling fault |
CN106648948A (en) * | 2016-12-28 | 2017-05-10 | 四川秘无痕信息安全技术有限责任公司 | Restorative method aiming at damages of western digital hard disk number 11 module |
CN106648948B (en) * | 2016-12-28 | 2020-04-03 | 四川秘无痕科技有限责任公司 | Method for repairing damage of Western digital hard disk No. 11 module |
CN106648989B (en) * | 2016-12-28 | 2020-05-15 | 四川秘无痕科技有限责任公司 | Repair method for western digital hard disk stalling fault |
CN107015877A (en) * | 2017-03-14 | 2017-08-04 | 唐山钢铁集团有限责任公司 | A kind of recycling method of the RAID disk with physical bad track |
CN107122257A (en) * | 2017-05-02 | 2017-09-01 | 四川艾特赢泰智能科技有限责任公司 | There is the method for NO_HOST and 3005_ERROR failures simultaneously in a kind of reparation Seagate hard disk |
CN109445976A (en) * | 2018-10-23 | 2019-03-08 | 四川巧夺天工信息安全智能设备有限公司 | A method of extracting the western number hard disc data of circuit board model 800041 |
CN109656747A (en) * | 2018-11-30 | 2019-04-19 | 四川巧夺天工信息安全智能设备有限公司 | A method of carving the data adaptation module of multiple western number hard disk |
CN111145789A (en) * | 2019-12-31 | 2020-05-12 | 厦门市美亚柏科信息股份有限公司 | Magnetic head matching method and system for Seagate hard disk |
CN111785305A (en) * | 2020-06-23 | 2020-10-16 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk outer edge scratch data recovery method |
CN111785305B (en) * | 2020-06-23 | 2021-06-22 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk outer edge scratch data recovery method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105354099A (en) | Western digital hard disk repair method | |
US8694841B1 (en) | Methods and devices for preventing potential media errors from growing thermal asperities | |
US8578242B1 (en) | Data storage device employing seed array for data path protection | |
US20050028067A1 (en) | Data with multiple sets of error correction codes | |
CN101527142B (en) | Reading-writing method of data in redundant arrays of inexpensive disks (RAID) and equipment thereof | |
US7757154B2 (en) | Magnetic disk control apparatus, magnetic disk apparatus, and method of correcting read error | |
CN101916173B (en) | RAID (Redundant Array of Independent Disks) based data reading and writing method and system thereof | |
CN102184129B (en) | Fault tolerance method and device for disk arrays | |
US7702954B2 (en) | Data storage apparatus having error recovery capability | |
CN105224891A (en) | Magnetic disc optic disc fused data method for secure storing, system and device | |
CN101840360A (en) | Rapid reconstruction method and device of RAID (Redundant Array of Independent Disk) system | |
US20190013046A1 (en) | Self-healing in a storage system | |
CN104778106A (en) | Restoration method of Western Digital hard disk firmware zone scratch | |
CN111124758A (en) | Data recovery method for failed hard disk | |
CN102214143A (en) | Method and device for managing multilayer unit flash memory, and storage equipment | |
CN103019894B (en) | Reconstruction method for redundant array of independent disks | |
US20160162208A1 (en) | Data reallocation upon detection of errors | |
US9373347B2 (en) | Data write management | |
CN104407821A (en) | Method and device for achieving RAID reconstitution | |
CN109582488A (en) | A kind of wrong prevention method and relevant apparatus of solid state hard disk | |
CN103279402A (en) | Data restoration method based on multilayer cell solid state hard disc and solid state hard disc | |
US8924814B2 (en) | Write management using partial parity codes | |
CN111816239A (en) | Disk detection method and device, electronic equipment and machine-readable storage medium | |
CN107977285A (en) | A kind of data modification method, device and the medium of correcting and eleting codes memory mechanism | |
CN105183590A (en) | Disk array fault tolerance processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Liang Xiaoning Inventor after: Dong Chao Inventor after: Yang Xianmin Inventor after: Zhang Jiaqiang Inventor before: Liang Xiaoning Inventor before: Zhang Jiaqiang Inventor before: Yang Xianmin Inventor before: Dong Chao |
|
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160224 |