CN104731532A - Method for repairing firmware region adaption parameter module of Western Digital hard disk - Google Patents

Method for repairing firmware region adaption parameter module of Western Digital hard disk Download PDF

Info

Publication number
CN104731532A
CN104731532A CN201510143954.2A CN201510143954A CN104731532A CN 104731532 A CN104731532 A CN 104731532A CN 201510143954 A CN201510143954 A CN 201510143954A CN 104731532 A CN104731532 A CN 104731532A
Authority
CN
China
Prior art keywords
parameter module
adaptation parameter
hard disk
data
firmware district
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
CN201510143954.2A
Other languages
Chinese (zh)
Other versions
CN104731532B (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.)
SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Original Assignee
SICHUAN SALVATIONDATA INFORMATION SAFETY 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 SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd filed Critical SICHUAN SALVATIONDATA INFORMATION SAFETY TECHNOLOGY Co Ltd
Priority to CN201510143954.2A priority Critical patent/CN104731532B/en
Publication of CN104731532A publication Critical patent/CN104731532A/en
Application granted granted Critical
Publication of CN104731532B publication Critical patent/CN104731532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Digital Magnetic Recording (AREA)

Abstract

The invention discloses a method for repairing a firmware region adaption parameter module of a Western Digital hard disk. The method comprises the steps that 1 data of a user region adaption parameter module of a breakdown hard disk are extracted; 2 the firmware region adaption parameter module is reassembled according to the data of the user region adaption parameter module; 3 a JOG adaption parameter is deployed. According to the method, data needed by the firmware region adaption parameter module can be found accurately, and the firmware region adaption parameter module is reassembled; a parameter of the firmware region adaption parameter module is adjusted, so that the aim of repairing the hard disk is achieved; the problems that the hard disk track seeking is wrong, the disk is knocked, the abnormal noise is occurred and a data region cannot be read and written are solved, and the problem that the adaption cannot be completely fit after repairing is not occurred.

Description

A kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module
Technical field
The present invention relates to field of information security technology, particularly a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module.
Background technology
It is all carry out store data by the read-write of magnetic head that the data of hard disk store, and due under the accumulation of time and the impact of uncontrollable external cause, controls and drive the firmware of magnetic head easily impaired in hard disk.Cause the firmware adaptations invalidates information of the read-write adaptation of magnetic head, magnetic head cornice adaptation and read-write density adaptation.
The firmware district adaptation parameter module of western number hard disk is the key modules in firmware district, is present in the middle of western number hard disk ROM data body.If firmware district adaptation parameter module damage, can cause that hard disk occurs having no idea to read data, access makes mistakes, occur a large amount of red green piece of bad track, tracking is made mistakes, strike the problems such as dish and abnormal sound.
Prior art generally adopts the hard disk coupling relevant parameter of same train; Read out the firmware district adaptation parameter module of matching disc, reached the object of reparation by the firmware district adaptation parameter module of the outside matching disc of write-back.Use outside module to carry out adaptive faulty disk, usually there will be cannot the situation of adaptation completely.
Summary of the invention
The present invention is directed to the defect of prior art, propose a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module, comprise the following steps:
S1: extract faulty hard disk user area adaptation parameter module data;
S2: according to the data recombination firmware district adaptation parameter module in the adaptation parameter module of user area;
S3: allotment JOG adaptation parameter.
As preferably, the detailed step of described S1 is as follows:
S101: the user area adaptation parameter module extracting faulty hard disk;
S102: judge whether to extract successfully, if then terminate, then performs S103 if not;
S103: the virtual magnetic track traveling through faulty hard disk in order, finds text ROYL position;
S104: judge that ROYL position offsets downward the head feature whether 8 bytes are user area adaptation parameter module, if then perform S105, if not then perform S103;
S105: offset 2 bytes backward according to adaptation parameter module head feature position, user area and obtain this block size.
As preferably, the detailed step of described S2 is as follows:
S201: the header data section obtaining firmware district adaptation parameter module in faulty hard disk ROM;
S202: obtain valid data reference position according to user area adaptation parameter module valid data head feature;
S203: the middle part valid data section calculating firmware district adaptation parameter module needs according to valid data reference position;
S204: obtain firmware district adaptation parameter module tail data section in ROM;
S205: the middle part valid data that the header data section obtain S201 and S203 obtain and the tail data section that S204 obtains form new firmware district adaptation parameter module;
S206: new firmware district adaptation parameter module data is written back to ROM and covers original firmware district adaptation parameter module data.
As preferably, the detailed step of described S3 is as follows:
S301: the address and the size that obtain the JOG parameter shift of faulty hard disk;
S302: from original JOG argument address head back skew, obtain JOG adaptation parameter value;
S303: JOG adaptation parameter is covered original JOG parameter.
Compared with prior art the invention has the advantages that: accurately can find out firmware district adaptation parameter module desired data, and firmware district adaptation parameter module of recombinating; The parameter of adjustable firmware district adaptation module reaches the object of repairing hard disk; Solve that hard disk tracking is made mistakes, struck dish, abnormal sound, can not read and write data the problems such as district, and there will not be after repairing cannot the problem of adaptation completely.
Accompanying drawing explanation
Fig. 1 is the main flow chart of the embodiment of the present invention;
Fig. 2 is the detail flowchart of step S1 of the present invention;
Fig. 3 is the detail flowchart of step S2 of the present invention;
Fig. 4 is the detail flowchart of step S3 of the present invention.
Embodiment
In order to describe the specific embodiment of the present invention in detail, illustrate below in conjunction with accompanying drawing:
As shown in Figure 1, a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module, comprises the following steps:
S1: extract faulty hard disk user area adaptation parameter module data;
S2: according to the data recombination firmware district adaptation parameter module in the adaptation parameter module of user area;
S3: allotment JOG adaptation parameter.
As shown in Figure 2, the detailed step of described S1 is as follows:
S101: the user area adaptation parameter module extracting faulty hard disk;
S102: judge whether to extract successfully, if then terminate, then performs S103 if not;
S103: the virtual magnetic track traveling through faulty hard disk in order, finds text ROYL position, and the redirect value of this position is " 524F5942 ";
S104: judge that ROYL position offsets downward the head feature whether 8 bytes are user area adaptation parameter module, described head feature is " 00 40 ", if then perform S105, if not then perform S103;
S105: offset 2 bytes more backward according to user area adaptation parameter module head feature " 00 40 " and obtain this block size.
As shown in Figure 3, the detailed step of described S2 is as follows:
S201: the header data section obtaining firmware district adaptation parameter module in faulty hard disk ROM, data segment size is 48 bytes;
S202: obtain valid data reference position according to user area adaptation parameter module head redirect " 0x1E ";
S203: the middle part valid data section calculating firmware district adaptation parameter module needs according to valid data feature reference position;
Here need first to determine that the structure of valid data initiation feature be 8 bytes be a feature or 4 bytes is a feature, the 3rd valid data initiation feature is gone to after determining structure, this feature and be the initiation feature of first valid data section, obtain valid data g. slice header at the first half by data segment feature, latter half obtains valid data section size.
Perform formula:
[the several number of logic magnetic head]=([JOG offset address size]-[Preamp address size])/[4];
[valid data section is overall]/[3]/[21]/[the several number of logic magnetic head]=[data segment];
The data segment size that we need is identical and number is identical with the several number of logic magnetic head; So need the position obtaining all data segments.
Perform formula:
[the little segment base of next data]=[a upper data segment size] * [21]+[a upper data segment start address];
The number of times performing this formula equals the several number of logic magnetic head, will obtain the middle part valid data section that the little segment record of each data also forms firmware district adaptation parameter module needs in order;
S204: obtain firmware district adaptation parameter module tail data section in ROM,
Perform formula:
[original firmware district adaptation parameter module]-[the middle part valid data section in S203]-[the header data section in S201]=[tail data section];
S205: the middle part valid data that the header data section obtain S201 and S203 obtain and the tail data section that S204 obtains form new firmware district adaptation parameter module;
S206: the firmware district adaptation parameter module data of restructuring is written back to ROM and covers original firmware district adaptation parameter module data.
As shown in Figure 4, the detailed step of described S3 is as follows:
S301: the address and the size that obtain the JOG parameter shift of faulty hard disk;
S302: from original JOG argument address head back skew, obtain JOG adaptation parameter value; Be somebody's turn to do [side-play amount]=[2 byte] * [the several number of logic magnetic head];
S303: JOG adaptation parameter is covered original JOG parameter.
More than describe and set forth detail to fully understand the present invention, but the present invention can also adopt other to be different from this describing mode to implement, therefore the present invention is not limited to above disclosed concrete enforcement.

Claims (4)

1. repair a method for Xi Shuo hard disk firmware district adaptation parameter module, it is characterized in that comprising the following steps:
S1: extract faulty hard disk user area adaptation parameter module data;
S2: according to the data recombination firmware district adaptation parameter module in the adaptation parameter module of user area;
S3: allotment JOG adaptation parameter.
2. a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module according to claim 1, is characterized in that the detailed step of described S1 is as follows:
S101: the user area adaptation parameter module extracting faulty hard disk;
S102: judge whether to extract successfully, if then terminate, then performs S103 if not;
S103: the virtual magnetic track traveling through faulty hard disk in order, finds text ROYL position;
S104: judge that ROYL position offsets downward the head feature whether 8 bytes are user area adaptation parameter module, if then perform S105, if not then perform S103;
S105: offset 2 bytes backward according to adaptation parameter module head feature position, user area and obtain this block size.
3. a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module according to claim 1, is characterized in that the detailed step of described S2 is as follows:
S201: the header data section obtaining firmware district adaptation parameter module in faulty hard disk ROM;
S202: obtain valid data reference position according to user area adaptation parameter module valid data head feature;
S203: the middle part valid data section calculating firmware district adaptation parameter module needs according to valid data reference position;
S204: obtain firmware district adaptation parameter module tail data section in ROM;
S205: the middle part valid data that the header data section obtain S201 and S203 obtain and the tail data section that S204 obtains form new firmware district adaptation parameter module;
S206: new firmware district adaptation parameter module data is written back to ROM and covers original firmware district adaptation parameter module data.
4. a kind of method of repairing Xi Shuo hard disk firmware district adaptation parameter module according to claim 1, is characterized in that the detailed step of described S3 is as follows:
S301: the address and the size that obtain the JOG parameter shift of faulty hard disk;
S302: from original JOG argument address head back skew, obtain JOG adaptation parameter value;
S303: JOG adaptation parameter is covered original JOG parameter.
CN201510143954.2A 2015-03-31 2015-03-31 A kind of method for repairing hard disk firmware area adaptation parameter module Active CN104731532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510143954.2A CN104731532B (en) 2015-03-31 2015-03-31 A kind of method for repairing hard disk firmware area adaptation parameter module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510143954.2A CN104731532B (en) 2015-03-31 2015-03-31 A kind of method for repairing hard disk firmware area adaptation parameter module

Publications (2)

Publication Number Publication Date
CN104731532A true CN104731532A (en) 2015-06-24
CN104731532B CN104731532B (en) 2018-05-04

Family

ID=53455466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510143954.2A Active CN104731532B (en) 2015-03-31 2015-03-31 A kind of method for repairing hard disk firmware area adaptation parameter module

Country Status (1)

Country Link
CN (1) CN104731532B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656747A (en) * 2018-11-30 2019-04-19 四川巧夺天工信息安全智能设备有限公司 A method of carving the data adaptation module of multiple western number hard disk
CN109684124A (en) * 2018-12-25 2019-04-26 四川效率源信息安全技术股份有限公司 A method of repairing western number hard disk firmware Read fault

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929453A (en) * 2006-09-18 2007-03-14 华为技术有限公司 Method and device for recomposing fragmented data
US7870394B2 (en) * 2006-05-26 2011-01-11 Symantec Corporation Method and system to scan firmware for malware
CN103729275A (en) * 2014-01-21 2014-04-16 北京众诚天合系统集成科技有限公司 Hard disk firmware repairing system and hard disk firmware repairing method
CN103778037A (en) * 2012-10-24 2014-05-07 鸿富锦精密工业(深圳)有限公司 RAID card automatic restoration and maintenance method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7870394B2 (en) * 2006-05-26 2011-01-11 Symantec Corporation Method and system to scan firmware for malware
CN1929453A (en) * 2006-09-18 2007-03-14 华为技术有限公司 Method and device for recomposing fragmented data
CN103778037A (en) * 2012-10-24 2014-05-07 鸿富锦精密工业(深圳)有限公司 RAID card automatic restoration and maintenance method and system
CN103729275A (en) * 2014-01-21 2014-04-16 北京众诚天合系统集成科技有限公司 Hard disk firmware repairing system and hard disk firmware repairing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张京生,韩劲松: "硬盘固件区虚拟技术的原理与实用性分析", 《计算机工程与设计》 *
汪中夏,张京生: "SQLServer数据库逆向重建方法", 《北京信息科技大学学报》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656747A (en) * 2018-11-30 2019-04-19 四川巧夺天工信息安全智能设备有限公司 A method of carving the data adaptation module of multiple western number hard disk
CN109656747B (en) * 2018-11-30 2022-03-04 四川巧夺天工信息安全智能设备有限公司 Method for carving data adaptation module of composite Western digital hard disk
CN109684124A (en) * 2018-12-25 2019-04-26 四川效率源信息安全技术股份有限公司 A method of repairing western number hard disk firmware Read fault

Also Published As

Publication number Publication date
CN104731532B (en) 2018-05-04

Similar Documents

Publication Publication Date Title
US8599510B1 (en) Disk drive adjusting data track density based on write condition when writing to contiguous data tracks
US9129658B1 (en) Magnetic disk drive and method for controlling data rewrite
US8134798B1 (en) Disk drive maintaining a substantially constant host transfer rate when reading data from varying data rate data tracks across multiple disk surfaces
US8693123B1 (en) Disk drive correcting high order gray code using track estimator and decoding low order track code separately
CN103165142A (en) Shingled magnetic recording (smr) disk drive with verification of written data
CN104714869A (en) Method for repairing Western Digital hard disk unable to access data
US8051115B2 (en) Measuring fragmentation on direct access storage devices and defragmentation thereof
CN102237097A (en) Disk drive with adaptive counting of writes to the data tracks
TW200603626A (en) Methods and related circuit for automatic audio volume level control
CN104731532A (en) Method for repairing firmware region adaption parameter module of Western Digital hard disk
CN104811645B (en) A kind of embedded Video data storage method
CN102508620B (en) Method for processing RAID5 (Redundant Array of Independent Disks) bad sector
CN104598349A (en) Method for repairing Seagate hard disk incapable of entering diagnostic mode
CN110769178A (en) Method, device and equipment for automatically generating goal shooting highlights of football match and computer readable storage medium
CN104821176B (en) A kind of method for repairing Seagate hard disc magnetic head failure
CN104702874B (en) A kind of file memory method of facing video monitoring
CN106648948B (en) Method for repairing damage of Western digital hard disk No. 11 module
CN102170528B (en) Segmentation method of news program
US20070263313A1 (en) Storage apparatus, defect check method, and program
CN105389126A (en) Blocking storage system of video monitoring data
JP2013157068A (en) Data storage control device, data storage device and data storage method
CN104008173A (en) Flow type real-time audio fingerprint identification method
CN105976839A (en) Data storage device executing retry operation by buffering signal samples at different radial offsets
TW201535117A (en) A method for improving performance of a few data access on a large area in non-volatile storage device
CN107507631A (en) A kind of method for the magnetic head read or write speed for improving Seagate hard disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 641000 Sichuan province Neijiang City Songshan Road No. 183

Applicant after: SICHUAN XLY INFORMATION SAFETY TECHNOLOGY CO., LTD.

Address before: 641000 Sichuan province Neijiang City Songshan Road No. 183

Applicant before: Sichuan SalvationData Information Safety Technology Co., Ltd.

CB02 Change of applicant information
CB03 Change of inventor or designer information

Inventor after: Liang Xiaoning

Inventor after: Dong Chao

Inventor after: Yang Xianmin

Inventor before: Liang Xiaoning

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant