CN105321534B - A kind of method for changing Seagate hard disc magnetic head bitmap - Google Patents
A kind of method for changing Seagate hard disc magnetic head bitmap Download PDFInfo
- Publication number
- CN105321534B CN105321534B CN201510783905.5A CN201510783905A CN105321534B CN 105321534 B CN105321534 B CN 105321534B CN 201510783905 A CN201510783905 A CN 201510783905A CN 105321534 B CN105321534 B CN 105321534B
- Authority
- CN
- China
- Prior art keywords
- magnetic head
- data
- sap
- changing
- bytes
- 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.)
- Active
Links
Abstract
It is as follows including step the invention discloses a kind of method for changing Seagate hard disc magnetic head bitmap;S1:Obtain ROM information;S2:Parse SAP data volume structures;S3:Find the magnetic head bitmap data body in SAP;S4:Close the magnetic head of damage;S5:Verification modification SAP data volumes;S6:The SAP data volumes that effect is completed are backfilled to ROM;S7:ROM is written back in the circuit board of hard disk by Boot Code.Beneficial effects of the present invention are as follows:1st, forbid damaging magnetic head work using the mode of shielding magnetic head, prevent from damaging disc again;2nd, it does not need to replace and match magnetic head, save time and cost;3rd, hard disk is repaired to have higher success rate;4th, can handle disc has the hard disk largely scratched;5th, in the case where being changed without magnetic head, the data of other good disks can be extracted as far as possible.
Description
Technical field
The present invention relates to field of information security technology, more particularly to a kind of method for changing Seagate hard disc magnetic head bitmap.
Background technology
The data storage of hard disk is all to store data by the read-write of magnetic head, accumulation and uncontrollable external cause due to the time
Under the influence of, the magnetic head of hard disk is highly susceptible to damage, and hard disc may also can scratch.It to be damaged if there are one magnetic heads
Or some disc is scratched, and just has no idea to read the data in hard disk again.
The failure of hard disk include can abnormal sound, strike disk, can not seek, even stall, being once again powered up, can not rise turn etc..It is logical
Several situations more than being commonly encountered, the prior art can be handled using the method for replacing matching magnetic head.But it is also frequently encountered
The problem of magnetic head successor can not so repair hard disk is replaced, reason may be that magnetic head mismatches, it is also possible to even if being magnetic head matching,
But it because some disc has scuffing, results in hard disk and can not work normally.Also there is something special, even if changing a magnetic head, is reading
When taking the disc of damage, the magnetic head newly changed can be caused to damage again.
Invention content
The present invention in view of the drawbacks of the prior art, provides a kind of method for changing Seagate hard disc magnetic head bitmap, can be effective
Solution the above-mentioned problems of the prior art.
In order to realize more than goal of the invention, the technical solution that the present invention takes is as follows:
A kind of method for changing Seagate hard disc magnetic head bitmap is as follows including step;
S1:The ROM information in hard disk circuit board is obtained by BootCode modes;
S2:Parse the SAP data volume structures in ROM;
S3:Find the magnetic head bitmap data body in SAP data volumes;
S4:Magnetic head bitmap data body is changed, closes the magnetic head of damage;
S5:Verification modification SAP data volumes, generate new SAP data volumes;
S6:The SAP data volumes that effect in S5 is completed are backfilled in ROM;
S7:The ROM of modification is written back in the circuit board of hard disk by BootCode modes.
Preferably, the detailed step of the S2 is as follows:
S201:Find the storage location of the SAP data in ROM data body;
S202:The size of SAP data volumes is calculated, and is extracted.
Preferably, the detailed step of the S3 is as follows:
S301:Pass through instructions query magnetic head number;
S302:Retrieve SAP in magnetic head number feature, and judge whether it is corresponding with magnetic head number, if so then execute next
Otherwise step continues retrieval downwards;
S303:Judge magnetic head number feature deviate backward 8 bytes whether be " 0x050x00 " label, if so then execute
In next step, otherwise S302 is performed by initial address of next byte address of the magnetic head number feature;
S304:Label deviates " magnetic head number multiplies 2 " a byte backward, judges that " magnetic head number multiplies the label for offset backward
Whether rear 4 bytes of 2 " a bytes are all " 0x00 ", if so then execute next step, otherwise with " magnetic head number multiplies 2 " a byte
Next byte address for initial address perform S302;
S305:Judge after 4 in S304 " 0x00 " bytes whether be " 0x00 ", if otherwise performing next step, if
S302 is performed by initial address of next byte address of 4 " 0x00 " bytes in S304;
S306:Continue downward search characteristics " 0x040x00 ";
S307:After finding feature " 0x040x00 ", continue search magnetic head bitmap data body downwards.
Preferably, the magnetic head bitmap data body in the S307 is made of continuous three groups of data volumes, each group
The feature of data is all to look for low level identical, high-order incremental, and high-order number of increments is identical with magnetic head number.
Preferably, the specific method that the magnetic head of damage is closed in the S4 is:The corresponding number of magnetic head that needs are closed
It is identical according to the corresponding data of magnetic head for being changed to needing to retain.
Preferably, the detailed step of the S5 is as follows:
S501:Ignore the byte of SAP data volumes tail portion 4;
S502:Effect SAP remaining data bodies, obtain effect code;
S503:Check code is inserted in a manner of small end at the 8th and the 7th byte of inverse of complete S AP data volumes.As excellent
Choosing, the detailed step of the S502 are as follows:
S5021:SAP remaining datas body using 4 bytes as one group of division;
S5022:As unit of group, by small end data, big end data is changed to, forms new data body;
S5023:2 " 0x00 " bytes are added in after the new data body formed in S5022;
S5024:The data volume of S5023 is calculated using CRC16 algorithms, obtains effect code.
Compared with prior art the advantage of the invention is that:
1st, forbid damaging magnetic head work using the mode of shielding magnetic head, prevent from damaging disc again;
2nd, it does not need to replace and match magnetic head, save time and cost;
3rd, hard disk is repaired to have higher success rate;
4th, can handle disc has the hard disk largely scratched;
5th, in the case where being changed without magnetic head, the data of other good disks can be extracted as far as possible.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, by the following examples, the present invention is done into
One step is described in detail.
A kind of method for changing Seagate hard disc magnetic head bitmap is as follows including step;
S1:The ROM information in hard disk circuit board is obtained by BootCode modes;
S2:Parse the SAP data volume structures in ROM;
S3:Find the magnetic head message bit pattern in SAP data volumes;
S4:Magnetic head message bit pattern is changed, closes the magnetic head of damage;
S5:Verification modification SAP data volumes, generate new SAP data volumes;
S6:The SAP data volumes that effect in S5 is completed are backfilled in ROM;
S7:The ROM of modification is written back in the circuit board of hard disk by BootCode modes.
The detailed step of the S2 is as follows:
S201:Find the storage location of the SAP data in ROM data body;Here finding the storage address of SAP, there are two types of sides
Formula, the first is:ROM heads are looked for using 4 bytes as one group, to find SAP features " 05XXXXXX ", which is SAP data volumes
Head bias feature, redirect and can obtain SAP data volume head positions.
It is for second:It is retrieved in ROM heads using 4 bytes as one group, finds SAP base address offset features
" 24XXXXXX " after being redirected by this feature with 4 directly for one group is retrieved and is found SAP features " 05XXXXXX " backward.
Such as:SAP base address is characterized as " 24000001 ", then " 0x10000 " is exactly SAP base address offset features, is jumped
" 05866800 " is retrieved backward using 4 bytes as one group after turning,
Obtaining SAP data volume head bias position by " 0x10000 "+" 0x6886 "=" 0x18668 " is
“0x18668”。
S202:The size of SAP data volumes is calculated, and is extracted;It oneself is one group that the computational methods of the size, which are 4, SAP
The value that rear three bytes of one group of data after feature subtract three bytes after SAP features is equal to SAP data volume sizes.Such as
SAP is characterized as that " 05000007 " is followed by RAP features " 06005007 ", then passes through " 0x075000 "-" 0x070000 "
Obtain SAP data volume sizes.
The detailed step of the S3 is as follows:
S301:Pass through instructions query magnetic head number;
S302:(this feature is magnetic head number feature in retrieval SAP if magnetic head number is 2
" 0x010x000x010x00 "), and judge whether it is corresponding with magnetic head number, if so, perform next step, if it is not, then continue to
Lower retrieval;
S303:Judge that magnetic head number feature deviates whether 8 bytes are the label of " 0x050x00 " backward, if so, holding
Row next step, if it is not, then performing S302 by initial address of next byte address of the magnetic head number feature;
S304:Label deviates " magnetic head number multiplies 2 " a byte (such as magnetic head number is 2, then deviates 4 bytes) backward,
Judge that whether the label deviates rear 4 bytes of " magnetic head number multiplies 2 " a byte all for " 0x00 " backward, if so, performing
In next step, otherwise, the next byte address for deviating " magnetic head number multiplies 2 " a byte backward using the label is performed as initial address
S302;
S305:Judge after 4 in S304 " 0x00 " bytes whether be " 0x00 ", if it is not, next step is then performed, if so,
Then S302 is performed by initial address of next byte address of 4 " 0x00 " bytes in S304;
S306:Continue downward search characteristics " 0x040x00 ";
S307:After finding feature " 0x040x00 ", continue search magnetic head bitmap data body downwards;
Preferably, the magnetic head bitmap data body is made of continuous three groups of mutually isostructural data volumes, each group
Data feature all to look for low level identical, high-order incremental, and high-order number of increments is identical with magnetic head number.
Such as " 0810083008500870,0810083008500870,0800082008400860 " is complete magnetic head
Bitmap data body, it can be seen that the data volume for being divided into three groups is all that low level is identical, high-order incremental.
Magnetic head bitmap data body is changed in the S4, the specific method for closing the magnetic head of damage is:The magnetic that needs are closed
Corresponding data are changed to the corresponding data of magnetic head for needing to retain.
Such as one share 2 magnetic heads, the damage of " 1 " magnetic head needs to close " 1 " magnetic head, retains " 0 " magnetic head;
The magnetic head bitmap data body that S307 is found is:
0810083008500870
0810083008500870
0800082008400860
Changing magnetic head bitmap data body is:
0810081008500870
0810081008500870
0800080008400860
Amending method is:Second group of low-byte increment data is changed to, the numerical value of first group of low byte least unit.
The detailed step of the S5 is as follows:
S501:Ignore the byte of SAP data volumes tail portion 4;
S502:Effect SAP remaining data bodies, obtain effect code;
S503:Check code is inserted in a manner of small end complete S AP data volumes (this SAP data volume for S4 it is successfully modified after
Data volume, be not the SAP data in S501 and S502) the 8th and the 7th byte of inverse at.
Preferably, the detailed step of the S502 is as follows:
S5021:SAP remaining datas body using 4 bytes as one group of division;
S5022:As unit of group, by small end data, big end data is changed to, forms new data body;
S5023:2 " 0x00 " bytes are added in after the new data body formed in S5022;
S5024:The data volume of S5023 is calculated using CRC16 algorithms, obtains effect code;
Those of ordinary skill in the art will understand that the embodiments described herein, which is to help reader, understands this hair
Bright implementation, it should be understood that protection scope of the present invention is not limited to such specific embodiments and embodiments.Ability
The those of ordinary skill in domain can be made according to these technical inspirations disclosed by the invention it is various do not depart from essence of the invention its
Its various specific deformation and combination, these deformations and combination are still within the scope of the present invention.
Claims (7)
1. a kind of method for changing Seagate hard disc magnetic head bitmap, as follows including step;
S1:The ROM information in hard disk circuit board is obtained by Boot Code modes;
S2:Parse the SAP data volume structures in ROM;
S3:Find the magnetic head bitmap data body in SAP data volumes;
S4:Magnetic head bitmap data body is changed, closes the magnetic head of damage;
S5:Verification modification SAP data volumes, generate new SAP data volumes;
S6:The SAP data volumes that effect in S5 is completed are backfilled in ROM;
S7:The ROM of modification is written back in the circuit board of hard disk by Boot Code modes.
2. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 1, it is characterised in that:The detailed step of the S2
It is rapid as follows:
S201:Find the storage location of the SAP data in ROM data body;
S202:The size of SAP data volumes is calculated, and is extracted.
3. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 1, it is characterised in that:The detailed step of the S3
It is rapid as follows:
S301:Pass through instructions query magnetic head number;
S302:Retrieve SAP in magnetic head number feature, and judge whether it is correspondings with magnetic head number, if so then execute next step, it is no
Then continue retrieval downwards;
S303:Judge magnetic head number feature deviate backward 8 bytes whether be " 0x05 0x00 " label, if so then execute under
Otherwise one step performs S302 by initial address of next byte address of the magnetic head number feature;
S304:Label deviates " magnetic head number multiplies 2 " a byte backward, and judging the label, offset " magnetic head number multiplies 2 " is a backward
Whether rear 4 bytes of byte are all " 0x00 ", and if so then execute in next step, otherwise with the label, " magnetic head is a for offset backward
Next byte address that number multiplies 2 " a bytes performs S302 for initial address;
S305:Judge after 4 in S304 " 0x00 " bytes whether be " 0x00 ", if otherwise performing next step, if with
Next byte address of 4 " 0x00 " bytes in S304 performs S302 for initial address;
S306:Continue downward search characteristics " 0x04 0x00 ";
S307:After finding feature " 0x04 0x00 ", continue search magnetic head bitmap data body downwards.
4. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 3, it is characterised in that:Magnetic in the S307
Head bitmap data body is made of continuous three groups of data volumes, and all to look for, low level is identical, high-order passs for the features of each group of data
Increase, and high-order number of increments is identical with magnetic head number.
5. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 1, it is characterised in that:Damage is closed in the S4
The specific method of bad magnetic head is:The corresponding data of magnetic head that needs are closed are changed to data corresponding with the magnetic head for needing to retain
It is identical.
6. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 1, it is characterised in that:The detailed step of the S5
It is rapid as follows:
S501:Ignore the byte of SAP data volumes tail portion 4;
S502:Effect SAP remaining data bodies, obtain effect code;
S503:Check code is inserted in a manner of small end at the 8th and the 7th byte of inverse of complete S AP data volumes.
7. a kind of method for changing Seagate hard disc magnetic head bitmap according to claim 6, it is characterised in that:The S502's is detailed
Step is as follows:
S5021:SAP remaining datas body using 4 bytes as one group of division;
S5022:As unit of group, by small end data, big end data is changed to, forms new data body;
S5023:2 " 0x00 " bytes are added in after the new data body formed in S5022;
S5024:The data volume of S5023 is calculated using CRC16 algorithms, obtains effect code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510783905.5A CN105321534B (en) | 2015-11-16 | 2015-11-16 | A kind of method for changing Seagate hard disc magnetic head bitmap |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510783905.5A CN105321534B (en) | 2015-11-16 | 2015-11-16 | A kind of method for changing Seagate hard disc magnetic head bitmap |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105321534A CN105321534A (en) | 2016-02-10 |
CN105321534B true CN105321534B (en) | 2018-07-06 |
Family
ID=55248776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510783905.5A Active CN105321534B (en) | 2015-11-16 | 2015-11-16 | A kind of method for changing Seagate hard disc magnetic head bitmap |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105321534B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107507631B (en) * | 2017-08-29 | 2019-07-09 | 四川巧夺天工信息安全智能设备有限公司 | A method of improving the magnetic head read or write speed of Seagate hard disk |
CN111785305B (en) * | 2020-06-23 | 2021-06-22 | 厦门市美亚柏科信息股份有限公司 | Seagate hard disk outer edge scratch data recovery method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080052506A1 (en) * | 2006-08-28 | 2008-02-28 | Fujitsu Limited | Storage apparatus, control method, and control device |
US20080126784A1 (en) * | 2006-08-28 | 2008-05-29 | Fujitsu Limited | Storage apparatus, control method, and control device |
CN104598349A (en) * | 2015-03-02 | 2015-05-06 | 四川效率源信息安全技术有限责任公司 | Method for repairing Seagate hard disk incapable of entering diagnostic mode |
CN104821176A (en) * | 2015-04-27 | 2015-08-05 | 四川效率源信息安全技术有限责任公司 | Method for repairing faults of magnetic read of Seagate hard disk |
-
2015
- 2015-11-16 CN CN201510783905.5A patent/CN105321534B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080052506A1 (en) * | 2006-08-28 | 2008-02-28 | Fujitsu Limited | Storage apparatus, control method, and control device |
US20080126784A1 (en) * | 2006-08-28 | 2008-05-29 | Fujitsu Limited | Storage apparatus, control method, and control device |
CN104598349A (en) * | 2015-03-02 | 2015-05-06 | 四川效率源信息安全技术有限责任公司 | Method for repairing Seagate hard disk incapable of entering diagnostic mode |
CN104821176A (en) * | 2015-04-27 | 2015-08-05 | 四川效率源信息安全技术有限责任公司 | Method for repairing faults of magnetic read of Seagate hard disk |
Non-Patent Citations (1)
Title |
---|
硬盘固件的研究与仿真设计;徐祥斌,张京生;《信息安全与技术》;20151027;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN105321534A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9817725B2 (en) | Flash memory controller, data storage device, and flash memory control method with volatile storage restoration | |
US20170364304A1 (en) | Tracking hot areas of disk drive | |
CN101430703B (en) | Systems and methods for automatic maintenance and repair of entites in data model | |
US20080130154A1 (en) | Preservation of hard drive data via preliminary detection of adjacent track interference potential | |
EP1715478A3 (en) | Method of protecting data on recording medium and recording medium storing program for executing the method | |
US20180157428A1 (en) | Data protection of flash storage devices during power loss | |
CN105321534B (en) | A kind of method for changing Seagate hard disc magnetic head bitmap | |
CN105354099A (en) | Western digital hard disk repair method | |
EP3682332B1 (en) | Method and apparatus for erasing or writing flash data | |
CN103984506A (en) | Method and system for data writing of flash memory storage equipment | |
CN105653340A (en) | Parameter upgrading method, device and electronic equipment | |
CN104778106A (en) | Restoration method of Western Digital hard disk firmware zone scratch | |
CN103064804A (en) | Method and device for access control of disk data | |
CN106227625A (en) | The restoration methods of a kind of flash data damaged because of power down and system | |
WO2017143843A1 (en) | Metadata recovery method and device | |
CN106648948B (en) | Method for repairing damage of Western digital hard disk No. 11 module | |
CN105630622B (en) | A method of hard disk ROM is repaired by Boot Code | |
CN104821176B (en) | A kind of method for repairing Seagate hard disc magnetic head failure | |
CN106844087B (en) | A kind of restorative procedure for the damage of western number hard disk decoding table | |
CN105260130B (en) | A kind of reading/writing method of Seagate hard-disk system file | |
JP4634404B2 (en) | Nonvolatile memory and apparatus and method for determining data validity therefor | |
CN106776144B (en) | Method for repairing hard disk after firmware access is closed | |
CN108261765A (en) | The system and method for abnormal player is verified in a kind of game of mobile terminal | |
CN107436752A (en) | Abnormal in-situ FTIR spectroelectrochemitry method, apparatus and computer-readable recording medium | |
CN105354149B (en) | A kind of internal storage data lookup method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |